1 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
3 * po/POTFILES.in: Regenerate.
5 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
7 Unify sparc init with other ieee1275.
9 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
10 instead of kern/sparc64/ieee1275/init.c.
11 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
12 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
13 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
14 grub/machine/kernel.h.
15 (grub_ieee1275_original_stack) [__sparc__]: New variable.
16 (grub_claim_heap) [__sparc__]: Use sparc version.
17 (grub_machine_init): Moved args parsing to
18 (grub_parse_cmdline): ...this.
19 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
20 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
22 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
24 Move BOOTP to separate file.
26 * grub-core/Makefile.core.def (net): Add net/bootp.c.
27 * grub-core/net/net.c: Move all BOOTP functions to
28 * grub-core/net/bootp.c: ... here.
30 Use frame interface on PXE.
32 * grub-core/Makefile.core.def (pxecmd): Removed.
33 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
34 * grub-core/commands/i386/pc/pxecmd.c: Removed.
35 * grub-core/i386/pc/pxe.c: Moved from here ...
36 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
37 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
38 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
42 * grub-core/Makefile.core.def (efinet): New module.
43 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
45 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
47 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
48 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
49 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
50 * grub-core/net/drivers/efi/efinet.c: New file.
51 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
52 (grub_efi_net_config): New extern var.
54 Various cleanups and bugfixes.
56 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
58 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
59 disk declared as partition.
60 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
62 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
63 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
64 (grub_debug_zalloc): Likewise.
65 (grub_debug_realloc): Likewise.
66 (grub_debug_memalign): Likewise.
67 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
68 Check that target is IPv4.
69 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
70 local-mac-address as fallback.
71 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
73 * grub-core/net/ip.c (ipchksum): Rename to ...
74 (grub_net_ip_chksum): ... this. All users updated.
75 (grub_net_recv_ip_packets): Special handling for DHCP.
76 * util/grub-mkimage.c (generate_image): Zero-out aout header.
80 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
81 (grub_machine_get_bootlocation): ... this.
82 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
83 (grub_machine_get_bootlocation): ... this.
84 (grub_prefix): New variable.
86 (root_dev): New variable.
88 (main): Use new variables.
89 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
91 (grub_machine_get_bootlocation): ... this.
92 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
93 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
94 (grub_machine_get_bootlocation): ... this.
95 (grub_machine_set_prefix): Removed.
96 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
97 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
99 (grub_machine_get_bootlocation): ... this.
100 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
101 (grub_set_prefix_and_root): ... this. All users updated.
102 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
104 (grub_machine_get_bootlocation): ... this.
105 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
106 (grub_machine_get_bootlocation): New proto.
107 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
109 Less intrusive and more reliable seek on network implementation.
111 * grub-core/kern/file.c (grub_file_net_seek): Removed.
112 (grub_file_seek): Don't call grub_file_net_seek.
113 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
114 (grub_net_fs_read_real): .. this.
115 (grub_net_seek_real): Use net->offset.
116 (grub_net_fs_read): Seek if necessary.
118 Unify IEEE1275 netwotk config with the other platforms.
120 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
122 (grub_machine_get_bootlocation): Support network.
123 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
124 Support type and device parsing.
125 (grub_ieee1275_get_device_type): New function.
126 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
128 (grub_ieee1275_net_config_real): ... this.
129 (grub_ofnet_probecards): Removed.
130 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
131 * include/grub/ieee1275/ofnet.h: Removed.
132 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
134 (grub_ieee1275_get_device_type): New function.
136 Unify network device closing across platforms and make more robust.
138 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
140 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
142 * grub-core/net/net.c (grub_net_network_level_interface_register):
144 (grub_net_card_unregister): Close all interfaces.
145 (receive_packets): Don't poll if no iterfaces are registered.
147 (grub_net_fini_hw): New function.
148 (grub_net_restore_hw): Likewise.
149 (fini_hnd): New variable.
150 (GRUB_MOD_INIT): Register preboot hook.
151 (GRUB_MOD_FINI): Run and unregister preboot hook.
153 Poll network cards when idle.
155 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
156 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
157 * grub-core/net/net.c (receive_packets): Save last poll time.
158 (grub_net_poll_cards_idle_real): New function.
159 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
160 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
161 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
163 Rename ofnet interfaces.
165 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
166 (grub_ofnet_findcards): Use ofnet_%s names.
168 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
170 Cleanup socket opening.
172 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
173 (grub_net_fs_close): Likewise.
174 (grub_net_fs_read_real): Use eof member.
175 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
176 (+grub_net_udp_close): New inline function.
178 * include/grub/net/tftp.h: Moved to the top of ...
179 * grub-core/net/tftp.c: ... here.
180 * include/grub/net/ip.h: Moved mostly to the top of ...
181 * grub-core/net/ip.c: ... here.
182 * include/grub/net/ethernet.h: Moved mostly to the top of ...
183 * grub-core/net/ethernet.c: ... here.
185 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
187 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
190 * include/grub/net/ip.h (ipv4_ini): Removed.
191 (ipv4_fini): Likewise.
193 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
194 (grub_net_send_ip_packets): Likewise.
196 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
198 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
199 grub_read_cmos prototype.
201 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
203 VGA text support in qemu-mips
205 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
206 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
207 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
209 * grub-core/kern/i386/qemu/init.c: Renamed to ...
210 * grub-core/kern/vga_init.c: ... this.
211 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
212 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
213 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
215 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
216 GRUB_MACHINE_PCI_IO_BASE.
218 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
220 MIPS qemu flash support.
222 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
224 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
225 (grub_machine_init): Probe memory if its size isn't known.
226 * util/grub-mkimage.c (image_targets): Add flash targets.
227 (generate_image): Handle flash targets.
229 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
231 MIPS qemu at_keyboard support.
233 * gentpl.py (videoinkernel): Add qemu-mips.
234 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
235 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
236 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
238 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
239 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
240 * grub-core/term/serial.c (grub_serial_register)
241 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
243 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
245 CMOS support on sparc.
247 * gentpl.py (cmos): Add powerpc and sparc.
248 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
250 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
251 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
252 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
253 grub_set_datetime_cmos.
254 * grub-core/lib/ieee1275/cmos.c: New file.
255 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
256 (find_rtc): Set no_ieee1275_rtc on error.
257 (grub_get_datetime): Call grub_get_datetime_cmos on error.
258 (grub_set_datetime): Call grub_set_datetime_cmos on error.
259 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
260 fail. Move value to argument. All users updated
261 (grub_cmos_write): Likewise.
262 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
263 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
264 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
265 grub_get_datetime_cmos and grub_set_datetime_cmos.
267 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
269 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
270 sourcing grub-mkconfig_lib.
271 * util/update-grub_lib.in: Likewise.
272 * util/grub.d/00_header.in: Likewise.
273 * util/grub.d/10_hurd.in: Likewise.
274 * util/grub.d/10_kfreebsd.in: Likewise.
275 * util/grub.d/10_linux.in: Likewise.
276 * util/grub.d/10_netbsd.in: Likewise.
277 * util/grub.d/10_windows.in: Likewise.
278 * util/grub.d/20_linux_xen.in: Likewise.
279 * util/grub.d/30_os-prober.in: Likewise.
281 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
283 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
284 default_bg_color rather than black.
285 (grub_gfxterm_fullscreen): Likewise.
286 (grub_gfxterm_background_color_cmd): Save new background color in
289 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
291 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
293 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
295 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
298 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
300 Chainloading on coreboot support.
302 * grub-core/Makefile.core.def (chain): Add coreboot.
303 * grub-core/loader/i386/coreboot/chainloader.c: New file.
305 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
307 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
310 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
312 Implement time command.
314 * grub-core/Makefile.core.def (time): New module.
315 * grub-core/commands/time.c: New file.
316 * grub-core/script/parser.y: Remove "time" keyword.
317 * grub-core/script/yylex.l: Likewise.
319 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
321 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
323 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
325 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
326 when handling leftovers.
328 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
330 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
331 so that help2man doesn't fail.
333 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
335 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
336 type in pointers on sparc64.
337 (get_card_packet): Likewise.
339 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
341 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
343 (grub_cmd_videoinfo): Fetch current video mode.
345 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
347 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
348 because of underlying system restrictions.
350 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
352 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
355 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
357 Coreboot video support.
359 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
361 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
362 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
364 * grub-core/kern/i386/int.S: ... here.
365 * grub-core/video/i386/pc/vbe.c: Updated includes.
366 * grub-core/video/i386/pc/vga.c: Likewise.
367 * include/grub/i386/coreboot/memory.h
368 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
369 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
370 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
371 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
373 * include/grub/i386/pc/vga.h: Removed. All users updated.
375 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
377 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
378 definitions for dprintf.
379 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
381 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
383 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
385 (get_card_packet): Likewise.
387 2011-06-26 Yves Blusseau <blusseau@zetam.org>
389 Display the path of the file when file is not found
391 * grub-core/fs/fat.c: Display the filename when file is not found.
392 * grub-core/fs/fshelp.c: Likewise.
393 * grub-core/fs/hfs.c: Likewise.
394 * grub-core/fs/jfs.c: Likewise.
395 * grub-core/fs/minix.c: Likewise.
396 * grub-core/fs/ufs.c: Likewise.
397 * grub-core/fs/btrfs.c: Likewise.
398 * grub-core/commands/i386/pc/play.c: Likewise.
400 2011-06-26 Szymon Janc <szymon@janc.net.pl>
402 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
403 pointer checks before calling grub_free().
404 * grub-core/commands/wildcard.c (match_devices): Likewise.
405 * grub-core/commands/wildcard.c (match_files): Likewise.
406 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
407 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
408 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
409 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
410 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
411 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
412 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
413 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
414 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
416 2011-06-25 Patrick <p55@mailinator.com>
418 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
420 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
422 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
423 (grub_pxe_send): Likewise.
424 (GRUB_MOD_INIT): Fix types.
426 2011-06-24 Szymon Janc <szymon@janc.net.pl>
428 * grub-core/io/xzio.c: Fix code style issues
430 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
431 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
433 Network infrastructure.
434 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
436 * include/grub/net/arp.h: New file.
437 * include/grub/net/device.h: Likewise.
438 * include/grub/net/ethernet.h: Likewise.
439 * include/grub/net/ip.h: Likewise.
440 * include/grub/net/netbuff.h: Likewise.
441 * include/grub/net/tftp.h: Likewise.
442 * include/grub/net/udp.h: Likewise.
443 * include/grub/ieee1275/ofnet.h: Likewise.
444 * include/grub/emu/export.h: Likewise.
445 * include/grub/net.h: Likewise.
446 * grub-core/net/arp.c: Likewise.
447 * grub-core/net/ethernet.c: Likewise.
448 * grub-core/net/ip.c: Likewise.
449 * grub-core/net/udp.c: Likewise.
450 * grub-core/net/tftp.c: Likewise.
451 * grub-core/net/netbuff.c: Likewise.
452 * grub-core/net/net.c: Likewise.
453 * grub-core/net/drivers/emu/emunet.c: Likewise.
454 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
455 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
457 * grub-core/Makefile.core.def (net): New module.
461 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
463 * grub-core/kern/device.c (grub_net_open) : New variable.
464 (grub_device_open): Handle network device.
465 (grub_device_close): Likewise.
466 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
467 (grub_grubnet_fini): Likewise.
468 (grub_file_seek): Seek in network device.
469 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
470 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
472 (grub_machine_fini): Call grub_grubnet_fini.
473 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
475 (grub_ieee1275_get_aliasdevname): New function.
476 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
477 Add unofficial Solaris network info.
478 (grub_multiboot_make_mbi): Likewise.
479 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
480 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
481 * include/grub/device.h (grub_fs): Removed.
482 * include/grub/err.h (grub_err_t): Add network-related values.
483 * include/grub/i386/pc/pxe.h: Removed bootp parts.
484 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
485 (grub_ieee1275_get_aliasdevname): New proto.
486 * include/grub/net.h: Rewritten.
488 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
490 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
493 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
495 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
496 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
497 it truncates the output.
498 Reported by: Ximin Luo.
500 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
502 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
504 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
506 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
507 partmap before abstraction.
509 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
511 * util/grub-mkconfig_lib.in: Add missing quotes.
513 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
515 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
516 old method if mountinfo would return /dev/root and /dev/root doesn't
519 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
523 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
524 (decomp_table): Add zlib entries.
525 (zio_read): USe 8 bits for compression function rather than 3.
526 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
528 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
530 * grub-core/disk/ahci.c: Add missing license statements.
531 * grub-core/fs/romfs.c: Likewise.
532 * grub-core/lib/ia64/setjmp.S: Likewise.
533 * grub-core/loader/i386/pc/freedos.c: Likewise.
534 * grub-core/loader/ia64/efi/linux.c: Likewise.
535 * grub-core/video/colors.c: Likewise.
536 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
538 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
542 * grub-core/Makefile.core.def (ata_pthru): Removed.
545 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
547 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
549 (grub_hdparm_do_check_powermode_cmd): Likewise.
550 (grub_hdparm_do_smart_cmd): Likewise.
551 (grub_hdparm_set_val_cmd): Likewise.
552 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
553 * grub-core/disk/ahci.c: New file.
554 * grub-core/disk/ata.c: Factor out the low-level part into ...
555 * grub-core/disk/pata.c: ... here.
556 * grub-core/disk/ata_pthru.c: Contents moved to ...
557 * grub-core/disk/pata.c: ... here.
558 * grub-core/disk/scsi.c (grub_scsi_names): New array.
559 (grub_scsi_iterate): Use grub_scsi_names.
560 (grub_scsi_open): Likewise.
561 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
562 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
563 (grub_ata_regs_t): New struct.
564 (grub_disk_ata_pass_through_parms): Likewise.
565 (grub_ata_device): Renamed to ...
566 (grub_ata): ... this.
567 (grub_ata_dev): New struct.
568 Removed all low-level inline functions.
569 * include/grub/scsi.h: Add PATA and AHCI subsystems.
570 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
571 iterate hooks and open. All users updated.
572 * util/grub-install.in: Handle AHCI disk module.
574 2011-06-23 Szymon Janc <szymon@janc.net.pl>
576 Add support for DRI and RSTn markers in JPEG files.
578 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
579 (JPEG_MARKER_RST0): Likewise.
580 (JPEG_MARKER_RST1): Likewise.
581 (JPEG_MARKER_RST2): Likewise.
582 (JPEG_MARKER_RST3): Likewise.
583 (JPEG_MARKER_RST4): Likewise.
584 (JPEG_MARKER_RST5): Likewise.
585 (JPEG_MARKER_RST6): Likewise.
586 (JPEG_MARKER_RST7): Likewise.
587 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
588 (grub_jpeg_decode_dri): New function.
589 (grub_jpeg_decode_sos): Move image data related part into
590 grub_jpeg_decode_data function.
591 (grub_jpeg_decode_data): New function.
592 (grub_jpeg_reset): New function.
593 (grub_jpeg_decode_jpeg): Handle new markers.
595 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
597 * util/ieee1275/ofpath.c (check_sas): Close fd.
598 (main): Free of_path.
599 Reported by: David Volgyes <dvolgyes>.
601 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
603 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
604 Reported by: David Volgyes <dvolgyes>.
606 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
608 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
610 Reported by: David Volgyes <dvolgyes>.
612 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
614 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
616 Reported by: David Volgyes <dvolgyes>.
618 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
620 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
623 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
625 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
627 Reported by: David Volgyes <dvolgyes>.
629 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
631 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
632 to continue if allocation is failed.
634 Reported by: David Volgyes <dvolgyes>.
636 2011-06-23 David Volgyes <dvolgyes>
638 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
641 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
643 Fix spurious warning.
645 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
646 (acorn_partition_map_find): Use .bin member.
648 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
650 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
651 /dev/root as a valid device.
653 2011-06-23 Jim Meyering <meyering@redhat.com>
655 Avoid NULL deref in grub_device_open.
657 * grub-core/kern/device.c (grub_device_open): Don't dereference
658 a NULL pointer upon failed grub_env_get.
660 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
662 Support non-512B sectors and agglomerate reads.
664 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
665 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
666 (disk_io_guid): Removed.
667 (make_devices): Locate solely by BlockIO.
668 (grub_efidisk_open): Fill log_sector_size and total_sectors.
669 (grub_efidisk_read): Use read_blocks.
670 (grub_efidisk_write): Use write_blocks.
671 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
673 (get_safe_sectors): Handle non-512B sectors.
674 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
676 (grub_biosdisk_write): Handle non-512B sectors.
677 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
678 (grub_scsi_read): Remove special non-512B block handling (now handled
680 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
681 and do sanity checks.
682 (grub_disk_adjust_range): Handle non-512B sectors.
683 (transform_sector): New function.
684 (grub_disk_read_small): Likewise.
685 (grub_disk_read): Rewritten.
686 (grub_disk_write): Handle non-512B sectors.
687 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
689 (open_device): Use log_sector_size.
690 (grub_util_biosdisk_read): Likewise.
691 (grub_util_biosdisk_write): Likewise.
692 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
694 (pc_partition_map_embed): Likewise.
695 * include/grub/disk.h (grub_disk): New field log_sector_size.
696 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
697 (GRUB_DISK_CACHE_BITS): Increased to 6.
698 * util/grub-fstest.c (fstest): New command testload.
699 (argp_parser): Likewise.
701 2011-06-16 Robert Millan <rmh@gnu.org>
703 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
704 `ata' driver on kernel of FreeBSD 9.
706 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
707 (get_ataraid_disk_name): New functions.
708 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
709 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
710 get_ataraid_disk_name() and get_ada_disk_name().
712 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
714 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
717 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
719 * docs/grub.texi (Obtaining and Building GRUB): Substitute
720 `ftp.gnu.org' for `alpha.gnu.org'.
722 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
724 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
725 partitions under /dev/disk/by-id/.
727 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
729 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
730 after ten consecutive open failures. Scanning all the way up to
731 10000 is excessive and can cause serious performance problems in
733 Fixes Ubuntu bug #787461.
735 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
737 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
740 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
741 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
743 Don't stat devices unless we have to.
745 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
747 (grub_guess_root_device): Use already known os_dev if possible.
748 * grub-core/kern/emu/hostdisk.c
749 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
750 if device is known to be a dm one.
752 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
754 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
755 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
756 Reported by: Pawel Tecza.
758 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
760 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
761 (lsefisystab): Likewise.
763 (lsefimmap): Likewise.
764 (hdparm): Enable on qemu-mips.
765 (setjmp): Add ia64 nodist.
766 (serial): Simplify tags.
768 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
770 * Makefile.util.def (grub-ofpathname): Install manual page.
772 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
774 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
776 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
778 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
780 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
782 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
785 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
787 Use full 64-bit division.
789 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
790 (grub_divmod64): ... this.
791 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
794 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
796 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
799 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
801 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
802 to avoid accidents when debugging with 'sh -x'.
803 * grub-core/gensyminfo.sh.in: Likewise.
804 * tests/example_scripted_test.in: Likewise.
805 * tests/grub_cmd_regexp.in: Likewise.
806 * tests/grub_script_blanklines.in: Likewise.
807 * tests/grub_script_dollar.in: Likewise.
808 * tests/grub_script_expansion.in: Likewise.
809 * tests/grub_script_final_semicolon.in: Likewise.
810 * tests/partmap_test.in: Likewise.
811 * tests/util/grub-shell-tester.in: Likewise.
812 * tests/util/grub-shell.in: Likewise.
814 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
816 Move gfxmenu color handling to video, so that gfxterm can use it
819 * grub-core/gfxmenu/named_colors.c: Move to ...
820 * grub-core/video/colors.c: ... here. Rename
821 grub_gui_get_named_color to grub_video_get_named_color.
822 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
823 * grub-core/video/colors.c (my_isxdigit): ... here.
824 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
826 * grub-core/video/colors.c (parse_hex_color_component): ... here.
827 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
829 * grub-core/video/colors.c (grub_video_parse_color): ... here.
831 * include/grub/gui.h (grub_gui_color_t): Move to ...
832 * include/grub/video.h (grub_video_rgba_color_t): ... here.
833 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
834 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
835 * include/grub/gui.h (grub_gui_map_color): Move to ...
836 * include/grub/video.h (grub_video_map_rgba_color): ... here.
837 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
839 * include/grub/video.h (grub_video_get_named_color): ... here.
840 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
841 * include/grub/video.h (grub_video_parse_color): ... here.
843 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
845 (gfxmenu): Remove gfxmenu/named_colors.c.
846 (video) [videomodules]: Add video/colors.c.
848 Add a background_color command.
850 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
852 (GRUB_MOD_INIT): Register background_color command.
853 (GRUB_MOD_FINI): Unregister background_color command.
854 (redraw_screen_rect): Allow blend/replace of text layer to be
855 controlled independently from whether there is a background bitmap.
856 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
859 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
861 Patch BPB in ntldr and chainloader --bpb.
863 * grub-core/fs/fat.c: Include grub/fat.h.
864 (grub_fat_bpb): Moved to ...
865 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
866 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
868 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
870 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
872 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
874 (grub_chainloader_cmd): Patch BPB if --bpb is given.
875 (GRUB_MOD_INIT): Show --bpb.
876 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
877 * grub-core/normal/main.c (features): New variable.
878 (GRUB_MOD_INIT): Set feature_* variables.
879 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
881 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
883 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
885 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
888 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
890 FreeDOS direct loading support.
892 * docs/grub.texi (Supported OS): Add FreeDOS.
893 * grub-core/Makefile.core.def (freedos): New module.
894 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
896 (grub_relocator16_boot): Handle %ebx.
897 * grub-core/lib/i386/relocator16.S: Likewise.
898 * grub-core/loader/i386/pc/freedos.c: New file.
900 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
902 Long Linux command line support.
904 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
905 (maximal_cmdline_size): New variable.
906 (allocate_pages): Use maximal_cmdline_size.
907 (grub_cmd_linux): Set and use maximal_cmdline_size.
908 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
909 (allocate_pages): Use maximal_cmdline_size.
910 (grub_cmd_linux): Set and use maximal_cmdline_size.
911 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
912 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
915 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
916 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
918 Improve devmapper support
920 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
921 (grub_util_is_lvm): New function.
922 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
923 than lvm if not dmraid.
924 Handle mapped md nodes.
925 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
926 (grub_util_device_is_mapped): ... this. Make always available. All users
928 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
929 (convert_system_partition_to_system_disk): Handle lvm, mpath and
931 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
933 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
935 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
937 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
938 * grub-core/modinfo.sh.in: New file.
939 * grub-core/Makefile.core.def (modinfo.sh): New script.
940 * util/grub-mknetdir.in: Use modinfo.sh.
941 * util/grub-mkrescue.in: Likewise.
943 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
945 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
946 Fix potential usage of Elf32 instead of Elf64 when compiling on
947 32-bit architecture. Add endianness macros while on it.
949 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
951 Use mipsel- rather than mips- in directories involving mipsel ports to
952 allow both endiannesses coexist.
954 * configure.ac: proparate target_cpu=mipsel rather than resetting to
955 mips. All conditions adjusted.
956 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
958 * util/grub-install.in: Adjust conditions to take renaming into account.
959 * util/grub-mkimage.c (image_targets): Likewise. New target
960 mips-qemu_mips-elf for bigendian mips.
962 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
964 Avoid unnecessary copying on MIPS.
966 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
967 early if src == dest.
968 * util/grub-mkimage.c (generate_image): Arange for src == dest if
971 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
973 Reduce memory footprint on SGI by putting modules before the kernel
976 * grub-core/Makefile.core.def (kernel): Increase linking address.
977 (none_decompress): Likewise.
978 (xz_decompress): Likewise.
979 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
981 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
983 (grub_arch_modules_addr): New function.
984 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
985 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
986 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
988 * grub-core/kern/mips/startup.S (total_size): Rename to ...
989 (grub_total_modules_size): ... this. Make global.
990 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
991 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
993 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
994 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
995 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
996 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
997 * util/grub-mkimage.c (image_target_desc): New flag
998 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
999 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
1000 (generate_image): Handle images with modules before kernel.
1002 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1004 Prevent potential loss of memory map by overwrite on qemu-mips.
1006 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
1007 Save ram size in $s4.
1008 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
1009 All users changed to grub_arch_memsize.
1010 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
1012 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
1013 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
1014 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
1017 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
1019 * .bzrignore: Remove grub-dumpbios.
1021 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
1023 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
1024 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
1025 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
1026 existing options which append).
1027 * docs/grub.texi (Simple configuration): Document new options.
1028 Reported by: Ian Jackson. Fixes Debian bug #617538.
1030 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
1032 * util/grub-fstest.c (cmd_cat): New function.
1033 (fstest): Handle CMD_CAT.
1035 (argp_parser): Handle cat.
1037 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
1039 * Makefile.util.def (grub-bin2h): Don't install.
1040 * docs/man/grub-bin2h.h2m: Remove.
1042 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1044 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
1047 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1049 Reenable qemu-mips port.
1051 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
1052 Fix small arc bug while on it.
1053 * gentpl.py: Handle qemu_mips.
1054 * grub-core/Makefile.am: Likewise.
1055 * grub-core/Makefile.core.def: Likewise.
1056 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
1057 inappropriate includes.
1058 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
1059 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
1060 * grub-core/kern/main.c (grub_modules_get_end)
1061 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
1062 * grub-core/kern/mips/qemu-mips: Moved to ..
1063 * grub-core/kern/mips/qemu_mips: ... this.
1064 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
1065 (grub_machine_init): Call terminfo_init and serial_init.
1066 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
1067 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
1069 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
1071 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
1072 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
1073 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
1074 * include/grub/mips/qemu_mips/cmos.h: New file.
1075 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
1076 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
1078 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
1079 Use correct mips-style address.
1080 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
1081 (GRUB_TICKS_PER_SECOND): Removed.
1082 (grub_get_rtc): Likewise.
1083 (grub_cpu_idle): Likewise.
1084 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
1086 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
1087 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
1088 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
1089 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
1090 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
1091 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
1092 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
1093 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
1095 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1099 * Makefile.util.def (libgrubmods.a): Add dvh.c.
1100 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
1102 * configure.ac: New target mips-arc.
1103 * gentpl.py: Likewise.
1104 * grub-core/Makefile.am: Likewise.
1105 * grub-core/Makefile.core.def: Likewise.
1106 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
1107 (none_decompress): Likewise.
1108 (lsdev): New module.
1109 (datetime): Use lib/arc/datetime.c on ARC.
1110 (part_dvh): New module.
1111 * grub-core/commands/arc/lsdev.c: New file.
1112 * grub-core/disk/arc/arcdisk.c: Likewise.
1113 * grub-core/kern/mips/arc/init.c: Likewise.
1114 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
1116 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
1118 (grub_arch_dl_relocate_symbols): Likewise.
1119 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
1120 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
1121 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
1123 * grub-core/lib/arc/datetime.c: New file.
1124 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
1125 pci.h on non-loongson.
1126 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
1127 (grub_linux_boot): Set unused registers to 0.
1128 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
1129 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
1130 * grub-core/mmap/mips/uppermem.c: ...here.
1131 * grub-core/partmap/dvh.c: New file.
1132 * grub-core/term/arc/console.c: Likewise.
1133 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
1134 (grub_terminfo_set_current): Add terminal "arc".
1135 (grub_terminfo_readkey): Support ARC sequences.
1136 * include/grub/arc/arc.h: New file.
1137 * include/grub/arc/console.h: Likewise.
1138 * include/grub/disk.h (grub_disk_dev_id): Add
1139 GRUB_DISK_DEVICE_ARCDISK_ID.
1140 * include/grub/mips/arc/kernel.h: New file.
1141 * include/grub/mips/arc/memory.h: Likewise.
1142 * include/grub/mips/arc/time.h: Likewise.
1143 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
1144 * include/grub/mips/kernel.h (grub_halt): ... here.
1145 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
1147 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
1148 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
1149 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
1150 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
1152 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
1154 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
1155 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
1156 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
1157 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
1158 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
1159 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
1160 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
1161 (grub_phys_addr_t): Moved from here ...
1162 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
1163 (grub_vtop): Moved from here ...
1164 * include/grub/mips/memory.h (grub_vtop): ... here.
1165 (grub_map_memory): Moved from here ...
1166 * include/grub/mips/memory.h (grub_map_memory): ... here.
1167 (grub_unmap_memory): Moved from here ...
1168 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
1169 (grub_machine_mmap_iterate): Moved from here ...
1170 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
1171 (grub_mmap_get_lower): Moved from here ...
1172 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
1173 (grub_mmap_get_upper): Moved from here ...
1174 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
1175 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
1177 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
1178 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
1180 * include/grub/mips/time.h (grub_get_rtc): ... here.
1181 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
1183 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
1184 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
1186 * include/grub/mips/time.h (grub_cpu_idle): ... here.
1187 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
1189 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
1190 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
1191 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
1192 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
1193 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
1194 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
1195 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
1196 (GRUB_MACHINE_LINK_ADDR): Likewise.
1197 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
1199 * util/grub-install.in: Run dvhtool on ARC.
1200 * util/grub-mkimage.c (image_targets): Add mips-arc.
1201 (generate_image): Handle ECOFF output for mips-arc.
1203 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
1205 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
1208 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
1210 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
1211 after enabling port.
1213 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
1215 Skip incorrect USB devices.
1217 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
1219 * include/grub/usb.h (grub_usb_err_t): New enum value
1220 GRUB_USB_ERR_BADDEVICE.
1222 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
1224 Fuloong video init support.
1226 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
1228 (grub_vga_read_arx): New function.
1229 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
1231 (framebuffer): New members io, mmioptr and mmiobase.
1232 (read_sis_cmd): New function.
1233 (write_sis_cmd): Likewise.
1234 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
1235 rather than 640x400.
1236 * grub-core/video/sis315_init.c: New file.
1238 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1240 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
1242 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
1243 to grub_dl_register_symbol.
1245 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1247 Fix compilation errors.
1249 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
1251 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
1252 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
1253 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
1254 to loongson machines.
1256 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1258 Several FS mtime support.
1260 * grub-core/fs/affs.c (grub_affs_time): New struct.
1261 (grub_affs_file): New field mtime.
1262 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
1263 type. Removed 'size'. New field 'di'. All users updated.
1264 (grub_affs_mount): Simplify checsum checking.
1265 (grub_affs_iterate_dir): New helper grub_affs_create_node.
1266 (grub_affs_dir): Handle mtime.
1267 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
1268 (grub_cpio_dir): Likewise.
1269 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
1270 (grub_hfs_filerec): New field mtime.
1271 (grub_hfs_dir): Handle mtime.
1272 (grub_hfs_mtime): New function.
1273 (grub_hfs_fs): Register grub_hfs_mtime.
1274 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
1275 (grub_iso9660_dir): New field mtime.
1276 (grub_fshelp_node): New field dirent.
1277 (iso9660_to_unixtime): New function.
1278 (iso9660_to_unixtime2): Likewise.
1279 (grub_iso9660_read_symlink): Use node->dirent.
1280 (grub_iso9660_iterate_dir): Likewise.
1281 (grub_iso9660_dir): Set mtime.
1282 (grub_iso9660_mtime): New function.
1283 (grub_iso9660_fs): Register grub_iso9660_mtime.
1284 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
1285 (grub_jfs_inode): New fields atime, ctime and mtime.
1286 (grub_jfs_dir): Set mtime.
1287 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
1288 * grub-core/fs/ntfs.c (list_file): Set mtime.
1289 (grub_ntfs_dir): Likewise.
1290 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
1291 (grub_reiserfs_iterate_dir): Set mtime.
1292 (grub_reiserfs_dir): Likewise.
1293 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
1294 (grub_fshelp_node): Likewise.
1295 (grub_sfs_iterate_dir): Set mtime.
1296 (grub_sfs_dir): Likewise.
1297 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
1298 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
1299 (grub_xfs_inode): New fields atime, mtime, ctime.
1300 (grub_xfs_dir): Set mtime.
1301 * include/grub/datetime.h (grub_datetime2unixtime): New function.
1302 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
1303 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
1305 Support UDF symlinks.
1307 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
1308 (grub_ufs_read_symlink): New function. All users updated.
1310 Check amiga partmap checksum.
1312 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
1313 (grub_amiga_partition): Likewise.
1314 (amiga_partition_map_checksum): New function.
1315 (amiga_partition_map_iterate): Check checksum.
1317 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1321 * Makefile.util.def (libgrubmods.a): Add romfs.
1322 * grub-core/Makefile.core.def (romfs): New module.
1323 * grub-core/fs/romfs.c: New file.
1325 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1327 Squashfs v4 support.
1329 * Makefile.util.def (libgrubmods.a): Add squash4.
1330 * grub-core/Makefile.core.def (squash4): New module.
1331 * grub-core/fs/squash4.c: New file.
1332 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
1333 disk_input_start, disk_input.
1334 (get_byte): Handle disk_input.
1335 (grub_zlib_disk_read): New function.
1336 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
1338 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1339 2011-05-15 Feiran Zheng <famcool@gmail.com>
1341 * Makefile.util.def (libgrubmods.a): Add minix3.
1342 * grub-core/Makefile.core.def (minix3): New module.
1343 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
1344 (GRUB_MINIX_BSIZE): Removed.
1345 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
1346 (grub_minix_ino_t): New type.
1347 (grub_minix_le_to_cpu_ino): New macro.
1348 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
1349 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
1350 (grub_minix_data): New field block_size.
1351 (grub_minix_read_file): Handle 64-bit correctly.
1352 * grub-core/fs/minix3.c: New file.
1354 2011-05-15 Tristan Gingold <gingold@free.fr>
1355 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
1356 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1360 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
1361 * configure.ac: Add ia64-efi target.
1362 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
1363 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
1364 * gentpl.py: Add ia64_efi platform.
1365 Rename x86_efi to efi and Add ia64-efi. All users updated.
1366 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
1367 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
1368 Remove kern/generic/rtc_get_time_ms.c on EFI.
1369 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
1370 kern/ia64/dl_helper.c on ia64-efi.
1371 Add kern/emu/cache.c on emu.
1372 (linux): Use on loader/ia64/efi/linux.c on ia64.
1373 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
1374 whether symbol is a function.
1375 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
1376 (grub_symbol): New field 'isfunc'.
1377 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
1378 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
1379 (grub_dl_load_segments): Place all sections into the same region.
1380 [__ia64__]: Create trampolines and got.
1381 [GRUB_MACHINE_EMU]: Call mprotect.
1382 (grub_dl_resolve_symbols): Resolve symbol type as well.
1383 [__ia64__]: Create function descriptors.
1384 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
1385 (grub_rtc_get_time_ms): ... this. Expressions simplified.
1386 (grub_get_rtc): New function.
1387 * grub-core/kern/emu/cache.c [__ia64__]: New file.
1388 * grub-core/kern/emu/cache.S: Renamed to ...
1389 * grub-core/kern/emu/cache_s.S: ... this.
1390 [__ia64__]: Add a nop.
1391 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
1392 [__ia64__]: New function.
1393 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
1394 * grub-core/kern/ia64/dl.c: New file.
1395 * grub-core/kern/ia64/dl_helper.c: Likewise.
1396 * grub-core/kern/ia64/efi/init.c: New file.
1397 * grub-core/kern/ia64/efi/startup.S: Likewise.
1398 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
1399 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
1400 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
1401 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
1402 * grub-core/loader/ia64/efi/linux.c: New file.
1403 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
1404 (GRUB_MOD_DEP): Likewise.
1405 (grub_dl) [__ia64__]: New fields got and tramp.
1406 (grub_dl): New field 'base'.
1407 (grub_dl_register_symbol): New argument isfunc. All users updated.
1408 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
1409 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
1410 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
1411 (grub_ia64_dl_get_tramp_got_size): New proto.
1412 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
1413 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
1414 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
1415 * include/grub/efi/api.h: Skip call wrappers on ia64.
1416 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
1417 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
1418 * include/grub/elf.h (ELF_ST_INFO): New definition.
1419 * include/grub/ia64/efi/kernel.h: New file.
1420 * include/grub/ia64/efi/memory.h: Likewise.
1421 * include/grub/ia64/efi/time.h: Likewise.
1422 * include/grub/ia64/kernel.h: Likewise.
1423 * include/grub/ia64/setjmp.h: Likewise (from glibc).
1424 * include/grub/ia64/time.h: New file.
1425 * include/grub/ia64/types.h: Likewise.
1426 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
1427 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
1429 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
1430 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
1431 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
1432 * util/grub-mkimage.c (image_target_desc): New field pe_target.
1434 (EFI64_HEADER_SIZE): New definition. All users updated.
1435 (image_targets): Add ia64-efi.
1436 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
1437 jumpers_addr. All users updated.
1438 Create function descriptors.
1439 (count_funcs): New function.
1440 (unaligned_uint32): New struct.
1441 (MASK20): New definition.
1443 (MASKF21): Likewise.
1444 (add_value_to_slot_20b): New function.
1445 (add_value_to_slot_21_real): Likewise.
1446 (add_value_to_slot_21): Likewise.
1447 (ia64_kernel_trampoline): New struct.
1448 (nopm): New variable.
1450 (make_trampoline): New function.
1451 (relocate_addresses): Handle ia64.
1452 (make_reloc_section): Likewise.
1453 (load_image): Likewise.
1455 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1457 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
1458 warning. Move variables before code while on it.
1460 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1464 * configure.ac: Rename yeeloong platform to loongson. All users updated.
1465 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
1466 * grub-core/boot/mips/loongson/fuloong.S: New file.
1467 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
1468 Explicitly init CS5536.
1469 [FULOONG]: Don't use serial until CS5536 is available.
1470 Set GPIO based on dumps.
1471 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
1472 [FULOONG]: Handle GPIO and memory controller differences.
1473 Parse machine type in $a2.
1474 * grub-core/boot/mips/startup_raw.S: Determine and save the
1476 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
1477 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
1478 init on architecture type.
1479 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
1480 SIS315E. Don't init at_keyboard on fuloong.
1481 (grub_halt): Support Fuloong.
1482 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
1483 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
1484 (loongson_machtypes): New array.
1485 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
1487 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
1488 config. All users updated. Handle CS5536 serial.
1489 * grub-core/term/serial.c (grub_serial_register): Conditionalise
1490 default port on machine type. Register serial as inactive.
1491 * grub-core/video/sis315pro.c: New file.
1492 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
1494 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
1495 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
1496 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
1497 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
1498 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
1499 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
1501 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
1502 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
1504 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
1505 (grub_arch_machine): New extern var.
1506 * include/grub/mips/loongson/serial.h
1507 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
1508 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
1509 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
1510 (GRUB_MACHINE_SERIAL_PORT0): ... this.
1511 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
1512 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
1513 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
1514 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
1515 * include/grub/term.h (grub_term_register_input_inactive): New inline
1517 (grub_term_register_output_inactive): Likewise.
1518 * include/grub/video.h (grub_video_driver_id): New value
1519 GRUB_VIDEO_DRIVER_SIS315PRO.
1520 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
1521 New field "names". All users updated.
1522 New field value IMAGE_FULOONG_FLASH.
1523 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
1525 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
1527 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
1528 and add some clarification.
1530 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1532 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
1533 platforms if kernel is compressed.
1535 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1537 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
1538 unused modules since currently referrence counter isn't reliable and
1539 there isn't much memory to recover there anyway.
1541 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1543 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
1544 rather than resetting it to allow modules to reference themselves
1547 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1549 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
1550 counter on dependencies since grub_dl_unref already handles this.
1552 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1554 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
1555 on error if not already done.
1557 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1559 Fix few potential memory misusage.
1561 * grub-core/font/font.c (load_font_index): Don't free char_index to
1563 (grub_font_load): Zero-fill font at alloc for safety.
1564 Close file on error.
1565 (free_font): Free bmp_idx.
1567 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1569 * docs/grub.texi (Installation): Fix several outdated claims.
1571 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1573 Handle module_license on windows.
1575 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
1577 (insert_string): Make argument const char * instead of char *.
1578 (write_section_data): Handle long section names.
1579 Handle module_license.
1581 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1583 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
1584 handle class-free menuentries.
1585 (grub_normal_add_menu_entry): Add a check to be sure.
1587 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1589 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
1592 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1594 * configure.ac: Bump version to 1.99.
1596 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1598 Give ATA device a bit more time on first try in order to allow disks
1601 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
1602 if dev->present is 1. Reset dev->present on failure.
1603 (grub_ata_device_initialize): Set dev->present to 1.
1604 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
1605 (grub_ata_device): New member 'present'.
1607 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1609 * util/grub-mkimage.c (generate_image): Update hash.
1611 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1613 Flush caches on DMA memory.
1615 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
1616 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
1617 (grub_dma_free): Likewise.
1618 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
1620 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1622 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
1623 to avoid asm treating ld and sd as macros.
1625 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1627 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
1630 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1632 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
1633 grub_decompress_core since later would fail if grub_decompress_core
1636 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1638 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
1639 R_MIPS_JALR since it's used by newer compiler.
1641 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1643 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
1645 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1647 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
1648 file_path to 0 for surety.
1649 (grub_chainloader_boot): Set exit_data to NULL.
1650 Unset the loader once done.
1651 (grub_cmd_chainloader): Fix confusing error message if file is empty.
1653 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1655 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
1656 unknown key into a dprintf.
1658 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1660 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
1661 on first non-existant partition.
1663 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1665 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
1667 Reported by: Mark Korenberg.
1669 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1671 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
1674 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1676 * util/grub-mkimage.c (main): Explicitely flush and sync the output
1677 before closing to ensure that it will be readable by grub-setup.
1679 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1681 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
1682 (devpath_1): Use MAKE_PIWG_PATH.
1683 (devpath_2): Likewise.
1684 (devpath_3): Likewise.
1685 (devpath_4): Likewise.
1686 (devpath_5): Likewise.
1687 (devpath_6): Likewise.
1689 The appleldr.mod was checked that to be binary identical to previous
1692 2011-05-05 Zach <mikezackles>
1694 Support 2010 Macbooks.
1696 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
1697 (devs): Add devpath_6.
1699 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1701 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
1702 /dev/random. /dev/urandom is good enough for our purposes (salting).
1704 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1706 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
1708 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1710 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
1713 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1715 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
1716 and not 0 on failure.
1718 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
1720 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
1721 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
1722 disk; otherwise grub_fs_probe will not fall back to the next
1724 (grub_pxefs_open): Likewise, for consistency.
1725 Reported and tested by: Ezekiel Grave.
1727 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
1729 * tests/partmap_test.in: Don't hardcode path to parted.
1730 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
1732 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
1734 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
1735 of `ls' to find out which devices are available.
1737 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1739 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
1740 than source address for efi mmap buffer.
1742 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1744 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
1745 wrong action on non-detecting the magic.
1747 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1749 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
1750 already supplied by another part of the module (fixes compilation on
1753 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1755 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
1756 match the one used by mdadm.
1758 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1760 * po/README: Add instructions for creating po/LINGUAS.
1762 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1764 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
1767 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
1768 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
1769 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
1770 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1771 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
1772 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
1773 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
1774 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
1775 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
1776 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1777 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
1778 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
1779 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
1780 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
1781 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
1782 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
1783 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
1784 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
1785 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
1786 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
1787 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
1788 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
1790 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1792 * grub-core/kern/emu/getroot.c
1793 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
1794 test that was incorrectly reintroduced in r3214.
1795 Reported by: Ian Dall. Fixes Savannah bug #33133.
1797 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1799 Fix stack pointer handling in 16-bit relocator.
1801 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
1802 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
1803 Fixes Ubuntu bug #683904.
1805 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1807 * configure.ac: Bump version to 1.99~rc2.
1809 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1811 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
1812 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
1813 * grub-core/lib/x86_64/setjmp.S: Likewise.
1814 * grub-core/lib/mips/setjmp.S: Likewise.
1815 * grub-core/lib/powerpc/setjmp.S: Likewise.
1816 * grub-core/lib/sparc64/setjmp.S: Likewise.
1818 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1820 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
1821 * grub-core/lib/efi/datetime.c: Likewise.
1823 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1825 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
1827 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
1828 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
1829 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
1831 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1833 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
1835 (grub_gfxterm_term_init): Likewise.
1837 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1839 Take into account the decorations the computing menu entry width.
1841 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
1842 (grub_gfxmenu_create_box): Register get_border_width.
1843 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
1845 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
1848 2011-04-18 Endres Puschner <code@e7p.de>
1850 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
1851 Don't skip first class.
1853 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1855 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
1857 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
1859 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1861 Complete 64-bit division support.
1863 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
1864 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
1865 * include/grub/misc.h (grub_divmod64): Rename to ...
1866 (grub_divmod64_full): ... this.
1867 (grub_divmod64): New inline function.
1869 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1871 * util/grub-mkimage.c (generate_image): Add forgotten comma.
1873 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1875 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
1876 performing the necessary test.
1878 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1880 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
1881 (kfreebsd.elf): Likewise.
1882 (pc-chainloader.elf): Likewise.
1883 (ntldr.elf): Likewise.
1885 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1887 Identify RAID by its UUID rather than (guessed) name.
1889 * grub-core/disk/raid.c (ascii2hex): New function.
1890 (grub_raid_open): Accept mduuid/%s specification.
1891 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
1892 (get_mdadm_uuid): ... this.
1893 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
1895 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
1897 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
1900 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
1902 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
1904 * util/grub.d/20_linux_xen.in: Likewise.
1906 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
1908 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
1909 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
1911 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
1912 Build a list of relevant visible mounts using the mnt_id and
1913 parent_mnt_id fields, and then scan that list at the end.
1915 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
1917 * docs/grub.texi (normal): New section.
1918 (normal_exit): New section.
1919 (Embedded configuration): Add reference to normal.
1920 (GRUB only offers a rescue shell): Likewise.
1921 * docs/grub-dev.texi (Error Handling): Fix typo.
1923 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
1925 * NEWS: Drop obsolete entry about probe-only btrfs support.
1927 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
1929 * util/import_gcry.py: Fix typo.
1931 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1933 * NEWS: Add btrfs support.
1935 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1936 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
1938 BtrFS support. Written by me (Vladimir) with important bugfixes and
1939 even more important testing by Colin.
1941 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
1942 * grub-core/Makefile.core.def (btrfs): Add crc.c.
1943 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
1944 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
1945 mem_input_off and mem_input. All users updated to accept in-RAM input.
1946 (gzio_seek): New function.
1947 (test_zlib_header): Likewise.
1948 (grub_gzio_read): Likewise.
1949 (grub_zlib_decompress): Likewise.
1950 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
1951 Accept partial and non-virtual mounts.
1952 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
1953 avoid receiving /dev/dm-X as device.
1954 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
1955 Handle bind and partial mounts.
1956 * grub-core/lib/crc.c: New file.
1957 * include/grub/deflate.h: Likewise.
1958 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
1960 * include/grub/lib/crc.h: New file.
1962 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1964 Implement automatic module license checking according to new GNU
1967 * grub-core/kern/dl.c (grub_dl_check_license): New function.
1968 (grub_dl_load_core): Use grub_dl_check_license.
1969 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
1970 (GRUB_MOD_LICENSE): Likewise.
1971 (GRUB_MOD_DUAL_LICENSE): Likewise.
1972 All modules updated.
1974 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
1976 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
1977 reserved_first_sector to 1. btrfs reserves plenty of space for boot
1979 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
1981 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1983 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
1985 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1987 * util/grub-fstest.c (read_file): Report GRUB error if file opening
1990 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1992 * grub-core/kern/file.c (grub_file_open): Don't take into account the
1993 parenthesis in the middle of the filename.
1995 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1997 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
1998 rather than trying to put initrd way too high.
1999 Reported by: Ryan Lortie <desrt@desrt.ca>
2001 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2003 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
2004 improperly removed string.
2006 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2008 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
2010 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
2011 (open_device) Likewise.
2012 (grub_util_biosdisk_close): Likewise.
2013 Reported by: Mark Korenberg.
2015 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
2017 * util/grub-mkconfig_lib.in: Add missing quotes.
2019 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
2021 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
2024 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2026 Dynamically count the number of lines for the lower banner.
2028 * grub-core/normal/menu_entry.c (per_term_screen): New member
2030 (print_down): Use num_entries.
2031 (update_screen): Likewise.
2032 (grub_menu_entry_run): Set num_entries.
2033 * grub-core/normal/menu_text.c (menu_viewer_data): New member
2035 (grub_print_message_indented): Move real part to ...
2036 (grub_print_message_indented_real): ... here. Additional argument
2038 (draw_border): Additional argument num_entries.
2039 (print_message): Additional argument dry_run.
2040 (print_entries): Receive menu viewer data.
2041 (grub_menu_init_page): New argment num_entries.
2042 (menu_text_set_chosen_entry): Use num_entries.
2043 (grub_menu_try_text): Likewise.
2044 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
2046 (grub_ucs4_count_lines): New function.
2047 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
2048 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
2049 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
2050 (grub_term_border_height): Likewise.
2051 (grub_term_num_entries): Likewise.
2053 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2055 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
2056 Remove now unused string.
2058 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
2060 * docs/grub-dev.texi (Finding your way around): Update for 1.99
2062 (Getting started): GRUB is developed in Bazaar now, not Subversion.
2064 (Comment): Fix typo.
2065 (Getting started): General copy-editing.
2066 (Typical Development Experience): Likewise.
2067 (Error Handling): Likewise.
2068 (Video API): Likewise.
2070 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
2072 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
2075 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2077 * util/grub-mkimage.c (main): Handle special naming of yeeloong
2080 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
2082 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
2083 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
2086 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2088 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
2089 grub_strcpy since the lines aren't necessarily 0-terminated.
2091 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2093 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
2096 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2098 * grub-core/commands/probe.c (options): Argument to set isn't optional.
2099 (GRUB_MOD_INIT): DEVICE isn't optional.
2101 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2103 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
2104 word on new line if it's too long anyway. Fixes a hang.
2106 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2108 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
2110 * util/grub-setup.c (main): Reuse md device name if available.
2111 * util/raid.c (grub_util_raid_getmembers): Receive device name and
2112 not GRUB name as argument.
2113 Based on patch by: Florian Wagner <fwagner>.
2115 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2117 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
2118 Place mbi on low memory for better compatibility.
2120 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2122 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
2124 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2125 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
2127 * autogen.sh: Ensure that collate and ctype locale is C.
2128 * conf/Makefile.common: Likewise.
2130 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2132 * grub-core/normal/menu.c: Add missing include.
2134 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2136 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
2138 2011-04-08 Martin Zuther <mzuther@mzuther.de>
2140 * util/grub-mkconfig.in: Ignore emacsen backup.
2142 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2144 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
2146 (grub_util_biosdisk_close): Likewise.
2148 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2150 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
2151 const attribute and use grub_isdigit.
2153 2011-04-06 Andrey <dev_null@ukr.net>
2155 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
2158 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2160 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
2161 useful grub_dprintf's.
2163 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2165 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
2167 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2169 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
2171 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2173 Output errors if theme loading failed.
2175 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
2176 grub_gfxterm_fullscreen on error paths to ...
2177 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
2178 theme loading error.
2180 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2182 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
2183 space for older compilers.
2184 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
2186 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2188 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
2189 and report them as not RAID members since they are useless for GRUB.
2190 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
2192 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2194 Increase LVM implementation robustness in order not to crash on
2195 configurations like pvmove. Previously code assumed that in some places
2196 only lvs or only pvs are used whereas it seems that they are used
2199 * grub-core/disk/lvm.c (read_node): New function.
2200 (read_lv): Use read_node.
2201 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
2202 Match volumes only at the end when all lvs are found. Take both
2203 pvs (first) and lvs (second) into account.
2204 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
2205 mirror_* into node_*. All users updated.
2206 (grub_lvm_stripe): Merge this ...
2207 (grub_lvm_mirror): ... and this ...
2208 (grub_lvm_node): ... into this. All users updated.
2210 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2212 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
2213 of function to allow further scanning for LVMs.
2215 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2217 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
2218 on failed seek as it breaks open fd reusage.
2220 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2222 * util/grub-install.in: Add a recommendation to use --recheck before
2225 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2227 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
2230 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2232 GRUB developper manual based on existing Internals section and
2233 contributions by the various authors with active copyright assignment.
2235 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
2236 * docs/font_char_metrics.png: New file.
2237 * docs/font_char_metrics.txt: Likewise.
2238 * docs/grub-dev.texi: Likewise.
2239 * docs/grub.texi (Internals): Move from here ...
2240 * docs/grub-dev.texi: ... here.
2242 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
2244 Store the loopback device as data on loopback grub_disk structures,
2245 rather than the file it points to. This fixes use of freed memory
2246 if an existing loopback device is replaced.
2248 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
2249 disk->data, not dev->file.
2250 (grub_loopback_read): Adjust file assignment to match.
2251 Fixes Ubuntu bug #742967.
2253 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
2255 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
2256 when replacing an existing device.
2258 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2260 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
2263 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
2265 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
2266 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
2267 (grub_jfs_read_inode): Likewise.
2268 (grub_jfs_opendir): Likewise. Remove now useless casts.
2269 (grub_jfs_getent): Likewise.
2270 Make ino a grub_uint32_t rather than int.
2271 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
2272 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
2273 division and module with bit operations.
2274 (grub_jfs_find_file): Make ino a grub_uint32_t.
2275 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
2277 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
2279 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
2280 warning. (This was in fact always initialised before use, but GCC
2281 wasn't smart enough to prove that.)
2282 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
2284 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2286 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
2288 (efi_wrap_1): Likewise.
2289 (efi_wrap_2): Likewise.
2290 (efi_wrap_3): Likewise.
2291 (efi_wrap_4): Likewise.
2292 (efi_wrap_5): Likewise.
2293 (efi_wrap_6): Likewise.
2294 (efi_wrap_10): Likewise.
2295 Based on information by: Red Hat/Peter Jones.
2297 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
2299 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
2300 set-but-not-used variable.
2302 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
2304 * docs/grub.texi (Simple configuration): Be more explicit about
2305 GRUB_DEFAULT, and add an example.
2306 Reported by: Leslie Rhorer.
2308 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
2310 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
2313 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
2315 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
2316 * util/grub.d/20_linux_xen.in: Likewise.
2318 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2320 * util/grub.d/10_linux.in: Try alternative config filenames where
2321 we parse config file.
2322 * util/grub.d/20_linux_xen.in: Likewise.
2324 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
2326 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
2327 * util/grub.d/20_linux_xen.in: Likewise.
2329 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2331 * grub-core/disk/raid.c (insert_array): Add few potentially
2332 useful grub_util_info.
2333 (grub_raid_register): Likewise.
2335 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2337 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
2338 Preserve partition number in mdadm code path.
2340 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2342 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
2343 few potentially useful grub_util_info.
2345 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2347 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
2349 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
2351 * docs/grub.texi (default): Use @example rather than nested
2352 itemized lists to avoid breaking gendocs.
2354 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
2356 * docs/grub.texi (Future): Update.
2358 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
2360 * docs/grub.texi (Environment): New chapter.
2361 (Changes from GRUB Legacy): Link to "Environment block" section for
2362 details of limitations.
2363 (Simple configuration): Likewise. Link to documentation of gfxmode
2364 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
2366 (Shell-like scripting): Note that normal variables are stored in the
2368 (gettext): Link to documentation of lang and locale_dir.
2369 (list_env): New section.
2370 (load_env): New section.
2371 (save_env): New section.
2373 (Reporting bugs): Fix typo.
2375 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2377 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
2380 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2382 * grub-core/term/at_keyboard.c (set_scancodes)
2383 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
2385 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
2387 * docs/grub.texi (Menu-specific commands): Remove some semantics
2388 that were true in GRUB Legacy but not in GRUB 2.
2389 (submenu): New section.
2390 (false): New section.
2391 (read): New section.
2392 (true): New section.
2394 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
2396 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
2398 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
2400 * docs/grub.texi (Simple configuration): Explain some of the
2401 current limitations of grub-mkconfig.
2402 Reported by: Leslie Rhorer.
2404 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
2406 Old macs search for boot.efi rather than for bootia32.efi.
2408 * util/grub-install.in: Copy bootia32.efi to boot.efi.
2409 * util/grub-mkrescue.in: Likewise.
2410 Suggested by: Peter Jones.
2412 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
2414 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
2416 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
2418 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
2419 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
2420 (grub_lvm_mirror): New struct.
2421 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
2422 (grub_lvm_iterate): Iterate only visible volumes.
2423 (grub_lvm_read): Factor out to ..
2424 (read_lv): ... this. Support mirrors.
2425 (grub_lvm_read): New wrapper function.
2426 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
2427 stripped or mirrored.
2429 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
2431 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
2433 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
2435 * docs/grub.texi (loopback): New section.
2437 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
2439 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
2442 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
2444 * docs/grub.texi (BIOS installation): New section, partly based on
2445 previous text in other sections.
2446 (Installing GRUB using grub-install): Replace BIOS discussion with a
2450 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
2452 * grub-core/kern/emu/hostdisk.c (find_partition_start)
2453 [HAVE_DIOCGDINFO]: Add safety checks.
2455 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
2457 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
2458 per default compiled in kernel and prior to 8.0 isn't shipped at all.
2460 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
2462 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
2463 real_sb->size is zero (e.g. RAID-0), get the disk size from
2464 real_sb->data_size instead.
2465 Fixes Ubuntu bug #743136.
2467 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
2469 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
2470 printf clauses for printing size and start.
2472 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
2474 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
2475 Reported and tested by: Timothy Nikkel.
2477 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
2479 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
2480 (dirty_region_add_real): ... this.
2481 (dirty_region_add): Don't discard margin refresh when performing
2484 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
2486 * grub-core/lib/relocator.c (allocate_regstart)
2487 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
2488 terminals are capabple of malloc-free operation.
2489 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
2490 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
2492 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
2494 * util/grub-setup.c: Copy the partition table zone if floppy support
2495 is disabled, even if no partition table is found.
2497 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
2498 during POST if an invalid partition table is contained in the PBR
2499 of the active partition when GRUB is installed to a partition.
2501 2011-03-28 Colin Watson <cjwatson@debian.org>
2503 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
2506 2011-03-28 Colin Watson <cjwatson@debian.org>
2508 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
2509 to be specific about what kind of RAID device we're scanning for.
2511 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
2513 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
2514 return freed string.
2516 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2518 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
2520 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2522 Use libgeom on FreeBSD to detect partitions.
2524 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
2525 (grub-mkrelpath): Likewise.
2526 (grub-script-check): Likewise.
2527 (grub-editenv): Likewise.
2528 (grub-mkpasswd-pbkdf2): Likewise.
2529 (grub-fstest): Likewise.
2530 (grub-mkfont): Likewise.
2531 (grub-mkdevicemap): Likewise.
2532 (grub-probe): Likewise.
2533 (grub-setup): Likewise.
2534 (grub-ofpathname): Likewise.
2535 (grub-mklayout): Likewise.
2536 (example_unit_test): Likewise.
2537 (grub-menulst2cfg): Likewise.
2538 * grub-core/Makefile.core.def (grub-emu): Likewise.
2539 (grub-emu-lite): Likewise.
2540 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
2541 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
2542 define HAVE_DIOCGDINFO.
2543 (follow_geom_up) [FreeBSD]: New function.
2544 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
2545 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
2546 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
2547 unconditionally of HAVE_DIOCGDINFO.
2549 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2551 Fix FreeBSD compilation problem.
2553 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
2554 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
2556 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
2558 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
2559 Switch back to page zero before loading a kernel, since some kernel
2560 drivers expect that.
2561 Thanks to: Felix Kuehling.
2563 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2565 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
2566 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
2567 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
2569 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2571 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
2572 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
2574 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2576 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
2577 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
2580 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2582 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
2583 for modules headers when counting the needed allocation size.
2585 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2587 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
2588 if no ASCII character is found to prevent crash.
2590 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
2592 * grub-core/video/bitmap.c (match_extension): Ignore case.
2594 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2596 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
2598 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2600 * grub-core/script/parser.y: Declare "time" as valid argument.
2602 2011-03-23 Peter Jones <pjones@redhat.com>
2604 Fix incorrect assert failure reporting.
2606 * grub-core/tests/example_functional_test.c (example_test): Add
2608 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
2609 (failure_start): ...this. Check that malloc succeeded.
2610 Don't call xvasprintf. Return failure struct.
2611 (failure_append_vtext): New function.
2612 (failure_append_text): Likewise.
2613 (add_failure): Likewise.
2614 (grub_test_assert_helper): Likewise.
2615 * include/grub/test.h (grub_test_assert_helper): New declaration.
2616 (grub_test_assert): Macro rewritten.
2618 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2620 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
2622 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2624 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
2626 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2628 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
2629 into GRUB-style one.
2631 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2633 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
2634 error and not grub_errno.
2635 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
2637 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2639 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
2640 GRUB_USB_SPEED_NONE in case of failure and not the error code.
2642 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2644 * grub-core/efiemu/i386/pc/cfgtables.c
2645 (grub_machine_efiemu_init_tables): Make declaration a prototype.
2646 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
2647 (grub_xnu_unlock): Likewise.
2648 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
2650 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2652 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
2653 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
2654 * grub-core/commands/hashsum.c (aliases): Likewise.
2655 * grub-core/commands/setpci.c (pci_registers): Likewise.
2656 * grub-core/disk/usbms.c (attach_hook): Likewise.
2657 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
2658 (zio_checksum_table): Likewise.
2659 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
2660 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
2661 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
2662 * grub-core/lib/relocator.c (leftovers): Likewise.
2663 (extra_blocks): Likewise.
2664 * grub-core/loader/i386/bsd.c (relocator): Likewise.
2665 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
2666 (modules_last): Likewise.
2667 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
2668 (devices): Likewise.
2669 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
2670 (modules_last): Likewise.
2671 * grub-core/normal/auth.c (users): Likewise.
2672 * grub-core/normal/context.c (initial_menu): Likewise.
2673 (current_menu): Likewise.
2674 * grub-core/normal/crypto.c (crypto_specs): Likewise.
2675 * grub-core/term/serial.c (grub_serial_ports): Likewise.
2676 (grub_serial_terminfo_input_template): Likewise.
2677 (grub_serial_terminfo_output_template): Likewise.
2678 (grub_serial_terminfo_input): Likewise.
2679 (grub_serial_terminfo_output): Likewise.
2680 (registered): Likewise.
2681 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
2683 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2685 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
2686 grub_video_mode_type_t.
2687 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
2688 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
2689 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
2691 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2693 * util/grub-install.in: Correct the x86-64 name as x86_64.
2695 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
2697 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
2698 initial chunk read from the kernel always includes GRUB's multiboot
2699 header, which is now outside the first sector.
2701 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
2703 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
2704 cached mmap_size, so that this works correctly when called multiple
2706 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
2708 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
2710 * docs/grub.texi (Simple configuration): Tidy up formatting.
2712 2011-03-07 Szymon Janc <szymon@janc.net.pl>
2714 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
2715 Set-but-not-used variable removed.
2717 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
2719 Workaround yet another IEEE1275 bug.
2721 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2722 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
2723 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
2724 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
2726 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2727 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
2729 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
2731 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
2734 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
2736 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
2737 empty, since in that case we can only generate either nothing or a
2738 syntactically invalid configuration file.
2739 Reported by: Michal Suchanek. Fixes Debian bug #612898.
2741 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
2743 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
2744 (Making a GRUB bootable CD-ROM): Likewise.
2745 (Invoking grub-mkrescue): New section.
2746 Reported by: Yann Dirson. Fixes Debian bug #612585.
2748 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
2750 * util/grub-install.in: Remove unnecessary brackets from tr
2752 * util/grub.d/10_hurd.in: Likewise.
2753 * util/grub.d/10_kfreebsd.in: Likewise.
2754 * util/grub.d/10_linux.in: Likewise.
2755 * util/grub.d/20_linux_xen.in: Likewise.
2756 Reported by: Jamie Heilman. Fixes Debian bug #612564.
2758 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
2760 * include/grub/file.h (not_easly_seekable): Rename to ...
2761 (not_easily_seekable): ... this. Update all users.
2763 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
2765 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
2768 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2770 * util/grub-mkimage.c (generate_image): Refuse to create the images
2771 bigger than the actual flash (512K) in Loongson machines. 512K is also
2772 the biggest chip supported by them.
2774 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2776 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
2778 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
2780 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
2783 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2785 * util/grub-install.in: Ignore install device on platforms
2786 where it doesn't make sense. Always use UUIDs except on pc, efi and
2788 Reported by: Daniel Kahn Gillmor.
2790 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2792 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
2794 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2796 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
2797 (iterate_real): Don't rely on partition being non-NULL.
2799 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2801 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
2802 supported platforms. Put a compile time assert for this rather than
2803 generate a warning with 32-bit shift.
2805 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2807 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
2808 logical expression more readable.
2810 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2812 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
2813 even if some elements have a name.
2814 Reported by: Alexander GQ Gerasiov.
2816 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
2818 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
2819 path unreadable if `grub-probe -t abstraction' fails, for example if
2820 memberlist fails on an LVM volume group.
2821 Reported by: Darius Jahandarie.
2823 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
2825 * docs/grub.texi (Simple configuration): Document
2826 GRUB_PRELOAD_MODULES.
2828 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
2830 * .bzrignore: Remove nonexistent grub-pbkdf2.
2832 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2834 * configure.ac: Bump version to 1.99~rc1.
2836 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
2838 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
2841 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2843 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
2846 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2848 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
2850 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2852 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
2855 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2857 Fix compilation on cygwin.
2859 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
2860 -R .drectve on cygwin.
2861 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
2862 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
2863 (COND_CYGWIN): New condition.
2864 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
2865 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
2866 not @TARGET_OBJ2ELF@.
2867 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
2868 type to determine whether aux is to be used.
2870 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2872 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
2873 realpath'ed device string.
2874 Handle floppy (somewhat).
2875 Issue error in unknown case rather than garbage.
2876 Reported by: Axel Beckert.
2878 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2880 * util/grub.d/00_header.in (load_video): Handle the case when no video
2882 Thanks to: Axel Beckert.
2884 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2886 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
2887 variable. Fixes problem on big endian platforms.
2889 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2891 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
2892 It doesn't work well there.
2894 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2896 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
2898 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
2899 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
2902 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2904 Use alias->path rather than buggy "canon".
2906 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
2907 (ofdisk_hash_add): New argument curcan. All users updated.
2909 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
2911 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
2913 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2915 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
2916 loadmask before doing any calculations. Use correct type for offset.
2917 (grub_linux_load64): Likewise.
2919 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
2921 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
2923 (console_grub_equivalences_unshift): Likewise.
2924 Reported by: Daniel Dehennin.
2926 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2928 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
2929 (set_env_limn_ro): Likewise.
2930 (GRUB_MOD_INIT): Likewise.
2931 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
2932 ARRAY_SIZE while on it.
2933 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
2934 * grub-core/normal/context.c (grub_env_export): Move from here ...
2935 * grub-core/kern/env.c (grub_env_export): ... here.
2936 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
2938 * grub-core/kern/main.c (grub_main): Export root and prefix.
2939 * include/grub/env.h (grub_env_export): Export.
2940 Reported by: Seth Goldberg.
2942 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2944 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
2945 Take into account space used by ELF sections and multiboot palette.
2946 Reported by: Grégoire Sutre.
2948 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2952 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2954 Pass more appropriate video id to Linux.
2956 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
2957 grub_video_get_driver_id and variable gfxpayloadforcelfb to
2959 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
2960 shift params->lfb_size.
2961 * include/grub/i386/linux.h: Make an enume out of have_vga values.
2963 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2965 * util/grub-menulst2cfg.c: Add missing include of misc.h.
2967 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2969 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
2970 separator and pass bootpath/devid even if only one of them is available.
2971 Reported by: Seth Goldberg.
2973 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2975 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
2976 implementations bug on them.
2978 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
2980 (filter_memory_map): Likewise.
2982 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2984 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
2985 Reported by: nebuchadnezzar.
2987 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2989 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
2990 Reported by: nebuchadnezzar.
2992 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2994 Submenu default support.
2996 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
2997 auto_boot. All users updated.
2999 Handle chosen and default with submenus.
3000 (grub_menu_execute_with_fallback): Declared static.
3001 Don't notify failure if autobooted. Upper level does it.
3002 (menuentry_eq): New function.
3003 (get_entry_number): Use menuentry_eq.
3004 (show_menu): New parameter "autobooted". All users updated.
3005 (grub_show_menu): Likewise.
3006 * include/grub/normal.h (grub_show_menu): Likewise.
3007 * include/grub/menu.h (grub_menu_execute_entry): Removed.
3008 (grub_menu_execute_with_fallback): Likewise.
3010 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3012 * util/grub-mklayout.c (usage): Update help text.
3014 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3016 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
3018 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3020 * util/grub-menulst2cfg.c (main): Trim the line.
3022 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3024 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
3025 (grub_machine_init): Don't check amount of low memory as reportedly
3026 INT 12h can be broken and if low memory is too low we wouldn't have
3027 gotten into grub_machine_init anyway.
3029 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3031 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
3032 (grub_machine_mmap_iterate): Take low memory into account
3034 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3036 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
3040 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3042 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
3045 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
3047 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
3048 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
3050 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
3052 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
3053 openbsd and netbsd types being in part_bsd module.
3055 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3057 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
3058 (_FILE_OFFSET_BITS): Likewise.
3059 Reported by: Seth Goldberg.
3061 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
3063 * configure.ac: Check for libdevmapper header.
3065 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3067 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
3069 (fzap_lookup): Likewise.
3070 (dnode_get): Likewise.
3071 (make_mdn): Likewise.
3072 (zfs_mount): Likewise.
3073 (fzap_iterate): Use temporary pointer to avoid aliasing.
3074 (grub_zfs_read): Likewise.
3075 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
3076 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
3077 pointers to avoid aliasing.
3078 (grub_cmd_xnu_kernel64): Likewise.
3079 (grub_xnu_load_driver): Likewise.
3081 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3083 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
3085 (grub_cmd_terminal_output): Likewise.
3086 Reported and tested by: Grégoire Sutre.
3088 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3090 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
3092 Reported and tested by: Grégoire Sutre.
3094 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3096 * configure.ac: Do CPU substitution even if it's specified explicitly.
3097 Reported and tested by: Alain Greppin.
3099 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3101 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
3102 Reported and tested by: Alain Greppin.
3104 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3106 Satisfy some bison versions need for inttypes.h.
3108 * grub-core/lib/posix_wrap/inttypes.h: New file.
3109 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
3110 (int16_t): Likewise.
3111 (int32_t): Likewise.
3112 (int64_t): Likewise.
3113 Reported and tested by: Alain Greppin.
3115 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3117 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
3118 Silence spurious warning.
3119 Reported and tested by: Alain Greppin.
3121 2011-01-07 Szymon Janc <szymon@janc.net.pl>
3123 * docs/grub.texi (Support automatic decompression): Update with xz
3124 decompression support.
3126 2011-01-07 Szymon Janc <szymon@janc.net.pl>
3128 Improve loaders' kernel command line handling.
3130 * grub-core/lib/cmdline.c: New file.
3131 * include/grub/lib/cmdline.h: Likewise.
3132 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
3133 grub_create_loader_cmdline to create kernel command line.
3134 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
3135 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
3136 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
3137 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
3138 (linux): Add lib/cmdline.c on common.
3140 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
3142 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
3143 inopos might be unaligned.
3145 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
3147 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
3148 endian transformations.
3149 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3150 Based on report by: Doug Nazar.
3152 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
3154 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
3155 array->members[i].start_sector.
3156 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
3158 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
3160 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
3161 Reported and tested by: Grégoire Sutre.
3163 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
3165 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
3166 avoid causing test failures by clearing the screen.
3168 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
3170 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
3171 Fix prefix check to handle the case where dir ends with a slash
3172 (most significantly, "/" itself).
3173 Reported by: Michael Vogt.
3175 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3177 Run terminfo_cls on initing terminfo output to clear the screen and
3178 move the cursor to (0,0).
3180 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
3181 Call grub_terminfo_output_init.
3182 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
3183 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
3184 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
3186 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3188 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
3191 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3193 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
3196 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3198 The E820 type 5 is BADRAM, not EXEC_CODE.
3200 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
3201 (GRUB_E820_BADRAM): New define.
3202 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
3203 into reserved. Propagate BADRAM.
3204 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
3205 (GRUB_E820_BADRAM): New define.
3207 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
3209 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
3210 Ignore the memory post-4G.
3211 (grub_relocator_firmware_alloc_region): Additional debug statement.
3213 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
3215 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
3217 Reported by: David Pravec.
3219 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
3221 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
3224 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
3226 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
3228 (grub_reed_solomon_recover): Likewise.
3230 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
3232 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
3234 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
3236 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
3239 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
3241 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
3242 descriptions of extract_legacy_entries_source and
3243 extract_legacy_entries_configfile.
3244 Reported by: Seung Soo, Ha.
3246 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
3248 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
3249 on devices that do not implement function 0.
3251 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
3253 * grub-core/fs/hfsplus.c: Make parent unsigned.
3254 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
3256 (grub_hfsplus_cmp_extkey): Likewise
3258 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
3260 * util/grub-install.in: Correctly use bootloader_id and not
3261 GRUB_DISTRIBUTOR on efibootmgr line.
3263 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
3265 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
3267 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
3269 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
3270 Xen and reorder menu item wording to make it clearer that this entry
3271 will launch Xen. Print separate messages when loading Xen and
3274 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
3276 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
3277 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
3278 loop in case of incorrect amiga partmap.
3280 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
3282 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
3283 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
3286 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
3288 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
3290 Reported by: crocket
3292 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
3294 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
3296 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
3298 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
3300 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
3302 (grub_cmd_xnu_kextdir): Likewise.
3303 (grub_cmd_xnu_splash): Likewise.
3305 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
3307 Avoid using Reed-Solomon with 0 redundancy.
3309 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
3310 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
3312 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
3313 (grub_reed_solomon_recover): Likewise.
3315 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
3317 Don't use disk subsystem in freebsd_boot.
3319 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
3320 (freebsd_biosdev): Likewise.
3321 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
3322 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
3324 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
3326 Handling of files of unknown size is currently limited. They can't be
3327 used e.g. for initrd or modules. Moreover gzip handling of not
3328 easily seekable files is buggy. Disable unknown file size for now. May
3329 be inefficient but works.
3331 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
3332 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
3334 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
3336 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
3339 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
3341 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
3343 2010-12-25 Shea Levy <shlevy>
3345 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
3347 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3349 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
3350 Windows Server 2008.
3351 Reported by: Devin Giddings.
3353 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3355 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
3356 writing an error message because of async power management.
3357 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
3358 (grub_reboot): Likewise.
3360 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
3362 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
3363 keep unit tests from failing when they shouldn't.
3365 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
3367 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
3368 previous patch increased the size of the RS code by 20 bytes (at
3369 least with gcc-4.4), so increase this by 20 bytes to match.
3370 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
3372 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
3374 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
3375 scratch area. Make sure to initialise chosen in standalone mode as
3376 well as non-standalone.
3377 Reported by: Robert Hooker and Andy Whitcroft.
3378 Tested by: Andy Whitcroft.
3380 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
3382 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
3383 constructing a new unescaped string and passing it to grub_xputs in
3384 one go, rather than passing characters to grub_printf one at a time.
3386 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
3388 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
3391 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
3393 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
3394 comment. Add an extra layer of quotation, requiring the output of
3395 this function to be used in a printf format string.
3396 (gettext_printf): New function.
3397 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
3398 Extract translatable strings from here-documents and use a temporary
3399 variable instead, so that xgettext can find them.
3400 * util/grub.d/10_kfreebsd.in: Likewise.
3401 * util/grub.d/10_linux.in: Likewise.
3402 * util/grub.d/20_linux_xen.in: Likewise.
3404 * po/grub.d.sed: New file.
3405 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
3406 arguments. Set c-format flags on all strings extracted from
3407 util/grub.d/ (xgettext refuses to include these itself for strings
3408 it extracted from a shell file, but these really are c-format).
3410 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
3412 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
3413 Avoid next pointing to nowhere.
3415 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
3417 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
3418 rather than assuming than rootblock is exactly in the middle.
3419 (grub_affs_label): Likewise.
3421 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
3423 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
3424 reserved_first_sector to 0.
3425 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
3426 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
3427 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
3429 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
3431 Fix handling of UTF-16 UDF labels.
3433 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
3434 (read_string): .. here.
3435 (grub_udf_label): Use read_string.
3437 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
3439 * grub-core/normal/menu_entry.c (run): Execute commands from menu
3440 editor under argument scope.
3441 Reported by: Jordan Uggla
3443 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
3445 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
3447 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
3449 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
3450 line, and other keys scroll an entire page (previous handling was
3451 for \r and \n to scroll a page and other keys to scroll two lines).
3453 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
3455 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
3456 Set ptrdest to correct get_physical_target_address rather than
3457 incorrect get_virtual_current_address.
3459 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
3461 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
3462 correct cat to grub_uint8_t * rather than grub_uint32_t *.
3464 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
3466 * .bzrignore: Ignore grub-core/rs_decoder.S.
3468 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
3470 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
3471 .mo/.mo.gz opening sequence to ...
3472 (grub_mofile_open_lang): ... here.
3473 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
3474 * util/grub.d/00_header.in (grub_lang): Include country part of
3476 Reported by: Mario Limonciello.
3478 2010-12-09 Robert Millan <rmh@gnu.org>
3480 * NEWS: Document addition of ZFS support.
3482 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
3484 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
3485 rather than `/ 2', as the latter requires -Wa,--divide which would
3486 require bumping our minimum binutils version.
3488 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
3490 * util/grub-script-check.c (main): Print script line number on
3493 2010-12-01 Robert Millan <rmh@gnu.org>
3495 * grub-core/fs/zfs/zfs.c: New file.
3496 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
3497 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
3498 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
3499 * grub-core/fs/zfs/zfsinfo.c: Likewise.
3501 * include/grub/zfs/dmu.h: Likewise.
3502 * include/grub/zfs/dmu_objset.h: Likewise.
3503 * include/grub/zfs/dnode.h: Likewise.
3504 * include/grub/zfs/dsl_dataset.h: Likewise.
3505 * include/grub/zfs/dsl_dir.h: Likewise.
3506 * include/grub/zfs/sa_impl.h: Likewise.
3507 * include/grub/zfs/spa.h: Likewise.
3508 * include/grub/zfs/uberblock_impl.h: Likewise.
3509 * include/grub/zfs/vdev_impl.h: Likewise.
3510 * include/grub/zfs/zap_impl.h: Likewise.
3511 * include/grub/zfs/zap_leaf.h: Likewise.
3512 * include/grub/zfs/zfs.h: Likewise.
3513 * include/grub/zfs/zfs_acl.h: Likewise.
3514 * include/grub/zfs/zfs_znode.h: Likewise.
3515 * include/grub/zfs/zil.h: Likewise.
3516 * include/grub/zfs/zio.h: Likewise.
3517 * include/grub/zfs/zio_checksum.h: Likewise.
3519 * Makefile.util.def: Build ZFS into libgrubmods.
3520 * grub-core/Makefile.core.def: Build zfs.mod.
3522 2010-11-30 Szymon Janc <szymon@janc.net.pl>
3524 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
3526 * grub-core/commands/wildcard.c (match_files): Likewise.
3528 2010-11-30 Robert Millan <rmh@gnu.org>
3530 * grub-core/loader/i386/bsd.c
3531 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
3532 whether kernel is loaded using grub_loader_is_loaded(), rather
3533 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
3534 certain error conditions.
3536 2010-11-30 Robert Millan <rmh@gnu.org>
3538 * grub-core/commands/echo.c: Include `<grub/term.h>'.
3539 (grub_cmd_echo): Call grub_refresh() after printing a message.
3541 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
3543 Avoid using tricks for initialising endian variables.
3545 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
3547 (GRUB_MOD_INIT): Don't byte-swap.
3548 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
3549 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
3550 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
3551 (grub_swap_bytes32_compile_time): Likewise.
3552 (grub_cpu_to_le32_compile_time): Likewise.
3553 (grub_cpu_to_le16_compile_time): Likewise.
3555 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
3557 * util/grub-setup.c (setup): Stop recommending --force. People who
3558 understand the dangers of blocklists are able to find this option
3559 anyway and the ones who don't shouldn't use it anyway.
3561 2010-11-26 Robert Millan <rmh@gnu.org>
3563 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
3566 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
3568 Fix LVM-on-RAID probing.
3570 * util/grub-probe.c (probe): Remember which disk was detected as
3571 RAID (perhaps an LVM physical volume). Use that disk's raidname
3572 rather than that of the top-level disk.
3574 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
3576 Fix cmdline argument quotes for setparams command of menuentry
3579 * grub-core/commands/menuentry.c (setparams_prefix): Use single
3580 quotes for arguments.
3581 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
3582 grub_strchrsub function instead.
3584 * include/grub/misc.h (grub_strchrsub): New function.
3586 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
3588 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
3589 effort by skipping "." and ".." entries up-front.
3590 Suggested by: Michael Lazarev.
3592 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
3594 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
3595 ldflags to ldadd, to fix link line ordering.
3596 (none_decompress): Likewise.
3598 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
3600 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
3602 (grub-emu-lite): Remove kern/emu/cache.S.
3604 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
3606 * util/deviceiter.c (compare_devices): If the by-id link for a
3607 device couldn't be resolved, fall back to sorting by the by-id link
3608 rather than segfaulting.
3609 Reported and tested by: Daniel Mierswa.
3611 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
3613 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
3614 ldflags, to fix link line ordering.
3616 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
3618 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
3619 linkers are picky about this.
3621 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
3623 * grub-core/Makefile.am (command.lst): Adjust sed expression
3624 ordering so that extended and priority commands aren't treated as
3627 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
3629 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
3630 Remove byte-swapping function calls, which are not valid in
3631 structure initialisers.
3632 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
3634 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
3635 grub_gpt_partition_type_bios_boot.
3637 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
3639 Fix test program build on GNU/kFreeBSD.
3641 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
3642 $(LIBNVPAIR)' library dependencies.
3644 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
3646 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
3648 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
3650 * util/grub-install.in: Remove excessive quoting that broke
3651 installations to RAID devices.
3653 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
3655 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
3656 bootloader version instead of 0.
3658 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
3660 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
3663 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
3665 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
3666 retrieve the metadat sector if size isn't known.
3667 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3669 2010-11-18 Robert Millan <rmh@gnu.org>
3671 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
3674 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
3676 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
3678 Reported by: Jordan Uggla.
3680 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3682 Make better UTF compliant.
3684 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
3685 sequences as incorrect.
3686 (grub_is_valid_utf8): Likewise.
3687 (grub_utf8_to_ucs4): Likewise.
3688 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
3689 (grub_ucs4_to_utf8_alloc): Likewise.
3690 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
3692 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3694 Make legacy_source behave like source.
3696 * grub-core/commands/legacycfg.c (legacy_file): Don't call
3698 (grub_cmd_legacy_source): Call grub_show_menu if needed.
3700 2010-11-16 Colin Watson <cjwatson@debian.org>
3702 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
3703 (-Wunused implies -Wunused-parameter, but not vice versa).
3705 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
3707 * configure.ac: Make error messages less confusing by testing for
3708 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
3709 accepted, but produces a diagnostic if something else is wrong).
3711 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
3713 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
3714 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
3716 (grub_keyboard_controller_init)
3717 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
3718 read the initial state since controller isn't inited yet.
3720 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
3722 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
3723 allocate_regbeg may need to create new chunk header.
3725 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3727 Fix quoting in legacy parser.
3729 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
3731 (grub_legacy_parse): Likewise.
3732 Reported by: Jordan Uggla.
3733 Tested by: Jordan Uggla.
3735 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3737 Don't add -lgcc on i386 and x86_64.
3739 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
3740 * conf/Makefile.common (LDADD_KERNEL): Likewise.
3741 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
3743 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3745 * configure.ac: Add -Wno-trampolines when supported.
3747 2010-11-14 Modestas Vainius <modax@debian.org>
3749 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
3752 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3754 Add generic logical block size support for UDF.
3756 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
3757 (GRUB_UDF_BLKSZ): Removed.
3758 (struct grub_udf_data): New field "lbshift" to hold the logical block
3759 size of the file system in log2 format. All users updated.
3760 (sblocklist): Change type to unsigned.
3761 (grub_udf_mount): Change type of "sblklist" to unsigned.
3762 Move AVDP search before VRS recognition, because the latter requires
3763 knowledge of the logical block size, which is detected during the
3765 Detect and validate logical block size during AVDP search, adding
3766 support for block sizes 512, 1024 and 4096.
3767 Make VRS recognition independent of block size.
3769 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3771 Properly handle deleted files on UDF.
3773 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
3774 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
3777 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3779 Support reading files larger than 2 GiB.
3781 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
3782 "offset" to grub_off_t.
3783 (grub_udf_read_file): Likewise for parameter "pos".
3785 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3787 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
3789 (Simple configuration): Refer to Changes from GRUB Legacy about
3790 save_env availability.
3792 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3794 * util/grub-install.in: Ignore empty partition table detection
3795 instead of trying to include part_ module.
3797 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3799 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
3800 LVM on RAID support.
3802 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3804 Properly define WORDS_BIGENDIAN in wrapped environments.
3806 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
3808 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
3810 Reported by: Manoel Rebelo Abranches.
3811 Tested by: Manoel Rebelo Abranches.
3813 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3815 * util/grub-mkconfig.in: Fix quoting.
3817 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3819 Support big ext2 files.
3821 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
3822 (grub_ext2_read_block): Support triple indirect blocks.
3823 (grub_ext2_read_file): Use 64-bit types and read size_high.
3824 (grub_ext2_open): Read size_high.
3825 Reported by: Ximin Luo.
3826 Tested by: Manoel Rebelo Abranches.
3828 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3830 * util/grub-install.in: Handle filenames containing spaces.
3831 Reported by: Jordan Uggla.
3832 Tested by: Jordan Uggla.
3834 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3836 * util/grub-mkconfig.in (grub_script_check): New variable.
3837 Use grub_script_check instead of grub-script-check.
3838 Reported by: Barry Jackson.
3840 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3842 * docs/grub.texi (menu): Correct the order.
3843 Reported by: D. Hugh Redelmeier.
3845 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3847 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
3850 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3852 * include/grub/elfload.h (grub_elf32_size): New parameter.
3854 Return maximum segments alignment.
3855 (grub_elf64_size): Likewise.
3856 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
3857 Return maximum segments alignment.
3858 (grub_elf64_size): Likewise.
3859 * grub-core/loader/powerpc/ieee1275/linux.c:
3860 (grub_linux_claimmap_iterate): New function. Uses the
3861 "available" property in the "memory" node for memory allocation
3862 for kernel in the PowerPC loader.
3863 (grub_linux_load32): Correctly find linux entry point offset.
3864 (grub_linux_load64): Likewise.
3866 2010-11-07 Robert Millan <rmh@gnu.org>
3868 On mips-yeeloong, build with -march=loongson2f when this flag is
3869 available (GCC >= 4.4).
3870 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
3872 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
3873 or otherwise add -march=mips3.
3875 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
3877 Suppress shell expansion on echo '*' and echo "*" like cases.
3878 Reported by: Jordan Uggla.
3880 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
3881 string arguments before shell expansion.
3882 * tests/grub_cmd_echo.in: New testcases.
3884 2010-11-07 Robert Millan <rmh@gnu.org>
3886 * conf/mips-qemu-mips.rmk: Remove stale file from previous
3889 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3891 * grub-core/kern/emu/hostdisk.c
3892 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
3894 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3896 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
3897 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
3898 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
3900 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3902 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
3904 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3906 * util/grub-install.in: Replace useless recomendation to pass
3907 --modules with a recomendation to report a bug.
3909 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3911 Properly register serial terminfo.
3912 Reported by: Jordan Uggla
3914 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
3916 (grub_serial_terminfo_output_template): Likewise.
3917 (grub_cmd_serial): Register "serial" with terminfo.
3918 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
3919 grub_serial_terminfo_output.
3921 2010-11-05 Robert Millan <rmh@gnu.org>
3923 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
3926 2010-11-05 Robert Millan <rmh@gnu.org>
3928 On Yeeloong, pass machine type information to Linux.
3930 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
3931 (LOONGSON_MACHTYPE): New macro, set to
3932 "machtype=lemote-yeeloong-2f-8.9inches".
3933 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
3934 additional argument to Linux.
3936 2010-11-04 Robert Millan <rmh@gnu.org>
3938 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
3939 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
3940 (its SATA disks are detected as slaveless IDE master drives on
3942 Reported by Carsten Aulbert.
3944 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
3946 * util/bin2h.c (main): Fix spelling error in generated output.
3948 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
3950 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
3952 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3954 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
3955 vga= option is supplied.
3957 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3959 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
3960 * util/grub.d/10_kfreebsd.in: Likewise.
3961 * util/grub.d/10_linux.in: Likewise.
3962 * util/grub.d/20_linux_xen.in: Likewise.
3964 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3966 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
3967 argument as an argument to no-argument option.
3969 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3971 * util/grub.d/10_linux.in: Add missing load_video with explicit
3972 GRUB_GFXPAYLOAD_LINUX.
3974 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3976 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
3978 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3980 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
3981 elements with invlid index.
3982 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3983 * grub-core/disk/raid.c (insert_array): Automatically reallocate
3985 * include/grub/raid.h (grub_raid_member): New struct.
3986 (grub_raid_array): Transform devices and start_sector into usage of
3987 grub_raid_member. All users updated
3988 (allocated_devs): New member.
3990 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3992 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
3995 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
3997 NetBSD build fix for getline function conflict from gnulib.
3999 * Makefile.util.def (libgrubkern.a): New library for grub kernel
4000 components that depend on gnulib headers.
4001 (libgrubmods.a): Renamed from earlier libgrub.a.
4002 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
4004 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4006 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
4007 install rather than creating a broken install.
4009 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4011 * util/grub-setup.c (argp): Remove misleading example of installing to
4014 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4016 * util/grub-setup.c (setup): Clarify the error message.
4018 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4020 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
4022 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4024 * grub-core/kern/emu/misc.c
4025 (grub_make_system_path_relative_to_its_root)
4026 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
4028 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4030 * grub-core/kern/emu/misc.c
4031 (grub_make_system_path_relative_to_its_root): Revert r2882.
4033 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4035 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
4036 useless field head. All users updated.
4037 (free_subchunk): Correct handling of IN_REGION subchunk.
4039 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
4041 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
4042 (Supported kernels): Likewise.
4044 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
4046 Make mktemp invocations portable.
4048 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
4049 exit if mktemp fails.
4050 * tests/grub_script_blockarg.in: Likewise.
4051 * tests/partmap_test.in: Likewise.
4052 * tests/util/grub-shell-tester.in: Likewise.
4053 * tests/util/grub-shell.in: Likewise.
4054 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4055 * Makefile.am: Likewise, and chain shell commands with `&&'
4057 * util/grub-mkrescue.in: Use the same explicit template as above, and
4058 exit if mktemp fails.
4060 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
4062 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
4063 Linux kernel, reported by Dennis Schridde.
4065 2010-10-17 Szymon Janc <szymon@janc.net.pl>
4067 * grub-core/normal/auth.c (grub_auth_check_authentication):
4068 Set-but-not-used variable removed.
4070 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4072 * docs/grub.texi (GNU/Linux): Document APM unavailability with
4073 32-bit linux protocol.
4075 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4077 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
4078 cursor shape for sanity.
4080 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4082 * docs/grub.texi (Installation): Document buggy BIOS install.
4084 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4086 * docs/grub.texi (Installation): Indent.
4088 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4090 * util/grub-setup.c (setup): New parameter allow_floppy.
4091 (arguments): New member allow_floppy.
4092 (argp_parser): Handle --allow-floppy.
4093 (main): Pass allow_floppy.
4094 * util/grub-install.in: New option --allow-floppy passed though to
4097 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4099 * util/grub-install.in: Handle partitionless disks.
4101 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4103 * util/grub-setup.c (setup): Don't clean blocklists before readability
4106 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4108 * docs/grub.texi (Installation): Document embedding zone. Remove
4109 obsolete grub-install example.
4111 2010-10-16 Szymon Janc <szymon@janc.net.pl>
4113 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
4114 Set-but-not-used variable ifdef'ed.
4115 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
4116 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
4118 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
4119 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
4120 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
4121 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
4122 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
4123 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
4124 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
4125 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
4126 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
4127 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
4128 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
4131 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4133 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
4134 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
4137 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4139 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
4140 synonym to _S5_. Needed for some DSDTs.
4142 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4144 Userspace ACPI parser debugging.
4146 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
4147 headers and add relevant defines. Don't include standard headers.
4148 (main) [GRUB_DSDT_TEST]: New function.
4149 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
4150 Don't declare functions.
4152 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4154 Remove dead grub_efi_mm_fini.
4156 * grub-core/kern/efi/mm.c (allocated_page): Removed.
4157 (ALLOCATED_PAGES_SIZE): Likewise.
4158 (MAX_ALLOCATED_PAGES): Likewise.
4159 (allocated_pages): Likewise.
4160 (grub_efi_allocate_pages): Don't record allocated pages.
4161 (grub_efi_free_pages): Likewise.
4162 (grub_efi_mm_init): Likewise.
4163 (grub_efi_mm_fini): Removed.
4165 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4167 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
4168 (grub_efi_mm_init): Take into account the memory map size increase.
4170 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4172 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
4173 (serial_hw_put): Wait based on real time rather than port reads. Don't
4175 * include/grub/serial.h (grub_serial_port): New field broken.
4177 2010-10-16 Robert Millan <rmh@gnu.org>
4179 * grub-core/kern/emu/misc.c
4180 (grub_make_system_path_relative_to_its_root): Fix premature return
4181 when processing non-root ZFS filesystems.
4182 Reported by Sergio Talens-Oliag.
4184 2010-10-15 Robert Millan <rmh@gnu.org>
4186 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
4187 guarantee compressed ones are processed first.
4189 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4191 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
4192 grub_efiemu_autocore.
4194 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4196 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
4198 (grub_console_getkey): Use correct jae opcode rather than ja.
4200 2010-10-12 Robert Millan <rmh@gnu.org>
4202 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
4203 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
4204 variable. All references updated.
4206 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
4208 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4210 Correctly distinguish mdraid flavours.
4212 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
4213 (insert_array): New argument raid.
4214 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
4215 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
4216 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
4218 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4220 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
4221 handling of special keys.
4223 2010-10-02 Aleš Nesrsta <starous@volny.cz>
4225 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
4226 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
4228 2010-10-02 Aleš Nesrsta <starous@volny.cz>
4230 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
4231 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
4233 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
4234 Use right endpoint when querying descriptor.
4236 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
4238 Clear out 0x80 color bit on EFI.
4240 Reported by: decoder and meta tech.
4242 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
4243 (grub_console_setcolorstate): Clear out 0x80 bit.
4244 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
4245 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
4246 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
4248 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
4250 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
4253 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
4255 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
4256 mo_file after freeing.
4258 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
4260 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
4262 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
4264 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
4267 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
4269 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
4272 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
4274 Put terminfo into core on ieee1275 and yeeloong (needed for console).
4276 * gentpl.py: New groups terminfoinkernel and terminfomodule.
4277 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
4278 and terminfo.h when needed.
4279 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
4280 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
4281 (terminfo): Enable only on terminfokernel.
4283 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
4284 * include/grub/lib/arg.h: Likewise.
4285 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
4286 incorrect usage of ->.
4288 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
4290 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
4291 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
4293 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
4295 Fix coreboot compilation.
4297 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
4298 Take VBE info into account even if only text is supported.
4299 (fill_vbe_info): Take into account the case when only VGA text
4301 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
4302 on coreboot, multiboot and qemu.
4304 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
4306 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
4308 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
4310 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
4312 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
4315 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
4317 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
4318 if they were BSD-style.
4320 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
4322 * grub-core/boot/i386/pc/lnxboot.S: Replace
4323 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
4324 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
4326 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
4328 Write embedding zone using Reed-Solomon.
4330 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
4331 * grub-core/Makefile.am (rs_decoder.S): New target.
4332 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
4333 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
4334 (multiboot): Move to RS part.
4335 (post_reed_solomon): New label.
4336 (grub_boot_drive): Move to non-RS part since it's modified in memory
4338 Include rs_decoder.S.
4339 * grub-core/lib/reed_solomon.c: New file.
4340 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
4342 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
4343 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
4344 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
4345 * include/grub/partition.h (grub_partition_map): Change prototype of
4346 embed to allow returning additional sectors.
4347 * include/grub/reed_solomon.h: New file.
4348 * util/grub-setup.c (setup): Handle Reed-Solomon.
4350 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
4352 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
4353 i386 and x86-64 definedness tests.
4355 2010-09-27 Yves Blusseau <blusseau@zetam.org>
4357 Fix generation of kernel_syms.lst
4359 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
4362 2010-09-26 Robert Millan <rmh@gnu.org>
4364 Support degraded ZFS arrays in "grub-probe -t device" resolution.
4366 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
4367 the pool is an array of devices, iterate through it and return the
4368 first device that passes a stat() test (instead of blindly returning
4371 2010-09-26 Robert Millan <rmh@gnu.org>
4373 Build fixes for GNU/kFreeBSD.
4375 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
4376 to programs that require ZFS conversion.
4377 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
4378 kernels that don't have FLOPPY_MAJOR.
4380 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
4382 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
4384 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
4388 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
4389 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
4390 mdraid09 and mdraid1x.
4392 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
4394 Re-enable grub-extras.
4396 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
4397 avoid confusing Automake. Run autogen only twice, once for the top
4398 level and once for grub-core. Add Makefile.util.def and
4399 Makefile.core.def from extra modules to the appropriate autogen
4400 invocations. If Makefile.common exists in an extra module, include
4401 it in both Makefile.util.am and grub-core/Makefile.core.am;
4402 similarly, include any Makefile.util.common file in Makefile.util.am
4403 and any Makefile.core.common file in grub-core/Makefile.core.am.
4404 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
4405 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
4406 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
4407 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
4409 * gentpl.py (gvar_add): Turn GVARS into a set.
4410 (global_variable_initializers): Sort global variables on output.
4411 (vars_init): New function.
4412 (first_time): Likewise.
4413 (library): Ensure that non-global variable initialisations are
4414 emitted before the first time we emit code for a library block.
4415 Append to variables rather than setting them. Only emit
4416 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
4417 each conditional path.
4418 (program): installdir() emits an Autogen macro, so must be passed to
4419 var_add rather than gvar_add.
4422 (rules): New function, centralising handling for different target
4423 types. Set up Guile association lists for first_time and vars_init,
4424 and send most output to a diversion so that variable initialisations
4425 can be emitted first.
4426 (module_rules): Use new rules function.
4427 (kernel_rules): Likewise.
4428 (image_rules): Likewise.
4429 (library_rules): Likewise.
4430 (program_rules): Likewise.
4431 (script_rules): Likewise.
4432 (data_rules): Likewise.
4434 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
4436 * .bzrignore: Add contrib and grub-core/contrib. Remove
4437 grub-core/Makefile.gcry.am.
4439 2010-09-24 Yves Blusseau <blusseau@zetam.org>
4441 * grub-core/lib/LzFind.c: Add missing include.
4442 * grub-core/lib/LzmaEnc.c: Likewise.
4443 * grub-core/script/lexer.c: Likewise.
4444 * grub-core/script/yylex.l: Likewise.
4445 * util/grub-macho2img.c: Likewise.
4446 * util/grub-menulst2cfg.c: Likewise.
4447 * util/grub-mklayout.c: Likewise.
4448 * util/grub-mkpasswd-pbkdf2.c
4449 * util/grub-mkrelpath.c: Likewise.
4450 * util/resolve.c: Likewise.
4452 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
4454 * Makefile.util.def (example_unit_test): Add
4455 grub-core/gnulib/libgnu.a.
4457 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
4459 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
4461 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
4463 Support xz compression on yeeloong.
4465 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
4466 * configure.ac: Check for LZMA.
4467 * grub-core/Makefile.core.def (xz_decompress): New target.
4468 (none_decompress): Likewise.
4469 * grub-core/boot/decompressor/minilib.c: New file.
4470 * grub-core/boot/decompressor/none.c: Likewise.
4471 * grub-core/boot/decompressor/xz.c: Likewise.
4472 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
4473 * grub-core/kern/mips/cache_flush.S: Likewise.
4474 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
4475 * grub-core/kern/mips/startup.S: Move first stage to ...
4476 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
4478 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
4479 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
4480 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
4481 Allocate statically.
4482 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
4483 Allocate statically or use scratch. Don't check CRC32.
4484 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
4485 Allocate statically. Don't check CRC32.
4486 * include/grub/decompressor.h: New file.
4487 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
4489 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
4490 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
4491 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
4492 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
4493 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
4494 * util/grub-mkimage.c (grub_compression_t): New type.
4495 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
4496 (image_target_desc): New field default_compression.
4497 (image_targets): Adjust yeeloong targets.
4498 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
4499 (compress_kernel): New parameter comp.
4500 (generate_image): Likewise. Handle new compression case.
4501 (options): New option --compression
4503 (main): Handle new option.
4505 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
4507 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
4509 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
4511 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
4512 typo in __i386__ conditional.
4514 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4516 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
4519 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4521 Implement EFI and ACPI multiboot2 extensions.
4523 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
4524 new tags as supported.
4525 (acpiv2_size): New function.
4526 (grub_multiboot_get_mbi_size): Take new tags into account.
4527 (grub_multiboot_make_mbi): Add new tags.
4528 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
4530 2010-09-21 Aleš Nesrsta <starous@volny.cz>
4532 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
4533 Added missing configuration of USB device.
4535 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4537 * grub-core/normal/menu_entry.c (run): Make sure we always return
4540 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4542 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
4543 NumberOfPages is UINT64 according to the UEFI specification, not
4544 UINTN. Fix printf format.
4546 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4548 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
4549 `err' to grub_usb_err_t.
4550 Reported and tested by: KESHAV P.R.
4552 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4554 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
4555 tpart non-const, so that we can assign to it. (Since this is a
4556 typedef, the constness refers to the pointer rather than what it
4559 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4561 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
4562 $(top_srcdir)/grub-core/gnulib as well as
4563 $(top_builddir)/grub-core/gnulib.
4564 Reported by: KESHAV P.R.
4566 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4568 * util/grub-install.in: Fix the bootloader ID option to be
4569 consistently --bootloader-id, not --bootloader_id.
4570 Reported by: KESHAV P.R.
4572 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4574 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
4575 check hash checksum." consistently translatable.
4577 2010-09-21 Yves Blusseau <blusseau@zetam.org>
4579 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
4582 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4584 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
4585 (GRUB_MOD_INIT): Register sha1sum command.
4586 (GRUB_MOD_FINI): Unregister sha1sum command.
4588 2010-09-21 Yves Blusseau <blusseau@zetam.org>
4590 Keep boot and grub directory names in sync with utils scripts
4592 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
4593 * config.h.in: Add previous macros.
4594 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
4595 * util/grub-install.in: Use $bootdir and $grubdir variables.
4597 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4599 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
4600 convert partition names to disk names if the new `convert' parameter
4602 (grub_util_biosdisk_get_grub_dev): If opening the disk device
4603 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
4604 disk in its own right. This can happen with Xen disk images.
4606 2010-09-21 Yves Blusseau <blusseau@zetam.org>
4608 * util/grub-editenv.c: Update strings to avoid warnings when generating
4610 * util/grub-setup.c: Likewise.
4612 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
4614 * configure.ac: Change version to 1.99~beta0.
4616 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
4618 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
4620 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
4622 * include/multiboot.h: Resynced with specification.
4623 * include/multiboot2.h: Likewise.
4625 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
4627 Fix po directory handling.
4629 * configure.ac: Create po/Makefile.in rather than po/Makefile.
4630 * grub-core/gnulib/Makefile.am: Import gettext module.
4631 * m4/gnulib-cache.m4: Likewise.
4632 * m4/gnulib-comp.m4: Likewise.
4633 * m4/gettext.m4: New file, from gnulib.
4634 * m4/glibc2.m4: Likewise.
4635 * m4/iconv.m4: Likewise.
4636 * m4/intdiv0.m4: Likewise.
4637 * m4/intl.m4: Likewise.
4638 * m4/intldir.m4: Likewise.
4639 * m4/intlmacosx.m4: Likewise.
4640 * m4/intmax.m4: Likewise.
4641 * m4/inttypes-pri.m4: Likewise.
4642 * m4/lcmessage.m4: Likewise.
4643 * m4/lib-ld.m4: Likewise.
4644 * m4/lib-link.m4: Likewise.
4645 * m4/lib-prefix.m4: Likewise.
4646 * m4/lock.m4: Likewise.
4647 * m4/nls.m4: Likewise.
4648 * m4/po.m4: Likewise.
4649 * m4/printf-posix.m4: Likewise.
4650 * m4/progtest.m4: Likewise.
4651 * m4/threadlib.m4: Likewise.
4652 * m4/uintmax_t.m4: Likewise.
4653 * m4/visibility.m4: Likewise.
4654 * po/Makefile.am: Remove.
4655 * po/Makefile.in.in: New file, from gettext.
4656 ($(DOMAIN).pot-update): Support POTFILES-shell.
4657 * po/Makevars: New file.
4658 * po/POTFILES-shell: Rename to ...
4659 * po/POTFILES-shell.in: ... this. Update.
4660 * po/POTFILES: Rename to ...
4661 * po/POTFILES.in: ... this. Update.
4662 * po/Rules-quot: New file, from gettext.
4663 * po/boldquot.sed: Likewise.
4664 * po/en@boldquot.header: Likewise.
4665 * po/en@quot.header: Likewise.
4666 * po/insert-header.sin: Likewise.
4667 * po/quot.sed: Likewise.
4668 * po/remove-potcdate.sin: Likewise.
4670 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4672 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
4674 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4676 * util/grub.d/20_linux_xen.in: Use submenus.
4678 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4682 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
4683 parameter submenu. All users updated.
4684 * grub-core/normal/main.c (free_menu): Rename to ...
4685 (grub_normal_free_menu): ... this. Made global.
4686 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
4688 * grub-core/normal/menu_entry.c (screen): New field submenu.
4689 (make_screen): Set submenu.
4690 (run): Open new context if requested.
4691 * include/grub/menu.h (grub_menu_entry): New field submenu.
4692 * include/grub/normal.h (grub_normal_free_menu): New proto.
4694 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4696 Menu entries extractor.
4698 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
4700 (GRUB_MOD_INIT): Register new variants.
4701 (GRUB_MOD_FINI): Unregister new variants.
4702 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
4703 into grub_cmd_legacy_source.
4704 (grub_cmd_legacy_source): Implement extractor variants.
4705 (GRUB_MOD_INIT): Register new variants.
4706 (GRUB_MOD_FINI): Unregister new variants.
4707 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
4709 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
4710 search as an extractor.
4711 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
4712 test as an extractor.
4713 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
4715 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
4716 (grub_env_new_context): New function.
4717 (grub_env_context_open): Likewise.
4718 (grub_env_extractor_open): Likewise.
4719 (grub_env_extractor_close): Likewise.
4720 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
4721 grub_extractor_level.
4722 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
4723 * include/grub/env.h (grub_env_extractor_open): New proto.
4724 (grub_env_extractor_close): Likewise.
4725 * include/grub/normal.h (grub_extractor_level): New external variable.
4727 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4729 Make cutmem accept a region specification.
4730 Suggested by: Samuel Thibault
4732 * grub-core/mmap/mmap.c (parsemem): New function.
4733 (grub_cmd_cutmem): Handle new arguments.
4735 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4739 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
4740 (GRUB_MOD_INIT): Register new command.
4741 (GRUB_MOD_FINI): Unregister new command.
4743 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4745 Support some annoying BSD and Minix subpartitions.
4747 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
4748 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4749 Properly handle concatenation.
4750 * grub-core/kern/device.c (grub_device_iterate): Likewise.
4751 * grub-core/normal/completion.c (iterate_partition): Likewise.
4752 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
4753 contain partition. All users updated.
4754 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
4756 (grub_openbsdlabel_partition_map): Likewise.
4757 (bsdlabel_partition_map_iterate): Rename to ..
4758 (iterate_real): ... this. New arguments sector, freebsd and pmap.
4759 (bsdlabel_partition_map_iterate): New function.
4760 (netopenbsdlabel_partition_map_iterate): Likewise.
4761 (netbsdlabel_partition_map_iterate): Likewise.
4762 (openbsdlabel_partition_map_iterate): Likewise.
4763 (GRUB_MOD_INIT): Register new partmaps.
4764 (GRUB_MOD_FINI): Unregister new partmaps.
4765 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
4766 (grub_partition_msdos_iterate): ... this. All users updated.
4767 Don't support embedding other than in a minix partition.
4768 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
4770 * include/grub/partition.h (grub_partition): New field msdostype.
4771 * util/grub-install.in: Handle openbsd and netbsd types being in
4774 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4776 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
4778 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
4779 * grub-core/Makefile.core.def (mdraid): Renamed to ...
4780 (mdraid09): ... this.
4781 (mdraid1x): New module.
4782 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
4783 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
4785 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4787 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
4790 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4792 * grub-core/commands/efi/lsefimmap.c: Correct header.
4795 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4797 * util/grub-editenv.c (argp_parser): Don't pass translated strings
4798 as printf format strings; the translations might contain '%' which
4799 could cause a crash.
4801 * util/grub-fstest.c (argp_parser): Likewise.
4802 * util/grub-setup.c (argp_parser): Likewise.
4805 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4807 Use argp in grub-fstest.
4809 * util/grub-fstest.c: Don't include getopt.h.
4811 (root): New variable.
4812 (args_count): Likewise.
4814 (num_disks): Likewise.
4817 (debug_str): Likewise.
4819 (options): Transformed to argp.
4821 (main): Split argument parsing into ...
4822 (argp_parser): ... this. Changed to argp format.
4823 (argp): New variable.
4824 (main): Use argp_parse.
4826 2010-09-20 Tristan Gingold <gingold@free.fr>
4827 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
4828 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4830 * grub-core/commands/efi/lsefimmap.c: New file.
4831 * grub-core/Makefile.core.def (lsefimmap): New module.
4832 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
4834 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4836 Pause the execution (10s max) if any errors are displayed so the user
4837 has a chance to see them.
4839 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
4840 (grub_print_error): Increment grub_err_printed_errors.
4841 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
4842 execution if any errors were displayed.
4843 (show_menu): Remove old code for pause.
4844 * grub-core/normal/menu_entry.c (run): Likewise.
4845 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
4847 (grub_normal_get_char_counter): Likewise.
4848 * include/grub/err.h (grub_err_printed_errors): New external variable.
4849 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
4851 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4853 Support multiboot VBE info.
4855 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
4856 Take VBE info into account.
4857 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
4858 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
4859 Call fill_vbe_info when appropriate.
4860 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
4861 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
4863 (grub_multiboot_get_mbi_size): Take new tags into account.
4864 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
4865 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
4866 Call fill_vbe_tag when appropriate.
4867 (grub_multiboot_make_mbi): Properly align tags.
4868 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
4870 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
4872 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
4874 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4876 Suport manual terminal geometry specification.
4878 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
4879 Save state in grub_ofconsole_terminfo_output.
4880 (grub_ofconsole_term): Use grub_terminfo_getwh.
4881 (grub_ofconsole_getwh): Removed.
4882 * grub-core/term/serial.c (grub_serial_getwh): Removed.
4883 (grub_serial_term): Use grub_terminfo_getwh.
4884 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
4885 (options): New struct.
4886 (OPTION_*): New enum.
4887 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
4888 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
4890 (grub_terminfo_getwh): New proto.
4891 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
4893 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4895 Handle legacy "terminal" command.
4897 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
4899 (legacy_commands): Add terminal and title.
4900 (grub_legacy_parse): Handle terminal. Simplify title handling.
4902 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4904 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
4905 parameters overflow.
4907 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4909 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
4912 * docs/grub.texi (Shell-like scripting): Document `!'.
4913 (Network): Simplify using new i386-pc-pxe format. Mention
4918 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4920 * Makefile.am (SUBDIRS): Restore "."; it's important to force
4921 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
4924 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4926 * grub-core/commands/efi/lsefisystab.c: Correct header.
4927 * grub-core/commands/efi/lssal.c: Likewise.
4928 * grub-core/commands/testload.c: Likewise.
4930 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4932 * util/grub-mkrescue.in: Add explicit root argument to --set to
4933 prevent the UUID being interpreted as an argument to --set (matches
4934 previous change to prepare_grub_to_access_device).
4936 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4938 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
4939 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
4940 the verbosity of later #ifs.
4941 (find_partition_start): Define this function on FreeBSD too.
4942 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
4944 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
4947 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4949 * util/grub-editenv.c: Use argp instead of getopt.
4951 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4953 * util/grub-setup.c: Use argp instead of getopt.
4955 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4957 Use gnulib-tool to create gnulib source files.
4959 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
4960 grub-core/gnulib directories
4961 * .bzignore: Add **/.deps and autogenerated gnulib files
4962 * configure.ac: Assign auxiliary directory to build-aux, add invocation
4963 of gnulib macros, add grub-core/gnulib/Makefile
4964 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
4965 include m4 directory to aclocal.
4966 * Makefile.util.def: Remove direct compilation of gnulib source files
4967 and use the new grub-core/gnulib/libgnu.a.
4968 * build-aux/config.rpath: move config.rpath from top directory to
4970 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
4972 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
4973 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
4974 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
4976 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
4979 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4981 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
4982 grub-core/genmod.sh and grub-core/gensyminfo.sh
4984 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
4986 Add a test for echo command options.
4988 * tests/grub_cmd_echo.in: New test.
4989 * Makefile.util.def: Rules for new test.
4991 2010-09-20 Szymon Janc <szymon@janc.net.pl>
4993 Remove crc.mod and move crc command to hashsum.mod.
4994 Remove lib/crc.c - users updated to use gcrypt implementation.
4996 * grub-core/commands/crc.c: Removed.
4997 * grub-core/Makefile.core.def (crc): Module removed.
4998 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
4999 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
5000 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
5001 * grub-core/lib/crc.c: Removed.
5002 * include/grub/lib/crc.h: Removed.
5003 * Makefile.util.def (crc): Remove lib/crc.c
5004 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
5005 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
5006 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
5007 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
5008 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
5009 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
5011 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5013 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
5015 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5017 Split config.h for util and core.
5019 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
5022 (BSS_START_SYMBOL): Likewise.
5023 (END_SYMBOL): Likewise.
5024 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
5025 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
5026 * config.h.in: New file.
5027 * configure.ac: Use config-util.h as config define file.
5028 Rename MACHINE into GRUB_MACHINE. All users updated.
5029 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
5031 (NESTED_FUNC_ATTR): Likewise.
5032 Substitue new variables.
5033 (COND_HAVE_ASM_USCORE): New conditional.
5034 * grub-core/Makefile.am (ASM_PREFIX): New variable.
5035 (kernel_syms.lst): Use ASM_PREFIX.
5036 * grub-core/kern/emu/console.c: Include config-util.h.
5037 * grub-core/kern/emu/misc.c: Likewise.
5038 * grub-core/kern/emu/mm.c: Likewise.
5039 * include/grub/emu/misc.h: Likewise.
5040 * include/grub/libgcc.h: Likewise.
5042 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5044 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
5046 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
5047 Fix GRUB_TERM_KEY_* constants usage.
5048 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
5050 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5052 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
5054 * grub-core/bus/usb/uhci.c: Remove empty define.
5055 (grub_uhci_check_transfer): Add missing cast.
5056 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
5058 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
5060 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
5062 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5064 * grub-core/Makefile.core.def (legacycfg): Add
5065 lib/i386/pc/vesa_modes_table.c on emu.
5067 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
5069 Reduce number of temporary files generated by build system.
5071 * grub-core/gencmdlist.sh: Removed.
5072 * grub-core/genfslist.sh: Removed.
5073 * grub-core/genhandlerlist.sh: Removed.
5074 * grub-core/genmodsrc.sh: Removed.
5075 * grub-core/genpartmaplist.sh: Removed.
5076 * grub-core/genparttoollist.sh: Removed.
5077 * grub-core/gentermiinallist.sh: Removed.
5078 * grub-core/genvideolist.sh: Removed.
5080 * grub-core/genmod.sh.in: New file.
5081 * grub-core/gensyminfo.sh.in: New file.
5083 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
5084 * conf/Makefile.extra-dist: Update with new files.
5085 * gentpl.py: Remove rules related to unnecessary temporary files.
5086 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
5088 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
5090 * grub-core/bus/usb/uhci.c: Remove empty #define.
5091 * grub-core/genmoddep.awk: Updated with new syminfo format.
5092 * util/bash-completion.d/Makefile.am: Add config.log to
5095 2010-09-19 Yves Blusseau <blusseau@zetam.org>
5097 * Makefile.util.def: Add forgotten $(LIBINTL) library.
5099 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
5101 * util/grub-mkconfig.in: Check the config script for syntax errors
5104 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
5105 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5107 * Makefile.util.def (grub-install): Use util/grub-install.in on all
5109 * util/grub-install.in: Add EFI and IEEE1275 support.
5110 * util/i386/efi/grub-install.in: Removed.
5111 * util/ieee1275/grub-install.in: Likewise.
5113 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5115 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
5116 (grub_cmd_cmosclean): Likewise.
5117 (GRUB_MOD_INIT): Register command cmosclean.
5118 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
5119 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
5121 2010-09-18 Carles Pina i Estany <carles@pina.cat>
5122 2010-09-18 Aleš Nesrsta <starous@volny.cz>
5123 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5125 Add keyboard layouts support.
5127 * Makefile.util.def (grub-mklayout): New file.
5128 (grub-kbdcomp): New script.
5129 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
5130 Add keyboard_layouts.h.
5131 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
5132 commands/boot.c on yeeloong.
5133 (keylayouts): New module.
5134 * grub-core/bus/usb/ohci.c
5135 * grub-core/bus/usb/uhci.c
5136 * grub-core/bus/usb/usbhub.c (rescan): New variable.
5137 (grub_usb_add_hub): Poll interrupt pipe for device handling.
5138 (attach_root_port): Likewise.
5139 (poll_nonroot_hub): Likewise.
5140 (grub_usb_poll_devices): Likewise.
5141 (detach_device): Close transfer.
5142 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
5144 (grub_usb_bulk_setup_readwrite): Likewise.
5145 (grub_usb_bulk_finish_readwrite): Likewise.
5146 * grub-core/commands/keylayouts.c: New file.
5147 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
5148 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
5150 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
5152 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
5153 * include/grub/keyboard_layouts.h: New file.
5154 * util/grub-mklayout.c: New file.
5155 * util/grub-kbdcomp.in: Likewise.
5157 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5161 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
5162 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
5164 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
5165 (grub_upper_mem): Likewise.
5166 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
5167 * include/grub/memory.h (grub_memory_type_t): New enum.
5170 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5172 * grub-core/Makefile.core.def (lsapm): New module.
5173 * grub-core/commands/i386/pc/lsapm.c: New file.
5174 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
5175 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
5177 * include/grub/i386/pc/apm.h: New file.
5178 * include/multiboot.h (multiboot_apm_info): New struct.
5180 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5182 GRUB-legacy configuration file support.
5184 * Makefile.util.def (grub-menulst2cfg): New util.
5185 * docs/man/grub-menulst2cfg.h2m: New file.
5186 * grub-core/Makefile.core.def (legacycfg): New module.
5187 * grub-core/commands/legacycfg.c: New file.
5188 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
5189 (grub_normal_add_menu_entry): ... this.
5190 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
5191 (grub_normal_set_password): ...this.
5192 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
5193 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
5194 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
5195 * grub-core/lib/legacy_parse.c: New file.
5196 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
5197 * include/grub/i386/pc/vesa_modes_table.h: New file.
5198 * include/grub/legacy_parse.h: Likewise.
5199 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
5200 * util/grub-menulst2cfg.c: New file.
5202 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
5204 * grub-core/kern/emu/hostdisk.c
5205 (convert_system_partition_to_system_disk): Initialise node.
5207 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
5209 * grub-core/kern/emu/hostdisk.c
5210 (convert_system_partition_to_system_disk): Fix devmapper memory pool
5212 Reported and based on patch by: Modestas Vainius.
5214 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
5216 Fix DM-RAID probing with recent versions of device-mapper udev
5219 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
5220 canonicalise device paths under /dev/mapper/.
5221 (convert_system_partition_to_system_disk): Compare the
5222 uncanonicalised path to /dev/mapper/ rather than the canonicalised
5223 path, since device nodes under /dev/mapper/ are often symlinks.
5225 2010-09-17 Yves Blusseau <blusseau@zetam.org>
5227 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
5229 2010-09-16 Yves Blusseau <blusseau@zetam.org>
5231 * configure.ac: Avoid some annoying error messages if freetype-config
5232 program is not found.
5234 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
5236 Support RAID on virtio devices, and others.
5238 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
5240 [__MINGW32__] (grub_find_device): ... this.
5241 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
5242 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
5243 reasonable default if dir is NULL.
5244 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
5246 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
5247 (grub_guess_root_device): Update callers.
5248 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
5250 * util/raid.c (grub_util_getdiskname): Remove.
5251 (grub_util_raid_getmembers): Use grub_find_device rather than
5252 grub_util_getdiskname.
5254 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
5256 * docs/grub.texi (serial): Remove obsolete comment about GRUB
5257 needing to be compiled with serial support.
5258 (ls): Indicate that multiple files are accepted.
5259 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
5260 indicate that multiple files are accepted.
5262 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
5264 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
5265 libgrub_a_init.c, and util/bash-completion.d/grub.
5267 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
5269 * util/grub-setup.c (setup): Fix incorrect container semantics.
5271 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
5273 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
5275 Reported by: J. Nick Terry
5277 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
5279 Move embedding routines to partmap sources files.
5281 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
5282 [GRUB_UTIL]: New variable.
5283 (gpt_partition_map_iterate): Set part.parent.
5284 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
5285 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
5286 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
5288 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
5289 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
5290 (grub_partition_map) [GRUB_UTIL]: New field embed.
5291 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
5292 (setup): Use ->embed.
5294 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
5296 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
5298 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
5299 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
5301 2010-09-15 Yves Blusseau <blusseau@zetam.org>
5303 Add function to get completions from usage.
5305 * util/bash-completion.d/grub-completion.bash.in: Add function to get
5306 completions from usage. Use LC_ALL=C to get options properly.
5308 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
5310 * grub-core/gnulib/basename-lgpl.c: Imported.
5311 * grub-core/gnulib/basename.c: Likewise.
5312 * grub-core/gnulib/dirname-lgpl.c: Likewise.
5313 * grub-core/gnulib/dirname.c: Likewise.
5314 * grub-core/gnulib/dirname.h: Likewise.
5315 * grub-core/gnulib/stripslash.c: Likewise.
5317 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
5319 * grub-core/gnulib/error.c: Resynced.
5320 * grub-core/gnulib/getopt.c: Likewise.
5321 * grub-core/gnulib/getopt_int.h: Likewise.
5322 * grub-core/gnulib/regex.h: Likewise.
5323 * grub-core/gnulib/regex_internal.c: Likewise.
5324 * grub-core/gnulib/regex_internal.h: Likewise.
5326 2010-09-15 Szymon Janc <szymon@janc.net.pl>
5328 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
5329 CRC calculations and validity checks.
5330 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
5333 2010-09-15 Szymon Janc <szymon@janc.net.pl>
5335 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
5337 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
5339 Fix incorrect echo options handling.
5340 Reported by: Yves Blusseau.
5342 * include/grub/command.h (grub_command_flags_t): New flags
5343 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
5344 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
5345 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
5347 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
5349 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
5351 (GRUB_COMMAND_FLAG_MENU): Likewise.
5352 (GRUB_COMMAND_FLAG_BOTH): Likewise.
5353 (GRUB_COMMAND_FLAG_TITLE): Removed.
5354 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
5355 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
5356 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
5357 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
5358 (grub_command_flags_t): New enum. All users updated.
5360 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
5362 Fix solaris compilation.
5364 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
5365 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
5366 (grub-emu-list): Likewise.
5368 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
5370 Remove deprecated root command.
5372 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
5375 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
5377 * util/i386/pc/grub-setup.c: Merge this ...
5378 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
5379 * util/grub-setup.c: ... into this.
5380 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
5383 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
5385 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
5388 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
5390 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
5393 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
5395 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
5396 explicit root argument to set to prevent UUID to be interpreted as
5399 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
5401 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
5403 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
5405 Don't export grub_gate_a20.
5407 * grub-core/kern/i386/pc/init.c: Remove leftovers.
5408 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
5410 (grub_gate_a20): ... this. All users updated.
5411 * include/grub/i386/pc/init.h: Removed. All users updated.
5413 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
5415 Create euro.pf2 which supports most European languages.
5417 * Makefile.am (grubdata_DATA): Add euro.pf2.
5418 (euro.pf2): New target.
5419 (CLEANFILES): Add euro.pf2.
5421 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
5423 * configure.ac: Disable emu-usb by default to prevent inadvertent
5426 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5428 Disable usbserial on grub-emu since our libusb code isn't good enough
5431 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
5432 (usbserial_pl2303): Likewise.
5433 (usbserial_ftdi): Likewise.
5435 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5437 * include/grub/disk.h (grub_disk): Remove has_partitions.
5439 * disk/loopback.c (grub_loopback): Remove has_partitions.
5441 (options): Remove partitions. All users updated.
5442 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
5443 * util/i386/pc/grub-setup.c (setup): copy partition table only when
5444 actual partition table is found.
5446 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5448 Remove readability checks (too many false negatives).
5450 * util/grub-install.in: Remove readability checks.
5451 * util/grub-mkconfig.in: Likewise.
5452 * util/grub.d/10_hurd.in: Likewise.
5453 * util/grub.d/10_kfreebsd.in: Likewise.
5454 * util/grub.d/10_linux.in: Likewise.
5455 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
5458 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5460 Enable acpi shutdown on all ACPI platforms.
5462 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
5463 on coreboo, multiboot and EFI.
5464 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
5465 (grub_acpi_halt): Likewise.
5466 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
5467 (grub_cmd_halt): Don't call grub_acpi_halt directly.
5468 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
5469 * grub-core/lib/i386/halt.c (grub_halt)
5470 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
5472 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5474 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
5477 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5479 * grub-core/video/efi_gop.c: Fix over-80-chars line.
5480 * grub-core/video/efi_uga.c: Likewise.
5482 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5484 Filter devaliases and never open same device twice.
5486 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
5487 (last_ihandle): Likewise.
5488 (ofdisk_hash_ent): New member shortest.
5489 (ofdisk_hash_add): Add canonical path too.
5490 (scan): New function.
5491 (grub_ofdisk_iterate): Iterate over hashed entries.
5492 (compute_dev_path): Don't add :0.
5493 (grub_ofdisk_open): Don't really open the disk.
5494 (grub_ofdisk_close): Avoid closing unrelated disk.
5495 (grub_ofdisk_read): Implement reopen logic.
5496 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
5498 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
5501 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5505 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
5506 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
5507 right address. Add sparc64_ieee1275_ldflags.
5508 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
5509 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
5510 to grub_host_to_target_addr
5511 (load_image): Likewise.
5513 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5515 * grub-core/normal/completion.c (complete_file): Handle device
5517 Fix based on patch by Doug Nazar.
5519 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5521 grub-mknetdir script.
5523 * Makefile.util.def (grub-mknetdir): New module.
5524 * tests/util/grub-shell.in: Support boot=net
5525 * util/grub-mknetdir.in: New file.
5527 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5529 videoinfo on non-vbe.
5531 * grub-core/Makefile.core.def (vbeinfo): Removed.
5533 (videoinfo): New module.
5534 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
5535 * grub-core/commands/i386/pc/vbetest.c: Removed.
5536 * grub-core/commands/videoinfo.c: New file.
5537 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
5539 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
5541 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
5542 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
5543 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
5544 mode_number. New parameter mode. All users updated.
5545 (grub_video_gop_iterate): New function.
5546 (grub_video_efi_gop): New member iterate.
5547 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
5548 (grub_vbe_set_video_mode): Remove setting useless fields.
5549 (vbe2videoinfo): New function.
5550 (grub_video_vbe_iterate): Likewise.
5551 (grub_video_vbe_setup): Use vbe2videoinfo.
5552 (grub_video_vbe_print_adapter_specific_info): New function.
5553 (grub_video_vbe_adapter): New fields iterate and
5554 print_adapter_specific_info.
5555 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
5557 (grub_video_mode_info): New field mode_number.
5558 (grub_video_adapter): New fields iterate and
5559 print_adapter_specific_info.
5561 2010-09-13 Tristan Gingold <gingold@free.fr>
5562 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
5563 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5565 * grub-core/commands/efi/lsefisystab.c: New file.
5566 * grub-core/commands/efi/lssal.c: Likewise.
5567 * grub-core/Makefile.core.def (lsacpi): New module.
5568 (lsefisystab): Likewise.
5569 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
5570 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
5571 (grub_efi_sal_system_table): New struct.
5572 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
5573 (grub_efi_sal_system_table_memory_descriptor): Likewise.
5574 (grub_efi_sal_system_table_platform_features): Likewise.
5575 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
5576 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
5577 (grub_efi_sal_system_table_ap_wakeup): Likewise.
5578 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
5580 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5582 Support explicit user claim that a device is BIOS-visible.
5584 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
5585 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
5586 * grub-core/kern/emu/hostdisk.c
5587 (convert_system_partition_to_system_disk): Support mdX.
5588 (find_system_device): New parameter add. All users updated.
5589 (grub_util_biosdisk_is_present): New function.
5590 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
5593 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5595 Search hints support.
5597 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
5600 2010-09-13 Yves Blusseau <blusseau@zetam.org>
5602 Bash completion script for util commands
5604 * Makefile.am: Add util/bash-completion.d directory
5605 * configure.ac: Likewise.
5606 * util/bash-completion.d/Makefile.am: New file.
5607 * util/bash-completion.d/grub-completion.bash.in: Likewise.
5609 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5611 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
5612 (print_backlog): set backlog_ucs4 and backlog_glyphs.
5613 Reported by: Yves Blusseau.
5615 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5617 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
5618 partition size and offset.
5620 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5622 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
5624 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5626 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
5628 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5630 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
5631 (grub_xvasprintf): Likewise.
5633 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5635 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
5637 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5639 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
5640 args ending with NULL.
5642 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5644 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
5647 2010-09-11 Szymon Janc <szymon@janc.net.pl>
5649 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
5651 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5653 Shutdown using ACPI.
5655 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
5656 * grub-core/commands/acpihalt.c: New file.
5657 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
5658 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
5659 (grub_acpi_halt): New proto.
5660 (GRUB_ACPI_SLP_EN): New const.
5661 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
5662 (GRUB_ACPI_OPCODE_*): New enum.
5663 (GRUB_ACPI_EXTOPCODE_*): Likewise.
5665 2010-09-11 Tristan Gingold <gingold@free.fr>
5666 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
5667 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5669 * commands/lsacpi.c: New file.
5670 * grub-core/Makefile.core.def (lsacpi): New module.
5671 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
5672 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
5673 (grub_acpi_madt_entry_header): New struct.
5674 (grub_acpi_madt): Likewise.
5675 (grub_acpi_madt_entry_interrupt_override): Likewise.
5676 (grub_acpi_madt_entry_sapic): Likewise.
5677 (grub_acpi_madt_entry_lsapic): Likewise.
5678 (grub_acpi_madt_entry_platform_int_source): Likewise.
5679 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
5680 (PRIuGRUB_UINT32_T): Likewise.
5681 (PRIxGRUB_UINT64_T): Likewise.
5683 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5685 Implement loading palette on ieee1275_fb.
5687 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
5688 (have_setcolors): Likewise.
5689 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
5690 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
5691 (grub_video_ieee1275_set_palette): Implement.
5693 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5694 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
5696 * util/grub-install.in (grub_partition): New variable.
5697 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
5698 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
5699 Fixes a bug reported by Yves Blusseau.
5701 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5705 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
5706 =grub_cpu_flush_cache on all mips and not only yeeloong.
5707 * configure.ac (COND_mips): New conditional.
5708 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
5710 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
5711 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
5712 [GRUB_LINKER_HAVE_INIT]: New function.
5713 (grub_emu_post_init): Likewise.
5714 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
5715 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
5716 * include/grub/cache.h (_mips): Include mips/cache.h.
5717 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
5718 LVM and RAID prototypes.
5719 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
5720 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
5723 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
5725 * util/grub-install.in: Don't try to verify core.img until after
5726 running grub-mkimage to create it.
5728 2010-09-10 Robert Millan <rmh@gnu.org>
5730 * util/grub.d/10_hurd.in: Add misc readability checks.
5731 * util/grub.d/10_kfreebsd.in: Likewise.
5732 * util/grub.d/10_linux.in: Likewise.
5734 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
5736 * util/grub-install.in: ${imgext} won't be defined here until the
5737 install branch is merged. For the meantime, only verify core.img on
5738 i386-pc and sparc64-ieee1275 platforms.
5740 2010-09-10 Robert Millan <rmh@gnu.org>
5742 Solaris support in grub_find_zpool_from_dir(). Thanks
5743 Seth Goldberg for referring to getextmntent() facility.
5745 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
5747 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
5749 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
5750 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
5751 method for finding zpool name.
5753 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
5755 grub-fstest needs the host and hostfs modules while other utilities
5756 actively require those modules to be absent, so grub-fstest needs
5757 its own initialisation and finalisation code.
5759 * Makefile.am (grub_fstest.pp): New target.
5760 (grub_fstest_init.lst): Likewise.
5761 (grub_fstest_init.c): Likewise.
5762 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
5764 2010-09-10 Robert Millan <rmh@gnu.org>
5766 * configure.ac: Check for `struct statfs.f_fstypename' and
5767 `struct statfs.f_mntfromname'.
5769 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
5770 kFreeBSD-specific code.
5772 2010-09-10 Robert Millan <rmh@gnu.org>
5774 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
5775 on ZFS. Now non-main filesystems are supported as / too.
5777 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
5779 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
5780 and grub-core/disk/host.c to ...
5781 (grub-fstest): ... here. Having the host disk implementation
5782 present confuses grub-probe and other utility programs.
5784 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
5785 when writing to a file, not when writing to stdout.
5787 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
5789 * tests/partmap_test.in: New test for partitions.
5790 * Makefile.util.def: Rules for new test.
5792 2010-09-09 Robert Millan <rmh@gnu.org>
5794 * util/grub-probe.c (probe): Fix a pair of unhandled error
5797 2010-09-09 Robert Millan <rmh@gnu.org>
5799 Basic Btrfs support (detection and UUID).
5801 * grub-core/fs/btrfs.c: New file.
5802 * Makefile.util.def (library): Register btrfs.c.
5803 * grub-core/Makefile.core.def: Likewise.
5805 2010-09-08 Robert Millan <rmh@gnu.org>
5807 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
5808 with (optional) parameters to specify device and relative path.
5809 * util/grub-install.in: Use is_path_readable_by_grub() to
5810 verify readability of a few critical files.
5811 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
5812 verify readability of grub.cfg.new.
5814 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
5816 Split minix.mod into minix.mod and minix2.mod.
5818 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
5819 * grub-core/Makefile.core.def (minix2): New module.
5820 * grub-core/fs/minix.c: Use definitions instead of runtime version
5822 * grub-core/fs/minix2.c: New file.
5824 2010-09-08 Yves Blusseau <blusseau@zetam.org>
5826 Add new --boot-directory option to replace --root-directory
5828 * util/grub-install.in: Add new --boot-directory option
5829 * util/grub-reboot.in: Likewise.
5830 * util/grub-set-default.in: Likewise.
5832 2010-09-08 Yves Blusseau <blusseau@zetam.org>
5834 * util/grub-mkconfig.in: Use new variable.
5836 2010-09-08 Yves Blusseau <blusseau@zetam.org>
5838 * configure.ac: Define some useful variables.
5840 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
5842 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5843 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
5844 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
5845 Use terminfo and don't use cursor-on/cursor-off unless it's known
5847 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
5848 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
5850 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
5852 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
5853 starts with "(,", fill the drive containing the loaded image in
5854 between those two characters, but expect that a full partition
5855 specification including partition map names will follow.
5857 2010-09-08 Robert Millan <rmh@gnu.org>
5859 * configure.ac: Remove `--enable-grub-fstest' option.
5860 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
5862 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
5863 `grub-fstest' instead of `grub-probe' for readability verification.
5864 * util/grub-probe.c (probe): Remove readability verification kludge.
5866 2010-09-08 Robert Millan <rmh@gnu.org>
5868 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
5869 initializing `GRUB_FS'.
5871 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
5873 Not command (!) support to GRUB script.
5875 * tests/grub_script_not.in: New test.
5876 * Makefile.util.def: Rules for new test.
5878 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
5879 ! command as a special case.
5880 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
5882 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5884 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
5887 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5889 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
5891 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5893 * docs/grub.texi (Shell-like scripting): Documentation for break,
5894 continue, shift and return commands.
5896 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
5898 Rename CD-ROM to cd on BIOS.
5900 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
5902 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
5904 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5906 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
5907 * util/grub-probe.c (main): Likewise.
5908 * util/i386/pc/grub-setup.c (main): Likewise.
5909 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
5910 Reported and debugged by: alexxy
5912 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5914 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
5917 2010-09-05 Jo Shields <directhex@apebox.org>
5919 * util/grub.d/30_os-prober.in: Add missing classes.
5921 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5923 * docs/grub.texi (Theme file format): Document new position format.
5925 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5927 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
5928 a table. Use @code instead of @verbatim.
5930 2010-09-05 Colin D Bennett <colin@gibibit.com>
5932 Gfxmenu documentation.
5934 * docs/grub.texi (Theme file format): New chapter.
5936 2010-09-05 Szymon Janc <szymon@janc.net.pl>
5938 * grub-core/Makefile.core.def (xzio): New module.
5939 * grub-core/io/xzio.c: New file.
5940 * grub-core/lib/xzembed/xz.h: New file (from xembed).
5941 * grub-core/lib/xzembed/xz_config.h: Likewise.
5942 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
5943 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
5944 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
5945 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
5946 * grub-core/lib/xzembed/xz_private.h: Likewise.
5947 * grub-core/lib/xzembed/xz_stream.h: Likewise.
5948 * include/grub/file.h (grub_file_filter_id): New compression filter
5949 GRUB_FILE_FILTER_XZIO.
5951 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5953 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
5954 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
5957 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5959 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
5960 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
5962 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5964 Uncompressed checksum support.
5966 * grub-core/commands/hashsum.c (options): Add option --uncompress.
5967 (check_list): New parameter uncompress.
5968 (grub_cmd_hashsum): Handle --uncompress.
5970 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5972 Reintroduce testload.
5974 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
5976 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
5977 (GRUB_MOD_INIT): New function.
5978 (GRUB_MOD_FINI): Likewise.
5979 * grub-core/Makefile.core.def (testload): New module.
5981 2010-09-05 Szymon Janc <szymon@janc.net.pl>
5983 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
5984 (uint8_t): New type.
5985 (uint16_t): Likewise.
5986 (uint32_t): Likewise.
5987 (uint64_t): Likewise.
5989 2010-09-05 Szymon Janc <szymon@janc.net.pl>
5991 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
5993 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5995 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
5997 (grub_gzfile_open): Removed. All users updated.
5998 (GRUB_MOD_INIT): New function.
5999 (GRUB_MOD_FINI): Likewise.
6000 * grub-core/kern/file.c (grub_file_filters_all): New variable.
6001 (grub_file_filters_enabled): Likewise.
6002 (grub_file_open): Handle filters.
6003 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
6004 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
6005 * include/grub/file.h (grub_file_filter_id_t): New type.
6006 (grub_file_filter_t): Likewise.
6007 (grub_file_filters_all): New extern variable.
6008 (grub_file_filters_enabled): Likewise.
6009 (grub_file_filter_register): New inline function.
6010 (grub_file_filter_unregister): Likewise.
6011 (grub_file_filter_disable): Likewise.
6012 (grub_file_filter_disable_compression): Likewise.
6013 * include/grub/gzio.h: Removed.
6015 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6017 Filename expansion support for wildcards in GRUB script.
6019 * tests/grub_script_expansion.in: New test.
6020 * Makefile.util.def: Rule for new test.
6022 * grub-core/commands/wildcard.c: New file, implements filename
6023 expansion support for GRUB script.
6024 * grub-core/Makefile.core.def: Rule update for regexp.mod.
6025 * grub-core/script/argv.c: Cosmetic changes.
6026 * grub-core/script/execute.c (grub_script_arglist_to_argv):
6027 Refactored to perform wildcard expansion on arguments.
6028 * include/grub/script_sh.h (grub_script_wildcard_translator): New
6031 * tests/util/grub-shell.in: Fix quoting for read input.
6033 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6035 Support for updating environment variables with matched substrings
6038 * tests/grub_cmd_regexp.in: New test.
6039 * Makefile.util.def: Rule for new test.
6041 * grub-core/commands/regexp.c: New option -s to update environment
6042 variables with regexp matches.
6044 2010-09-04 Szymon Janc <szymon@janc.net.pl>
6046 * include/grub/file.h (grub_file): New member not_easly_seekable.
6047 (grub_file_seekable): New inline function.
6048 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
6050 (grub_gzio_open): Set not_easly_seekable.
6051 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
6052 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
6054 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6056 Support for options to appear multiple times on cmdline.
6058 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
6059 * grub-core/commands/extcmd.c: Support for repeatable option.
6060 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
6061 repeatable option support.
6063 Refactor menuentry into a regular command.
6065 * grub-core/commands/menuentry.c: New file, menuentry command
6067 * grub-core/Makefile.core.def: Rule update for normal.mod.
6068 * grub-core/normal/main.c: Moved menuentry creation to
6069 grub-core/commands/menuentry.c.
6070 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
6071 (grub_menu_execute_entry_real): Removed.
6072 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
6074 (grub_script_execute_menuentry): Removed.
6075 * grub-core/script/parser.y (menuentry): Removed.
6076 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
6077 * grub-core/script/yylex.l (menuentry): Removed.
6078 * include/grub/menu.h (grub_menu_init): New prototype.
6079 (grub_menu_fini): New prototype.
6080 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
6081 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
6082 (grub_script_execute_sourcecode): New prototype.
6084 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6086 "return" command for GRUB script functions.
6088 * tests/grub_script_return.in: New test.
6089 * Makefile.util.def: Rules for new test.
6091 * grub-core/script/execute.c (grub_script_return): New function.
6092 * grub-core/script/main.c: Register/unregister return commaond.
6093 * include/grub/script_sh.h (grub_script_return): New prototype.
6095 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6097 "setparams" command to update positional parameters.
6099 * tests/grub_script_setparams.in: New test.
6100 * Makefile.util.def: Rules for new test.
6102 * grub-core/script/argv.c (grub_script_argv_make): New function.
6103 * grub-core/script/execute.c (replace_scope): New function.
6104 (grub_script_setparams): New function.
6105 * grub-core/script/lexer.c: Remove unused variables.
6106 * grub-core/script/main.c: Register/unregister setparams command.
6107 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
6108 (grub_script_setparams): New prototype.
6110 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6112 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
6115 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6117 Support for passing block of commands as an argument to extcmds.
6119 * Makefile.util.def: Rules for new test.
6120 * tests/grub_script_blockarg.in: New test.
6121 * grub-core/tests/test_blockarg.c: New file, block argument
6122 command used in the test.
6124 * include/grub/extcmd.h (grub_extcmd_context): New struct.
6125 (grub_register_extcmd_prio): New function prototype.
6126 (grub_extcmd_dispatcher): New function prototype.
6127 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
6129 * include/grub/script_sh.h (struct grub_script): New members
6130 `children', `next_siblings' and `refcnt' for block arguments and
6132 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
6133 (grub_script_arg): New member `script' for block argument.
6134 (grub_script_argv): New member `script' for block argument.
6135 (grub_parser_param): New member `scripts' for block argument.
6136 (grub_script_mem_free): New extern function prototype.
6137 (grub_script_ref): New function prototype.
6138 (grub_script_unref): New function prototype.
6140 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
6141 extcmd form to support block arguments.
6142 * grub-core/script/argv.c: Block arguments support.
6143 * grub-core/script/execute.c: Likewise.
6144 * grub-core/script/lexer.c: Likewise.
6145 * grub-core/script/main.c: Likewise.
6146 * grub-core/script/script.c: Likewise.
6147 * grub-core/script/parser.y: Likewise. New `block' and `block0'
6150 * grub-core/commands/acpi.c: Update extcmd implementations with
6151 grub_extcmd_context_t.
6152 * grub-core/commands/cat.c: Likewise.
6153 * grub-core/commands/echo.c: Likewise.
6154 * grub-core/commands/extcmd.c: Likewise.
6155 * grub-core/commands/hashsum.c: Likewise.
6156 * grub-core/commands/hdparm.c: Likewise.
6157 * grub-core/commands/help.c: Likewise.
6158 * grub-core/commands/hexdump.c: Likewise.
6159 * grub-core/commands/i386/cpuid.c: Likewise.
6160 * grub-core/commands/i386/pc/drivemap.c: Likewise.
6161 * grub-core/commands/i386/pc/halt.c: Likewise.
6162 * grub-core/commands/i386/pc/sendkey.c: Likewise.
6163 * grub-core/commands/iorw.c: Likewise.
6164 * grub-core/commands/keystatus.c: Likewise.
6165 * grub-core/commands/loadenv.c: Likewise.
6166 * grub-core/commands/ls.c: Likewise.
6167 * grub-core/commands/lspci.c: Likewise.
6168 * grub-core/commands/memrw.c: Likewise.
6169 * grub-core/commands/probe.c: Likewise.
6170 * grub-core/commands/search_wrap.c: Likewise.
6171 * grub-core/commands/setpci.c: Likewise.
6172 * grub-core/commands/sleep.c: Likewise.
6173 * grub-core/disk/loopback.c: Likewise.
6174 * grub-core/hello/hello.c: Likewise.
6175 * grub-core/loader/i386/bsd.c: Likewise.
6176 * grub-core/loader/xnu.c: Likewise.
6177 * grub-core/term/gfxterm.c: Likewise.
6178 * grub-core/term/serial.c: Likewise.
6179 * grub-core/tests/lib/functional_test.c: Likewise.
6181 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6183 Multi-line quoted strings support.
6185 * grub-core/script/lexer.c (append_newline): Removed.
6186 (grub_script_lexer_yywrap): Refactored.
6187 (grub_script_lexer_init): Refactored.
6188 * grub-core/script/yylex.l (yywrap): New function.
6189 (grub_lexer_resplit): New function.
6190 (grub_lexer_unput): New function.
6191 * include/grub/script_sh.h (grub_lexer_param): New members, unput
6193 * tests/grub_script_echo1.in: Added few more testcases.
6195 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
6197 * grub-core/kern/misc.c: Don't add abort alias in utils.
6198 Reported by: echoline.
6200 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
6202 Add missing files into "make dist" tarball for other platforms.
6204 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
6205 * conf/Makefile.common (dist_noinst_DATA): New variable.
6206 * conf/Makefile.extra-dist: Added missing make dist files.
6207 * grub-core/Makefile.core.def: Likewise.
6209 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
6211 Compress grub_prefix.
6213 * grub-core/boot/i386/pc/lnxboot.S: Use
6214 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
6215 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
6216 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
6217 GRUB_MACHINE_PREFIX_END. All users updated.
6218 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
6219 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
6221 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
6222 * util/grub-mkimage.c (image_target_desc): Change data_end to
6223 prefix_end. All users updated.
6225 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
6227 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
6229 (grub_openbsd_boot): Likewise.
6230 (grub_netbsd_boot): Likewise.
6231 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
6232 (grub_xnu_boot): Likewise.
6234 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
6236 * configure.ac: Clean LIBS variable after tests.
6238 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
6240 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
6242 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
6244 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
6245 echo if libdevmapper will be used.
6247 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
6249 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
6250 constant for the same file.
6252 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
6254 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
6256 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
6258 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
6261 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
6263 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
6264 required by the boot protocol.
6266 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
6267 ebp and edi members.
6268 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
6269 state.ebp and state.edi.
6270 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
6271 %ebp and %edi according to grub_relocator32_ebp and
6272 grub_relocator32_edi respectively.
6273 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
6276 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
6278 Add i386-pc-pxe image target.
6280 * util/grub-mkimage.c (image_target_desc): New enum value
6282 (image_targets): New target i386-pc-pxe.
6283 (generate_image): Handle i386-pc-pxe image.
6285 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
6289 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
6290 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
6292 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
6293 (grub_pxe_pxenv): Correct type.
6295 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
6297 * NEWS: Document most of the important changes since 1.98.
6299 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
6301 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
6302 generated manual page) a little.
6304 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
6306 * docs/grub.texi: Add myself as an author.
6308 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
6310 * Makefile.util.def (libgrub.a): Add missing sunpc.
6311 Reported by: Seth Goldberg.
6313 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6315 Interrupt wrapping and code simplifications.
6317 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
6318 x86_noieee1275 which are functionaly equivalent in this case.
6319 (grub-install): Make source on each platform explicit. Enable on
6321 * gentpl.py (x86_efi_pc): Removed group.
6322 (x86_noefi): Likewise.
6323 (i386_noefi): Likewise.
6324 (x86_noieee1275): Likewise.
6325 (i386_noieee1275): Likewise.
6326 (i386_noefi_noieee1275): Likewise.
6327 (i386_pc_qemu_coreboot): Likewise.
6328 (i386_coreboot_multiboot): Likewise.
6329 (i386_pc_coreboot_multiboot_qemu): Likewise.
6330 (x86_noefi_mips): Likewise.
6331 (noieee1275): Likewise.
6332 (ieee1275_mips): Likewise.
6333 (noemu_noieee1275): Likewise.
6336 (videoinkernel): Likewise.
6337 (videomodules): Likewise.
6338 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
6339 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
6340 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
6341 include/grub/loader.h, include/grub/msdos_partition.h,
6342 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
6343 include/grub/machine/console.h, include/grub/machine/vga.h,
6344 include/grub/machine/vbe.h, include/grub/machine/init.h,
6345 include/grub/machine/kernel.h, include/grub/cpu/time.h,
6346 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
6347 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
6348 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
6349 * grub-core/Makefile.core.def (kernel): Explicit the source for
6350 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
6351 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
6352 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
6353 Use videoinkernel tag.
6354 (usb): Enable on all usb.
6355 (usbserial_common): Likewise.
6356 (usbserial_pl2303): Likewise.
6357 (usbserial_ftdi): Likewise.
6358 (uhci): Enable on all x86.
6359 (ohci): Enable on all pci.
6360 (cmostest): Enable on all CMOS.
6361 (acpi): Include commands/acpi.c on all platforms.
6362 (halt): Add relevant lib/*/halt.c.
6363 (hdparm): Enable on all pci.
6365 (usbtest): Enable on all usb.
6366 (ata): Enable on all pci.
6367 (ata_pthru): Likewise.
6368 (usbms): Enable on all usb.
6369 (usb_keyboard): Likewise.
6370 (font): Use tag videomodules.
6372 (datetime): Use tag cmos. Enable on all noemu.
6373 (mmap): Use tags common and x86.
6374 (gfxterm): Use tag videomodules.
6376 (bitmap_scale): Likewise.
6377 (video_fb): Likewise.
6379 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
6380 adjust padding accordingly. All users updated.
6381 (grub_ohci_transaction): Fix bad format specification.
6382 (GRUB_MOD_INIT): Add asserts for struct size.
6383 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
6384 (grub_alloc_td): Likewise.
6385 (grub_free_queue): Likewise.
6386 (grub_uhci_transfer): Likewise.
6387 (grub_uhci_transaction): Fix bad format specification.
6388 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
6389 (grub_usb_bulk_readwrite): Likewise.
6390 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
6391 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
6393 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
6395 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
6396 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
6398 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
6400 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
6401 ... here. Transformed into C. Made static.
6402 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
6404 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
6405 ... here. Transformed into C. Made static.
6406 * grub-core/kern/i386/pc/startup.S
6407 (grub_biosdisk_check_int13_extensions): Moved from here ...
6408 * grub-core/disk/i386/pc/biosdisk.c
6409 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
6411 * grub-core/kern/i386/pc/startup.S
6412 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
6413 * grub-core/disk/i386/pc/biosdisk.c
6414 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
6415 Transformed into C. Made static.
6416 * grub-core/kern/i386/pc/startup.S
6417 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
6418 * grub-core/disk/i386/pc/biosdisk.c
6419 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
6420 Transformed into C. Made static.
6421 * grub-core/kern/i386/pc/startup.S
6422 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
6423 * grub-core/disk/i386/pc/biosdisk.c
6424 (grub_biosdisk_get_diskinfo_standard): ... here.
6425 Transformed into C. Made static.
6426 * grub-core/kern/i386/pc/startup.S
6427 (grub_biosdisk_get_num_floppies): Moved from here ...
6428 * grub-core/disk/i386/pc/biosdisk.c
6429 (grub_biosdisk_get_num_floppies): ... here.
6430 Transformed into C. Made static.
6431 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
6433 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
6434 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
6435 Transformed into C. Made static.
6436 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
6437 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
6438 Transformed into C. Made static.
6439 * grub-core/kern/i386/ieee1275/init.c: Removed.
6440 * grub-core/kern/i386/misc.S: Likewise.
6441 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
6442 Splitted from here ...
6443 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
6444 Transformed into C. Made static. All users updated.
6445 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
6446 Transformed into C. Made static. All users updated.
6447 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
6449 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
6450 Transformed into C. Made static. All users updated.
6451 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
6453 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
6454 Transformed into C. Made static. All users updated.
6455 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
6456 Removed (replaced by C version).
6457 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
6459 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
6460 Transformed into C. Made static.
6461 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
6463 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
6464 ... here. Transformed into C.
6465 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
6467 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
6468 ... here. Transformed into C.
6469 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
6471 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
6472 ... here. Transformed into C. Made static.
6473 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
6475 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
6476 ... here. Transformed into C.
6477 * grub-core/kern/i386/pc/startup.S
6478 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
6479 * grub-core/video/i386/pc/vbe.c
6480 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
6481 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
6483 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
6484 ... here. Transformed into C.
6485 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
6487 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
6488 ... here. Transformed into C.
6489 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
6491 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
6492 ... here. Transformed into C.
6493 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
6495 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
6496 ... here. Transformed into C.
6497 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
6499 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
6500 ... here. Transformed into C. Made static.
6501 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
6503 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
6504 ... here. Transformed into C. Made static.
6505 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
6507 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
6508 ... here. Transformed into C. Made static.
6509 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
6510 pxe_rm_entry as third argument.
6511 (grub_bios_interrupt): New function.
6512 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
6513 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
6514 of calling grub_stop.
6515 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
6516 * grub-core/lib/efi/halt.c (grub_halt): ...here.
6517 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
6518 * grub-core/lib/emu/halt.c (grub_halt): ... here.
6519 * grub-core/lib/i386/halt.c: Moved from here ...
6520 * grub-core/lib/i386/halt.c: ... here.
6521 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
6522 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
6523 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
6525 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
6526 * include/grub/i386/coreboot/init.h: Removed.
6527 * include/grub/i386/multiboot/init.h: Likewise.
6528 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
6529 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
6530 * include/grub/i386/pc/int.h: New file.
6531 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
6532 (grub_pxe_scan): Removed.
6533 (grub_pxe_call): Update prototype.
6534 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
6536 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
6537 * include/grub/i386/qemu/init.h: Removed.
6538 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
6540 (grub_halt): Likewise.
6541 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
6542 (grub_reboot): Likewise.
6543 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
6544 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
6545 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
6547 2010-08-30 Robert Millan <rmh@gnu.org>
6549 * NEWS: Document addition of ZFS support in `grub-install' and
6552 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
6554 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
6557 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6559 Remove leftover embedding of font objects.
6561 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
6562 * util/grub-install.in (font): Removed.
6563 * util/grub-mkimage.c (generate_image): Remove font support. All users
6566 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6568 Remove leftover embedding of font objects.
6570 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
6571 * util/grub-install.in (font): Removed.
6572 * util/grub-mkimage.c (generate_image): Remove font support. All users
6575 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6577 * docs/grub.texi (Network): Fix reference to pxe_blksize.
6578 Reported by: Ian Turner
6580 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6582 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
6583 timeout to avoid indefinite boot stalling.
6585 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6587 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
6588 (grub_env_write_color_highlight): Likewise.
6590 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6592 * grub-core/normal/term.c (print_more): Return to normal and not
6593 to standard state after printing "---MORE---".
6595 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6597 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
6598 Mask out the bit 0x80 since it has other meaning that specifiing color.
6600 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6602 New relocator. Allows for more kernel support and more straightforward
6605 * Makefile.am (BOOTTARGET): New variable.
6607 (linux.init.x86_64): New target.
6608 (linux.init.i386): Likewise.
6609 (multiboot.elf): Likewise.
6610 (kfreebsd.elf): Likewise.
6611 (kfreebsd.aout): Likewise.
6612 (pc-chainloader.elf): Likewise.
6613 (pc-chainloader.bin): Likewise.
6614 (ntldr.elf): Likewise.
6615 (ntldr.bin): Likewise.
6616 (multiboot2.elf): Likewise.
6617 (kfreebsd.init.x86_64): Likewise.
6618 (kfreebsd.init.i386): Likewise.
6619 (knetbsd.init.i386): Likewise.
6620 (kopenbsd.init.i386): Likewise.
6621 (knetbsd.init.x86_64): Likewise.
6622 (kopenbsd.init.x86_64): Likewise.
6623 (linux-initramfs.i386): Likewise.
6624 (linux-initramfs.x86_64): Likewise.
6625 (kfreebsd-mfsroot.i386.img): Likewise.
6626 (knetbsd.image.i386): Likewise.
6627 (kopenbsd.image.i386): Likewise.
6628 (kopenbsd.image.x86_64): Likewise.
6629 (knetbsd.miniroot-image.i386.img): Likewise.
6630 (kfreebsd-mfsroot.x86_64.img): Likewise.
6631 (knetbsd.image.x86_64): Likewise.
6632 (knetbsd.miniroot-image.x86_64.img): Likewise.
6633 (kfreebsd-mfsroot.i386.gz): Likewise.
6634 (bootcheck-kfreebsd-i386): Likewise.
6635 (kfreebsd-mfsroot.x86_64.gz): Likewise.
6636 (bootcheck-kfreebsd-x86_64): Likewise.
6637 (knetbsd.miniroot-image.i386.gz): Likewise.
6638 (bootcheck-knetbsd-i386): Likewise.
6639 (bootcheck-kopenbsd-i386): Likewise.
6640 (bootcheck-kopenbsd-x86_64): Likewise.
6641 (knetbsd.miniroot-image.x86_64.gz): Likewise.
6642 (bootcheck-knetbsd-x86_64): Likewise.
6643 (bootcheck-linux-i386): Likewise.
6644 (bootcheck-linux-x86_64): Likewise.
6645 (bootcheck-linux16-i386): Likewise.
6646 (bootcheck-linux16-x86_64): Likewise.
6647 (bootcheck-multiboot): Likewise.
6648 (bootcheck-multiboot2): Likewise.
6649 (bootcheck-kfreebsd-aout): Likewise.
6650 (bootcheck-pc-chainloader): Likewise.
6651 (bootcheck-ntldr): Likewise.
6652 (CLEANFILES): Add new targets.
6653 (BOOTCHECKS): New variable.
6654 (.PHONY): Add bootchecks.
6655 (SUCCESSFUL_BOOT_STRING): New variable.
6656 (BOOTCHECK_TIMEOUT): Likewise.
6657 (bootcheck): New target
6658 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
6659 * configure.ac: Correct efiemu excuse.
6660 * docs/grub.texi (Supported kernels): New chapter.
6661 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
6662 include/grub/mm_private.h. Simplify inclusion of
6663 include/grub/boot.h, include/grub/loader.h
6664 and include/grub/msdos_partition.h
6665 (KERNEL_HEADER_FILES) [i386_coreboot]:
6666 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
6667 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
6668 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
6669 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
6670 include/grub/machine/loader.h.
6671 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
6672 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
6674 (pci.mod): Enable on i386-multiboot.
6675 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
6676 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
6678 (relocator.mod): Rewritten.
6679 (aout.mod): Enable on all x86.
6680 (bsd.mod): Likewise.
6681 (ntldr.mod): New module.
6682 (linux.mod): Use loader/i386/linux.c on all x86.
6683 (xnu.mod): Enable on all x86.
6684 (vga_text.mod): disable on EFI and QEMU.
6685 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
6686 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
6687 * grub-core/efiemu/loadcore.c: Likewise.
6688 * grub-core/efiemu/main.c: Likewise.
6689 (grub_efiemu_exit_boot_services): Removed.
6690 (grub_efiemu_finish_boot_services): Likewise.
6691 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
6693 * grub-core/efiemu/i386/nocfgtables.c: New file.
6694 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
6695 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
6696 (grub_efi_finish_boot_services): Moved from here ...
6697 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
6698 Fille finish memory map and related data.
6699 (finish_mmap_buf): New variable.
6700 (grub_efi_uintn_t finish_mmap_size): Likewise.
6701 (grub_efi_uintn_t finish_key): Likewise.
6702 (grub_efi_uintn_t finish_desc_size): Likewise.
6703 (grub_efi_uint32_t finish_desc_version): Likewise.
6704 (grub_efi_is_finished): Likewise.
6705 (grub_efi_get_memory_map): Use saved memory map if EFI is already
6707 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
6708 (grub_elf64_phdr_iterate): Likewise.
6709 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
6710 (grub_os_area_size): Likewise.
6711 (grub_machine_init): Don't reserve os area.
6712 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
6713 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
6714 * grub-core/kern/i386/loader.S: Removed.
6715 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
6716 (grub_os_area_size): Likewise.
6717 (grub_machine_init): Don't reserve os area.
6718 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
6719 Don't call grub_dl_unload_all.
6720 Don't include loader.S.
6721 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
6722 Declare the memory after _end as available.
6723 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
6724 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
6725 (GRUB_MM_ALLOC_MAGIC): Moved from here...
6726 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
6727 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
6728 * include/grub/mm_private.h (grub_mm_header): ... here.
6729 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
6730 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
6731 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
6732 (grub_mm_region): ..here. Removed addr. Added pre_size.
6734 * grub-core/kern/mm.c (base): Renamed to ...
6735 (grub_mm_base): ... this. Made global.
6736 (grub_real_malloc): Alloc from end of region.
6737 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
6738 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
6739 * grub-core/kern/powerpc/cache_flush.S: ... here.
6740 * grub-core/lib/efi/relocator.c: New file.
6741 * grub-core/lib/i386/relocator.c: Rewritten.
6742 * grub-core/lib/i386/relocator16.S: New file.
6743 * grub-core/lib/i386/relocator32.S: Likewise.
6744 * grub-core/lib/i386/relocator64.S: Likewise.
6745 * grub-core/lib/i386/relocator_asm.S: Rewritten.
6746 * grub-core/lib/i386/relocator_common.S: New file.
6747 * grub-core/lib/ieee1275/relocator.c: Likewise.
6748 * grub-core/lib/mips/relocator.c: Rewritten.
6749 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
6750 stylistic adjustments.
6751 * grub-core/lib/powerpc/relocator.c: New file.
6752 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
6753 * grub-core/lib/relocator.c: Rewritten.
6754 * grub-core/lib/x86_64/relocator_asm.S: New file.
6755 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
6756 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
6757 (bsd_tag): New struct.
6758 (tags): New variable.
6759 (tags_last): Likewise.
6760 (netbsd_module): New struct.
6761 (netbsd_mods): New variable.
6762 (netbsd_mods_last): Likewise.
6763 (openbsd_opts): New parameter "serial".
6764 (OPENBSD_SERIAL_ARG): New definition.
6765 (netbsd_opts): New parameter "serial".
6766 (NETBSD_SERIAL_ARG): New definition.
6767 (grub_freebsd_add_meta): Reorganised into ...
6768 (grub_bsd_add_meta): ...this. All users updated.
6769 (grub_freebsd_add_mmap): Reorganised into ...
6770 (generate_e820_mmap): ...this...
6771 (grub_bsd_add_mmap): ...and this. All users updated.
6772 (grub_freebsd_list_modules): Use tags.
6773 (grub_netbsd_add_meta_module): New function.
6774 (grub_netbsd_list_modules): Likewise.
6775 (grub_freebsd_boot): Use relocator and finish EFI.
6776 (grub_openbsd_boot): Likewise.
6777 (grub_netbsd_setup_video): New function.
6778 (grub_netbsd_add_modules): Likewise.
6779 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
6781 (grub_bsd_unload): Unload tags.
6782 (grub_bsd_load_aout): Use relocator.
6783 (grub_bsd_elf32_size_hook): New function.
6784 (grub_bsd_elf32_hook): Use relocator.
6785 (grub_bsd_elf64_size_hook): New function.
6786 (grub_bsd_elf64_hook): Use relocator.
6787 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
6788 (grub_bsd_load): Zero-out openbsd_ramdisk.
6789 (grub_bsd_load): Use relocator.
6790 (grub_cmd_openbsd): Support serial.
6791 (grub_cmd_netbsd): Support modules.
6792 (grub_cmd_freebsd_module): Use relocator.
6793 (grub_netbsd_module_load): New function.
6794 (grub_cmd_netbsd_module): Likewise.
6795 (grub_cmd_openbsd_ramdisk): Likewise.
6796 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
6798 (GRUB_MOD_FINI): Unregister new commands.
6799 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
6800 (grub_freebsd_load_elfmodule_obj): Use relocator.
6801 (grub_freebsd_load_elfmodule): Likewise.
6802 (grub_freebsd_load_elf_meta): Likewise.
6803 (grub_netbsd_load_elf_meta): New function.
6804 (grub_openbsd_find_ramdisk): Likewise.
6805 * grub-core/loader/i386/bsd_helper.S: Removed.
6806 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
6807 * grub-core/loader/i386/bsd_trampoline.S: Removed.
6808 * grub-core/loader/i386/efi/linux.c: Likewise.
6809 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
6810 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
6811 (DEFAULT_VIDEO_MODE): Likewise.
6812 (real_mode_target): New variable.
6813 (prot_mode_target): Likewise.
6814 (initrd_mem_target): Likewise.
6815 (relocator): Likewise.
6816 (efi_mmap_buf): Likewise.
6817 (efi_mmap_size): Likewise.
6818 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
6819 (free_pages): Use relocator.
6820 (allocate_pages): Account for efi_mmap and use relocator. Return error.
6821 (grub_linux_setup_video): Return error.
6822 (grub_linux_trampoline_start): Removed.
6823 (grub_linux_trampoline_end): Likewise.
6824 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
6825 andd video parameters depending on firmware.
6826 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
6827 [GRUB_MACHINE_EFI]: Pass EFI parameters.
6828 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
6829 (grub_cmd_initrd): Use relocator.
6830 * grub-core/loader/i386/linux_trampoline.S: Removed.
6831 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
6832 (elf_sec_entsize): Likewise.
6833 (elf_sec_shstrndx): Likewise.
6834 (elf_sections): Likewise.
6835 (grub_multiboot_load): Use relocator.
6836 (grub_multiboot_get_mbi_size): Account for sections.
6837 (grub_multiboot_make_mbi): Use relocator and support sections.
6838 (grub_multiboot_add_elfsyms): New function.
6839 (grub_multiboot_free_mbi): Free sections.
6840 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
6841 (grub_linux_real_target): Likewise.
6842 (grub_linux_real_chunk): Likewise.
6843 (grub_linux16_prot_size): Likewise.
6844 (grub_linux16_boot): Use relocator.
6845 (grub_linux_unload): Unload relocator.
6846 (grub_cmd_linux): Use relocator.
6847 (grub_cmd_initrd): Likewise.
6848 * grub-core/loader/i386/pc/ntldr.c: New file.
6849 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
6850 Don't try to guess CPU frequency.
6851 (grub_xnu_set_video): Stretch bitmap.
6852 (grub_xnu_boot): Use relocator.
6853 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
6854 (grub_linux_unload): Free relocator.
6855 (grub_linux_load32): Use relocator.
6856 (grub_linux_load64): Likewise.
6857 (grub_cmd_initrd): Likewise.
6858 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
6859 (grub_multiboot_unload): Unload relocator.
6860 (grub_cmd_multiboot): Use relocator.
6861 (grub_cmd_module): Likewise.
6862 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
6863 Use relocator and support sections.
6864 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
6865 (elf_sec_entsize): Likewise.
6866 (elf_sec_shstrndx): Likewise.
6867 (elf_sections): Likewise.
6868 (grub_multiboot_load): Use relocator.
6869 (grub_multiboot_get_mbi_size): Account for sections.
6870 (grub_multiboot_make_mbi): Use relocator and support sections.
6871 (grub_multiboot_add_elfsyms): New function.
6872 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
6873 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
6874 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
6875 Prototype changed. All users updated.
6876 (grub_xnu_align_heap): Simplified.
6877 (grub_xnu_writetree_toheap): Likewise.
6878 (grub_xnu_unload): Unload relocator.
6879 (grub_cmd_xnu_kernel): Use relocator.
6880 (grub_cmd_xnu_kernel64): Likewise.
6881 (grub_xnu_register_memory): Simplified.
6882 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
6883 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
6885 (grub_console_checkkey): Likewise.
6886 (grub_console_getkey): Likewise.
6887 (grub_console_getwh): Likewise.
6888 (grub_console_getxy): Likewise.
6889 (grub_console_gotoxy): Likewise.
6890 (grub_console_cls): Likewise.
6891 (grub_console_setcolorstate): Likewise.
6892 (grub_console_setcursor): Likewise.
6893 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
6894 * grub-core/tests/boot/kbsd.init-i386.S: New file.
6895 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
6896 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
6897 * grub-core/tests/boot/kernel-8086.S: Likewise.
6898 * grub-core/tests/boot/kernel-i386.S: Likewise.
6899 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
6900 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
6901 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
6902 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
6903 * grub-core/tests/boot/knetbsd.cfg: Likewise.
6904 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
6905 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
6906 * grub-core/tests/boot/linux.cfg: Likewise.
6907 * grub-core/tests/boot/linux.init-i386.S: Likewise.
6908 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
6909 * grub-core/tests/boot/linux16.cfg: Likewise.
6910 * grub-core/tests/boot/multiboot.cfg: Likewise.
6911 * grub-core/tests/boot/multiboot2.cfg: Likewise.
6912 * grub-core/tests/boot/ntldr.cfg: Likewise.
6913 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
6914 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
6915 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
6917 * include/grub/dl.h (grub_dl_unload_all): Removed.
6918 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
6919 (grub_efi_finish_boot_services): Change prototype.
6920 (grub_efi_is_finished): New variable.
6921 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
6923 (grub_efiemu_finish_boot_services): Removed.
6924 (grub_machine_efiemu_init_tables): New prototype.
6925 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
6926 (grub_elf64_phdr_iterate): Likewise.
6927 * include/grub/i386/bsd.h: Include relocator.h.
6928 (freebsd_tag_header): New struct.
6929 (grub_openbsd_bios_mmap): Removed.
6930 (grub_unix_real_boot): Removed.
6931 (grub_freebsd_load_elfmodule32): Changed prototype.
6932 (grub_freebsd_load_elfmodule_obj64): Likewise.
6933 (grub_freebsd_load_elf_meta32): Likewise.
6934 (grub_freebsd_load_elf_meta64): Likewise.
6935 (grub_freebsd_add_meta): Removed.
6936 (grub_netbsd_load_elf_meta32): New prototype.
6937 (grub_netbsd_load_elf_meta64): Likewise.
6938 (grub_bsd_add_meta): Likewise.
6939 (grub_openbsd_ramdisk_descriptor): New struct.
6940 (grub_openbsd_find_ramdisk32): New prototype.
6941 (grub_openbsd_find_ramdisk64): Likewise.
6942 * include/grub/i386/coreboot/loader.h: Removed.
6943 * include/grub/i386/efi/loader.h: Likewise.
6944 * include/grub/i386/ieee1275/loader.h: Likewise.
6945 * include/grub/i386/linux.h (linux_kernel_header): Change void *
6947 * include/grub/i386/loader.h: Removed.
6948 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
6950 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
6951 (grub_phys_addr_t): New type.
6952 (grub_vtop): New inline function.
6953 (grub_map_memory): Likewise.
6954 (grub_unmap_memory): Likewise.
6955 * include/grub/i386/multiboot/loader.h: Removed.
6956 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
6957 (NETBSD_BTINFO_CONSOLE): New definition.
6958 (NETBSD_BTINFO_SYMTAB): Likewise.
6959 (NETBSD_BTINFO_MODULES): Likewise.
6960 (NETBSD_BTINFO_FRAMEBUF): Likewise.
6961 (grub_netbsd_bootinfo): New struct.
6962 (grub_netbsd_btinfo_common): Use explicit bitsize.
6963 (grub_netbsd_btinfo_mmap_entry): Removed.
6964 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
6965 (grub_netbsd_btinfo_bootdisk): New struct.
6966 (grub_netbsd_btinfo_symtab): Likewise.
6967 (grub_netbsd_btinfo_serial): Likewise.
6968 (grub_netbsd_btinfo_modules): Likewise.
6969 (grub_netbsd_btinfo_framebuf): Likewise.
6970 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
6971 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
6973 (grub_openbsd_bootargs): Use explicit bitsize.
6974 (grub_openbsd_bootarg_console): New struct.
6975 (GRUB_OPENBSD_COM_MAJOR): New definition.
6976 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
6977 * include/grub/i386/pc/efiemu.h: Removed.
6978 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
6979 * include/grub/i386/qemu/loader.h: Removed.
6980 * include/grub/i386/relocator.h: Rewritten.
6981 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
6982 * include/grub/mips/memory.h: New file.
6983 * include/grub/mips/multiboot.h: Rewritten.
6984 * include/grub/mips/relocator.h: Rewritten.
6985 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
6986 (grub_vtop): New function.
6987 (grub_map_memory): Likewise.
6988 (grub_unmap_memory): Likewise.
6989 * include/grub/misc.h (ALIGN_DOWN): New definition.
6990 * include/grub/mm.h (grub_mm_check_real): New proto.
6991 (GRUB_MM_CHECK): New definition.
6992 * include/grub/mm_private.h: New file.
6993 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
6994 (grub_multiboot_get_mbi_size): Removed.
6995 (grub_multiboot_make_mbi): Change prottype.
6996 (grub_multiboot_set_accepts_video): New proto.
6997 (grub_multiboot_add_elfsyms): Likewise.
6998 (grub_multiboot_payload_eip): New variable.
6999 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
7001 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
7003 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
7004 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
7005 * include/grub/powerpc/ieee1275/loader.h: Removed.
7006 * include/grub/powerpc/memory.h: New file.
7007 * include/grub/powerpc/relocator.h: Likewise.
7008 * include/grub/relocator.h: Likewise.
7009 * include/grub/relocator_private.h: Likewise.
7010 * include/grub/sparc64/ieee1275/loader.h: Removed.
7011 * include/grub/x86_64/memory.h: New file.
7012 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
7013 (grub_xnu_heap_malloc): Likewise.
7014 (grub_xnu_heap_real_start): Removed.
7015 (grub_xnu_heap_start): Likewise.
7016 (grub_xnu_relocator): New variable.
7017 (grub_xnu_heap_target_start): Likewise.
7018 * tests/util/grub-shell.in: Support non-pc.
7019 * util/grub-mkimage.c (image_targets): Fix multiboot target.
7021 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
7023 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
7025 (grub_bidi_logical_to_visual): Check that malloc succeded.
7026 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
7028 (grub_xputs_normal): Likewise.
7030 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
7032 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
7035 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
7037 * grub-core/efiemu/runtime/efiemu.sh: Removed.
7039 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
7041 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
7043 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
7045 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
7048 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
7050 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
7052 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7054 * grub-core/normal/term.c (print_more): Fix a memory leak.
7055 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
7056 (grub_xputs_normal): Likewise.
7058 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7060 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
7061 the begining of the string
7063 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7065 * grub-core/script/script.c (grub_script_parse): Free parsed on
7068 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7070 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
7073 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7075 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
7078 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7080 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
7081 (scroll_up): Fix a memory leak.
7083 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7085 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
7088 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
7090 Handle USB pendrives exposed as floppies.
7092 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
7094 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
7095 Check for partitions on all devices.
7097 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7099 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
7100 (readkey): Likewise.
7102 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
7104 Multiple variable names support to "export" command.
7106 * normal/context.c (grub_cmd_export): "export" command supports
7107 multiple variable names.
7109 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
7111 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
7112 --target=drive output to Mach device name.
7114 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
7116 New Automake based build system for GRUB.
7118 * ABOUT-NLS: New file.
7119 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
7120 in Makefile.util.def file.
7121 * Makefile.util.def: New file. Autogen build definitions file for
7123 * conf/Makefile.common: New file. Common variables for GRUB host
7124 utils and target modules.
7125 * conf/Makefile.extra-dist: New file. Extra files for make dist.
7126 * docs/Makefile.am: New file. Automake file for docs.
7127 * gentpl.py: New file. Python script to generate Autogen
7129 * grub-core/Makefile.am: New file. GRUB target modules' rules
7130 that doesn't fit in Makefile.core.def file.
7131 * grub-core/Makefile.core.def: New file. Autogen build
7132 definitions file for GRUB target modules.
7133 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
7134 specific setjmp.S file.
7135 * po/Makefile.am: New file.
7137 * .bzrignore: New ignores.
7138 * INSTALL: New requirements, without Ruby.
7139 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
7140 * autogen.sh: Updated to invoke autogen as necessary.
7141 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
7142 and defines for Automake conditionals.
7143 * geninit.sh: Refactoring.
7145 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
7147 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
7150 * include/grub/test.h: Fix functional test modules' naming.
7151 * grub-core/tests/example_functional_test.c: Fix test module name.
7153 * util/misc.c: Hosted versions' of grub functions for libgrub.a
7154 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
7155 * util/grub-editenv.c: Likewise.
7156 * util/grub-fstest.c: Likewise.
7157 * util/grub-mkdevicemap.c: Likewise.
7158 * util/grub-mkfont.c: Likewise.
7159 * util/grub-mkimage.c: Likewise.
7160 * util/grub-mkpasswd-pbkdf2.c: Likewise.
7161 * util/grub-probe.c: Likewise.
7162 * util/grub-script-check.c: Likewise.
7163 * util/i386/pc/grub-setup.c: Likewise.
7164 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7166 * tests/util/grub-shell.in: Fix override directory path.
7167 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
7168 * util/import_gcry.py: Create Makefile.gcry.def file instead.
7170 * util/lvm.c: Update #includes.
7171 * util/raid.c: Likewise.
7172 * util/resolve.c: Likewise.
7173 * grub-core/bus/emu/pci.c: Likewise.
7174 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
7175 * grub-core/lib/posix_wrap/string.h: Likewise.
7176 * grub-core/kern/emu/main.c: Likewise.
7178 * grub-core/gensymlist.sh: New file. Script for generating kernel
7180 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
7182 * grub-core/gentrigtables.c: Fix unused variable warnings.
7184 * Makefile.in: Removed.
7185 * conf/any-emu.rmk: Removed.
7186 * conf/common.rmk: Removed.
7187 * conf/i386-coreboot.rmk: Removed.
7188 * conf/i386-efi.rmk: Removed.
7189 * conf/i386-ieee1275.rmk: Removed.
7190 * conf/i386-multiboot.rmk: Removed.
7191 * conf/i386-pc.rmk: Removed.
7192 * conf/i386-qemu.rmk: Removed.
7193 * conf/i386.rmk: Removed.
7194 * conf/mips-yeeloong.rmk: Removed.
7195 * conf/mips.rmk: Removed.
7196 * conf/powerpc-ieee1275.rmk: Removed.
7197 * conf/sparc64-ieee1275.rmk: Removed.
7198 * conf/tests.rmk: Removed.
7199 * conf/x86-efi.rmk: Removed.
7200 * conf/x86_64-efi.rmk: Removed.
7201 * gendistlist.sh: Removed.
7202 * geninitheader.sh: Removed.
7203 * genkernsyms.sh.in: Removed.
7204 * genmk.rb: Removed.
7205 * gensymlist.sh.in: Removed.
7206 * mkinstalldirs: Removed.
7208 * grub-core/boot: ... to here.
7210 * grub-core/bus: ... to here.
7211 * commands: Moved ...
7212 * grub-core/commands: ... to here.
7214 * grub-core/disk: ... to here.
7216 * grub-core/efiemu: ... to here.
7218 * grub-core/font: ... to here.
7220 * grub-core/fs: ... to here.
7221 * gencmdlist.sh: Moved ...
7222 * grub-core/gencmdlist.sh: ... to here.
7223 * genemuinit.sh: Moved ...
7224 * grub-core/genemuinit.sh: ... to here.
7225 * genemuinitheader.sh: Moved ...
7226 * grub-core/genemuinitheader.sh: ... to here.
7227 * genfslist.sh: Moved ...
7228 * grub-core/genfslist.sh: ... to here.
7229 * genhandlerlist.sh: Moved ...
7230 * grub-core/genhandlerlist.sh: ... to here.
7231 * genmoddep.awk: Moved ...
7232 * grub-core/genmoddep.awk: ... to here.
7233 * genmodsrc.sh: Moved ...
7234 * grub-core/genmodsrc.sh: ... to here.
7235 * genpartmaplist.sh: Moved ...
7236 * grub-core/genpartmaplist.sh: ... to here.
7237 * genparttoollist.sh: Moved ...
7238 * grub-core/genparttoollist.sh: ... to here.
7239 * genterminallist.sh: Moved ...
7240 * grub-core/genterminallist.sh: ... to here.
7241 * gentrigtables.c: Moved ...
7242 * grub-core/gentrigtables.c: ... to here.
7243 * genvideolist.sh: Moved ...
7244 * grub-core/genvideolist.sh: ... to here.
7245 * gettext: Moved ...
7246 * grub-core/gettext: ... to here.
7247 * gfxmenu: Moved ...
7248 * grub-core/gfxmenu: ... to here.
7250 * grub-core/gnulib: ... to here.
7252 * grub-core/hello: ... to here.
7254 * grub-core/hook: ... to here.
7256 * grub-core/io: ... to here.
7258 * grub-core/kern: ... to here.
7260 * grub-core/lib: ... to here.
7262 * grub-core/loader: ... to here.
7264 * grub-core/mmap: ... to here.
7266 * grub-core/normal: ... to here.
7267 * partmap: Moved ...
7268 * grub-core/partmap: ... to here.
7269 * parttool: Moved ...
7270 * grub-core/parttool: ... to here.
7272 * grub-core/script: ... to here.
7274 * grub-core/term: ... to here
7275 * tests/example_functional_test.c: Moved ...
7276 * grub-core/tests/example_functional_test.c: ... to here.
7277 * tests/lib/functional_test.c: Moved ...
7278 * grub-core/tests/lib/functional_test.c: ... to here.
7279 * tests/lib/test.c: Moved ...
7280 * grub-core/tests/lib/test.c: ... to here.
7282 * grub-core/video: ... to here.
7284 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
7286 Replace --enable-grub-emu-modules with grub-emu-lite.
7288 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
7291 * include/grub/emu/misc.h (grub_emu_init): New prototype.
7292 * kern/emu/full.c: New file. For grub-emu specific initialization.
7293 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
7294 * kern/emu/main.c: Call initialization function grub_emu_init.
7296 * Makefile.in: Include grub-emu-lite in install.
7297 * commands/parttool.c: Use grub_no_autoload to differentiate
7298 between grub-emu and grub-emu-lite.
7299 * include/grub/misc.h: New variable grub_no_autoload.
7301 * conf/any-emu.rmk: New rules for grub-emu-lite.
7302 * configure.ac: Remove --enable-grub-emu-modules.
7303 * genmk.rb: Cleanup unnecessary rules.
7304 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
7306 * normal/main.c: Don't load list files on grub-emu-lite.
7307 * util/misc.c (grub_arch_sync_caches): Removed.
7309 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
7311 * kern/mips/startup.S (grub_prefix): Update comment to refer to
7312 grub-mkimage rather than grub-mkelfimage.
7313 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
7315 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
7317 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
7318 a key after CapsLock or NumLock. It's just a qemu bug.
7320 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
7322 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
7323 needed by libusb wrapper.
7325 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7327 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
7329 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
7331 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
7332 --nounzip is passed.
7334 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
7336 USB hotunplugging and USB serial support.
7338 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
7339 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
7340 (grub_uhci_transfer): Respect timeout and set *actual.
7341 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
7342 non-standard length.
7343 (grub_usb_device_attach): Autoload modules.
7344 (GRUB_MOD_INIT): Set grub_term_poll_usb.
7345 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
7346 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
7348 (grub_usb_add_hub): Fill nports and children.
7349 (attach_root_port): Receive hub instead of controller.
7350 All users updated. Fill hub->devices.
7351 (grub_usb_root_hub): Allocate hub->devices.
7352 (detach_device): New function.
7353 (poll_nonroot_hub): Fill children and detach devices.
7354 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
7355 actual arguments. All users updated.
7356 (grub_usb_bulk_read_extended): New function.
7357 * bus/usb/serial/common.c: New file.
7358 * bus/usb/serial/ftdi.c: Likewise.
7359 * bus/usb/serial/pl2303.c: Likewise.
7360 * commands/terminal.c (handle_command): Support wildcard.
7361 * commands/usbtest.c: Output "Unknown" instead of empty string.
7362 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
7363 (usbserial_common_mod_SOURCES): New variable.
7364 (usbserial_common_mod_CFLAGS): Likewise.
7365 (usbserial_common_mod_LDFLAGS): Likewise.
7366 (pkglib_MODULES): Add usbserial_pl2303.mod.
7367 (usbserial_pl2303_mod_SOURCES): New variable.
7368 (usbserial_pl2303_mod_CFLAGS): Likewise.
7369 (usbserial_pl2303_mod_LDFLAGS): Likewise.
7370 (pkglib_MODULES): Add usbserial_ftdi.mod.
7371 (usbserial_ftdi_mod_SOURCES): New variable.
7372 (usbserial_ftdi_mod_CFLAGS): Likewise.
7373 (usbserial_ftdi_mod_LDFLAGS): Likewise.
7374 (pkglib_MODULES): Add serial.mod.
7375 (serial_mod_SOURCES): New variable.
7376 (serial_mod_CFLAGS): Likewise.
7377 (serial_mod_LDFLAGS): Likewise.
7378 * conf/i386-pc.rmk: Likewise.
7379 * conf/mips-yeeloong.rmk: Likewise.
7380 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
7381 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
7382 * disk/usbms.c (first_available_slot): New variable.
7383 (grub_usbms_attach): Don't reuse free slots due to potential cache
7385 * include/grub/serial.h: Moved to ..
7386 * include/grub/ns8250.h: ...this.
7387 * include/grub/serial.h: New file.
7388 * include/grub/term.h (grub_term_poll_usb): New variable.
7389 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
7390 readkey. All users updated.
7391 (grub_terminfo_output_state): Pass term to put.
7392 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
7393 (grub_usb_controller_dev): Add timeout and actual arguments to
7394 transfer. All users updated.
7395 (grub_usb_interface): New field detach_data.
7396 (grub_usb_device): New fields children and nports.
7397 (grub_usb_ep_type_t): New type.
7398 (grub_usb_get_ep_type): New function.
7399 (grub_usb_bulk_read_extended): Likewise.
7400 * include/grub/usbdesc.h (grub_usb_desc): New type.
7401 * include/grub/usbserial.h: New file.
7402 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
7403 * kern/term.c (grub_term_poll_usb): New variable.
7404 (grub_getkey): Call grub_term_poll_usb if set.
7405 (grub_checkkey): Likewise.
7406 (grub_getkeystatus): Likewise.
7407 * term/serial.c: Moved controller-specific parts to ...
7408 * term/ns8250.c: ... here.
7409 * term/serial.c: Mostly rewritten.
7410 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
7413 2010-08-20 Robert Millan <rmh@gnu.org>
7415 Make kFreeBSD code more generic to support ext2fs as root, ufs as
7416 a separate module and maybe other interesting combinations.
7418 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
7419 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
7420 (kfreebsd_entry): Add generic filesystem module load routine.
7421 Map GRUB `ext2' to kFreeBSD `ext2fs'.
7423 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
7425 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
7426 "numcenter" (I misunderstood the purpose of this entry).
7427 * docs/grub.texi (sendkey): Likewise.
7429 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
7431 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
7432 status flag options; simply omitting the option is equivalent and
7433 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
7434 (keysym_table): Rename "num5numlock" to "numlock".
7435 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
7436 can uniformly say that only the last of multiple `sendkey'
7437 invocations has any effect.
7438 * docs/grub.texi (sendkey): New section.
7440 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
7442 * commands/i386/pc/sendkey.c (options): Fix three typos.
7444 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
7446 Implement sendkey support.
7448 * commands/i386/pc/sendkey.c: New file.
7449 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
7450 (sendkey_mod_SOURCES): New variable.
7451 (sendkey_mod_CFLAGS): Likewise.
7452 (sendkey_mod_LDFLAGS): Likewise.
7454 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
7456 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
7457 fix warnings from Autoconf.
7459 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
7461 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
7462 to avoid false positives with some assemblers that output things
7463 like "someprefix_func" as part of their output.
7465 2010-08-15 Robert Millan <rmh@gnu.org>
7467 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
7469 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
7470 grub_get_libzfs_handle() errors.
7472 2010-08-14 Robert Millan <rmh@gnu.org>
7474 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
7475 filesystem is not ZFS.
7477 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
7479 Fix for misspelled color names defaulting to black/black (bug
7480 reported by Doug Nazar)
7482 * include/grub/normal.h (grub_parse_color_name_pair): Add return
7483 status to prototype.
7484 * normal/color.c (grub_parse_color_name_pair): Return failure
7486 (grub_env_write_color_normal): Ignore bad color names.
7487 (grub_env_write_color_highlight): Likewise.
7488 * normal/main.c (GRUB_MOD_INIT): Set default color names.
7490 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
7492 "shift" command support to GRUB script.
7494 * include/grub/script_sh.h (grub_script_shift): New prototype.
7495 * script/execute.c (grub_script_shift): New function.
7496 * script/main.c (grub_script_init): Register shift command.
7497 (grub_script_fini): Unregister shift command.
7498 * util/grub-script-check.c (grub_script_cmd_shift): New function.
7500 * tests/grub_script_shift.in: New testcase.
7501 * conf/tests.rmk: Rules for new testcase.
7503 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
7505 "continue" command support to GRUB script.
7507 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
7508 (grub_script_break): Continue support.
7509 * script/main.c (grub_script_init): Register continue command.
7510 (grub_script_fini): Unregister continue command.
7512 * tests/grub_script_continue.in: New testcase.
7513 * conf/tests.rmk: Rules for new testcase.
7515 2010-08-12 BVK Chaitanya <bvk@dbook>
7517 "break" command support to GRUB script.
7519 * conf/common.rmk: Rule updates to grub-script-check.
7520 * include/grub/misc.h (grub_min): New function.
7521 * include/grub/script_sh.h (grub_script_init): New prototype.
7522 (grub_script_fini): New prototype.
7523 (grub_script_break): New prototype.
7524 * script/main.c (grub_script_init): New function.
7525 (grub_script_fini): New function.
7526 * script/execute.c (grub_script_break): New function.
7527 * normal/main.c: Calls to grub_script_{init,fini}.
7528 * util/grub-script-check.c (grub_script_break): New function.
7530 * tests/grub_script_break.in: New testcase.
7531 * conf/tests.rmk: Rules for new test case.
7533 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
7535 Function parameters support to GRUB script.
7537 * script/yylex.l (VARIABLE): Regular expression update.
7538 * script/function.c (grub_script_function_call): Moved ...
7539 * script/execute.c (grub_script_function_call): ... to here.
7540 (grub_script_execute_arglist_to_argv): Removed.
7541 (grub_script_arglist_to_argv): New function.
7542 * script/argv.c: New file.
7543 (grub_script_argv_free): New function.
7544 (grub_script_argv_next): Likewise.
7545 (grub_script_argv_append): Likewise.
7546 (grub_script_argv_split_append): Likewise.
7547 * include/grub/script_sh.h (grub_script_argv): New struct.
7548 (grub_script_argv_free): New function.
7549 (grub_script_argv_next): Likewise.
7550 (grub_script_argv_append): Likewise.
7551 (grub_script_argv_split_append): Likewise.
7553 * conf/common.rmk (normal.mod): New source script/argv.c.
7555 * tests/grub_script_echo1.in: More tests.
7556 * tests/grub_script_vars1.in: Likewise.
7557 * tests/grub_script_functions.in: New test case.
7558 * conf/tests.rmk: Rules for new testcase.
7560 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
7562 Remove grub_script_cmdblock struct.
7564 * include/grub/script_sh.h: Remove grub_script_cmdblock.
7565 * script/parser.y: Likewise.
7566 * script/execute.c: Rename cmdblock suffix to cmdlist.
7567 * script/script.c: Likewise.
7568 * util/grub-script-check.c: Likewise.
7570 2010-08-11 Yves Blusseau <blusseau@zetam.org>
7572 * .bzrignore: add grub-macho2img
7574 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
7576 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
7578 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
7580 Remove the dump of sm712 initialisation sequence.
7582 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
7583 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
7584 (GRUB_VGA_IO_MISC_WRITE): Likewise.
7585 (GRUB_VGA_CR_*): Added many registers.
7586 (GRUB_VGA_SR_*): Likewise.
7587 (GRUB_VGA_GR_*): Likewise.
7588 (grub_vga_write_arx): New function.
7589 (grub_video_hw_config): New struct.
7590 (grub_vga_set_geometry): New function.
7591 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
7592 GRUB_PCI_CLASS_SUBCLASS_VGA.
7593 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
7594 * video/sm712.c (grub_sm712_write_reg): New function
7595 (grub_sm712_read_reg): Likewise.
7596 (grub_sm712_sr_write): Likewise.
7597 (grub_sm712_gr_write): Likewise.
7598 (grub_sm712_cr_write): Likewise.
7599 (grub_sm712_write_arx): Likewise.
7600 (grub_sm712_cr_shadow_write): Likewise.
7601 (grub_sm712_write_dda_lookup): Likewise.
7602 (grub_video_sm712_setup): Initialise the video rather then
7603 blindly replay the dump.
7604 (main) [TEST]: Add a routine to be able to compile as standalone for
7606 * video/sm712_init.c (sm712_init): Removed.
7607 (sm712_sr_seq1): New array.
7608 (sm712_sr_seq2): Likewise.
7610 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
7612 * include/grub/vga.h: Add missing grub/pci.h include.
7614 2010-08-10 Yves Blusseau <blusseau@zetam.org>
7616 * util/grub-macho2img.c (main): fix typo
7618 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
7620 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
7621 (grub_vga_gr_read): Likewise.
7622 (grub_vga_cr_write): Likewise.
7623 (grub_vga_cr_read): Likewise.
7624 (grub_vga_sr_write): Likewise.
7625 (grub_vga_sr_read): Likewise.
7626 (grub_vga_palette_read): Likewise.
7627 (grub_vga_palette_write): Likewise.
7628 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
7629 (grub_sm712_sr_read): New function.
7630 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
7631 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
7633 2010-08-09 Robert Millan <rmh@gnu.org>
7635 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
7636 out unused variables on non-ZFS build.
7638 2010-08-08 Robert Millan <rmh@gnu.org>
7640 Fix path generation for sub-filesystems in ZFS.
7642 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
7645 2010-08-08 Robert Millan <rmh@gnu.org>
7647 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
7649 2010-08-08 Robert Millan <rmh@gnu.org>
7651 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
7652 exist, issue a proper error message (rely on `ls' for translated
7655 2010-08-08 Robert Millan <rmh@gnu.org>
7657 Fix grub-probe invocation.
7659 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
7661 2010-08-04 Robert Millan <rmh@gnu.org>
7663 * configure.ac: Remove checks for getfsstat() and getmntany().
7664 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
7665 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
7666 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
7667 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
7668 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
7670 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
7671 via find_mount_point_from_dir() and getfsstat() / getmntany().
7673 2010-08-04 Robert Millan <rmh@gnu.org>
7675 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7676 (grub_find_zpool_from_mount_point): Merge into ...
7677 (grub_find_zpool_from_dir): ... this.
7678 * kern/emu/misc.c: Likewise.
7681 (grub_make_system_path_relative_to_its_root): Replace
7682 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
7683 with grub_find_zpool_from_dir().
7684 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
7686 2010-08-04 Robert Millan <rmh@gnu.org>
7688 Support OpenSolaris in ZFS device resolution.
7690 * configure.ac: Check for getmntany().
7691 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
7692 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
7695 2010-08-03 Robert Millan <rmh@gnu.org>
7699 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
7700 * include/grub/emu/misc.h: ... here.
7702 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
7703 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
7705 * util/misc.c: Remove `<grub/util/libzfs.h>'.
7706 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
7707 (grub_get_libzfs_handle): Move to ...
7708 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
7709 (grub_get_libzfs_handle): ... here.
7711 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
7713 * script/execute.c (grub_script_execute_cmdline): Check for NULL
7714 as command name case.
7716 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
7718 * disk/raid.c (insert_array): Select unique numbers for named arrays
7719 as well, for use as keys in the disk cache.
7721 2010-08-01 Robert Millan <rmh@gnu.org>
7723 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
7724 kFreeBSD device name, except on ZFS where the filesystem label is
7726 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
7727 `/boot/zfs/zpool.cache'.
7728 Set mountfrom kernel variable using ${kfreebsd_device}.
7730 2010-08-01 Robert Millan <rmh@gnu.org>
7732 Make it even harder to use uninitialized `libzfs_handle' (and
7733 make the interface a bit simpler).
7735 * include/grub/util/misc.h (grub_util_init_libzfs)
7736 (libzfs_handle): Remove.
7737 (grub_get_libzfs_handle): New prototype.
7739 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
7741 (grub_util_init_libzfs): Remove.
7742 (grub_get_libzfs_handle): New function.
7744 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
7745 grub_get_libzfs_handle() to obtain a libzfs handle instead of
7746 accessing `libzfs_handle' directly.
7748 2010-08-01 Robert Millan <rmh@gnu.org>
7750 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7751 (grub_find_zpool_from_mount_point): New function prototypes.
7753 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
7754 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
7756 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
7757 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
7760 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
7761 finding zpool from mount point into ...
7762 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
7764 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
7765 requested path is part of a ZFS pool, use
7766 grub_find_zpool_from_mount_point() to detect its filesystem name,
7767 and generate a path with `/fsname@path' syntax.
7769 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7771 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
7772 (void) rather than () so that this is a proper prototype.
7774 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7776 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
7778 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7780 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
7781 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
7783 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7785 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
7787 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7789 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
7791 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7793 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
7794 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
7795 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
7797 (Shell-like scripting): Add real content.
7798 (Serial terminal): Suggest `terminal_input serial; terminal_output
7799 serial' rather than putting the two commands on separate lines,
7800 since console input will be inoperative after the first command.
7801 (menuentry): Document --class, --users, and --hotkey options.
7802 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
7803 Vladimir Serbinenko).
7805 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7806 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7808 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
7810 2010-08-01 Robert Millan <rmh@gnu.org>
7812 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7813 (grub_find_zpool_from_mount_point): New function prototypes.
7815 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
7816 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
7818 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
7819 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
7822 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
7823 finding zpool from mount point into ...
7824 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
7826 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
7827 requested path is part of a ZFS pool, use
7828 grub_find_zpool_from_mount_point() to detect its filesystem name,
7829 and generate a path with `/fsname@path' syntax.
7831 2010-08-01 Robert Millan <rmh@gnu.org>
7833 Prevent accidental use of uninitialized libzfs_handle.
7835 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
7836 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
7837 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
7839 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7841 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
7842 util/grub.d/10_linux.in). Fixes Debian bug #591093.
7844 2010-08-01 Robert Millan <rmh@gnu.org>
7846 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
7848 2010-07-31 Robert Millan <rmh@gnu.org>
7850 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
7852 2010-07-31 Robert Millan <rmh@gnu.org>
7854 * kern/emu/misc.c: Add missing license header.
7856 2010-07-31 Robert Millan <rmh@gnu.org>
7858 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
7860 * include/grub/util/libnvpair.h: Include `<config.h>'.
7861 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
7862 declaring libnvpair prototypes ourselves.
7863 * include/grub/util/libzfs.h: Include `<config.h>'.
7864 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
7865 declaring libzfs prototypes ourselves.
7867 (libzfs_handle): Moved to ...
7868 * include/grub/util/misc.h (libzfs_handle): ... here.
7869 Include `<grub/util/libzfs.h>'.
7871 2010-07-30 Robert Millan <rmh@gnu.org>
7873 * include/grub/emu/misc.h: Add missing license header.
7875 2010-07-30 Robert Millan <rmh@gnu.org>
7877 Enable `grub-probe -t device' resolution on ZFS.
7879 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
7880 * include/grub/util/libnvpair.h: New file.
7881 * include/grub/util/libzfs.h: New file.
7883 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
7884 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
7885 `<grub/util/libnvpair.h>'.
7886 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
7888 (find_mount_point_from_dir): New static function.
7889 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
7891 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
7892 find_root_device_from_libzfs() before ressorting to find_root_device().
7894 * include/grub/util/misc.h (grub_util_init_libzfs): New function
7896 * util/misc.c: Include `<grub/util/libzfs.h>'.
7897 (grub_util_init_libzfs): New function.
7898 [HAVE_LIBZFS] (libzfs_handle): New global variable.
7899 [HAVE_LIBZFS] (fini_libzfs): New static function.
7900 (grub_util_init_libzfs): New function.
7901 * util/grub-probe.c (main): Call grub_util_init_libzfs().
7903 2010-07-30 Robert Millan <rmh@gnu.org>
7905 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
7906 (xmalloc, xrealloc, xstrdup, xasprintf): Add
7907 `warn_unused_result' attribute.
7908 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
7909 (grub_xasprintf, grub_xvasprintf): Likewise.
7910 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
7912 2010-07-29 Robert Millan <rmh@gnu.org>
7914 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
7915 (probe): Handle `PRINT_FS_LABEL'.
7916 (main): Handle `-t fs_label'.
7918 2010-07-29 Robert Millan <rmh@gnu.org>
7920 * configure.ac: Remove grub-mkisofs checks.
7922 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
7924 * util/ieee1275/grub-install.in: Don't use empty grub_device.
7925 Reported by: Lennart Sorensen.
7927 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7929 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
7930 prior to terminal_input/terminal_output separation. It's been over 1.5
7931 years and those versions weren't widely deployed.
7933 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
7935 * disk/raid.c (insert_array): Don't count named arrays when looking
7936 for unused array numbers.
7937 Reported and tested by: Michael Guntsche.
7939 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7941 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
7942 implementation of this so that grub-emu links again, with a note
7943 that this should support hotplugging in the future.
7945 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7947 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
7949 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7951 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
7953 (grub_loopback_close): Remove empty function.
7954 (grub_loopback_dev): Remove close method.
7956 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7958 Disable EFI cursor when the EFI console becomes inactive.
7960 * term/efi/console.c (grub_efi_console_init): New function.
7961 (grub_efi_console_fini): New function.
7962 (grub_console_term_output): Register init and fini methods.
7964 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7966 * tests/util/grub-shell-tester.in: Remove bashism and declare as
7969 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7971 * disk/loopback.c (grub_loopback): Replace filename with file.
7972 (delete_loopback): Handle new semantics.
7973 (grub_cmd_loopback): Likewise.
7974 (grub_loopback_iterate): Likewise.
7975 (grub_loopback_close): Likewise.
7977 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7979 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
7981 Reported by: Tito Keitel.
7983 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7985 * docs/grub.texi (Naming convention): Document new naming convention.
7987 2010-07-20 Vadim Solomin <vadic052@gmail.com>
7988 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7990 Generate device.map in something closer to the old ordering.
7992 * util/deviceiter.c (struct device): New declaration.
7993 (compare_file_names): Rename to ...
7994 (compare_devices): ... this. Sort by kernel name in preference to
7995 the stable by-id name, but keep the latter as a fallback comparison.
7996 Update header comment.
7997 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
7998 of `struct device' rather than of plain file names.
8000 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
8002 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
8005 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8007 * commands/acpi.c (setup_common_tables): Use sizeof instead of
8009 (setv1table): Likewise.
8011 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
8013 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
8014 removing the homehost if present.
8015 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
8016 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
8017 removing the homehost if present.
8018 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
8020 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
8022 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
8023 parameter. Set its pointer target to 0.
8024 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
8025 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
8026 `data_offset' value from the superblock for 1.x metadata.
8027 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
8029 (insert_array): Record the start sector of data on the device.
8030 (grub_raid_register): Pass start_sector parameters to
8031 grub_raid_list->detect and insert_array.
8032 * include/grub/raid.h (struct grub_raid_array): Add start_sector
8034 (struct grub_raid): Add start_sector parameter to `detect'.
8036 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
8037 __attribute__ ((packed)), leaving a comment.
8038 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
8039 (grub_mdraid_detect_09): ... here and ...
8040 (grub_mdraid_detect_1x): ... here.
8042 2010-07-20 Peter Henn <peter.henn@web.de>
8044 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
8045 chunk size and disk size, which are already given as sector counts
8046 as distinct from the 0.90 units. Fetch the correct device number
8047 from the role table instead of using the table index.
8049 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
8051 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
8052 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
8053 (WriteMostly1): New macro.
8054 Set array->name to NULL for metadata format 0.90. Add support for
8055 metadata 1.x. Fix some comments.
8056 * disk/raid.c (): Add support for name based RAID arrays. Fix a
8058 * util/getroot.c (grub_util_get_grub_dev): Add support for
8059 /dev/md/name style devices.
8061 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
8063 * .bzrignore: Ignore 20_linux_xen.
8065 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
8067 * util/import_unicode.py: Remove unnecessary imports.
8069 2010-07-17 Aleš Nesrsta <starous@volny.cz>
8071 Hotplugging and USB hub support.
8073 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
8074 (grub_ohci): Likewise.
8075 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
8076 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
8077 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
8078 (GRUB_OHCI_CTRL_EDS): Likewise.
8079 (GRUB_OHCI_BULK_EDS): Likewise.
8080 (GRUB_OHCI_TDS): Likewise.
8081 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
8082 (grub_ohci_ed_phys2virt): New function.
8083 (grub_ohci_virt_to_phys): Likewise.
8084 (grub_ohci_td_phys2virt): Likewise.
8085 (grub_ohci_td_virt2phys): Likewise.
8086 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
8088 (grub_ohci_find_ed): New function.
8089 (grub_ohci_alloc_td): Likewise.
8090 (grub_ohci_free_td): Likewise.
8091 (grub_ohci_free_tds): Likewise.
8092 (grub_ohci_transfer): Use previously allocated memory.
8093 (grub_ohci_portstatus): Reset status changed bit.
8094 (grub_ohci_detect_dev): Supply status changed.
8095 (grub_ohci_fini_hw): Free memory.
8096 (grub_ohci_restore_hw): Reallocate memory.
8097 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
8098 Reset status change.
8099 (grub_uhci_detect_dev): Supply status_change.
8100 * bus/usb/usb.c (attach_hooks): New var.
8101 (grub_usb_device_attach): New function.
8102 (grub_usb_register_attach_hook_class): Likewise.
8103 (grub_usb_unregister_attach_hook_class): Likewise.
8104 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
8105 (grub_usb_add_hub): Reset connection changed bit.
8106 (attach_root_port): New function.
8107 (grub_usb_root_hub): Likewise.
8108 (poll_nonroot_hub): Likewise.
8109 (grub_usb_poll_devices): Likewise.
8110 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
8111 * disk/usbms.c (grub_usbms_open): Use device hooks.
8112 (grub_usbms_iterate) :Poll devices.
8113 (grub_usbms_finddevs): Split into ...
8114 (grub_usbms_attach): ... this ...
8115 (grub_usbms_attach): ... and this.
8116 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
8118 (grub_usb_interface): New fields attached and detach_hook.
8119 (grub_usb_attach_hook_class): New type.
8120 (grub_usb_attach_desc): New struct.
8121 (grub_usb_register_attach_hook_class): New function.
8122 (grub_usb_unregister_attach_hook_class): Likewise.
8123 (grub_usb_poll_devices): Likewise.
8124 (grub_usb_device_attach): Likewise.
8125 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
8126 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
8128 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
8130 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
8131 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
8132 delta determination style. Works with most NetBSD partitions too.
8134 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
8136 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
8137 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
8139 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
8141 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
8143 2010-07-14 Anton Blanchard <anton@samba.org>
8145 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
8148 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8150 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
8152 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8154 * kern/partition.c (grub_partition_check_containment): New function to
8155 check that a partition is physically contained in a parent. Since
8156 offsets are relative (and non-negative), this reduces to checking that
8157 the partition ends before its parent.
8158 (grub_partition_map_probe): Discard out-of-range sub-partitions.
8159 (grub_partition_iterate): Likewise.
8160 * include/grub/partition.h (grub_partition_map): Slightly more detailed
8162 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
8163 partitions that start before their parent, and add debug printfs.
8165 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
8167 * Makefile.in (.SUFFIX): Spell correctly, as ...
8168 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
8169 bare module name without `.mod', e.g. `test') tried to invoke a
8172 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
8174 * README: Point to the Info manual.
8176 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
8178 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
8179 2nd superblock position from partition size.
8181 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
8183 * Makefile.in (MAINTAINER_CLEANFILES): Remove
8184 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
8185 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
8188 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
8190 Restructure SCSI .id handling.
8191 Reported and tested by: Aleš Nesrsta.
8193 * disk/ata.c (grub_atapi_close): Removed. All users updated.
8194 (grub_atapi_dev): Changed .name to "ata". New field .id.
8195 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
8196 (grub_usbms_dev): New field .id.
8197 * disk/scsi.c (grub_scsi_iterate): Generate name.
8198 (grub_scsi_open): Parse name.
8199 * include/grub/scsi.h (grub_make_scsi_id): New function.
8200 (grub_scsi_dev): Change iterate and open to number instead of naming
8201 busses. All users updated.
8202 (grub_scsi): Remove name. Add .bus.
8204 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
8206 * commands/help.c (grub_cmd_help): Fix a typo.
8208 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
8210 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
8211 Reported and tested by: Colin Watson.
8213 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
8215 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
8218 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8220 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
8222 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
8224 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
8227 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
8229 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
8230 and disk/raid6_recover.c.
8231 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8232 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
8234 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
8236 * term/gfxterm.c (repaint_schedulded): Rename to ...
8237 (repaint_scheduled): ... this. Update all callers.
8238 (repaint_was_schedulded): Rename to ...
8239 (repaint_was_scheduled): ... this. Update all callers.
8241 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
8243 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
8244 which we expect to be handled by upper layers.
8246 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
8248 * bus/usb/usbhub.c: #include time.h header.
8250 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
8252 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
8253 entry_name also for entries without stat blocks (e.g. ".."); fixes
8254 corruption of the first entry in a directory.
8256 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
8258 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
8259 after setting gfxterm as the active terminal. GRUB_BACKGROUND
8260 doesn't work otherwise.
8262 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
8264 * docs/grub.texi (Features): Update list of supported file systems.
8265 (GNU/Linux): Update for GRUB 2.
8266 (Serial terminal): Remove mention of --disable-serial, which was a
8267 GRUB Legacy configure option. Update instructions to use
8268 `terminal_input' and `terminal_output' rather than `terminal'.
8269 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
8270 configuration' and `Installing GRUB using grub-install'.
8271 (Menu entry editor): Update for GRUB 2.
8272 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
8273 Document new -a, -u, and -v options.
8274 (initrd): New section.
8275 (initrd16): New section.
8276 (linux): New section.
8277 (linux16): New section.
8278 (search): The `var' argument to `--set' is optional.
8279 (GRUB only offers a rescue shell): Go into a little more detail on
8282 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
8284 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
8286 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
8288 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
8289 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
8291 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
8293 * util/i386/pc/grub-setup.c (setup): Rename prefix to
8294 install_prefix, in line with install_dos_part and install_bsd_part.
8295 Add new prefix variable, which is copied to install_prefix after
8296 comparing core.img in memory with the one read from disk in the
8297 no-embedding case, and use that rather than overwriting
8298 install_prefix immediately when installing to a partition.
8299 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
8302 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
8304 * configure.ac: Avoid == in test command, it's not portable.
8305 * util/grub.d/30_os-prober.in: Likewise.
8307 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
8309 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
8311 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
8313 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
8314 multiple (top-level) partmaps.
8316 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8318 * util/i386/efi/grub-install.in: Don't use empty grub_device.
8319 Reported by: Tino Keitel.
8321 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8323 Bidi and diacritics support.
8325 * Makefile.in (widthspec.bin): New target.
8326 (widthspec.h): Likewise.
8327 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
8328 * autogen.sh: Generate unidata.c.
8329 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
8330 * commands/ls.c (grub_ls_list_devices): Likewise.
8331 (grub_ls_list_files): Likewise.
8332 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
8333 (grub_mini_cmd_lsmod): Likewise.
8334 * commands/read.c: Likewise.
8335 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
8336 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
8337 * lib/arg.c (grub_arg_show_help): Likewise.
8338 * lib/crypto.c (grub_password_get): Likewise.
8339 * normal/auth.c (grub_username_get): Likewise.
8340 * normal/misc.c (grub_normal_print_device_info): Likewise.
8341 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
8342 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
8343 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
8344 (normal/charset.c_DEPENDENCIES): New variable.
8345 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
8346 (pkglib_MODULES): Remove charset.mod.
8347 (charset_mod_SOURCES): Removed.
8348 (charset_mod_CFLAGS): Likewise.
8349 (charset_mod_LDFLAGS): Likewise.
8350 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
8351 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
8353 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8354 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8355 (kernel_img_HEADERS): Add terminfo.h.
8356 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
8357 Fill ->font. Reverse ascii bitmaps.
8358 (grub_font_get_xheight): New function.
8359 * font/font.c (grub_font_get_string_width): Moved from here ...
8360 * gfxmenu/font.c (grub_font_get_string_width): ... here.
8361 * font/font.c (grub_font_draw_string): Moved from here ...
8362 * gfxmenu/font.c (grub_font_draw_string): ... here.
8363 * font/font.c (grub_font_dup_glyph): New function.
8364 (grub_font_blit_glyph): Likewise.
8365 (grub_font_blit_glyph_mirror): Likewise.
8366 (blit_comb): Likewise.
8367 (grub_font_construct_dry_run): Likewise.
8368 (grub_font_get_constructed_device_width): Likewise.
8369 (grub_font_construct_glyph): Likewise.
8370 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
8371 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
8372 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
8373 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
8374 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
8375 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
8376 (grub_font_get_xheight): New proto.
8377 (grub_font_get_constructed_device_width): Likewise.
8378 (grub_font_construct_glyph): Likewise.
8379 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
8380 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
8381 * include/grub/font.h (grub_font_draw_string): Moved from here ...
8382 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
8383 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
8384 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
8385 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
8386 (grub_console_getcharwidth): Likewise.
8387 * include/grub/misc.h (grub_xputs): New proto.
8388 (grub_puts): Inlined.
8389 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
8390 (grub_normal_get_line_counter): Removed.
8391 (grub_install_newline_hook): Likewise.
8392 (grub_normal_get_char_counter): New proto.
8393 (grub_normal_reset_more): Likewise.
8394 (grub_xputs_normal): Likewise.
8395 * include/grub/powerpc/ieee1275/console.h: Removed.
8396 * include/grub/sparc64/ieee1275/console.h: Likewise.
8397 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
8398 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
8399 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
8400 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
8401 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
8402 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
8403 (grub_term_input): Pass reference to self. All users updated.
8404 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
8405 Pass reference to self. New fields normal_color, highlight_color and
8406 data. All users updated.
8407 (grub_putchar): Removed.
8408 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
8409 (grub_unicode_estimate_width): New function.
8410 (grub_term_getcharwidth): Add defaults.
8411 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
8412 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
8413 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
8414 (grub_cls): Remove EXPORT_FUNC.
8415 (grub_setcolorstate): Inline.
8416 (grub_newline_hook): Removed.
8417 * include/grub/terminfo.h: Rewritten. All users updated.
8418 * include/grub/unicode.h: New file.
8419 * include/grub/video.h (grub_video_signed_rect): New type.
8420 * kern/emu/console.c (grub_console_highlight_color): Removed.
8421 (grub_console_normal_color): Likewise.
8422 (grub_console_standard_color): Made static.
8423 (grub_ncurses_putchar): Remove mapping.
8424 (grub_ncurses_getcharwidth): Removed.
8425 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
8426 (grub_ncurses_setcolor): Removed.
8427 (grub_ncurses_getcolor): Likewise.
8428 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
8429 (grub_console_putchar): ... this.
8430 (grub_console_putchar): Handle argument difference.
8431 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
8432 console_init_early and console_init_lately.
8433 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
8434 * kern/misc.c (grub_puts): Removed.
8435 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
8436 (grub_vsnprintf_real): Remove str = NULL support.
8437 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
8438 * normal/charset.c (grub_utf8_to_ucs4): ... here.
8439 * kern/term.c (grub_putcode): Renamed to ...
8440 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
8441 (grub_putchar): Removed.
8442 (grub_xputs_dumb): New function.
8443 (grub_xputs): New variable.
8444 * lib/charset.c: Move from here ...
8445 * normal/charset.c: ... to here.
8446 (grub_ucs4_to_utf8): New function.
8447 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
8448 (join_types): New variable.
8449 (unpack_join): New function.
8450 (bidi_types): New variable.
8451 (unpack_bidi): New function.
8452 (get_bidi_type): Likewise.
8453 (get_join_type): Likewise.
8454 (is_mirrored): Likewise.
8455 (grub_unicode_get_comb_type): Likewise.
8456 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
8457 (is_type_after): Likewise.
8458 (grub_unicode_aglomerate_comb): Likewise.
8459 (bidi_line_wrap): Likewise.
8460 (grub_bidi_line_logical_to_visual): Likewise.
8461 (grub_bidi_logical_to_visual): Likewise.
8462 (grub_unicode_mirror_code): Likewise.
8463 (grub_unicode_shape_code): Likewise.
8464 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
8465 Don't use grub_putchar.
8466 * normal/main.c (grub_normal_init_page): Use grub_putcode.
8467 (grub_normal_reader_init): Likewise.
8468 (grub_xputs_saved): New variable.
8469 (GRUB_MOD_INIT): Set grub_xputs.
8470 (GRUB_MOD_FINI): Restore grub_xputs.
8471 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
8472 (menu_init): Avoid printing gfxmenu error.
8473 (show_menu): Use grub_normal_get_char_counter.
8474 * normal/menu_entry.c (update_screen): Fix out-of-array.
8475 (complete): Avoid NULL dereferencing.
8476 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
8477 * normal/menu_text.c (print_spaces): Removed.
8478 (grub_print_ucs4): Likewise.
8479 (grub_print_message_indented): Use grub_print_ucs4.
8480 (print_message): Use grub_putcode.
8481 (print_entry): Hanlde diacritics.
8482 * normal/term.c (term_state): New type.
8483 (grub_more_lines): Removed.
8484 (term_states): New variable.
8485 (grub_normal_line_counter): Renamed to ..
8486 (grub_normal_char_counter): ...this. All users updated.
8487 (grub_normal_get_line_counter): Renamed to ...
8488 (grub_normal_get_char_counter): ... this.
8489 (grub_normal_reset_more): New function.
8490 (process_newline): Removed.
8491 (print_more): New function.
8492 (grub_install_newline_hook): Removed.
8493 (map_code): New function.
8494 (grub_puts_terminal): Use grub_print_ucs4.
8495 (putglyph): New function.
8496 (putcode_real): Likewise.
8497 (grub_putcode): Use putcode_real.
8498 (get_maxwidth): New function.
8499 (get_startwidth): Likewise.
8500 (print_ucs4_terminal): Likewise.
8501 (find_term_state): Likewise.
8502 (put_glyphs_terminal): Likewise.
8503 (print_backlog): Likewise.
8504 (print_ucs4_real): Likewise.
8505 (grub_print_ucs4): Likewise.
8506 (grub_xputs_normal): Likewise.
8507 * term/efi/console.c (grub_console_putchar): Output diacritics.
8508 (grub_console_getcharwidth): Removed.
8509 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
8510 * term/gfxterm.c (clear_char): Free chars.
8511 (scroll_up): Avoid leaking memory.
8512 (grub_gfxterm_putchar): Support diacritics.
8513 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
8514 * term/i386/pc/console.c (grub_console_term_output): Declare as
8515 GRUB_TERM_CODE_TYPE_VGA.
8516 * term/i386/pc/vga.c (grub_vga_term): Declare as
8517 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
8518 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
8519 GRUB_TERM_CODE_TYPE_VGA.
8520 * term/i386/vga_common.c (map_char): Removed.
8521 (grub_console_putchar): Likewise.
8522 (grub_console_getcharwidth): Likewise.
8523 * term/ieee1275/ofconsole.c: Simplify using terminfo.
8524 (colors): Reordered to match terminfo.
8525 (grub_ofconsole_normal_color): Removed.
8526 (grub_ofconsole_writeesc): Likewise.
8527 (grub_ofconsole_highlight_color): Likewise.
8528 (grub_ofconsole_getcharwidth): Likewise.
8529 (grub_ofconsole_setcolorstate): Likewise.
8530 (grub_ofconsole_setcolor): Likewise.
8531 (grub_ofconsole_getcolor): Likewise.
8532 (grub_ofconsole_readkey): Renamed to ...
8533 (readkey): ... this. Remove escape sequence handling. Return -1 on no
8535 (grub_ofconsole_checkkey): Removed.
8536 (grub_ofconsole_getkey): Likewise.
8537 (grub_ofconsole_getxy): Likewise.
8538 (grub_ofconsole_gotoxy): Likewise.
8539 (grub_ofconsole_cls): Likewise.
8540 (grub_ofconsole_refresh): Likewise.
8541 (grub_ofconsole_terminfo_input): New struct.
8542 (grub_ofconsole_terminfo_output): Likewise.
8543 (grub_ofconsole_term_input): Use terminfo.
8544 (grub_ofconsole_term_output): Likewise.
8545 (grub_console_init): Split into ...
8546 (grub_console_init_early): ...this and ...
8547 (grub_console_init_lately): ...this. Use terminfo.
8548 (grub_ofconsole_putchar): Renamed to ...
8549 (put): ... this. Remove mapping.
8550 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
8551 * term/serial.c: Simplify using terminfo.
8554 (keep_track): Likewise.
8555 (registered): Likewise.
8556 (input_buf): Likewise.
8557 (npending): Likewise.
8558 (serial_translate_key_sequence): Likewise.
8559 (fill_input_buf): Likewise.
8560 (grub_serial_checkkey): Likewise.
8561 (grub_serial_getkey): Likewise.
8562 (grub_serial_getxy): Likewise.
8563 (grub_serial_gotoxy): Likewise.
8564 (grub_serial_putchar): Likewise.
8565 (grub_serial_cls): Likewise.
8566 (grub_serial_setcolorstate): Likewise.
8567 (grub_serial_setcursor): Likewise.
8568 (serial_hw_init): Use serial_hw_fetch.
8569 (grub_serial_terminfo_input): New variable.
8570 (grub_serial_terminfo_output): Likewise.
8571 (grub_serial_term_input): Use terminfo.
8572 (grub_serial_term_output): Likewise.
8573 * term/terminfo.c (putstr): Use put.
8574 (grub_terminfo_all_free): New function
8575 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
8576 (grub_terminfo_output_register): New function.
8577 (grub_terminfo_output_unregister): Likewise.
8578 (grub_terminfo_getxy): Likewise.
8579 (grub_terminfo_readkey): Likewise.
8580 (grub_terminfo_checkkey): Likewise.
8581 (grub_terminfo_getkey): Likewise.
8582 (grub_terminfo_input_init): Likewise.
8583 (print_terminfo): Likewise.
8584 (grub_cmd_terminfo): Handle encoding.
8585 (grub_terminfo_gotoxy): Track position.
8586 (grub_terminfo_cls): Likewise.
8587 (grub_terminfo_putchar): Likewise.
8588 (grub_terminfo_setcolorstate): Handle colors
8589 (grub_terminfo_cursor_on): This ...
8590 (grub_terminfo_cursor_off): ... and this merged into ...
8591 (grub_terminfo_setcursor): ... this.
8592 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
8593 * unicode/ArabicShaping.txt: New file (imported from Unicode).
8594 * unicode/BidiMirroring.txt: Likewise.
8595 * unicode/UnicodeData.txt: Likewise.
8596 * unicode/COPYING: Likewise.
8597 * util/grub-editenv.c (grub_putchar): Removed.
8598 (grub_xputs_real): New function.
8599 (grub_xputs): New variable.
8600 * util/grub-fstest.c (grub_putchar): Removed.
8601 (grub_xputs_real): New function.
8602 (grub_xputs): New variable.
8603 * util/grub-mkdevicemap.c (grub_putchar): Removed.
8604 (grub_xputs_real): New function.
8605 (grub_xputs): New variable.
8606 * util/grub-probe.c (grub_putchar): Removed.
8607 (grub_xputs_real): New function.
8608 (grub_xputs): New variable.
8609 * util/grub-script-check.c (grub_putchar): Removed.
8610 (grub_xputs_real): New function.
8611 (grub_xputs): New variable.
8612 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
8613 (grub_xputs_real): New function.
8614 (grub_xputs): New variable.
8615 * util/import_unicode.py: New file.
8616 * util/grub-mkfont.c (ft_errmsgs): New array.
8617 (grub_glyph_info): Make bitmap a pointer.
8618 (file_formats): New type WIDTH_SPEC.
8619 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
8620 (options): Add width-spec.
8622 (add_char): Renamed to ...
8623 (add_glyph): ... this.
8624 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
8625 (glyph_replace): New type.
8626 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
8627 (add_char): New function.
8628 (add_subst): Likewise.
8629 (process_cursive): Likewise.
8630 (add_font): Handle GSUB.
8631 (write_font_width_spec): New function.
8632 (main): Sort glyphs.
8633 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
8634 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
8635 * kern/term.c (grub_cls): Moved from here...
8636 * normal/term.c (grub_cls): ... here.
8638 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8640 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
8641 suitable for using within the format argument of printf when
8642 converting grub_size_t.
8643 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
8644 "x" to convert grub_size_t arguments.
8646 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8648 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
8650 (list_get_minimal_size): Take selection box into account.
8652 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8654 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
8657 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8659 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
8660 devices when iterating over /dev/disk/by-id; they will be handled
8661 later if appropriate, which they aren't always (e.g. LVM).
8663 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8665 * include/grub/misc.h (grub_reboot): Declare as noreturn.
8666 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
8668 (grub_halt): Likewise.
8669 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
8671 (grub_halt): Don't return, even if all of shut-down, power-off, and
8674 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8676 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
8677 arguments, not three.
8679 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8681 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
8682 * util/grub.d/10_linux.in: Use it to check for LVM, so that
8683 LVM-on-RAID is handled correctly.
8685 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8687 * docs/grub.texi (Changes from GRUB Legacy): New section.
8690 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8692 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
8693 grub.d/README accidentally ends up executable for one reason or
8696 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8698 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
8699 (gpt_partition_map_iterate): Support non-512B sectors.
8701 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8703 * kern/efi/init.c (grub_efi_init): Disable watchdog.
8704 Tested by: Seth Goldberg.
8706 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8708 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
8710 Reported by: Seth Goldberg.
8712 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8714 * util/grub-mkrescue.in: Avoid module duplication.
8716 2010-07-01 Sean Finney <seanius@seanius.net>
8718 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
8720 2010-07-01 Sean Finney <seanius@seanius.net>
8722 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
8724 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8726 * disk/lvm.c (grub_lvm_checkvalue): New function.
8727 (grub_lvm_check_flag): Likewise.
8729 2010-07-01 Robert Millan <rmh@gnu.org>
8731 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
8732 Support 'p' as partition separator on kernel of FreeBSD (used
8734 (grub_util_biosdisk_get_grub_dev): Likewise.
8736 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8738 Yeeloong firmware port.
8740 * boot/mips/yeeloong/fwstart.S: New file.
8741 * bus/cs5536.c (gpiodump): New const.
8742 (set_io_space): New function.
8743 (set_iod): Likewise.
8744 (set_p2d): Likewise.
8745 (grub_cs5536_init_geode): Likewise.
8746 * commands/mips/yeeloong/lsspd.c: New file.
8747 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
8748 (serial_mod_SOURCES): New variable.
8749 (serial_mod_CFLAGS): Likewise.
8750 (serial_mod_LDFLAGS): Likewise.
8751 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
8752 term/terminfo.c and term/tparm.c.
8753 (pkglib_IMAGES): Add fwstart.img.
8754 (fwstart_img_SOURCES): New variable.
8755 (fwstart_img_CFLAGS): Likewise.
8756 (fwstart_img_ASFLAGS): Likewise.
8757 (fwstart_img_LDFLAGS): Likewise.
8758 (fwstart_img_FORMAT): Likewise.
8759 (pkglib_MODULES): Add lsspd.mod.
8760 (lsspd_mod_SOURCES): New variable.
8761 (lsspd_mod_CFLAGS): Likewise.
8762 (lsspd_mod_LDFLAGS): Likewise.
8763 (pkglib_MODULES): Add halt.mod.
8764 (halt_mod_SOURCES): New variable.
8765 (halt_mod_CFLAGS): Likewise.
8766 (halt_mod_LDFLAGS): Likewise.
8767 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
8768 (serial_mod_SOURCES): Removed.
8769 (serial_mod_CFLAGS): Likewise.
8770 (serial_mod_LDFLAGS): Likewise.
8771 * disk/ata.c (check_device): New function.
8772 (grub_ata_device_initialize): Use check_device.
8773 (grub_ata_iterate): Recheck devices.
8774 (grub_ata_open): Likewise.
8775 (grub_atapi_iterate): Likewise.
8776 (grub_atapi_open): Likewise.
8777 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
8778 (GRUB_ATA_CH1_PORT1): Likewise.
8779 (GRUB_ATA_CH0_PORT2): Likewise.
8780 (GRUB_ATA_CH1_PORT2): Likewise.
8781 * include/grub/mips/loongson.h: New file.
8782 * include/grub/mips/yeeloong/ec.h: Likewise.
8783 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
8784 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
8785 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
8786 * include/grub/misc.h (grub_halt): Declare as noreturn.
8787 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
8788 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
8789 (UART_ENABLE_FIFO_TRIGGER1): New definition.
8790 (UART_ENABLE_DTRRTS): Likewise.
8791 (UART_ENABLE_MODEM): Removed.
8792 (UART_ENABLE_OUT2): New const.
8793 * include/grub/term.h (grub_term_register_input_active): New function.
8794 (grub_term_register_output_active): Likewise.
8795 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
8797 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
8798 (init_pci): New function.
8799 (grub_machine_init): Execute platform init when firmware. Init serial.
8800 (grub_halt): Implement.
8801 (grub_exit): Likewise.
8802 (grub_reboot): Likewise.
8803 * term/serial.c (serial_hw_init): Update macros.
8804 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
8805 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
8806 (image_targets): New target mipsel-yeeloong-flash.
8807 (generate_image): Support IMAGE_YEELOONG_FLASH.
8808 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
8809 (grub_video_sm712_setup): Init card.
8810 (grub_video_sm712_set_palette): Removed.
8811 * video/sm712_init.c: New file.
8813 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
8815 * Makefile.in (install-local): Temporarily prepend $(builddir) to
8816 PATH when running help2man and then run it on the unadorned
8817 executable names, rather than passing $(builddir)/* paths to
8818 help2man. This avoids the build directory ending up in generated
8821 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
8823 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
8824 to avoid accidents when debugging with 'sh -x'.
8825 * util/grub-mkrescue.in: Likewise.
8826 * util/grub.d/00_header.in: Likewise.
8827 * util/grub.d/10_hurd.in: Likewise.
8828 * util/grub.d/10_kfreebsd.in: Likewise.
8829 * util/grub.d/10_linux.in: Likewise.
8830 * util/grub.d/10_netbsd.in: Likewise.
8831 * util/grub.d/10_windows.in: Likewise.
8832 * util/grub.d/20_linux_xen.in: Likewise.
8833 * util/grub.d/30_os-prober.in: Likewise.
8834 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8836 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
8838 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
8839 last character in the buffer.
8840 Reported by: Vladimir Serbinenko.
8842 2010-06-29 Robert Millan <rmh@gnu.org>
8844 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
8845 (Command-line and menu entry commands): Document `badram' command.
8847 2010-06-28 Robert Millan <rmh@gnu.org>
8849 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
8850 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
8851 command using ${GRUB_BADRAM} as parameter.
8853 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8855 * docs/grub.texi (Device map): New section.
8856 (Themes): New section (stub).
8857 * Makefile.in (docs/grub.info): The info documentation now builds
8858 without errors. Make sure it stays that way.
8860 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8862 Use normal parser for menu entries.
8863 Reported by: Thomas Frauendorfer
8865 * include/grub/parser.h (grub_parser_execute): Don't export.
8866 * normal/menu.c (grub_menu_execute_entry_real): New function.
8867 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
8869 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8871 * docs/grub.texi (Embedded configuration): New section (replacing
8872 old "Preset Menu" stub).
8873 (Images): New section.
8874 (configfile): Note that any menu entries defined in `file' are shown
8877 2010-06-28 Josh Triplett <josh@joshtriplett.org>
8879 * mmap/i386/pc/mmap_helper.S: Set CF on return.
8881 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8883 * util/grub-install.in: Add --debug-image= option.
8885 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8887 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
8890 * util/deviceiter.c (check_device): Rename to ...
8891 (check_device_readable_unique): ... this. Update all callers.
8892 Maintain and check a list of which devices (by canonicalized name)
8893 have already been seen.
8894 (clear_seen_devices): New function.
8895 (compare_file_names) [__linux__]: New function.
8896 (grub_util_iterate_devices): Clear the list of seen devices on exit
8897 and (just in case) on entry.
8898 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
8899 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
8900 seen-devices list, superseded by general code in check_device.
8902 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8904 * commands/cat.c (options): New variable.
8905 (grub_cmd_cat): Parse options. If the --dos option is given, print
8906 DOS-style "\r\n" line endings as simple newlines (Debian bug
8908 (GRUB_MOD_INIT): Use extcmd.
8909 (GRUB_MOD_FINI): Likewise.
8910 * docs/grub.texi (cat): Document --dos.
8912 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8914 XEN with Linux grub-mkconfig support.
8916 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
8917 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
8918 GRUB_CMDLINE_XEN_DEFAULT.
8919 * util/grub.d/20_linux_xen.in: New file.
8921 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8923 Initialise VGA video on qemu ourselves.
8925 * boot/i386/qemu/boot.S: Don't call 0xc000.
8926 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
8927 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
8928 (kernel_img_HEADERS): Add pci.h.
8929 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
8930 * configure.ac: Force unifont on qemu and yeeloong.
8931 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
8932 (grub_vga_palette_write): Use correct register.
8933 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
8934 Call grub_qemu_init_cirrus.
8935 * kern/i386/qemu/init.c: New file.
8936 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
8938 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
8940 2010-06-26 Pavel Roskin <proski@gnu.org>
8942 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
8945 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
8947 * docs/grub.texi (Simple configuration): Explain that
8948 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
8949 set to `true' to disable their respective recovery entries, not
8952 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
8954 Make the `source' command slightly faster.
8956 * normal/main.c (grub_normal_execute): Don't re-read list files when
8959 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
8961 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
8962 field position and mask size to red fields from mode_info, not
8964 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
8965 Remove redundant tag->common.framebuffer_type assignment.
8966 Reported by: Seth Goldberg.
8968 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
8970 Sync up other versions of the Linux loader with Robert Millan's
8971 change of 2010-01-09, "Make loader output a bit more user-friendly".
8973 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
8975 (grub_cmd_linux): Likewise.
8976 (grub_cmd_initrd): Likewise.
8977 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
8978 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8980 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
8982 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
8983 larger than MEMORY_MAP_SIZE.
8985 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
8989 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
8991 * script/parser.y: #include grub_script.tab.h header.
8993 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8995 Support >3GiB and <16MiB RAM in i386-qemu.
8997 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
8998 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
8999 (grub_lower_mem): Removed.
9000 (grub_upper_mem): Likewise.
9001 (mem_size): Made static.
9002 (above_4g): New variable.
9003 (grub_machine_mmap_init): Detect small mem_size and above_4g.
9004 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
9007 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9009 Cirrus 5446 and Bochs video cards support.
9011 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
9013 (video_cirrus_mod_SOURCES): New variable.
9014 (video_cirrus_mod_CFLAGS): Likewise.
9015 (video_cirrus_mod_LDFLAGS): Likewise.
9016 (video_bochs_mod_SOURCES): Likewise.
9017 (video_bochs_mod_CFLAGS): Likewise.
9018 (video_bochs_mod_LDFLAGS): Likewise.
9019 * include/grub/vga.h: New file.
9020 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
9021 (grub_video_fb_set_page_t): New type.
9022 (grub_video_fb_setup): New prototype.
9023 (grub_video_fb_swap_buffers): Likewise.
9024 (grub_video_fb_get_info_and_fini): Likewise.
9025 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
9026 (CRTC_DATA_PORT): Likewise.
9027 (CRTC_CURSOR): Likewise.
9028 (CRTC_CURSOR_ADDR_HIGH): Likewise.
9029 (CRTC_CURSOR_ADDR_LOW): Likewise.
9030 (CRTC_CURSOR_DISABLE): Likewise.
9031 (update_cursor): Use grub_vga_cr_write.
9032 (grub_vga_text_setcursor): Likewise.
9033 * video/bochs.c: New file.
9034 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
9035 (palette): Likewise.
9036 (palette_size): Likewise.
9037 (framebuffer): New variable.
9038 (grub_video_fb_init): Use 'framebuffer'.
9039 (grub_video_fb_fini): Likewise.
9040 (grub_video_fb_get_info): Likewise.
9041 (grub_video_fb_get_palette): Likewise.
9042 (grub_video_fb_set_palette): Likewise.
9043 (grub_video_fb_set_viewport): Likewise.
9044 (grub_video_fb_get_viewport): Likewise.
9045 (grub_video_fb_map_color): Likewise.
9046 (grub_video_fb_map_rgb): Likewise.
9047 (grub_video_fb_map_rgba): Likewise.
9048 (grub_video_fb_unmap_color): Likewise.
9049 (grub_video_fb_unmap_color_int): Likewise.
9050 (grub_video_fb_fill_rect): Likewise.
9051 (grub_video_fb_blit_bitmap): Likewise.
9052 (grub_video_fb_blit_render_target): Likewise.
9053 (grub_video_fb_scroll): Likewise.
9054 (grub_video_fb_create_render_target): Likewise.
9055 (grub_video_fb_doublebuf_blit_init): Likewise.
9056 (grub_video_fb_set_active_render_target): Handle doublebuffering.
9057 (doublebuf_pageflipping_update_screen): New function.
9058 (doublebuf_pageflipping_init): Likewise.
9059 (grub_video_fb_setup): Likewise.
9060 (grub_video_fb_swap_buffers): Likewise.
9061 (grub_video_fb_get_info_and_fini): Likewise.
9062 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
9064 (doublebuf_pageflipping_commit): Restructured into ...
9065 (doublebuf_pageflipping_set_page): ... this.
9066 (doublebuf_pageflipping_update_screen): Removed.
9067 (doublebuf_pageflipping_init): Likewise.
9068 (double_buffering_init): Likewise.
9069 (grub_video_vbe_setup): Use grub_video_fb_setup.
9070 (grub_video_vbe_swap_buffers): Removed.
9071 (grub_video_vbe_set_active_render_target): Likewise.
9072 (grub_video_vbe_get_active_render_target): Likewise.
9073 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
9074 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
9075 grub_video_fb_set_active_render_target and
9076 grub_video_fb_get_active_render_target.
9077 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
9078 (SEQUENCER_DATA_PORT): Likewise.
9079 (MAP_MASK_REGISTER): Likewise.
9080 (CRTC_ADDR_PORT): Likewise.
9081 (CRTC_DATA_PORT): Likewise.
9082 (START_ADDR_HIGH_REGISTER): Likewise.
9083 (START_ADDR_LOW_REGISTER): Likewise.
9084 (GRAPHICS_ADDR_PORT): Likewise.
9085 (GRAPHICS_DATA_PORT): Likewise.
9086 (READ_MAP_REGISTER): Likewise.
9087 (INPUT_STATUS1_REGISTER): Likewise.
9088 (INPUT_STATUS1_VERTR_BIT): Likewise.
9089 (get_map_mask): Use grub_vga_sr_read.
9090 (set_map_mask): Use grub_vga_sr_write.
9091 (set_read_map): Use grub_vga_gr_write.
9092 (set_start_address): Use grub_vga_cr_write.
9093 * video/sm712.c (framebuffer): Remove leftover fields.
9095 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
9097 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
9098 setting GRUB_VIDEO_BACKEND. Make it available as a user override
9099 instead. Replace the gfxterm backend check with a check that
9100 ${GRUB_PREFIX}/video.lst is non-empty.
9101 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
9103 (load_video): New generated function. Call it before loading
9104 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
9105 * util/grub.d/10_linux.in (linux_entry): Call load_video.
9106 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
9107 * docs/grub.texi (Simple configuration): Document
9110 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9112 Use video functions in linux and xnu loaders.
9114 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
9115 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
9116 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
9117 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
9118 loader/i386/pc/linux.c.
9119 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
9120 (find_line_len): Removed.
9121 (find_framebuf): Likewise.
9122 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
9123 * loader/i386/efi/xnu.c: Removed.
9124 * loader/i386/pc/xnu.c: Moved from here...
9125 * loader/i386/xnu.c: ...here.
9127 Enable priorities in video drivers.
9129 * include/grub/video.h (grub_video_adapter_prio_t): New type.
9130 (grub_video_adapter): New field prio.
9131 (grub_video_register): Respect prio when inserting.
9132 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
9133 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
9134 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
9135 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
9136 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
9137 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
9138 * video/sm712.c (grub_video_sm712_adapter): Likewise.
9142 * include/grub/video.h (grub_video_driver_id_t): New value
9143 GRUB_VIDEO_DRIVER_SDL.
9144 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
9146 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
9148 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
9150 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
9152 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
9154 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
9155 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
9157 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
9159 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
9160 directly, and recommend grub-install instead.
9161 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
9163 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
9165 Fix i386-pc prefix handling with nested partitions (Debian bug
9166 #585068). Note that the case where the core image is booted using
9167 multiboot and relocated from its original location still requires
9170 * kern/i386/pc/init.c (make_install_device): If the prefix starts
9171 with "(,", fill the boot drive in between those two characters, but
9172 expect that a full partition specification including partition map
9174 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
9175 specified, write a prefix without the drive name but including a
9176 full partition specification.
9178 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
9180 * util/grub-mkconfig.in: Ignore non-option arguments, for
9181 compatibility with older versions (before 2010-06-12) which did the
9182 same. In particular, this makes it easier to ship an update-grub
9183 wrapper which is compatible with that used with GRUB Legacy (Debian
9186 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
9188 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
9189 for manual page generation.
9191 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
9193 * po/POTFILES: Remove leftover commands/handler.c.
9195 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
9197 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
9198 left this script non-functional.
9200 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
9202 * docs/man/grub-emu.h2m: New file.
9204 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
9206 * docs/grub.texi (Commands): Document reduced command set in rescue
9208 (cpuid): New section.
9210 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
9212 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
9213 new partition naming style.
9214 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
9216 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
9218 Add "-o grub.iso" like cmdline options support.
9220 * util/grub-install.in: Improve cmdline option parsing.
9221 * util/grub-mkconfig.in: Likewise.
9222 * util/grub-mkrescue.in: Likewise.
9223 * util/grub-reboot.in: Likewise.
9224 * util/grub-set-default.in: Likewise.
9225 * util/i386/efi/grub-install.in: Likewise.
9226 * util/ieee1275/grub-install.in: Likewise.
9227 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9229 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
9231 * .bzrignore: Ignore 41_custom.
9233 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
9235 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
9237 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
9239 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
9240 prototype declarations.
9242 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
9243 generating fs, partmap, and video lists.
9244 * include/grub/fs.h (grub_fs_register): Omit prototype if
9245 GRUB_LST_GENERATOR is defined.
9246 * include/grub/partition.h (grub_partition_map_register): Likewise.
9247 * include/grub/video.h (grub_video_register): Likewise.
9249 2010-06-12 Javier Martín <lordhabbit@gmail.com>
9251 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
9253 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
9255 * util/grub-mkrescue.in: Support --xorriso argument.
9257 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
9259 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
9260 Suggested by: Thomas Schmitt.
9262 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
9264 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
9265 Suggested by: Thomas Schmitt.
9267 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
9271 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
9272 * util/grub.d/41_custom.in: New file.
9274 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
9276 * util/grub-mkrescue.in (make_image): Remove sh module, which has
9277 been merged back into normal.
9279 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
9281 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
9282 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
9284 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
9286 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
9287 when generating manual pages.
9288 * docs/man/grub-bin2h.h2m: New file.
9289 * docs/man/grub-editenv.h2m: New file.
9290 * docs/man/grub-fstest.h2m: New file.
9291 * docs/man/grub-install.h2m: New file.
9292 * docs/man/grub-macho2img.h2m: New file.
9293 * docs/man/grub-mkconfig.h2m: New file.
9294 * docs/man/grub-mkdevicemap.h2m: New file.
9295 * docs/man/grub-mkfont.h2m: New file.
9296 * docs/man/grub-mkimage.h2m: New file.
9297 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
9298 * docs/man/grub-mkrelpath.h2m: New file.
9299 * docs/man/grub-mkrescue.h2m: New file.
9300 * docs/man/grub-ofpathname.h2m: New file.
9301 * docs/man/grub-pe2elf.h2m: New file.
9302 * docs/man/grub-probe.h2m: New file.
9303 * docs/man/grub-reboot.h2m: New file.
9304 * docs/man/grub-script-check.h2m: New file.
9305 * docs/man/grub-set-default.h2m: New file.
9306 * docs/man/grub-setup.h2m: New file.
9308 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
9310 Use FOR_* macros instead of *_iterate whenever possible.
9312 * commands/handler.c: Removed.
9313 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
9314 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
9315 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
9316 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
9317 (grub_probe_SOURCES): Remove kern/parser.c.
9318 (util/grub-script-check.c_DEPENDENCIES): Removed.
9319 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
9320 and grub_script_check_init.c.
9321 (grub_script_check_init.lst): Removed.
9322 (grub_script_check_init.h): Likewise.
9323 (grub_script_check_init.c): Likewise.
9324 (pkglib_MODULES): Remove handler.mod and sh.mod.
9325 (handler_mod_SOURCES): Removed.
9326 (handler_mod_CFLAGS): Likewise.
9327 (handler_mod_LDFLAGS): Likewise.
9328 (normal_mod_SOURCES): Remove normal/handler.c.
9329 Add script/main.c, script/script.c, script/execute.c,
9330 script/function.c, script/lexer.c, grub_script.tab.c
9331 and grub_script.yy.c.
9332 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
9333 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
9334 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
9335 (grub_setup_SOURCES): Remove kern/parser.c.
9336 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
9337 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
9338 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
9339 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
9340 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
9341 (grub_setup_SOURCES): Remove kern/parser.c.
9342 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
9343 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
9344 * include/grub/command.h (grub_command_iterate): Removed.
9345 (FOR_COMMANDS): New macro.
9346 * include/grub/dl.h (grub_dl): New member next.
9347 (grub_dl_iterate): Removed.
9348 (grub_dl_head): New variable declaration.
9349 (FOR_DL_MODULES): New macro.
9350 * include/grub/fs.h: Include list.h.
9351 (grub_fs): Make next first element.
9352 (grub_fs_list): New variable declaration.
9353 (grub_fs_register): Make inline.
9354 (grub_fs_unregister): Likewise.
9355 (grub_fs_iterate): Removed.
9356 (FOR_FILESYSTEMS): New macro.
9357 * include/grub/handler.h: Removed.
9358 * include/grub/list.h (grub_list_hook_t): Removed.
9359 (grub_list_test_t): Likewise.
9360 (grub_list_pop): Likewise.
9361 (grub_list_iterate): Likewise.
9362 (grub_list_insert): Likewise.
9363 (FOR_LIST_ELEMENTS): New macro.
9364 * include/grub/parser.h (grub_parser_class): Removed.
9365 (grub_parser_register): Likewise.
9366 (grub_parser_unregister): Likewise.
9367 (grub_parser_get_current): Likewise.
9368 (grub_parser_set_current): Likewise.
9369 (grub_register_rescue_parser): Likewise.
9370 (grub_rescue_parse_line): New function.
9371 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
9372 * include/grub/script_sh.h (grub_script_function_list): New variable
9374 (FOR_SCRIPT_FUNCTIONS): New macro.
9375 (grub_script_function_iterate): Removed.
9376 (grub_normal_parse_line): New prototype.
9377 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
9378 (FOR_DISABLED_TERM_INPUTS): Likewise.
9379 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
9380 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
9381 * include/grub/video.h (grub_video_adapter): Move 'next' to first
9383 (grub_video_register): Inline.
9384 (grub_video_unregister): Likewise.
9385 (grub_video_adapter_list): New variable declaration.
9386 (grub_video_iterate): Removed.
9387 (FOR_VIDEO_ADAPTERS): New macro.
9388 * kern/dl.c (grub_dl_list): Removed. All users updated.
9389 (grub_dl_iterate): Removed.
9390 * kern/fs.c (grub_fs_list): Make global.
9391 (grub_fs_register): Removed.
9392 (grub_fs_unregister): Likewise.
9393 (grub_fs_iterate): Likewise.
9394 * kern/handler.c: Removed.
9395 * kern/list.c (grub_list_pop): Removed.
9396 (grub_list_iterate): Likewise.
9397 (grub_list_insert): Likewise.
9398 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
9399 (grub_prio_list_insert): Don't use grub_list_insert.
9400 * kern/main.c (grub_register_rescue_parser): Don't call
9401 grub_register_rescue_parser.
9402 * kern/parser.c (grub_parser_class): Removed.
9403 (grub_parser_execute): Use grub_rescue_parse_line.
9404 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
9405 (grub_rescue_parser): Removed.
9406 (grub_register_rescue_parser): Likewise.
9407 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
9408 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
9409 (grub_auth_check_authentication): Likewise.
9410 * normal/completion.c (iterate_command): Removed.
9411 (grub_normal_do_completion): Use FOR_COMMANDS.
9412 * normal/handler.c: Removed.
9413 * normal/main.c (read_config_file): Remove parser changing.
9414 (grub_normal_execute): Don't call read_handler_list.
9415 (grub_normal_read_line_real): Statically allocate prompt.
9416 (grub_cmdline_run): Use grub_normal_parse_line.
9417 (GRUB_MOD_FINI): Don't call free_handler_list.
9418 * normal/menu_entry.c (run): Likewise.
9419 * script/function.c (grub_script_function_list): Make global.
9420 (grub_script_function_iterate): Removed.
9421 * script/main.c (grub_normal_parse_line): Make global.
9422 (grub_sh_parser): Removed.
9423 (GRUB_MOD_INIT): Likewise.
9424 (GRUB_MOD_FINI): Likewise.
9425 * tests/lib/functional_test.c (grub_functional_test): Use
9427 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
9428 (grub_test_run): Use FOR_LIST_ELEMENTS.
9429 * tests/lib/unit_test.c (main): Likewise.
9430 * util/deviceiter.c (grub_util_iterate_devices): Don't use
9432 * util/grub-fstest.c (grub_term_input_class): Removed.
9433 (grub_term_output_class): Likewise.
9434 * util/grub-probe.c: Likewise.
9435 * util/i386/pc/grub-setup.c: Likewise.
9436 * util/sparc64/ieee1275/grub-setup.c: Likewise.
9437 * util/grub-script-check.c (main): Don't call grub_init_all and
9439 * video/video.c (grub_video_adapter_list): Make global.
9440 (grub_video_register): Removed.
9441 (grub_video_unregister): Likewise.
9442 (grub_video_iterate): Likewise.
9444 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9446 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
9447 reported by Henrique Ferreiro.
9449 2010-06-09 Robert Millan <rmh@gnu.org>
9451 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
9452 ones, when both are available.
9454 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
9456 Make --version uniform and avoid hard-coded program name.
9458 * util/grub-mkimage.c (main): Use `program_name' instead of
9460 * util/i386/pc/grub-setup.c (main): Likewise.
9461 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
9462 * util/grub-install.in: Save the basename of $0 in $self, and use the
9463 latter in informational messages. Use the same format for --version
9464 as the binary programs.
9465 * util/grub-mkconfig.in: Likewise.
9466 * util/grub-mkrescue.in: Likewise.
9467 * util/grub-reboot.in: Likewise.
9468 * util/grub-set-default.in: Likewise.
9469 * util/i386/efi/grub-install.in: Likewise.
9470 * util/ieee1275/grub-install.in: Likewise.
9471 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9473 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
9475 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
9476 embedding area. Use <= instead of == when checking for non-emptiness.
9478 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
9480 * configure.ac: Add `.' to the directories searched for unifont.
9482 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
9484 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
9487 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
9489 * docs/grub.texi (History): Expand to cover GRUB 2.
9490 (Serial terminal): Refer to `terminal_input' and `terminal_output'
9491 commands, not `terminal'.
9493 (terminal_input): New section.
9494 (terminal_output): New section.
9495 (uppermem): New section (stub).
9496 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
9498 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
9500 * docs/grub.texi (Security): Menu entries are unrestricted by
9501 default, not restricted to superusers as I had previously thought.
9502 Reword to account for this.
9504 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9506 * kern/emu/misc.c (device_mapper_null_log): New function.
9507 (grub_device_mapper_supported): New function.
9508 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
9510 * kern/emu/hostdisk.c (find_partition_start): Check whether
9511 device-mapper is supported before trying to use it.
9512 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
9514 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9516 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
9517 (File name syntax): Likewise.
9518 (help): --all is no longer supported in GRUB 2. Be more precise
9519 about pattern matching.
9521 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9523 * normal/completion.c (grub_normal_do_completion): When completing
9524 arguments to "set" and the current word contains an equals sign,
9525 skip to after the equals sign before starting completion.
9527 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9529 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
9531 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9533 * docs/grub.texi (Network): New section.
9534 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
9535 `(nd)' as in GRUB Legacy.
9536 (pxe_unload): New section.
9538 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9540 * docs/grub.texi (Troubleshooting): `echo' is not usually available
9541 in the rescue shell, so recommend using `set' instead. Thanks,
9544 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9546 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
9547 (password): New section.
9548 (password_pbkdf2): New section.
9549 (search): New section.
9550 (Security): New section.
9551 (Troubleshooting): New section, currently very incomplete.
9552 (Invoking grub-mkpasswd-pbkdf2): New section.
9553 (Internals): New section, currently very incomplete.
9555 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9557 * util/grub.d/00_header.in: Add some more quoting (of
9558 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
9560 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
9562 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
9564 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
9565 to `count', fixing variable shadowing that broke the -c option.
9567 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
9569 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
9570 in case they contain spaces.
9572 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
9574 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
9575 "part_" to partmap module names, in line with grub-install.
9576 Reported by: Jindřich Makovička (Debian bug #584426).
9578 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
9580 * util/grub-mkimage.c: Make target-related error messages slightly
9581 more helpful; -O talks about "format". Explicitly point to the use
9582 of -O if no target is specified.
9583 Reported by: Didier Raboud (Debian bug #584415).
9585 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
9587 * INSTALL: Document several build requirements for optional features
9588 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
9590 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
9592 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
9593 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
9594 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
9596 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9598 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
9599 Thanks to Jordan Uggla for spotting this.
9601 2010-06-02 Aleš Nesrsta <starous@volny.cz>
9603 Finally make USB usable.
9605 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
9606 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
9607 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
9608 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
9609 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
9610 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
9611 (GRUB_OHCI_FSMPS): Likewise.
9612 (GRUB_OHCI_PERIODIC_START): Likewise.
9613 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
9614 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
9615 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
9616 (GRUB_OHCI_SET_PORT_RESET): Likewise.
9617 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
9618 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
9619 (grub_ohci_transaction): Likewise.
9620 (grub_ohci_transfer): Improve condition detection algorithms.
9621 Handle toggle property. Program the transactions correctly.
9622 Improve error handling. Various important fixups.
9623 (grub_ohci_portstatus): Put register writes in right order.
9624 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
9625 (grub_uhci_transfer): Don't show "failed" message on success.
9626 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
9628 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
9630 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
9631 before initialization is completed. Use IN direction for empty
9632 transfers. Use last_trans and compute toggle.
9633 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
9634 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
9635 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
9636 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
9637 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
9638 (grub_usb_device): Increase toggle to 256.
9639 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
9640 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
9641 GRUB_USBMS_SUBCLASS_SFF8070.
9642 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
9643 (grub_scsi_inquiry): New member page and alloc_length.
9644 (grub_scsi_request_sense): New structure.
9645 (grub_scsi_request_sense_data): Likewise.
9646 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
9648 * disk/scsi.c (grub_scsi_request_sense): New function.
9649 (grub_scsi_test_unit_ready): Likewise.
9650 (grub_scsi_inquiry): Fill new fields.
9651 (grub_scsi_read_capacity): Likewise.
9652 (grub_scsi_read10): Add request sense at the end.
9653 (grub_scsi_read12): Likewise.
9654 (grub_scsi_write10): Likewise.
9655 (grub_scsi_write12): Likewise.
9656 (grub_scsi_open): Add Test Unit Ready.
9657 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
9658 Support additional subclasses. Con't clear halt yet. Activate the
9659 proper config. Calculate LUNs correctly.
9660 (grub_usbms_transfer): Various important fixups.
9662 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9664 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
9665 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
9666 (grub_ohci_fini_hw): New function.
9667 (grub_ohci_restore_hw): Likewise.
9668 (GRUB_MOD_INIT(ohci)): Register preboot hook.
9669 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
9670 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
9672 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9674 Dedicated DMA allocations.
9676 * bus/pci.c (grub_memalign_dma32): New function
9677 (grub_dma_free): Likewise.
9678 (grub_dma_get_virt): Likewise.
9679 (grub_dma_get_phys): Likewise.
9680 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
9681 (grub_ohci_pci_iter): Use dma32_alloc.
9682 (grub_ohci_transfer): Likewise.
9683 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
9684 (grub_usb_bulk_readwrite): Likewise.
9685 * include/grub/pci.h: Add declarations.
9687 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9691 * bus/cs5536.c: New file.
9692 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
9693 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
9694 (cs5536_mod_SOURCES): New variable.
9695 (cs5536_mod_CFLAGS): Likewise.
9696 (cs5536_mod_LDFLAGS): Likewise.
9697 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
9699 (kernel_img_SOURCES): Add bus/cs5536.c.
9700 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
9702 (usb_mod_SOURCES): New variable.
9703 (usb_mod_CFLAGS): New variable.
9704 (usb_mod_LDFLAGS): New variable.
9705 (usbtest_mod_SOURCES): New variable.
9706 (usbtest_mod_CFLAGS): New variable.
9707 (usbtest_mod_LDFLAGS): New variable.
9708 (ohci_mod_SOURCES): New variable.
9709 (ohci_mod_CFLAGS): New variable.
9710 (ohci_mod_LDFLAGS): New variable.
9711 (usbms_mod_SOURCES): New variable.
9712 (usbms_mod_CFLAGS): New variable.
9713 (usbms_mod_LDFLAGS): New variable.
9714 (usb_keyboard_mod_SOURCES): New variable.
9715 (usb_keyboard_mod_CFLAGS): New variable.
9716 (usb_keyboard_mod_LDFLAGS): New variable.
9717 * include/grub/smbus.h: New file.
9718 * include/grub/cs5536.h: New file.
9720 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9722 * util/grub.d/00_header.in: Add safety check to make sure that
9723 ${locale_dir} exists before trying to probe it.
9725 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9727 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
9728 per the GNU Coding Standards; this is now too obscure to be worth
9731 (chainloader): Remove cross-reference to `SCO UnixWare'.
9733 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9735 * docs/grub.texi (Chain-loading): New section.
9736 (DOS/Windows): New section, borrowed from GRUB Legacy with details
9737 adjusted for GRUB 2.
9738 (SCO UnixWare): Likewise.
9740 (chainloader): Add reference to `Block list syntax'.
9741 (drivemap): New section.
9742 (parttool): New section.
9744 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9746 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
9748 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
9749 (Installing GRUB using grub-install): Remove reference to the grub
9750 shell; mention `grub-mkimage' and `grub-setup' instead.
9751 (Invoking grub-install): Likewise.
9752 (Interface): Add reference to `Menu entry editor'.
9753 (serial): Remove `--device' option.
9755 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9757 * docs/grub.texi (Configuration): New section, documenting
9758 configuration file generation using grub-mkconfig. I've left a slot
9759 for documenting the full shell scripting format but have not yet
9760 started on writing that up.
9761 (Invoking grub-mkconfig): New section.
9763 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9765 * docs/grub.texi (direntry): Remove grub-terminfo reference.
9766 (GNU GRUB manual): Likewise.
9767 (General commands): Update description of `terminfo' for GRUB 2.
9769 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9771 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
9772 (GRUB_MOD_INIT): Fix capitalisation.
9773 * docs/grub.texi (Command-line and menu entry commands): Document
9774 gettext and gptsync commands.
9776 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9778 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
9779 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
9781 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
9783 Add btrfs probing support, currently only in the single-device case.
9785 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
9787 (grub_guess_root_device): Call find_root_device_from_mountinfo
9788 before looking in /dev.
9790 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9792 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
9793 GRUB_DISK_SIZE_UNKNOWN.
9794 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
9796 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
9798 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
9799 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
9800 corrupted or not synced properly.
9802 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9804 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
9805 Reported by: Seth Goldberg.
9807 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9809 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
9811 Reported by: Seth Goldberg.
9813 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9815 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
9816 Reported by: Seth Goldberg.
9818 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9820 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
9821 64-bit address as signed on MIPS.
9823 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
9825 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
9826 to the empty string.
9828 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
9830 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
9832 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
9833 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
9834 * kern/misc.c (__enable_execute_stack): Disable on
9837 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
9839 Make grub-probe work with symbolic links under /dev/mapper as well
9840 as with real block devices. The Linux world seems to be (at best)
9841 in transition here, and GRUB shouldn't get caught in the middle.
9843 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
9846 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
9848 * util/grub-script-check.c (main): Ensure defined behaviour on empty
9849 input files (in which case exit zero).
9851 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
9853 * kern/emu/misc.c (canonicalize_file_name): realpath can still
9854 return NULL for various reasons even if it has a maximum-length
9855 buffer: for example, there might be a symlink loop, or the path
9856 might exceed PATH_MAX. If this happens, return NULL.
9858 2010-05-27 Robert Millan <rmh@gnu.org>
9860 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
9861 partmap module to handle cross-partmap setups.
9862 Reported by Orestes Mas. Gràcies!
9864 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
9866 * util/grub-mkrescue.in: Initialise override_dir rather than
9867 assuming that it's unset or empty in the environment.
9869 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
9871 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
9872 variable index into p_index to suppress a warning with -Wshadow.
9874 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
9876 * INSTALL: Added flex >= 2.5.35 requirement.
9878 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9880 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
9882 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9886 * commands/i386/cmostest.c: New file.
9887 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
9888 (cmostest_mod_SOURCES): New variable.
9889 (cmostest_mod_CFLAGS): Likewise.
9890 (cmostest_mod_LDFLAGS): Likewise.
9891 * conf/i386-pc.rmk: Likewise.
9892 * docs/grub.texi (Vendor power-on keys): New section.
9893 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
9894 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
9895 and GRUB_BUTTON_CMOS_ADDRESS.
9896 * util/grub.d/00_header.in: Handle powering-on by separate button.
9898 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9900 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
9901 Removed drawing_scrollbar argument. All users updated
9903 Reported by Jo Shields
9905 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9907 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
9908 buffer since gfxterm handles double repaint.
9910 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9912 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
9913 * term/gfxterm.c (real_scroll): Likewise.
9915 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9917 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
9918 before calling BIOS.
9920 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9922 * include/grub/i18n.h: Always enable grub_gettext.
9924 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9926 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
9927 partition naming style.
9929 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
9931 * util/grub-mkconfig.in: Fix handling of -o so that it works when
9932 not the first option.
9934 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
9936 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
9938 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
9940 * util/misc.c: Move inclusion of <limits.h> to ...
9941 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
9943 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
9945 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
9946 Fix merge error in NetBSD code.
9947 (find_partition_start) [__NetBSD__]: Likewise.
9949 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
9951 Fix grub-mkrescue usage unit testing.
9953 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
9955 2010-05-18 Christian Franke <franke@computer.org>
9957 * util/grub.d/10_windows.in: Use path names instead of
9958 drive letters to prevent warning from Cygwin 1.7.
9959 Add drivemap command to menuentry if needed.
9961 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
9963 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
9964 gnumach and gnumach.gz.
9966 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9968 * include/grub/i18n.h (gettext): Inline instead of using #define.
9969 (grub_gettext): Likewise.
9972 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9974 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
9975 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
9976 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
9977 (main): Add a slash after pkglibdirroot.
9979 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9981 * util/grub-install.in: Add missing "in" keyword.
9983 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9985 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
9986 Reported by: Seth Goldberg.
9988 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9990 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
9992 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
9994 * configure.ac: Check for Linux device-mapper support.
9996 * util/hostdisk.c (device_is_mapped): New function.
9997 (find_partition_start): New function, partly broken out from
9998 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
9999 device-mapper support added.
10000 (linux_find_partition): Use find_partition_start.
10001 (convert_system_partition_to_system_disk): Add `st' argument.
10002 Support Linux /dev/mapper/* devices if device-mapper support is
10003 available; only DM-RAID devices are understood at present.
10004 (find_system_device): Add `st' argument. Pass it to
10005 convert_system_partition_to_system_disk.
10006 (grub_util_biosdisk_get_grub_dev): Pass stat result to
10007 find_system_device and convert_system_partition_to_system_disk. Use
10008 find_partition_start.
10010 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
10011 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
10012 * util/deviceiter.c [__linux__]: Define MINOR.
10013 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
10014 * util/mkdevicemap.c (grub_putchar): New function.
10015 (grub_getkey): New function.
10016 (grub_refresh): New function.
10017 (main): Set debug=all if -v -v is used.
10019 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
10021 Fix build with non-GNU libcs.
10023 * util/misc.c (canonicalize_file_name): Move to ...
10024 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
10025 grub_make_system_path_relative_to_its_root.
10027 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
10029 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
10030 we handle finding grub-mkimage. Default to finding grub-mkimage in
10031 ${bindir} with program_transform_name applied, and provide a
10032 --grub-mkimage option to override this.
10034 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10036 Remove grub-mkisofs.
10038 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
10039 (grub_mkisofs_SOURCES): Removed.
10040 (grub_mkisofs_CFLAGS): Removed.
10041 * util/mkisofs/defaults.h: Removed.
10042 * util/mkisofs/eltorito.c: Likewise.
10043 * util/mkisofs/exclude.h: Likewise.
10044 * util/mkisofs/hash.c: Likewise.
10045 * util/mkisofs/include/: Likewise.
10046 * util/mkisofs/include/fctldefs.h: Likewise.
10047 * util/mkisofs/include/mconfig.h: Likewise.
10048 * util/mkisofs/include/prototyp.h: Likewise.
10049 * util/mkisofs/include/statdefs.h: Likewise.
10050 * util/mkisofs/iso9660.h: Likewise.
10051 * util/mkisofs/joliet.c: Likewise.
10052 * util/mkisofs/match.c: Likewise.
10053 * util/mkisofs/match.h: Likewise.
10054 * util/mkisofs/mkisofs.c: Likewise.
10055 * util/mkisofs/mkisofs.h: Likewise.
10056 * util/mkisofs/msdos_partition.h: Likewise.
10057 * util/mkisofs/multi.c: Likewise.
10058 * util/mkisofs/name.c: Likewise.
10059 * util/mkisofs/rock.c: Likewise.
10060 * util/mkisofs/tree.c: Likewise.
10061 * util/mkisofs/write.c: Likewise.
10063 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10065 Unify grub-mkimage accross platforms.
10067 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
10068 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
10069 (grub_mkelfimage_SOURCES): Removed.
10070 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
10071 (util/grub-mkimage.c_DEPENDENCIES): .. this.
10072 (bin_UTILITIES): Add grub-mkimage.
10073 (grub_mkimage_SOURCES): New variable.
10074 (kernel_img_HEADERS): Remove machine/kernel.h.
10075 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
10076 (pkglib_PROGRAMS): Add kernel.img.
10077 (kernel_img_HEADERS): Add machine/kernel.h.
10078 (kernel_img_FORMAT): Removed.
10079 (bin_UTILITIES): Remove grub-mkimage.
10080 (grub_mkimage_SOURCES): Removed.
10081 (grub_mkimage_CFLAGS): Likewise.
10082 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
10083 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
10084 (pkglib_PROGRAMS): Add kernel.img.
10085 (bin_UTILITIES): Remove grub-mkimage.
10086 (grub_mkimage_SOURCES): Removed.
10087 (grub_mkimage_CFLAGS): Likewise.
10088 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
10089 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
10090 (pkglib_PROGRAMS): Add kernel.img.
10091 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
10092 (pkglib_PROGRAMS): Add kernel.img.
10093 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
10094 (grub_mkimage_SOURCES): Removed.
10095 (grub_mkimage_CFLAGS): Likewise.
10096 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
10097 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
10098 (pkglib_PROGRAMS): Add kernel.img.
10099 (bin_UTILITIES): Remove grub-mkimage.
10100 (grub_mkimage_SOURCES): Removed.
10101 (grub_mkimage_CFLAGS): Likewise.
10102 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
10103 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
10104 (grub_mkimage_SOURCES): Removed.
10105 (grub_mkimage_CFLAGS): Likewise.
10106 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
10107 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
10108 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
10109 (grub_pe32_optional_header): ... this.
10110 (grub_pe64_optional_header): ... and this. All users updated.
10111 (GRUB_PE32_PE32_MAGIC): Split into ..
10112 (GRUB_PE32_PE32_MAGIC): .. this.
10113 (GRUB_PE32_PE64_MAGIC): .. and this.
10114 (GRUB_PE32_SIGNATURE_SIZE): New definition.
10115 * include/grub/elf.h (PT_GNU_STACK): New definition.
10116 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
10117 * include/grub/i386/efi/kernel.h: Likewise.
10118 * include/grub/i386/kernel.h: Likewise.
10119 * include/grub/i386/pc/kernel.h: Likewise.
10120 * include/grub/i386/qemu/boot.h: Likewise.
10121 * include/grub/mips/kernel.h: Likewise.
10122 * include/grub/mips/qemu-mips/kernel.h: Likewise.
10123 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
10124 * include/grub/powerpc/kernel.h: Likewise.
10125 * include/grub/sparc64/ieee1275/boot.h: Likewise.
10126 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
10127 * include/grub/sparc64/kernel.h: Likewise.
10128 * include/grub/x86_64/efi/kernel.h: Likewise.
10129 * include/grub/x86_64/kernel.h: Likewise.
10130 * include/grub/offsets.h: New file.
10131 * include/grub/kernel.h (grub_module_info): Split into ...
10132 (grub_module_info32): ... this.
10133 (grub_module_info64): ... and this.
10134 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
10135 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
10136 (grub_boot_blocklist): Moved from here ...
10137 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
10138 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
10139 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
10140 * include/grub/types.h (grub_target_to_host16): Removed.
10141 (grub_target_to_host32): Likewise.
10142 (grub_target_to_host64): Likewise.
10143 (grub_host_to_target16): Likewise.
10144 (grub_host_to_target32): Likewise.
10145 (grub_host_to_target64): Likewise.
10146 (grub_host_to_target_addr): Likewise.
10148 Support grub-mkrescue for efi, coreboot and qemu.
10150 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
10151 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
10152 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
10153 * util/grub-mkrawimage.c: Moved from here ...
10154 * util/grub-mkimage.c: ... here. All users updated.
10155 (ALIGN_ADDR): Use image_target.
10156 (TARGET_NO_FIELD): New const.
10157 (image_target_desc): New type.
10158 (image_targets): New array.
10159 (grub_target_to_host64): Use image_target.
10160 (grub_target_to_host32): Likewise.
10161 (grub_target_to_host16): Likewise.
10162 (grub_host_to_target64): Likewise.
10163 (grub_host_to_target32): Likewise.
10164 (grub_host_to_target16): Likewise.
10165 (grub_host_to_target_addr): Likewise.
10166 (generate_image): Handle multiimage.
10167 (main): Require -O parameter. All users updated.
10168 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
10169 util/efi/grub-mkimage.c
10170 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
10171 New option --rom-directory.
10173 * util/i386/efi/grub-mkimage.c: Removed.
10174 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
10175 (grub_target_to_host32): Likewise.
10176 (grub_target_to_host64): Likewise.
10177 (grub_host_to_target16): Likewise.
10178 (grub_host_to_target32): Likewise.
10179 (grub_host_to_target64): Likewise.
10180 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
10181 (grub_target_to_host32): Likewise.
10182 (grub_target_to_host64): Likewise.
10183 (grub_host_to_target16): Likewise.
10184 (grub_host_to_target32): Likewise.
10185 (grub_host_to_target64): Likewise.
10187 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
10189 Source tree is reorganized for emu build.
10191 * include/grub/util/console.h: Move from here...
10192 * include/grub/emu/console.h: ...to here.
10193 * include/grub/util/getroot.h: Move from here...
10194 * include/grub/emu/getroot.h: ...to here.
10195 * include/grub/util/hostdisk.h: Move from here...
10196 * include/grub/emu/hostdisk.h: ...to here.
10197 * util/console.c: Move from here...
10198 * kern/emu/console.c: ...to here.
10199 * util/getroot.c: Move from here...
10200 * kern/emu/getroot.c: ...to here.
10201 * util/grub-emu.c: Move from here...
10202 * kern/emu/main.c: ...to here.
10203 * util/hostdisk.c: Move from here...
10204 * kern/emu/hostdisk.c: ...to here.
10205 * util/hostfs.c: Move from here...
10206 * kern/emu/hostfs.c: ...to here.
10207 * util/mm.c: Move from here...
10208 * kern/emu/mm.c: ...to here.
10209 * util/pci.c: Move from here...
10210 * bus/emu/pci.c: ...to here.
10211 * util/sdl.c: Move from here...
10212 * video/emu/sdl.c: ...to here.
10213 * util/time.c: Move from here...
10214 * kern/emu/time.c: ...to here.
10215 * util/usb.c: Move from here...
10216 * bus/usb/emu/usb.c: ...to here.
10218 * include/grub/emu/misc.h: New header for grub-emu functions.
10219 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
10221 * conf/any-emu.rmk: Rule updates for above renames.
10222 * conf/common.rmk: Likewise.
10223 * conf/i386-pc.rmk: Likewise.
10224 * conf/i386-qemu.rmk: Likewise.
10225 * conf/mips.rmk: Likewise.
10226 * conf/sparc64-ieee1275.rmk: Likewise.
10227 * conf/x86-efi.rmk: Likewise.
10229 * disk/lvm.h: #include updates for above renames.
10230 * util/grub-mkrelpath.c: Likewise.
10231 * util/grub-probe.c: Likewise.
10232 * util/i386/pc/grub-setup.c: Likewise.
10233 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10234 * kern/emu/console.c: Likewise.
10235 * kern/emu/getroot.c: Likewise.
10236 * kern/emu/hostdisk.c: Likewise.
10237 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
10239 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
10240 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
10241 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
10242 * util/misc.c: Remove grub-emu functions.
10244 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10247 Reported by: Thorsten Grützmacher.
10249 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
10251 (circprog_set_property): Register and unregister timeout hook.
10252 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
10253 (label_destroy): Free template. and unregister hook.
10254 (label_set_state): New function.
10255 (label_set_property): Handle templates and hooks.
10256 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
10258 (progress_bar_set_property): Register and unregister timeout hook.
10259 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
10260 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
10261 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
10262 (update_timeout_visit): Removed.
10263 (update_timeouts): New function.
10264 (redraw_timeouts): Likewise.
10265 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
10266 (grub_gfxmenu_clear_timeout): Likewise.
10267 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
10268 (grub_gfxmenu_timeout_notify): Likewise.
10269 (grub_gfxmenu_timeout_notifications): New external variable.
10270 (grub_gfxmenu_timeout_register): New function.
10271 (grub_gfxmenu_timeout_unregister): Likewise.
10273 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10275 Transform (broken) vga terminal into (working) vga video driver.
10277 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
10278 video/i386/pc/vga.c.
10279 * include/grub/video.h (grub_video_driver_id):
10280 Add GRUB_VIDEO_DRIVER_VGA.
10281 * term/i386/pc/vga.c: Renamed to ...
10282 * video/i386/pc/vga.c: ...this
10283 (DEBUG_VGA): Removed.
10284 (CHAR_WIDTH): Likewise.
10285 (CHAR_HEIGHT): Likewise.
10286 (TEXT_WIDTH): Likewise.
10287 (TEXT_HEIGHT): Likewise.
10288 (DEFAULT_FG_COLOR): Likewise.
10289 (DEFAULT_BG_COLOR): Likewise.
10290 (colored_char): Likewise.
10293 (cursor_state): Likewise.
10294 (fg_color): Likewise.
10295 (bg_color): Likewise.
10296 (text_buf): Likewise.
10299 (framebuffer): New variable.
10300 (set_read_map): Disabled.
10301 (setup): New variable.
10302 (is_target): Likewise.
10303 (grub_vga_mod_init): Likewise.
10304 (grub_vga_mod_fini): Likewise.
10305 (check_vga_mem): Likewise.
10306 (write_char): Likewise.
10307 (write_cursor): Likewise.
10308 (scroll_up): Likewise.
10309 (grub_vga_putchar): Likewise.
10310 (grub_vga_getcharwidth): Likewise.
10311 (grub_vga_getwh): Likewise.
10312 (grub_vga_getxy): Likewise.
10313 (grub_vga_gotoxy): Likewise.
10314 (grub_vga_cls): Likewise.
10315 (grub_vga_setcolorstate): Likewise.
10316 (grub_vga_setcursor): Likewise.
10317 (grub_video_vga_init): New function.
10318 (grub_video_vga_setup): Likewise.
10319 (grub_video_vga_fini): Likewise.
10320 (update_target): Likewise.
10321 (grub_video_vga_blit_bitmap): Likewise.
10322 (grub_video_vga_blit_render_target): Likewise.
10323 (grub_video_vga_set_active_render_target): Likewise.
10324 (grub_video_vga_get_active_render_target): Likewise.
10325 (grub_video_vga_swap_buffers): Likewise.
10326 (grub_video_vga_set_palette): Likewise.
10327 (grub_video_vga_get_info_and_fini): Likewise.
10328 (grub_vga_term): Removed.
10329 (grub_video_vga_adapter): New variable.
10330 (GRUB_MOD_INIT): Register a video driver instead of terminal.
10331 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
10333 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
10335 * video/readers/jpeg.c: Indented.
10337 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
10339 Various jpeg cleanups.
10341 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
10342 (grub_jpeg_decode_quan_table): Use sizeof.
10343 (grub_jpeg_decode_du): Use ARRAY_SIZE.
10345 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
10347 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
10348 tables. Ignore non-last ac bit.
10349 (grub_jpeg_decode_quan_table): Likewise.
10351 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
10353 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
10354 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
10355 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10356 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
10357 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
10358 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
10360 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
10362 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
10365 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
10367 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
10369 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10371 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
10374 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10376 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
10379 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10381 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
10384 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10386 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
10388 2010-05-01 Christian Franke <franke@computer.org>
10390 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
10391 Remove broken Cygwin path conversion.
10392 * util/misc.c: [__CYGWIN__] Add include and define.
10393 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
10395 (make_system_path_relative_to_its_root): Simplify loop, replace early
10397 [__CYGWIN__] Add conversion to win32 path.
10398 Include "/" case in trailing slash removal.
10400 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10402 * kern/main.c (grub_load_config): Fix copy-pasted comment.
10403 Reported by: Seth Goldberg
10405 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10407 * commands/help.c (grub_cmd_help): Fix a typo.
10408 Reported by: Seth Goldberg
10410 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10412 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
10414 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
10415 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
10416 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
10417 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
10418 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
10419 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
10420 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
10421 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
10422 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
10423 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
10424 * normal/context.c (GRUB_MOD_INIT): Likewise.
10425 * normal/main.c (GRUB_MOD_INIT): Likewise.
10426 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
10427 * term/serial.c (GRUB_MOD_INIT): Likewise.
10428 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
10430 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10432 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
10435 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10437 * commands/iorw.c: New file.
10438 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
10439 (iorw_mod_SOURCES): New variable.
10440 (iorw_mod_CFLAGS): Likewise.
10441 (iorw_mod_LDFLAGS): Likewise.
10443 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10447 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
10448 * normal/main.c (hotkey_aliases): New variable.
10449 (grub_normal_add_menu_entry): Parse "--hotkey".
10450 * normal/menu_text.c (run_menu): Handle hotkeys.
10452 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10454 * kern/i386/coreboot/init.c (grub_machine_init): Call
10455 grub_machine_mmap_init on qemu.
10457 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10459 * boot/i386/qemu/boot.S: Add a missing .code16.
10461 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10463 Use LBIO on coreboot.
10465 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
10466 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
10467 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
10469 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
10470 grub_machine_mmap_init on coreboot.
10471 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
10472 GRUB_LINUXBIOS_MEMBER_LINK.
10473 (grub_machine_mmap_iterate): Fix declaration.
10474 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
10476 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10478 Split coreboot and multiboot ports.
10480 * conf/i386-multiboot.rmk: New file.
10481 * configure.ac: Add multiboot port.
10482 * include/grub/i386/multiboot/boot.h: New file.
10483 * include/grub/i386/multiboot/console.h: Likewise.
10484 * include/grub/i386/multiboot/init.h: Likewise.
10485 * include/grub/i386/multiboot/kernel.h: Likewise.
10486 * include/grub/i386/multiboot/loader.h: Likewise.
10487 * include/grub/i386/multiboot/memory.h: Likewise.
10488 * include/grub/i386/multiboot/serial.h: Likewise.
10489 * include/grub/i386/multiboot/time.h: Likewise.
10490 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
10491 * loader/multiboot.c: Likewise.
10492 * loader/multiboot_mbi2.c: Likewise.
10493 * util/grub-mkrescue.in: Generate multiboot rescue.
10495 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10497 * kern/parser.c (grub_parser_execute): Cope with read-only config.
10499 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10501 Merge handling of input and output terminals. Fix a hang.
10503 * commands/terminal.c (abstract_terminal): New struct.
10504 (handle_command): New function. Based on grub_cmd_terminal_input.
10505 (grub_cmd_terminal_input): Use handle_command.
10506 (grub_cmd_terminal_output): Use handle_command.
10508 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
10510 Fix comment handling.
10512 * tests/grub_script_comments.in: New testcase.
10513 * conf/tests.rmk: Rules for new testcase.
10514 * script/yylex.l: Updated flex rules.
10516 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10518 * docs/grub.texi (play): Document that zero pitches produce rests.
10519 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
10522 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
10524 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
10527 2010-04-26 Christian Franke <franke@computer.org>
10529 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
10530 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
10531 (grub_get_prefix): Remove function.
10532 * util/grub-emu.c (main): Replace grub_get_prefix () call by
10533 make_system_path_relative_to_its_root ().
10534 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
10536 2010-04-24 Christian Franke <franke@computer.org>
10538 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
10539 (kernel_img_LDFLAGS): Remove -static-libgcc.
10541 2010-04-24 Christian Franke <franke@computer.org>
10543 * configure.ac: Do not CHECK_BSS_START_SYMBOL
10544 and CHECK_END_SYMBOL if grub-emu is built.
10545 Unset TARGET_OBJ2ELF if grub-emu is built
10546 without module support.
10548 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
10552 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
10553 (grub_fstest_SOURCES): Likewise.
10554 (pkglib_MODULES): Add nilfs2.mod.
10555 (nilfs2_mod_SOURCES): New variable.
10556 (nilfs2_mod_CFLAGS): Likewise.
10557 (nilfs2_mod_LDFLAGS): Likewise.
10558 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
10559 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
10560 * fs/nilfs2.c: New file.
10562 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10564 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
10567 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
10569 Add grub-mkconfig support for NetBSD.
10571 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
10572 * util/grub-mkconfig.in: export new NetBSD specific variables.
10573 * po/POTFILES-shell: added 10_netbsd.in.
10574 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
10576 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
10578 Fix emu build with grub-emu-pci and grub-emu-modules.
10580 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
10582 * include/grub/libpciaccess.h: New file.
10583 * conf/any-emu.rmk: Update kernel headers for emu build.
10585 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
10587 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
10589 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
10591 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
10593 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10595 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
10596 Retrieve chosen/bootpath if bootpath isn't hardcoded.
10597 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
10598 util/ieee1275/ofpath.c.
10599 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
10600 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
10601 * include/grub/sparc64/ieee1275/boot.h
10602 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
10603 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
10604 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
10605 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
10607 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
10608 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
10609 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
10612 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
10614 * util/grub-mkconfig.in: Corrected two == equality tests.
10615 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
10616 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
10617 expect a number appended to it.
10618 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
10619 expects a number appended to it.
10621 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10623 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
10625 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10627 * util/hostdisk.c (make_device_name): Change to new partition naming.
10629 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10631 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
10633 2010-04-17 Christian Franke <franke@computer.org>
10635 * Makefile.in: Add missing localedir setting.
10637 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
10639 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
10640 mistake in r2156. Noticed by Anthony Fok.
10642 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
10644 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
10646 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
10648 Fix a spurious, uninitialized variable warning.
10650 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
10651 Initialize variable, shdr.
10652 (grub_freebsd_load_elfmodule): Likewise.
10653 (grub_freebsd_load_elf_meta): Likewise.
10655 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
10657 Fix for escaped dollar in double quoted strings.
10659 * script/yylex.l: Updated flex rules.
10660 * conf/tests.rmk: Rule for new testcase.
10661 * tests/grub_script_dollar.in: New testcase.
10663 2010-04-13 Carles Pina i Estany <carles@pina.cat>
10664 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
10666 Enclose all translated strings in grub.cfg in single quotes, and
10667 escape them appropriately (Ubuntu bug #552921).
10669 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
10670 * util/grub.d/10_hurd.in: Use it.
10671 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
10672 * util/grub.d/10_linux.in (linux_entry): Likewise.
10674 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10676 Fix cygwin compilation.
10678 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
10679 * include/grub/misc.h (__register_frame_info)
10680 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
10681 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
10682 * kern/misc.c (__register_frame_info)
10683 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
10684 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
10686 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10688 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
10690 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10692 Unify libgcc processing.
10694 * Makefile.in (kernel_img_LDFLAGS): New variable.
10695 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
10696 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
10698 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
10699 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
10700 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
10701 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
10702 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
10703 overwriting. Remove -lgcc and -static-libgcc
10704 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
10705 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
10706 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
10707 (kernel_img_LDFLAGS): Append instead of overwriting.
10708 Remove -lgcc and -static-libgcc
10709 * conf/sparc64-ieee1275.rmk: Likewise.
10710 * include/grub/powerpc/libgcc.h: Move to ...
10711 * include/grub/libgcc.h: .. this.
10712 * include/grub/libgcc.h: Don't export most of the function on x86.
10713 (__bswapsi2): New export.
10714 (__bswapdi2): Likewise.
10715 * include/grub/mips/libgcc.h: Removed.
10716 * include/grub/sparc64/libgcc.h: Likewise.
10718 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10720 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
10721 disk_info_msg (conflicts with gettexting into languages with cases).
10723 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
10725 Add grub-probe support for NetBSD.
10727 * util/getroot.c (find_root_device): Convert block device to
10728 character device on NetBSD.
10729 * util/probe.c (probe): Require character device on NetBSD.
10730 * util/hostdisk.c: NetBSD specific headers.
10731 (configure_device_driver): new function to tune device driver
10732 parameters (currently only for NetBSD floppy driver).
10733 (grub_util_biosdisk_open): NetBSD specific code (get disk size
10734 via disklabel ioctl).
10735 (open_device): call configure_device_driver on NetBSD.
10736 (convert_system_partition_to_system_disk): NetBSD specific code.
10737 (device_is_wholedisk): Likewise.
10738 (grub_util_biosdisk_get_grub_dev): Likewise.
10739 (make_device_name): Fixed a typo in bsd_part_str.
10740 * configure.ac: check for opendisk() and getrawpartition() on
10741 NetBSD and set LIBUTIL.
10742 * Makefile.in: add LIBUTIL to LIBS.
10744 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
10748 * util/grub-script-check.c: Better help message.
10750 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
10754 * configure.ac: Flex version check.
10755 * conf/common.rmk: Add -Wno-error to sh.mod.
10756 * script/yylex.l: Remove all #pragma.
10758 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10760 * include/grub/util/misc.h (canonicalise_file_name): Add missing
10762 Reported by: Seth Goldberg.
10764 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10766 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
10767 Rename "module" to "module2".
10768 Reported by: Seth Goldberg.
10770 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10772 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
10774 Reported by: Seth Goldberg.
10776 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10778 * lib/posix_wrap/locale.h: Add missing file.
10779 Reported by: Seth Goldberg.
10781 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10783 grub-emu module load support.
10785 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
10786 NO_DYNAMIC_MODULES switched to this.
10787 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
10788 (CFLAGS): Likewise.
10789 * conf/any-emu.rmk: Generate symlist.
10790 (kernel_img_HEADERS): Add util/datetime.h.
10791 (kernel_img_HEADERS) [sdl]: Add sdl.h.
10792 (kernel_img_HEADERS) [libusb]: Add libusb.h.
10793 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
10794 kern/$(target_cpu)/cache.S.
10795 * configure.ac (grub-emu-modules): New option.
10796 * genmk.rb: Handle multiple source lists.
10797 * include/grub/sdl.h: New file.
10798 * include/grub/libusb.h: Likewise.
10799 * util/grub-emu.c (main): Hanle (host) root.
10800 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
10801 GRUB_ERR_UNKNOWN_DEVICE.
10802 * util/misc.c: Move mm functions to ...
10803 * util/mm.c: ... here. All users updated.
10805 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10807 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
10808 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
10810 (maintainer-clean): Remove libgcrypt-grub.
10812 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10814 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
10816 2010-04-09 EFI Coder <eficoder@hotmail.com>
10818 * normal/menu_text.c (print_message): Clean up the message and show
10819 the Fn information when on EFI
10820 * term/efi/console.c (grub_console_checkkey): Add F4 support.
10822 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10824 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
10826 * normal/crypto.c (read_crypto_list): Likewise.
10827 * normal/dyncmd.c (read_command_list): Likewise.
10828 * normal/term.c (read_terminal_list): Likewise.
10829 * normal/main.c (read_lists): Use explicit prefix.
10830 (read_lists_hook): Use read_lists.
10831 (grub_normal_execute): Likewise.
10833 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10835 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
10836 Reported by: Thomas Schmitt.
10837 Add -no-emul-boot to grub-mkisofs parameters.
10839 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10841 * font/font.c: Indented.
10843 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
10845 Elif support to GRUB script (by Deepak Vankadaru).
10847 * tests/grub_script_if.in: New testcase.
10848 * conf/tests.rmk: Rule for new testcase.
10849 * script/parser.y: Grammar rules for elif.
10851 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
10853 While and until loops support to GRUB script.
10855 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
10856 (grub_script_create_cmdwhile): New function prototype.
10857 (grub_script_execute_cmdwhile): New function prototype.
10858 * script/execute.c (grub_script_execute_cmdwhile): New function.
10859 * script/parser.y (command): New commands.
10860 (whilecmd): New grammar rule.
10861 (untilcmd): New grammar rule.
10862 * script/script.c (grub_script_create_cmdwhile): New function.
10863 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
10866 * tests/grub_script_while1.in: New testcase.
10867 * conf/tests.rmk: Rule for new testcase.
10869 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10871 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
10874 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
10876 GRUB_BACKGROUND support.
10878 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
10879 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
10881 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10883 Load fonts and modules for gfxmenu in grub-mkconfig.
10884 Idea by: Mario Vazquez
10886 * util/grub.d/00_header.in: Load pf2 and image modules.
10888 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10890 grub-mkconfig multiple terminal support.
10892 * util/grub-mkconfig.in: Handle multiple terminals correctly.
10893 * util/grub.d/00_header.in: Likewise.
10895 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10897 * Makefile.in: Specify files explicitly instead of using $< and $@ since
10898 we use cd $(srcdir).
10900 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
10902 * util/grub.d/10_linux.in: Only use the first word of
10903 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
10904 spaces in GRUB_DISTRIBUTOR.
10905 * util/grub.d/10_kfreebsd.in: Likewise.
10906 * util/grub.d/10_hurd.in: Likewise.
10908 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
10910 Fix unit testing framework for Qemu 0.12.
10912 * tests/util/grub-shell.in: Remove -serial stdio option.
10914 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
10916 POSIX header file wrappers.
10918 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
10920 * lib/posix_wrap/ctype.h: Likewise.
10921 * lib/posix_wrap/errno.h: Likewise.
10922 * lib/posix_wrap/langinfo.h: Likewise.
10923 * lib/posix_wrap/limits.h: Likewise.
10924 * lib/posix_wrap/localcharset.h: Likewise.
10925 * lib/posix_wrap/stdint.h: Likewise.
10926 * lib/posix_wrap/stdio.h: Likewise.
10927 * lib/posix_wrap/stdlib.h: Likewise.
10928 * lib/posix_wrap/string.h: Likewise.
10929 * lib/posix_wrap/sys/types.h: Likewise.
10930 * lib/posix_wrap/unistd.h: Likewise.
10931 * lib/posix_wrap/wchar.h: Likewise.
10932 * lib/posix_wrap/wctype.h: Likewise.
10933 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
10934 (grub_script.yy.h): Likewise.
10935 * script/yylex.l: Remove POSIX emulation #defines.
10936 * Makefile.in (POSIX_CFLAGS): New variable.
10937 (GNULIB_UTIL_CFLAGS): Likewise.
10941 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
10942 (regexp_mod_SOURCES): New variable.
10943 (regexp_mod_CFLAGS): Likewise.
10944 (regexp_mod_LDFLAGS): Likewise.
10945 * commands/regexp.c: New file.
10946 * gnulib/regcomp.c: New file. Imported from gnulib.
10947 * gnulib/regex.c: Likewise.
10948 * gnulib/regex_internal.c: Likewise.
10949 * gnulib/regex_internal.h: Likewise.
10950 * gnulib/regexec.c: Likewise.
10951 * gnulib/regex.h: Likewise.
10953 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10955 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
10956 unsupported video mode types.
10958 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10960 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
10962 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10964 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
10965 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
10967 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10969 Remove unused grub_vga_get_font.
10971 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
10972 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
10974 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10976 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
10977 * include/grub/misc.h: Likewise.
10979 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10981 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
10982 for which failure is fatal.
10984 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10986 * util/grub-install.in: Use mkdir -p to create grub directory.
10987 * util/i386/efi/grub-install.in: Likewise.
10988 * util/ieee1275/grub-install.in: Likewise.
10990 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10992 * Makefile.in (LEX): new variable.
10994 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10996 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
10997 `=' and added double quotes on operands of this equality test.
10999 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
11001 * Makefile.in (uninstall): Remove a leftover debug echo.
11002 Reported by: Grégoire Sutre
11004 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
11006 MIPS multiboot2 support.
11008 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
11009 (multiboot2_mod_SOURCES): New variable.
11010 (multiboot2_mod_CFLAGS): Likewise.
11011 (multiboot2_mod_LDFLAGS): Likewise.
11012 (multiboot2_mod_ASFLAGS): Likewise.
11013 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
11015 (MULTIBOOT_ENTRY_REGISTER): Likewise.
11016 (MULTIBOOT_MBI_REGISTER): Likewise.
11017 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
11018 (MULTIBOOT_ELF32_MACHINE): Likewise.
11019 (MULTIBOOT_ELF64_MACHINE): Likewise.
11020 * include/grub/mips/multiboot.h: New file.
11021 * include/grub/video.h (grub_video_driver_id): New type
11022 GRUB_VIDEO_DRIVER_SM712.
11023 (grub_video_get_info_and_fini): Export.
11024 (grub_video_get_palette): Likewise.
11025 (grub_video_get_driver_id): Likewise.
11026 * include/multiboot2.h: Resynced with spec.
11027 * loader/i386/multiboot.c: Moved from here ...
11028 * loader/multiboot.c: ... here. All users updated.
11029 (grub_multiboot_boot): Use platform-specific macros.
11030 * loader/i386/multiboot_elfxx.c: Moved from here ...
11031 * loader/multiboot_elfxx.c: ... here. All users updated.
11032 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
11033 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
11034 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
11036 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
11038 Import gnulib argp module.
11040 * gnulib/argp-ba.c: New file.
11041 * gnulib/argp-eexst.c: Likewise.
11042 * gnulib/argp-fmtstream.c: Likewise.
11043 * gnulib/argp-fmtstream.h: Likewise.
11044 * gnulib/argp-fs-xinl.c: Likewise.
11045 * gnulib/argp-help.c: Likewise.
11046 * gnulib/argp-namefrob.h: Likewise.
11047 * gnulib/argp-parse.c: Likewise.
11048 * gnulib/argp-pin.c: Likewise.
11049 * gnulib/argp-pv.c: Likewise.
11050 * gnulib/argp-pvh.c: Likewise.
11051 * gnulib/argp-version-etc.c: Likewise.
11052 * gnulib/argp-version-etc.h: Likewise.
11053 * gnulib/argp-xinl.c: Likewise.
11054 * gnulib/argp.h: Likewise.
11056 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11058 * kern/device.c (grub_device_iterate): Clear errors after failed
11061 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11063 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
11064 returned by firmware.
11066 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
11068 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
11069 compilation on coreboot and qemu
11071 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11073 * include/multiboot2.h: Resync with spec.
11075 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11077 Multiboot2 tag support
11079 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
11080 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
11081 Remove loader/multiboot_loader.c.
11082 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
11083 (grub_multiboot2_real_boot): Likewise.
11084 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
11085 (grub_get_multiboot_mmap_count): New proto.
11086 (grub_fill_multiboot_mmap): Likewise.
11087 (grub_multiboot_set_video_mode): Likewise.
11088 (grub_multiboot_set_console): Likewise.
11089 (grub_multiboot_load): Likewise.
11090 (grub_multiboot_load_elf): Likewise.
11091 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
11092 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
11093 * include/multiboot.h: Resynced with specification.
11094 * include/multiboot2.h: Resynced with specification.
11095 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
11096 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
11097 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
11098 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
11100 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
11101 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
11102 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
11104 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
11106 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
11107 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
11109 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
11110 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
11111 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
11113 * loader/i386/multiboot_mbi2.c: New file.
11115 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11117 Resync with gnulib.
11119 * Makefile.in (GNULIB_CFLAGS): New variable.
11120 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
11121 (grub_script_check_CFLAGS): New variable.
11122 * gnulib/alloca.h: Resync with gnulib.
11123 * gnulib/error.c: Likewise.
11124 * gnulib/error.h: Likewise.
11125 * gnulib/fnmatch.c: Likewise.
11126 * gnulib/fnmatch_loop.c: Likewise.
11127 * gnulib/getdelim.c: Likewise.
11128 * gnulib/getline.c: Likewise.
11129 * gnulib/getopt.c: Likewise.
11130 * gnulib/getopt1.c: Likewise.
11131 * gnulib/getopt_int.h: Likewise.
11132 * gnulib/gettext.h: Likewise.
11133 * gnulib/progname.c: Likewise.
11134 * gnulib/progname.h: Likewise.
11136 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
11138 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
11139 which is the case with --disabled-nls.
11141 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
11142 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
11143 * util/misc.c: Likewise.
11144 * util/mkisofs/mkisofs.c: Likewise.
11145 * util/mkisofs/mkisofs.h: Likewise.
11147 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11149 Simplify Apple CC support.
11151 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
11152 Add 0 byte at the end not to have a symbol with empty target.
11153 * mmap/i386/pc/mmap_helper.S: Likewise.
11154 * genmk.rb: Ignore errors 2030 and 2050.
11155 * kern/i386/pc/startup.S: Use LOCAL when possible.
11157 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
11159 Testcase and the fix for final semicolon on cmdline.
11161 * tests/grub_script_final_semicolon.in: New testcase.
11162 * conf/tests.rmk: Rules for the new testcase.
11163 * script/parser.y: Grammar fix.
11165 2010-03-26 BVK Chaitanya <bvk@localhost>
11167 Blank lines testcase for GRUB script.
11169 * tests/grub_script_blanklines.in: New testcase.
11170 * conf/tests.rmk: Rules for the new testcase.
11172 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11174 Don't use __FILE__.
11176 * genmk.rb: Add -DGRUB_FILE to all C targets.
11177 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
11178 * include/grub/list.h: Likewise.
11179 * include/grub/misc.h: Likewise.
11180 * include/grub/mm.h: Likewise.
11181 * include/grub/test.h: Likewise.
11182 * kern/mm.c: Likewise.
11183 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
11185 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11187 Sunpc partitions support.
11189 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
11190 (grub_fstest_SOURCES): Likewise.
11191 (pkglib_MODULES): Add part_sunpc.mod.
11192 (part_sunpc_mod_SOURCES): New variable.
11193 (part_sunpc_mod_CFLAGS): Likewise.
11194 (part_sunpc_mod_LDFLAGS): Likewise.
11195 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
11196 * partmap/sunpc.c: New file.
11198 2010-03-26 BVK Chaitanya <bvk@localhost>
11200 For loop support to GRUB script.
11202 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
11203 (grub_script_create_cmdfor): New function prototype.
11204 (grub_script_execute_cmdfor): New function prototype.
11205 * script/execute.c (grub_script_execute_cmdfor): New function.
11206 * script/parser.y (command): New for command.
11207 (forcmd): New grammar rule.
11208 * script/script.c (grub_script_create_cmdfor): New function.
11209 * util/grub-script-check.c (grub_script_execute_cmdfor): New
11211 * tests/grub_script_for1.in: New testcase.
11212 * conf/tests.rmk: Rules for new testcase.
11214 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11218 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
11219 'partition' is NULL, grub_partition_get_start already does that.
11220 * commands/loadenv.c (check_blocklists): Likewise.
11221 (write_blocklists): Likewise.
11222 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
11223 (grub_fstest_SOURCES): Likewise.
11224 (pkglib_MODULES): Add part_bsd.mod.
11225 (part_bsd_mod_SOURCES): New variable.
11226 (part_bsd_mod_CFLAGS): Likewise.
11227 (part_bsd_mod_LDFLAGS): Likewise.
11228 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
11229 (grub_emu_SOURCES): Likewise.
11230 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11231 * include/grub/bsdlabel.h: New file.
11232 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
11234 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
11235 (grub_partition_map_list): New variable.
11236 (grub_partition_map_register): Inline.
11237 (grub_partition_map_unregister): Likewise.
11238 (FOR_PARTITION_MAPS): New macro.
11239 (grub_partition_map_iterate): Removed.
11240 (grub_partition_get_start): Handle nested partitions.
11241 * include/grub/msdos_partition.h: Remove bsd-related entries.
11242 (grub_pc_partition): Remove.
11243 * kern/disk.c (grub_disk_close): Free partition data.
11244 (grub_disk_adjust_range): Handle nested partitions.
11245 * kern/partition.c (grub_partition_map_probe): New function.
11246 (grub_partition_probe): Parse name to number, handle subpartitions.
11247 (get_partmap): New function.
11248 (grub_partition_iterate): Handle subpartitions.
11249 (grub_partition_get_name): Likewise.
11250 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
11251 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
11252 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
11253 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
11255 (acorn_partition_map_probe): Remove.
11256 (acorn_partition_map_get_name): Likewise.
11257 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
11259 Set 'index' to 0 since there can be only one partition entry per sector.
11260 (amiga_partition_map_probe): Remove.
11261 (amiga_partition_map_get_name): Likewise.
11262 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
11264 Set 'offset' and 'index' to real positions of partitions.
11265 (apple_partition_map_probe): Remove.
11266 (apple_partition_map_get_name): Likewise.
11267 * partmap/bsdlabel.c: New file.
11268 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
11270 Allocate 'data' so it can be correctly freed.
11271 Set 'index' to offset inside sector.
11272 (gpt_partition_map_probe): Remove.
11273 (gpt_partition_map_get_name): Likewise.
11274 * partmap/msdos.c (grub_partition_parse): Remove.
11275 (pc_partition_map_iterate): Don't force raw access.
11277 Make 'ext_offset' a local variable.
11278 (pc_partition_map_probe): Remove.
11279 (pc_partition_map_get_name): Remove.
11280 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
11282 (sun_partition_map_probe): Remove.
11283 (sun_partition_map_get_name): Likewise.
11284 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
11285 (grub_pcpart_type): Likewise.
11286 * util/hostdisk.c (open_device): Handle new numbering scheme.
11287 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
11288 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
11289 * util/grub-probe.c (probe_partmap): Handle nested paritions.
11290 * util/grub-install.in: Insert all subpartition modules.
11291 * util/ieee1275/grub-install.in: Likewise.
11293 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
11295 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
11298 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
11300 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
11302 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
11304 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
11305 match where 'make install' puts them.
11306 * util/i386/efi/grub-install.in: Likewise.
11308 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
11310 * .bzrignore: Add gentrigtables, grub-script-check,
11311 grub_script_check_init.c, grub_script_check_init.h, and
11314 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
11316 * kern/parser.c: Indented.
11318 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
11320 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
11322 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
11324 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
11325 alpha_mask_size == 0 case.
11327 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
11329 GRUB shell lexer and parser improvements.
11331 * conf/any-emu.rmk: Build rule updates.
11332 * conf/common.rmk: Likewise.
11333 * conf/i386-coreboot.rmk: Likewise.
11334 * conf/i386-efi.rmk: Likewise.
11335 * conf/i386-ieee1275.rmk: Likewise.
11336 * conf/i386-pc.rmk: Likewise.
11337 * conf/powerpc-ieee1275.rmk: Likewise.
11338 * conf/x86_64-efi.rmk: Likewise.
11340 * configure.ac: Configure check for flex.
11342 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
11344 (grub_lexer_param): Struct member updates.
11345 (grub_parser_param): Likewise.
11346 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
11347 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
11348 (grub_script_lexer_init): Prototype update.
11349 (grub_script_lexer_record_start): Likewise.
11350 (grub_script_lexer_record_stop): Likewise.
11351 (grub_script_lexer_yywrap): New function prototype.
11352 (grub_script_lexer_fini): Likewise.
11353 (grub_script_execute_argument_to_string): Removed by...
11354 (grub_script_execute_argument_to_argv): ...better version.
11356 * script/execute.c (ROUND_UPTO): New macro.
11357 (grub_script_execute_cmdline): Out of memory fixes.
11358 (grub_script_execute_menuentry): Likewise.
11359 (grub_script_execute_argument_to_string): Removed. Update all
11361 (grub_script_execute_argument_to_argv): ...better version.
11362 * script/function.c (grub_script_function_create): Use
11363 grub_script_execute_argument_to_argv instead of
11364 grub_script_execute_argument_to_string.
11366 * script/lexer.c (check_varstate): Removed.
11367 (check_textstate): Removed.
11368 (grub_script_lexer_record_start): Likewise.
11369 (grub_script_lexer_record_stop): Likewise.
11370 (recordchar): Replaced with...
11371 (grub_script_lexer_record): ...new function.
11372 (nextchar): Removed.
11373 (grub_script_lexer_init): Rewritten.
11374 (grub_script_yylex): Rewritten.
11375 (append_newline): New function.
11376 (grub_script_lexer_yywrap): New function.
11377 (grub_script_lexer_fini): New function.
11378 (grub_script_yyerror): Sets error flag.
11380 * script/yylex.l: New file.
11381 (grub_lexer_yyfree): Wrapper for flex yyffre.
11382 (grub_lexer_yyalloc): Likewise.
11383 (grub_lexer_yyrealloc): Likewise.
11384 * script/parser.y: Refactored.
11386 * script/script.c (grub_script_arg_add): Out of memory fixes.
11387 (grub_script_add_arglist): Likewise.
11388 (grub_script_create_cmdline): Likewise.
11389 (grub_script_create_cmdmenu): Likewise.
11390 (grub_script_add_cmd): Likewise.
11391 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
11392 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
11395 * tests/grub_script_echo1.in: New testcase.
11396 * tests/grub_script_vars1.in: New testcase.
11397 * tests/grub_script_echo_keywords.in: New testcase.
11399 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
11401 Remove some redundancy in build system.
11403 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
11404 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
11405 (TARGET_LDFLAGS): Add -nostdlib.
11406 (TARGET_IMG_LDFLAGS): Likewise.
11407 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
11408 anything since mmap isn't available.
11409 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
11411 (pkglib_MODULES): Remove reboot.mod.
11412 (reboot_mod_SOURCES): Removed.
11413 (reboot_mod_CFLAGS): Likewise.
11414 (reboot_mod_LDFLAGS): Likewise.
11415 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
11416 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
11417 (DEFSYMFILES): Add kernel_syms.lst.
11418 (kernel_img_HEADERS): Add common headers.
11419 (symlist.c): New target.
11420 (kernel_syms.lst): Likewise.
11421 (pkglib_MODULES): Add memdisk.mod.
11422 (memdisk_mod_SOURCES): New variable.
11423 (memdisk_mod_CFLAGS): Likewise.
11424 (memdisk_mod_LDFLAGS): Likewise.
11425 (pkglib_MODULES): Add reboot.mod.
11426 (reboot_mod_SOURCES): New variable.
11427 (reboot_mod_CFLAGS): Likewise.
11428 (reboot_mod_LDFLAGS): Likewise.
11429 (pkglib_MODULES): Add date.mod.
11430 (date_mod_SOURCES): New variable.
11431 (date_mod_CFLAGS): Likewise.
11432 (date_mod_LDFLAGS): Likewise.
11433 (pkglib_MODULES): Add datehook.mod.
11434 (datehook_mod_SOURCES): New variable.
11435 (datehook_mod_CFLAGS): Likewise.
11436 (datehook_mod_LDFLAGS): Likewise.
11437 (pkglib_MODULES): Add lsmmap.mod.
11438 (lsmmap_mod_SOURCES): New variable.
11439 (lsmmap_mod_CFLAGS): Likewise.
11440 (lsmmap_mod_LDFLAGS): Likewise.
11441 (pkglib_MODULES): Add boot.mod.
11442 (boot_mod_SOURCES): New variable.
11443 (boot_mod_CFLAGS): Likewise.
11444 (boot_mod_LDFLAGS): Likewise.
11445 * conf/i386-coreboot.rmk: Removed redundant parts.
11446 * conf/i386-ieee1275.rmk: Likewise.
11447 * conf/i386-pc.rmk: Likewise.
11448 * conf/mips-yeeloong.rmk: Likewise.
11449 * conf/mips.rmk: Likewise.
11450 * conf/powerpc-ieee1275.rmk: Likewise.
11451 * conf/sparc64-ieee1275.rmk: Likewise.
11452 * conf/x86_64-efi.rmk: Likewise.
11453 * conf/i386-coreboot.rmk: Moved qemu parts ..
11454 * conf/i386-qemu.rmk: ... here
11455 * conf/i386-efi.rmk: Moved common parts to...
11456 * conf/x86-efi.rmk: ... here.
11457 * conf/i386.rmk: Added modules common to all x86 variants.
11458 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
11459 * disk/memdisk.c: Remove grub/machine/kernel.h.
11460 * gensymlist.sh.in: Include symbol.h.
11461 * hook/datehook.c: Correct module name.
11462 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
11463 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
11464 * include/grub/i386/efi/serial.h: New file.
11465 * include/grub/x86_64/efi/serial.h: Likewise.
11466 * util/time.c: Likewise.
11467 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
11469 2010-03-14 Colin King <colin.king@ubuntu.com>
11470 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
11472 Shrink the pre-partition-table part of boot.img by eight bytes.
11474 * boot/i386/pc/boot.S (ERR): New macro.
11475 (chs_mode): Use ERR.
11476 (geometry_error): Likewise.
11477 (hd_probe_error): Remove. This is only used once, so we wrwite
11479 (read_error): Instead of printing read_error_string, just set up
11480 %si and fall through to ...
11481 (error_message): ... this new function, also used by ERR.
11483 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
11485 Speed up consecutive hostdisk operations on the same device.
11487 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
11488 (grub_util_biosdisk_open): Initialise disk->data.
11489 (struct linux_partition_cache): New structure.
11490 (linux_find_partition): Cache partition start positions; these are
11491 expensive to compute on every read and write.
11492 (open_device): Cache open file descriptor in disk->data, so that we
11493 don't have to reopen it and flush the buffer cache for consecutive
11494 operations on the same device.
11495 (grub_util_biosdisk_close): New function.
11496 (grub_util_biosdisk_dev): Set `close' member.
11498 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
11499 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
11500 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
11501 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
11502 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
11504 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
11506 Compile parts of grub-emu as modules.
11508 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
11509 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
11510 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
11511 (all-local): Add $(GRUB_EMU).
11512 (install-local): Install $(GRUB_EMU).
11513 (uninstall): Uninstall $(GRUB_EMU).
11514 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
11515 * kern/dl.c: Likewise.
11516 * commands/sleep.c: Not include machine/time.h.
11517 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
11518 (COMMON_CFLAGS): Likewise.
11519 (sbin_UTILITIES): Remove grub-emu.
11520 (grub_emu_SOURCES): Removed.
11521 (kernel_img_RELOCATABLE): New variable.
11522 (pkglib_PROGRAMS): Add kernel.img.
11523 (kernel_img_SOURCES): New variable
11524 (kernel_img_CFLAGS): Likewise.
11525 (kernel_img_LDFLAGS): Likewise.
11526 (TARGET_NO_STRIP): Likewise.
11527 (TARGET_NO_DYNAMIC_MODULES): Likewise.
11528 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
11529 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
11530 (grub-emu): New target.
11531 (GRUB_EMU): New variable.
11532 * configure.ac: Whitelist -emu as possible x86_64 architecture.
11533 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
11534 * loader/xnu.c: Likewise.
11535 * include/grub/pci.h: Likewise.
11536 * genemuinit.sh: New file.
11537 * genemuinitheader.sh: Likewise.
11538 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
11539 Support TARGET_NO_DYNAMIC_MODULES.
11540 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
11541 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
11542 * disk/loopback.c: Likewise.
11543 * font/font_cmd.c: Likewise.
11544 * partmap/acorn.c: Likewise.
11545 * partmap/amiga.c: Likewise.
11546 * partmap/apple.c: Likewise.
11547 * partmap/gpt.c: Likewise.
11548 * partmap/msdos.c: Likewise.
11549 * partmap/sun.c: Likewise.
11550 * parttool/msdospart.c: Likewise.
11551 * term/gfxterm.c: Likewise.
11552 * video/bitmap.c: Likewise.
11553 * video/readers/jpeg.c: Likewise.
11554 * video/readers/png.c: Likewise.
11555 * video/readers/tga.c: Likewise.
11556 * video/video.c: Likewise.
11557 * util/grub-emu.c (read_command_list): Removed.
11558 (main): Don't call util_init_nls.
11559 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
11560 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
11562 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
11564 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
11565 date.mod, datehook.mod.
11566 (datetime_mod_SOURCES): New variable.
11567 (datetime_mod_CFLAGS): Likewise.
11568 (datetime_mod_LDFLAGS): Likewise.
11569 (date_mod_SOURCES): Likewise.
11570 (date_mod_CFLAGS): Likewise.
11571 (date_mod_LDFLAGS): Likewise.
11572 (datehook_mod_SOURCES): Likewise.
11573 (datehook_mod_CFLAGS): Likewise.
11574 (datehook_mod_LDFLAGS): Likewise.
11575 * conf/sparc64-ieee1275.rmk: Likewise.
11576 * lib/ieee1275/datetime.c: New file.
11578 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
11580 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
11581 (ieee1275_fb_mod_SOURCES): New variable.
11582 (ieee1275_fb_mod_CFLAGS): Likewise.
11583 (ieee1275_fb_mod_LDFLAGS): Likewise.
11584 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
11586 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
11587 (HEAP_MAX_ADDR): Likewise.
11588 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
11590 Correct stop condition.
11591 (grub_ieee1275_devices_iterate): New function.
11592 * video/ieee1275.c: New file.
11594 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
11596 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
11598 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
11600 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
11601 SCRATCH_PAD_DISKBOOT as scratch.
11602 (bootit): Pass Openfirmware pointer in %o4.
11603 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
11605 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
11606 with util/grub-mkrawimage.c.
11607 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
11608 * include/grub/aout.h (AOUT_MID_SUN): New definition.
11609 (grub_aout_get_type) [GRUB_UTIL]: Removed.
11610 (grub_aout_load) [GRUB_UTIL]: Likewise.
11611 * include/grub/kernel.h (grub_modules_get_end): New proto.
11612 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
11613 (SCRATCH_PAD_BOOT): New definition.
11614 (SCRATCH_PAD_DISKBOOT): Likewise.
11615 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
11616 * include/grub/sparc64/ieee1275/ieee1275.h
11617 (grub_ieee1275_original_stack): New variable
11618 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
11620 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
11621 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
11622 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
11623 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
11624 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
11625 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
11626 (grub_platform_image_format_t): New type.
11627 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
11628 * kern/main.c (grub_modules_get_end)
11629 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
11630 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
11631 (codestart): Switch stacks.
11632 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
11634 (grub_heap_init): Use grub_modules_get_end.
11635 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
11637 * util/grub-mkrawimage.c (generate_image): Support sparc64.
11639 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
11641 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
11643 * util/grub-mkrescue.in: Base ISO UUID on UTC.
11645 2010-03-08 Matt Kraai <kraai@ftbfs.org>
11647 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
11650 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11652 * genmoddep.awk: Output all missing symbols and not only first.
11654 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11656 * NEWS: Put the date of 1.98 release.
11658 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11660 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
11663 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11665 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
11666 completition in the middle of string.
11668 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11670 * util/grub-mkrescue.in: Use mktemp with explicit template.
11672 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11674 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
11676 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11678 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
11681 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11683 Fix FreeBSD compilation.
11685 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
11686 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
11688 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11690 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
11692 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11694 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
11696 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11698 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
11700 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
11702 Support relative image path in theme file.
11704 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
11705 (image_set_property): Handle theme_dir and relative path.
11707 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11709 * configure.ac: Alias amd64 to x86_64.
11711 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11713 * NEWS: mention multiboot on EFI.
11715 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11717 * kern/main.c (grub_load_modules): Handle errors from init functions of
11720 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11722 * normal/autofs.c (autoload_fs_module): Handle errors.
11724 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11726 Disable linux.mod on qemu-mips since it's not functional and leads
11727 to compilation failure.
11729 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
11730 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
11731 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
11732 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
11733 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
11734 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
11735 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
11736 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
11737 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
11738 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
11739 Reported by: BVK Chaitanya
11741 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
11743 * INSTALL: Add gettext as a dependency and add qemu to a new section
11744 "Prerequisites for make-check".
11746 2010-03-04 Christian Franke <franke@computer.org>
11748 * util/grub-pe2elf.c: Add missing include "progname.h".
11750 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11752 * normal/crypto.c (read_crypto_list): Fix a typo.
11753 Reported by: Seth Goldberg.
11755 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11757 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
11758 Reported by: Seth Goldberg.
11760 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11762 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
11765 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11767 * genmk.rb: Remove terminal*.lst in make clean.
11768 Reported by: Seth Goldberg.
11770 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11772 * util/i386/efi/grub-install.in: Copy gettext files.
11774 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11776 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
11778 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11780 Wait for user entry basing on presence of output rather than on errors.
11782 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
11783 (grub_install_newline_hook): Likewise.
11784 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
11785 * normal/menu.c (show_menu): Check line_counter to determine presence
11787 * normal/term.c (grub_normal_line_counter): New variable.
11788 (grub_normal_get_line_counter): New function.
11789 (grub_install_newline_hook): Likewise.
11791 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11793 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
11795 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11797 * configure.ac: Update version to 1.98.
11799 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11801 * util/grub.d/10_linux.in (linux_entry): Don't default to
11802 gfxpayload=keep if Linux doesn't support video handover.
11804 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11806 Don't compile video modules on yeeloong since video subsystem is part
11809 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
11810 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
11811 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
11812 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
11813 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
11814 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
11815 * include/grub/bitmap_scale.h: Likewise.
11816 * include/grub/bufio.h: Likewise.
11817 * include/grub/font.h: Likewise.
11818 * include/grub/gfxterm.h: Likewise.
11819 * include/grub/video.h: Likewise.
11820 * include/grub/vbe.h: Don't include video_fb.h.
11821 * video/i386/pc/vbe.c: Include video_fb.h.
11822 * commands/i386/pc/vbetest.c: Include video.h.
11824 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
11826 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
11827 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
11828 default entry if GRUB_SAVEDEFAULT=true. This allows using
11829 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
11830 saving a new default on every boot.
11832 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11834 * normal/crypto.c (read_crypto_list): Fix a memory leak.
11835 * normal/term.c (read_terminal_list): Likewise.
11836 * normal/main.c (grub_normal_init_page): Likewise.
11837 (grub_normal_read_line_real): Likewise.
11839 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11841 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
11843 Reported by: Seth Goldberg.
11845 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
11847 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
11848 duplicate declaration of `start'.
11850 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
11852 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
11854 Reported by: Georgy Buranov
11856 2010-02-20 Carles Pina i Estany <carles@pina.cat>
11858 * util/grub-mkrawimage.c (usage): Change string formatting to
11861 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
11863 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
11866 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
11868 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
11869 Reported by: Michael Suchanek.
11871 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
11873 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
11874 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
11876 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
11878 Remove any reference to non-free fonts.
11880 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
11881 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
11882 uses non-free components.
11883 * font/font.c (grub_font_get_name): Remove example name.
11884 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
11885 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
11886 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
11887 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
11889 2010-02-16 Georgy Buranov <gburanov@gmail.com>
11891 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
11893 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
11895 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
11897 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
11899 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
11901 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
11903 * gensymlist.sh.in: Use TARGET_CC instead of CC.
11905 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11907 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
11908 * docs/grub.texi (Command-line and menu entry commands): Document play
11911 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11913 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
11914 parse arguments as inline tempo and notes. Move code for playing notes
11916 (play): ... new function.
11918 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11920 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
11921 grub_uint16_t instead of short.
11922 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
11923 disk from little endian to cpu endianness.
11925 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
11927 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
11928 GRUB_TICKS_PER_SECOND instead of 120.
11930 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11932 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
11933 escape sequence after \e.
11935 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11937 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
11938 non-ASCII characters.
11940 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11942 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
11943 set root in single quotes to prevent \, from being unescaped.
11945 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11947 Prevent unknown commands from stopping menuentry execution.
11949 * script/execute.c (grub_script_execute_cmdline): Print error after
11952 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11954 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
11955 Reported by: Pavel Pisa.
11957 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11959 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
11961 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11963 Merge grub_ieee1275_map_physical into grub_map and rename to
11966 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
11967 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
11969 * kern/ieee1275/openfw.c (grub_map): Rename to ...
11970 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
11972 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
11974 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11976 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
11977 opening and not after.
11979 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11981 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
11984 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11986 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
11987 (alloc_phys): Use ALIGN_UP instead of align_addr.
11989 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11991 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
11993 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11995 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
11997 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11999 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
12002 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12004 Fix over-4GiB seek on sparc64.
12006 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
12007 Replace pos_i and pos_lo with pos. All users updated.
12008 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
12010 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
12012 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
12015 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12017 * util/grub-mkrawimage.c (main): Call set_program_name.
12019 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12021 Properly align 64-bit targets.
12023 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
12024 (generate_image): Use ALIGN_ADDR.
12026 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12028 Properly create cross-endian images.
12030 * include/grub/types.h (grub_host_to_target_addr): New macro
12031 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
12033 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12035 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
12037 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12039 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
12041 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
12042 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
12043 (grub_linux_boot): Divide by 64K when on VESA.
12045 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12047 Support GRUB_GFXPAYLOAD_LINUX.
12049 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
12050 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
12052 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12054 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
12055 to show messages instead of discarding them.
12056 Process errors after executing command and not before. Keep old method
12059 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12061 * configure.ac: Check for ft2build.h.
12063 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12065 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
12067 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12069 * genkernsyms.sh.in: Use TARGET_CC.
12071 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
12075 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12077 * include/grub/multiboot2.h: Remove leftover file.
12078 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
12079 * include/grub/partition.h [GRUB_UTIL]: Likewise.
12081 2010-02-07 Yves Blusseau <blusseau@zetam.org>
12083 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
12085 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12087 Fix warnings in grub-emu when compiling with maximum warning options.
12089 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
12090 (grub_arch_modules_addr): Return 0 and not NULL.
12091 * util/misc.c (ENABLE_RELOCATABLE): New definition.
12092 (xstrdup): Use newstr instead of dup.
12093 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
12094 of disk to dsk to avoid shadowing.
12095 (find_free_slot): Fix prototype.
12096 * util/getroot.c (grub_util_is_dmraid): Make static.
12097 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
12098 Add missing prototype.
12099 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
12101 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12103 * loader/i386/linux.c (grub_linux_setup_video): Handle error
12106 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12108 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
12111 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12113 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
12114 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
12115 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
12116 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
12117 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
12118 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
12120 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12122 * include/grub/err.h (grub_err_printf): Don't export.
12124 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12126 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
12128 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12130 * include/grub/i18n.h (grub_gettext_dummy): Removed.
12131 * kern/misc.c (grub_gettext_dummy): Make static.
12133 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12135 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
12137 * kern/term.c (grub_putchar): Likewise.
12139 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12141 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
12142 buggy hook call and memory leak.
12144 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12146 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
12148 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12150 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
12152 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12154 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
12156 Return grub_errno on allocation error.
12158 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12160 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
12162 2010-02-06 Yves Blusseau <blusseau@zetam.org>
12164 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
12165 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
12167 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12169 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
12171 (grub_pxefs_open): Likewise.
12173 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
12175 * util/grub.d/10_hurd.in: Add --class information to menuentries.
12176 * util/grub.d/10_kfreebsd.in: Likewise.
12177 * util/grub.d/10_linux.in: Likewise.
12179 2010-02-06 Colin D Bennett <colin@gibibit.com>
12181 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
12182 (gfxmenu_mod_SOURCES): New variable.
12183 (gfxmenu_mod_CFLAGS): Likewise.
12184 (gfxmenu_mod_LDFLAGS): Likewise.
12185 * include/grub/term.h (grub_term_set_current_output): Declare
12187 * docs/gfxmenu-theme-example.txt: New file.
12188 * gfxmenu/gfxmenu.c: Likewise.
12189 * gfxmenu/gui_box.c: Likewise.
12190 * gfxmenu/gui_canvas.c: Likewise.
12191 * gfxmenu/gui_circular_progress.c: Likewise.
12192 * gfxmenu/gui_image.c: Likewise.
12193 * gfxmenu/gui_label.c: Likewise.
12194 * gfxmenu/gui_list.c: Likewise.
12195 * gfxmenu/gui_progress_bar.c: Likewise.
12196 * gfxmenu/gui_string_util.c: Likewise.
12197 * gfxmenu/gui_util.c: Likewise.
12198 * gfxmenu/icon_manager.c: Likewise.
12199 * gfxmenu/model.c: Likewise.
12200 * gfxmenu/named_colors.c: Likewise.
12201 * gfxmenu/theme_loader.c: Likewise.
12202 * gfxmenu/view.c: Likewise.
12203 * gfxmenu/widget-box.c: Likewise.
12204 * include/grub/gfxmenu_model.h: Likewise.
12205 * include/grub/gfxmenu_view.h: Likewise.
12206 * include/grub/gfxwidgets.h: Likewise.
12207 * include/grub/gui.h: Likewise.
12208 * include/grub/gui_string_util.h: Likewise.
12209 * include/grub/icon_manager.h: Likewise.
12211 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12213 Agglomerate scrolling in gfxterm.
12215 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
12216 (grub_virtual_screen_setup): Initialise 'total_screen'.
12217 (write_char): Split to ...
12218 (paint_char): ... this ...
12219 (write_char): ... and this.
12220 (paint_char): Handle delayed scrolling.
12221 (draw_cursor): Likewise.
12222 (scroll_up): Split to ...
12223 (real_scroll): ... this ...
12224 (scroll_up): ... and this.
12225 (real_scroll): Handle multi-line scroll and draw below-the-bottom
12227 (grub_gfxterm_refresh): Call real_scroll.
12229 2010-02-06 Colin D Bennett <colin@gibibit.com>
12231 * include/grub/misc.h (grub_iscntrl): New inline function.
12232 (grub_isalnum): Likewise.
12233 (grub_strtol): Likewise.
12235 2010-02-06 Colin D Bennett <colin@gibibit.com>
12237 * normal/menu_text.c (get_entry_number): Move from here ...
12238 * normal/menu.c (get_entry_number): ... moved here.
12239 * include/grub/menu.h (grub_menu_get_default_entry_index):
12241 * normal/menu.c (grub_menu_get_default_entry_index): New function.
12242 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
12243 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
12244 (grub_menu_viewer_should_return): Likewise.
12245 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
12246 * normal/menu_text.c (run_menu): Enable menu switching.
12247 * normal/menu_viewer.c (should_return): New variable.
12248 (menu_viewer_changed): Likewise.
12249 (grub_menu_viewer_show_menu): Handle menu viewer changes.
12250 (grub_menu_viewer_should_return): New function.
12251 (menuviewer_write_hook): Likewise.
12252 (grub_menu_viewer_init): Likewise.
12254 2010-02-06 Colin D Bennet <colin@gibibit.com>
12255 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12257 Support for gfxterm in a window.
12259 * include/grub/gfxterm.h: New file.
12260 * include/grub/video.h (struct grub_video_rect): New declaration.
12261 (grub_video_rect_t): Likewise.
12262 * term/gfxterm.c (struct grub_gfxterm_window): New type.
12263 (refcount): New variable.
12264 (render_target): Likewise.
12265 (window): Likewise.
12266 (repaint_callback): Likewise.
12267 (grub_virtual_screen_setup): Use 'render_target'.
12268 (init_window): New function.
12269 (grub_gfxterm_init_window): Likewise.
12270 (grub_gfxterm_init): Check reference counter.
12272 (destroy_window): New function.
12273 (grub_gfxterm_destroy_window): Likewise.
12274 (grub_gfxterm_fini): Check reference counter.
12275 Use destroy_window.
12276 (redraw_screen_rect): Restore viewport.
12277 Use 'render_target' and 'window'.
12278 Call 'repaint_callback'.
12279 (write_char): Use 'render_target'.
12280 (draw_cursor): Likewise.
12281 (scroll_up): Restore viewport.
12282 Use 'render_target' and 'window'.
12283 Call 'repaint_callback'.
12284 (grub_gfxterm_cls): Likewise.
12285 (grub_gfxterm_refresh): Use 'window'.
12286 (grub_gfxterm_set_repaint_callback): New function.
12287 (grub_gfxterm_background_image_cmd): Use 'window'.
12288 (grub_gfxterm_get_term): New function.
12289 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
12291 2010-02-06 Colin D Bennett <colin@gibibit.com>
12293 Bitmap scaling support.
12295 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
12296 (bitmap_scale_mod_SOURCES): New variable.
12297 (bitmap_scale_mod_CFLAGS): Likewise.
12298 (bitmap_scale_mod_LDFLAGS): Likewise.
12299 * include/grub/bitmap_scale.h: New file.
12300 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
12301 (background_image_cmd_options): New variable.
12302 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
12303 (cmd): Rename and change type to ...
12304 (background_image_cmd_handle): ... this. All users updated.
12305 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
12306 * video/bitmap_scale.c: New file.
12308 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12312 * Makefile.in (LIBSDL): New variable.
12313 (enable_grub_emu_sdl): Likewise.
12314 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
12315 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
12316 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
12317 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
12318 * util/sdl.c: New file.
12320 2010-02-06 Colin D Bennett <colin@gibibit.com>
12321 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12323 Double buffering support.
12325 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
12326 * include/grub/video.h: Update comment.
12327 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
12329 (grub_video_fb_doublebuf_blit_init): New prototype.
12330 * term/gfxterm.c (scroll_up): Support double buffering.
12331 (grub_gfxterm_refresh): Likewise.
12332 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
12333 (grub_video_fb_doublebuf_blit_init): Likewise.
12334 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
12335 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
12336 'displayed_page', 'render_page' and 'update_screen'.
12337 (grub_video_vbe_fini): Free offscreen buffer.
12338 (doublebuf_pageflipping_commit): New function.
12339 (doublebuf_pageflipping_update_screen): Likewise.
12340 (doublebuf_pageflipping_init): Likewise.
12341 (double_buffering_init): Likewise.
12342 (grub_video_vbe_setup): Enable doublebuffering.
12343 (grub_video_vbe_swap_buffers): Implement.
12344 (grub_video_vbe_set_active_render_target): Handle double buffering.
12345 (grub_video_vbe_get_active_render_target): Likewise.
12346 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
12347 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
12348 (grub_video_vbe_enable_double_buffering): Likewise.
12349 (grub_video_vbe_swap_buffers): Use update_screen.
12350 (grub_video_set_mode): Use double buffering.
12352 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
12354 * maintainance/gentrigtables.py: Remove.
12355 * lib/trig.c: Likewise.
12357 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
12359 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
12361 (trigtables.c): New rule.
12362 (gentrigtables): Likewise.
12363 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
12365 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
12367 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
12370 2010-02-06 Colin D Bennet <colin@gibibit.com>
12372 Trigonometry support.
12374 * include/grub/trig.h: New file.
12375 * lib/trig.c: Likewise.
12376 * maintainance/gentrigtables.py: Likewise.
12377 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
12378 (trig_mod_SOURCES): New variable.
12379 (trig_mod_CFLAGS): Likewise.
12380 (trig_mod_LDFLAGS): Likewise.
12382 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12384 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
12387 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12389 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
12392 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12394 * util/hostdisk.c (open_device): Don't use partition device when reading
12395 before the partition.
12396 (grub_util_biosdisk_read): Don't read from partition and before the
12397 partition in single operation.
12398 (grub_util_biosdisk_write): Don't write to partition and before the
12399 partition in single operation.
12401 2010-02-03 Torsten Landschoff <torsten@debian.org>
12403 * kern/disk.c (grub_disk_read): Fix offset computation when reading
12406 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
12408 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
12410 (grub_biosdisk_write): Refuse to write to CDROM.
12412 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12414 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
12416 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
12418 * font/font.c (find_glyph): Check that bmp_idx is available before
12420 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
12421 with (font == NULL).
12423 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
12425 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
12427 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
12429 * include/grub/script_sh.h (sourcecode): Add const qualifier.
12430 * util/grub-script-check.c (getline): Fix empty lines case.
12432 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
12434 * Makefile.in (check): Exit with fail status when one of the tests
12436 * tests/example_functional_test.c (example_test): Fix reversed assert.
12437 * tests/example_unit_test.c (example_test): Likewise.
12439 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
12441 * util/grub.d/10_linux.in: This script does not use any of the
12442 contents of gettext.sh, only the external command `gettext', so stop
12443 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
12444 the same prefix as GRUB.)
12445 * util/grub.d/10_kfreebsd.in: Likewise.
12447 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
12449 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
12452 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
12454 * kern/disk.c (grub_disk_read): Fix offset computation when reading
12457 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
12459 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
12460 having a 4KiB and not 32KiB buffer size.
12462 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
12464 * util/hostfs.c: Include `<errno.h>'.
12465 (grub_hostfs_read): Handle errors from fseeko() and fread().
12467 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
12469 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
12470 loop when using read hooks on files whose size isn't sector-aligned.
12472 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
12474 Remove unused parameter.
12476 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
12477 (grub_iso9660_open): Remove initialization of `data->length'.
12479 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
12481 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
12482 memleak conditions.
12484 2010-01-27 Carles Pina i Estany <carles@pina.cat>
12486 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
12487 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
12489 2010-01-26 Carles Pina i Estany <carles@pina.cat>
12491 * util/bin2h.c (usage): Fix warning (space after backslash).
12493 2010-01-26 Carles Pina i Estany <carles@pina.cat>
12495 * font/font.c: Include `grub/fontformat.h.
12496 Remove font file format constants.
12497 (grub_font_load): Use the new macros.
12498 * include/grub/fontformat.h: New file.
12499 * util/grub-mkfont.c: Include `grub/fontformat.c'.
12500 (write_font_pf2): Use the new macros.
12502 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
12504 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
12507 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
12509 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
12511 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
12512 (_start): Macroify `0x7F'.
12514 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
12515 (make_install_device): Use "(pxe)" as fallback prefix when booting
12518 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
12520 * configure.ac: Reset LIBS after check for libgcc symbols.
12522 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
12524 * util/hostdisk.c (open_device): Add trailing newline to debug
12527 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
12529 * configure.ac: Check for `limits.h'.
12530 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
12532 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
12534 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
12535 capitalize error strings.
12537 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
12539 * util/grub.d/10_hurd.in: Add a recovery mode.
12541 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
12543 * configure.ac: Check for libgcc symbols with -nostdlib.
12545 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
12547 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
12549 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12551 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
12552 stack since heap may be unavailable at that point.
12553 (grub_ofconsole_gotoxy): Likewise.
12555 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12557 * configure.ac: Check for _restgpr_14_x.
12558 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
12559 and _savegpr_* prototypes.
12561 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
12563 Use generic grub_reboot() for i386-efi.
12565 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
12566 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
12567 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
12569 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12571 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
12572 presence of "prefix" variable as it breaks when normal.mod is
12575 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
12577 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
12578 stack since heap is unavailable at that point.
12580 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
12582 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
12583 (grub_freebsd_bootinfo): Rewritten.
12584 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
12586 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
12588 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
12590 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
12592 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
12595 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
12597 * util/misc.c (make_system_path_relative_to_its_root): Change the work
12598 around for handling "/" to the correct fix. Fix a memory leak. Use
12599 xstrdup instead of strdup.
12601 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12603 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
12605 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12607 Optimise glyph lookup by Basic Multilingual Plane lookup array.
12609 * font/font.c (struct grub_font): New member 'bmp_idx'.
12610 (font_init): Initialise 'bmp_idx'.
12611 (load_font_index): Fill 'bmp_idx'.
12612 (find_glyph): Make inline. Use bmp_idx for BMP characters.
12614 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12616 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
12619 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12621 Move context handling out of the kernel.
12623 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
12624 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
12625 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
12626 * conf/i386-efi.rmk: Likewise.
12627 * conf/i386-ieee1275.rmk: Likewise.
12628 * conf/i386-pc.rmk: Likewise.
12629 * conf/powerpc-ieee1275.rmk: Likewise.
12630 * conf/sparc64-ieee1275.rmk: Likewise.
12631 * conf/x86_64-efi.rmk: Likewise.
12632 * include/grub/env.h: Include grub/menu.h.
12633 (grub_env_var_type): Removed.
12634 (grub_env_var): Replaced field 'type' with 'global'.
12635 (grub_env_find): New prototype.
12636 (grub_env_context_open): Remove EXPORT_FUNC.
12637 (grub_env_context_close): Likewise.
12638 (grub_env_export): Likewise.
12639 (grub_env_set_data_slot): Removed.
12640 (grub_env_get_data_slot): Likewise.
12641 (grub_env_unset_data_slot): Likewise.
12642 (grub_env_unset_menu): New prototype.
12643 (grub_env_set_menu): Likewise.
12644 (grub_env_get_menu): Likewise.
12645 * include/grub/env_private.h: New file.
12646 * include/grub/normal.h (grub_context_init): New prototype.
12647 (grub_context_fini): Likewise.
12648 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
12649 * normal/context.c (grub_cmd_export): ... to here.
12650 * kern/env.c: Include env_private.h.
12651 (HASHSZ): Moved to include/grub/env_private.h.
12652 (grub_env_context): Likewise.
12653 (grub_env_sorted_var): Likewise.
12654 (current_context): Renamed from this ...
12655 (grub_current_context): ...to this. 'static' removed. All users updated.
12656 (grub_env_find): Removed 'static'.
12657 (grub_env_context_open): Moved to normal/context.c.
12658 (grub_env_context_close): Likewise.
12659 (grub_env_export): Likewise.
12660 (mangle_data_slot_name): Removed.
12661 (grub_env_set_data_slot): Likewise.
12662 (grub_env_get_data_slot): Likewise.
12663 (grub_env_unset_data_slot): Likewise.
12664 * kern/main.c (grub_set_root_dev): Don't export root.
12665 It will be done later.
12666 (grub_main): Don't export prefix.
12667 It will be done later.
12668 * normal/context.c: New file.
12669 * normal/main.c (free_menu): Use grub_env_unset_menu.
12670 (grub_normal_add_menu_entry): Use grub_env_get_menu.
12671 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
12672 (GRUB_MOD_INIT(normal)): Call grub_context_init.
12673 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
12675 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12679 * commands/setpci.c: New file.
12680 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
12681 (setpci_mod_SOURCES): New variable.
12682 (setpci_mod_CFLAGS): Likewise.
12683 (setpci_mod_LDFLAGS): Likewise.
12685 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12687 Byte-addressable PCI configuration space.
12689 * bus/pci.c (grub_pci_make_address): Use byte address instead of
12691 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
12692 GRUB_PCI_REG_CACHELINE.
12693 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
12694 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
12695 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
12696 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
12697 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
12698 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
12699 grub_pci_make_address.
12700 (lock_rom_area): Likewise.
12701 * commands/lspci.c (grub_lspci_iter): Use macroses
12702 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
12703 of grub_pci_make_address.
12704 * disk/ata.c (grub_ata_pciinit): Likewise.
12705 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
12706 (GRUB_PCI_REG_VENDOR): Likewise.
12707 (GRUB_PCI_REG_DEVICE): Likewise.
12708 (GRUB_PCI_REG_COMMAND): Likewise.
12709 (GRUB_PCI_REG_STATUS): Likewise.
12710 (GRUB_PCI_REG_REVISION): Likewise.
12711 (GRUB_PCI_REG_CLASS): Likewise.
12712 (GRUB_PCI_REG_CACHELINE): Likewise.
12713 (GRUB_PCI_REG_LAT_TIMER): Likewise.
12714 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
12715 (GRUB_PCI_REG_BIST): Likewise.
12716 (GRUB_PCI_REG_ADDRESSES): Likewise.
12717 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12718 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12719 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12720 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12721 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12722 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12723 (GRUB_PCI_REG_CIS_POINTER): Likewise.
12724 (GRUB_PCI_REG_SUBVENDOR): Likewise.
12725 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
12726 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
12727 (GRUB_PCI_REG_CAP_POINTER): Likewise.
12728 (GRUB_PCI_REG_IRQ_LINE): Likewise.
12729 (GRUB_PCI_REG_IRQ_PIN): Likewise.
12730 (GRUB_PCI_REG_MIN_GNT): Likewise.
12731 (GRUB_PCI_REG_MAX_LAT): Likewise.
12732 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
12733 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
12734 * video/efi_uga.c (find_framebuf): Likewise.
12735 * video/sm712.c (grub_video_sm712_setup): Likewise.
12736 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
12739 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12741 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
12742 can be reliably determined to be supported.
12744 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12746 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
12747 that VESA is supported.
12748 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
12751 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12753 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
12755 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12757 * util/misc.c (make_system_path_relative_to_its_root): Work around
12758 special-casing of "/", as previous incarnation of this routine did.
12760 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12762 Fix any-emu compilation.
12764 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
12765 * grub_bin2h_SOURCES: New variable.
12767 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12769 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
12771 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12773 * util/grub.d/00_header.in: Fix handling of locale_dir.
12775 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12777 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
12778 as possible unifont location (Gentoo).
12779 Reported by: Alexander Brüning
12781 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12783 Don't try to generate lists for kernel.img.
12785 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
12786 (pkglib_MODULES): Remove kernel.img.
12787 (kernel_img_EXPORTS): Removed.
12788 (kernel_img_RELOCATABLE): New variable.
12789 * conf/x86_64-efi.rmk: Likewise.
12790 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
12792 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12794 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
12795 grub_xasprintf or grub_snprintf.
12796 (grub_vsprintf): Likewise.
12797 (grub_snprintf): New proto.
12798 (grub_vsnprintf): Likewise.
12799 (grub_xasprintf): Likewise.
12800 (grub_xvasprintf): Likewise.
12801 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
12802 (grub_sprintf): Removed.
12803 (grub_vsnprintf): New function.
12804 (grub_snprintf): Likewise.
12805 (grub_xvasprintf): Likewise.
12806 (grub_xasprintf): Likewise.
12807 (grub_vsprintf): Renamed to ...
12808 (grub_vsnprintf_real): ...this. New argument max_len.
12810 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
12812 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
12813 fix grub-script-check warning.
12815 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12817 * include/grub/font.h (grub_font_load): Fix prototype.
12819 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12821 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
12823 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12825 * include/grub/x86_64/at_keyboard.h: New file.
12827 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12829 * loader/mips/linux.c: Include missing grub/i18n.h.
12831 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12833 * normal/menu.c (notify_execution_failure): Clarify error message.
12835 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12837 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
12838 return value (and revert all return statements). Update users.
12840 2010-01-20 Dan Merillat <debian@dan.merillat.org>
12842 * kern/device.c (grub_device_iterate): Allocate new part_ent
12843 structure based on sizeof (*p) rather than sizeof (p->next), to
12844 account for structure padding.
12846 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
12847 disk is NULL, which might happen for LVM physical volumes with no
12850 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12852 * loader/mips/linux.c (grub_cmd_initrd)
12853 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
12855 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12857 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
12858 (grub_video_video_init, grub_video_bitmap_init)
12859 (grub_font_manager_init, grub_term_gfxterm_init)
12860 (grub_at_keyboard_init): New extern declarations.
12861 (grub_machine_init): Initialize gfxterm and at_keyboard.
12863 * kern/main.c (grub_main): Revert grub_printf delay kludge.
12865 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
12866 `gfxterm.mod' into core image.
12868 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12869 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12870 (kernel_img_FORMAT): Copy to ...
12872 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12873 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12874 (kernel_img_FORMAT): ... here, and ...
12876 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12877 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12878 (kernel_img_FORMAT): ... here.
12880 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
12881 and input (at_keyboard) terminals in kernel.
12882 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
12884 (pkglib_MODULES): Remove `pci.mod'.
12885 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
12886 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
12887 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
12888 (at_keyboard_mod_LDFLAGS): Remove variables.
12890 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
12892 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
12894 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
12896 * include/grub/mips/libgcc.h: Only export symbols for functions
12897 that libgcc provides.
12899 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
12903 * bus/bonito.c: New file.
12904 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
12905 GRUB_PCI_NUM_DEVICES.
12906 * term/i386/pc/serial.c: Move to ...
12907 * term/serial.c: ... here. All users updated.
12908 * util/i386/pc/grub-mkimage.c: Move to ...
12909 * util/grub-mkrawimage.c: ... here. All users updated.
12910 * term/i386/pc/at_keyboard.c: Move to ...
12911 * term/at_keyboard.c: ... here. All users updated.
12912 * conf/mips-qemu-mips.rmk: New file.
12913 * conf/mips-yeeloong.rmk: Likewise.
12914 * conf/mips.rmk: Likewise.
12915 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
12917 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
12919 (grub_ata_pciinit): Support CS5536.
12920 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
12921 * font/font_cmd.c (loadfont_command): Open file before passing it to
12923 (pseudo_file_read): New function.
12924 (pseudo_file_close): Likewise.
12925 (pseudo_fs): New structure.
12926 (load_font_module): New function.
12927 (GRUB_MOD_INIT(font_manager)): Load embedded font.
12928 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
12929 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
12930 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
12931 * include/grub/i386/at_keyboard.h: Split into ...
12932 * include/grub/at_keyboard.h: ... this ...
12933 * include/grub/i386/at_keyboard.h: ... and this.
12934 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
12936 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
12938 (grub_elf64_size): Likewise.
12939 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
12941 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
12942 * include/grub/i386/coreboot/serial.h: Rewritten.
12943 * include/grub/i386/ieee1275/serial.h: Include
12944 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
12945 * include/grub/i386/pc/serial.h: Moved from here ...
12946 * include/grub/serial.h: ... to here. All users updated.
12947 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
12948 (GRUB_PCI_NUM_BUS): Likewise.
12949 (GRUB_PCI_NUM_DEVICES): Likewise.
12950 (grub_pci_device_map_range): Add missing volatile keyword.
12951 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
12952 * include/grub/mips/at_keyboard.h: New file.
12953 * include/grub/mips/cache.h: Likewise.
12954 * include/grub/mips/io.h: Likewise.
12955 * include/grub/mips/kernel.h: Likewise.
12956 * include/grub/mips/libgcc.h: Likewise.
12957 * include/grub/mips/pci.h: Likewise.
12958 * include/grub/mips/qemu-mips/boot.h: Likewise.
12959 * include/grub/mips/qemu-mips/kernel.h: Likewise.
12960 * include/grub/mips/qemu-mips/loader.h: Likewise.
12961 * include/grub/mips/qemu-mips/memory.h: Likewise.
12962 * include/grub/mips/qemu-mips/serial.h: Likewise.
12963 * include/grub/mips/qemu-mips/time.h: Likewise.
12964 * include/grub/mips/relocator.h: Likewise.
12965 * include/grub/mips/time.h: Likewise.
12966 * include/grub/mips/types.h: Likewise.
12967 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
12968 * include/grub/mips/yeeloong/boot.h: Likewise.
12969 * include/grub/mips/yeeloong/kernel.h: Likewise.
12970 * include/grub/mips/yeeloong/loader.h: Likewise.
12971 * include/grub/mips/yeeloong/memory.h: Likewise.
12972 * include/grub/mips/yeeloong/pci.h: Likewise.
12973 * include/grub/mips/yeeloong/serial.h: Likewise.
12974 * include/grub/mips/yeeloong/time.h: Likewise.
12975 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
12976 * kern/elf.c (grub_elf32_size): New parameter. All users
12978 (grub_elf64_size): Likewise.
12979 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
12980 Load modules before saying "Welcome to GRUB!".
12981 Call grub_refresh after saying "Welcome to GRUB!".
12982 * kern/mips/cache.S: New file.
12983 * kern/mips/cache_flush.S: Likewise.
12984 * kern/mips/dl.c: Likewise.
12985 * kern/mips/init.c: Likewise.
12986 * kern/mips/qemu-mips/init.c: Likewise.
12987 * kern/mips/startup.S: Likewise.
12988 * kern/mips/yeeloong/init.c: Likewise.
12989 * kern/term.c (grub_putcode): Handle NULL terminal.
12990 (grub_getcharwidth): Likewise.
12991 (grub_getkey): Likewise.
12992 (grub_checkkey): Likewise.
12993 (grub_getkeystatus): Likewise.
12994 (grub_getxy): Likewise.
12995 (grub_getwh): Likewise.
12996 (grub_gotoxy): Likewise.
12997 (grub_cls): Likewise.
12998 (grub_setcolorstate): Likewise.
12999 (grub_setcolor): Likewise.
13000 (grub_getcolor): Likewise.
13001 (grub_refresh): Likewise.
13002 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
13003 (write_jump): Add hatch nop.
13004 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
13005 * lib/mips/setjmp.S: New file.
13006 * loader/mips/linux.c: Likewise.
13007 * term/i386/pc/at_keyboard.c: Move from here ...
13008 * term/at_keyboard.c: ... to here.
13009 * term/i386/pc/serial.c: Moved from here ...
13010 * term/serial.c: ... to here. All users updated.
13011 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
13012 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
13013 (serial_translate_key_sequence): Avoid deadlock.
13014 (grub_serial_getkey): Handle backspace.
13015 (grub_serial_putchar): Fix newline handling.
13016 * util/i386/pc/grub-mkimage.c: Move from here ...
13017 * util/grub-mkrawimage.c: ... to here. All users updated.
13018 (generate_image): New parameters 'font_path' and 'format'.
13019 Support embedding font.
13020 Use grub_host_to_target* instead of grub_cpu_to_le*.
13021 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
13022 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
13023 (options): New option "--font".
13025 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
13026 (main): Handle "--font".
13027 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
13028 (grub_virtual_screen_setup): Set bg_color_display.
13029 (redraw_screen_rect): Use bg_color_display instead of incorrect
13031 (grub_gfxterm_cls): Likewise.
13032 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
13033 Support embedding config file.
13034 (add_segments): Likewise.
13035 (options): New option "--config".
13036 (main): Handle "--config".
13037 * video/sm712.c: New file.
13039 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13041 Fix parallel builds.
13043 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
13044 font.c depend on ascii.h).
13046 2010-01-12 Carles Pina i Estany <carles@pina.cat>
13048 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
13050 2010-01-11 Carles Pina i Estany <carles@pina.cat>
13052 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
13053 By default: disabled.
13054 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
13057 2010-01-10 Carles Pina i Estany <carles@pina.cat>
13059 * font/font.c: Update copyright years.
13060 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
13062 2010-01-10 Carles Pina i Estany <carles@pina.cat>
13064 * font/font.c: Include `ascii.h'.
13065 (ASCII_BITMAP_SIZE): New macro.
13066 (ascii_font_glyph): Define.
13067 (ascii_glyph_lookup): New function.
13068 (grub_font_get_string_width): Change comment. If glyph not found, use
13069 ascii_glyph_lookup.
13070 (grub_font_get_glyph_with_fallback): If glyph not available returns
13071 ascii_glyph_lookup.
13072 * util/grub-mkfont.c (file_formats): New enum.
13073 (options): Add `ascii-bitmaps' new option.
13074 (usage): Add `asii-bitmaps' new option.
13075 (write_font_ascii_bitmap): New function.
13076 (write_font): Rename to ...
13077 (write_font_p2): ... this. Remove print_glyphs call.
13078 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
13079 used. Call print_glyphs.
13080 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
13082 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
13084 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
13085 (grub_bin2h_SOURCES): New variable.
13086 * util/bin2h.c: New file.
13088 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13090 * include/multiboot.h: Resynced with spec.
13091 * include/multiboot2.h: Likewise.
13092 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
13093 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
13095 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13097 * include/grub/term.h (grub_term_register_input,
13098 grub_term_register_output): Check return of terminal init()
13099 routines, and abort if errors are raised.
13101 * commands/terminal.c: Update copyright year.
13103 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13105 * commands/terminal.c (grub_cmd_terminal_input)
13106 (grub_cmd_terminal_output): Check return of terminal init()
13107 routines, and abort if errors are raised.
13109 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13111 * include/grub/i386/bsd.h: Fix include pathes.
13113 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13115 Add missing *BSD copyright headers.
13117 * include/grub/aout.h: Add BSD licence.
13118 * include/grub/i386/bsd.h: Parts under different licences moved to ...
13119 * include/grub/i386/freebsd_linker.h: ... here,
13120 * include/grub/i386/freebsd_reboot.h: ... here,
13121 * include/grub/i386/netbsd_bootinfo.h: ... here,
13122 * include/grub/i386/netbsd_reboot.h: ... here,
13123 * include/grub/i386/openbsd_bootarg.h: ... here,
13124 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
13125 licence to each file.
13127 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13129 * acinclude.m4: Remove `nop' assembly instruction; it's not
13130 implemented by all architectures.
13132 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13134 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
13135 ELILO. This is no longer necessary.
13137 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
13139 Added new tool, grub-scrit-check to verify grub.cfg syntax.
13141 * util/grub-script-check.c: grub-script-check tool.
13142 * conf/common.rmk: Make rules for grub-script-check.
13144 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13146 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
13147 spotting it back in 2008. Shame on me for forgetting he did.
13149 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
13151 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13153 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
13154 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
13155 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
13156 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
13157 (GRUB_VIDEO_TYPE_EFI): Rename to ...
13158 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
13160 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
13162 * include/grub/test.h: Add license header.
13163 * tests/example_functional_test.c: Likewise.
13164 * tests/example_unit_test.c: Likewise.
13165 * tests/lib/functional_test.c: Likewise.
13166 * tests/lib/test.c: Likewise.
13167 * tests/lib/unit_test.c: Likewise.
13169 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
13171 Use flag-based instead of hook-based video mode selection and "auto"
13174 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
13175 (grub_video_set_mode): Changed prototype. All users updated.
13176 (grub_video_check_mode_flag): New inline function.
13177 * video/video.c (parse_modespec): New function.
13178 (grub_video_set_mode): Parse flags and keywords.
13180 2010-01-17 Carles Pina i Estany <carles@pina.cat>
13182 * util/misc.c (grub_util_info): Fix the order of the parameters in a
13185 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
13187 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
13189 2010-01-16 Carles Pina i Estany <carles@pina.cat>
13191 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
13193 * util/grub-emu.c (usage): Likewise.
13194 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
13195 * util/i386/efi/grub-mkimage.c (usage): Likewise.
13196 * util/i386/pc/grub-mkimage.c (usage): Likewise.
13197 * util/i386/pc/grub-setup.c (usage): Likewise.
13199 2010-01-16 Carles Pina i Estany <carles@pina.cat>
13201 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
13203 (grub_util_info): Likewise.
13204 (grub_util_error): Likewise.
13205 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
13206 and/or new lines in `grub_util_warna', `grub_util_info',
13207 `grub_util_error' calls.
13208 * util/getroot.c: Likewise.
13209 * util/grub-editenv.c: Likewise.
13210 * util/grub-emu.c: Likewise.
13211 * util/grub-fstest.c: Likewise.
13212 * util/grub-mkdevicemap.c: Likewise.
13213 * util/grub-mkfont.c: Likewise.
13214 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13215 * util/grub-mkrelpath.c: Likewise.
13216 * util/grub-pe2elf.c: Likewise.
13217 * util/grub-probe.c: Likewise.
13218 * util/hostdisk.c: Likewise.
13219 * util/i386/efi/grub-mkimage.c: Likewise.
13220 * util/i386/pc/grub-mkimage.c: Likewise.
13221 * util/i386/pc/grub-setup.c: Likewise.
13222 * util/ieee1275/ofpath.c: Likewise.
13223 * util/mkisofs/eltorito.c: Likewise.
13224 * util/mkisofs/rock.c: Likewise.
13225 * util/mkisofs/write.c: Likewise.
13226 * util/raid.c: Likewise.
13227 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
13228 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13230 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13232 Enable multiboot on non-pc.
13234 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
13235 multiboot.mod and multiboot2.mod to ...
13236 * conf/i386.rmk (pkglib_MODULES): ... here.
13237 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
13239 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
13240 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
13242 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
13243 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
13245 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
13246 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
13248 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
13249 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
13251 (ata_mod_SOURCES): Removed.
13252 (ata_mod_CFLAGS): Likewise.
13253 (ata_mod_LDFLAGS): Likewise.
13254 (relocator_mod_SOURCES): Removed.
13255 (relocator_mod_CFLAGS): Likewise.
13256 (relocator_mod_ASFLAGS): Likewise.
13257 (relocator_mod_LDFLAGS): Likewise.
13259 * include/grub/x86_64/multiboot.h: New file.
13260 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
13263 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13265 Video multiboot support.
13267 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
13269 * include/multiboot.h: Resynced with multiboot specification.
13270 * include/multiboot2.h: Likewise.
13271 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
13272 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
13273 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
13274 (HAS_VGA_TEXT): Likewise.
13275 (accepts_video): New variable.
13276 (grub_multiboot_set_accepts_video): New function.
13277 (grub_multiboot_get_mbi_size): Account for video structures.
13278 (set_video_mode): New function.
13279 (retrieve_video_parameters): Likewise.
13280 (grub_multiboot_make_mbi): Fill video fields.
13282 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13286 * include/grub/video.h (grub_video_driver_id): New type.
13287 (grub_video_adapter): New member 'id'. All users updated.
13288 (grub_video_get_driver_id): New proto.
13289 * video/video.c (grub_video_get_driver_id): New function.
13291 2010-01-14 Carles Pina i Estany <carles@pina.cat>
13293 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
13296 2010-01-14 Carles Pina i Estany <carles@pina.cat>
13298 * normal/cmdline.c (print_completion): Gettextizze.
13300 2001-01-14 Carles Pina i Estany <carles@pina.cat>
13302 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
13304 2010-01-14 Carles Pina i Estany <carles@pina.cat>
13306 * gettext/gettext.c (grub_gettext_translate): Push and pop
13308 (grub_gettext_delete_list): Change comment style.
13309 * kern/err.c (grub_error): Gettextizze.
13310 (grub_fatal): Gettextizze.
13312 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
13314 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
13315 (grub_linux16_real_boot): ... this.
13316 * kern/i386/loader.S: Likewise.
13317 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
13318 (grub_linux16_boot): New function. Switches to text mode and calls
13319 grub_linux16_real_boot().
13321 * loader/i386/bsd.c: Include `<grub/video.h>'.
13322 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
13323 text mode before calling grub_unix_real_boot().
13325 * loader/i386/multiboot.c: Include `<grub/video.h>'.
13326 (grub_multiboot_boot): Switch to text mode before calling
13327 grub_relocator32_boot().
13329 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
13330 (grub_chainloader_boot): Switch to text mode before calling
13331 grub_chainloader_real_boot().
13333 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
13334 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
13336 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
13339 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
13340 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
13342 * util/grub.d/00_header.in: Define a "savedefault" function for use
13344 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
13346 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
13347 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
13349 * util/grub-mkconfig_lib.in (save_default_entry): Only set
13350 saved_entry if boot_once is unset.
13351 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
13352 previous saved entry (i.e. grub-reboot).
13354 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
13356 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
13358 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
13360 * util/grub.d/00_header.in: Use `set var=val' rather than plain
13362 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
13364 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
13366 * util/grub-reboot.in: Fix --version output.
13367 * util/grub-set-default.in: Likewise.
13369 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
13371 * util/grub.d/00_header.in: Silently ignore zero-sized environment
13374 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
13376 * util/grub.d/00_header.in: Quote the value assigned to `default',
13377 in case it contains spaces.
13379 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
13381 * util/grub.d/30_os-prober.in: Fix merge error that moved a
13382 `save_default_entry' call from the macosx case to the linux case.
13384 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13385 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
13387 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
13388 in `chosen' environment variable.
13389 * normal/menu_text.c (get_entry_number): Check if the variable
13390 matches the title of a menu entry.
13391 (run_menu): Pass menu to get_entry_number.
13393 * util/grub-reboot.in: New file.
13394 * util/grub-set-default.in: New file.
13395 * conf/common.rmk (grub-reboot): New utility.
13396 (grub-set-default): New utility.
13398 * util/grub-mkconfig_lib.in (save_default_entry): New function.
13399 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
13400 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
13401 move it to `saved_entry' for the next boot. Load environment on
13403 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
13404 * util/grub.d/10_hurd.in: Likewise.
13405 * util/grub.d/10_linux.in (linux_entry): Likewise.
13406 * util/grub.d/10_windows.in: Likewise.
13407 * util/grub.d/30_os-prober.in: Likewise.
13409 * util/grub-install.in: Create environment block.
13410 * util/i386/efi/grub-install.in: Likewise.
13411 * util/ieee1275/grub-install.in: Likewise.
13412 * util/sparc64/ieee1275/grub-install.in: Likewise.
13414 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
13416 Unit testing framework for GRUB.
13418 * Makefile.in: Test framework build rules for 'make check'.
13419 * conf/tests.rmk: Build rules for individual tests and framework.
13421 * include/grub/test.h: Header file for whitebox tests.
13422 * tests/lib/functional_test.c: Framework support for whitebox
13424 * tests/lib/test.c: Common whitebox testing code for unit and
13426 * tests/lib/unit_test.c: Framework support for whitebox unit
13429 * tests/util/grub-shell-tester.in: Support utility for grub-script
13431 * tests/util/grub-shell.in: Utility to execute grub-script
13432 commands in a Qemu instance.
13434 * tests/example_functional_test.c: Example whitebox functional
13436 * tests/example_grub_script_test.in: Example grub-script test.
13437 * tests/example_scripted_test.in: Example scripted test.
13438 * tests/example_unit_test.c: Example whitebox unit test.
13440 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13442 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
13443 Add loader/i386/multiboot_mbi.c.
13444 (multiboot2_mod_SOURCES): Likewise.
13445 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
13446 (multiboot2_mod_SOURCES): Likewise.
13447 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
13448 (grub_multiboot_make_mbi): Likewise.
13449 (grub_multiboot_free_mbi): Likewise.
13450 (grub_multiboot_init_mbi): Likewise.
13451 (grub_multiboot_add_module): Likewise.
13452 (grub_multiboot_set_bootdev): Likewise.
13453 * loader/i386/multiboot.c (mbi): Removed.
13454 (mbi_dest): Likewise.
13455 (alloc_mbi): New variable.
13456 (grub_multiboot_payload_size): Removed. All users updated.
13457 (grub_multiboot_pure_size): New variable.
13458 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
13459 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
13460 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
13461 (grub_fill_multiboot_mmap): Likewise.
13462 (grub_multiboot_get_bootdev): Likewise.
13463 (grub_multiboot): Use multiboot_mbi functions.
13464 * loader/i386/multiboot_mbi.c: New file.
13466 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13468 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
13469 it would result in module crash.
13471 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13473 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
13474 (grub_ofconsole_getwh): Split to ...
13475 (grub_ofconsole_getwh): ... this.
13476 (grub_ofconsole_dimensions): ...and this.
13477 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
13479 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
13481 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
13483 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13485 * loader/i386/pc/multiboot2.c: Removed stalled file.
13487 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13489 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
13490 Reported by: Grégoire Sutre
13492 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
13494 * util/misc.c (canonicalize_file_name): New function.
13495 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
13496 instead of realpath().
13498 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
13500 * util/grub-install.in (usage): Clarify meaning of --root-directory,
13501 and make it clearer that it's optional. Based on confusion
13504 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13506 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
13507 in premature implicit newline.
13509 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13511 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
13512 which resulted in garbled command line at the end of screen.
13514 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
13516 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
13517 initialization with similar approach as with other Linux loaders.
13519 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
13521 Fix i386-ieee1275 build.
13523 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
13524 and grub_term_height() for video_{width,height} initialization.
13526 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
13528 Fix grub-emu build.
13530 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
13532 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13533 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
13535 Support for multiple terminals.
13537 * Makefile.in (pkglib_DATA): terminal.lst.
13538 (terminal.lst): New target.
13539 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
13540 (GRUB_MOD_INIT(handler)): Likewise.
13541 (GRUB_MOD_FINI(handler)): Likewise.
13542 * commands/help.c (grub_cmd_help): Handle multiple terminals.
13543 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
13544 * commands/sleep.c (do_print): Use grub_term_restore_pos.
13545 (grub_cmd_sleep): Use grub_term_save_pos.
13546 * commands/terminal.c: New file.
13547 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
13548 commands/terminal.c and lib/charset.c.
13549 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
13550 (pkglib_MODULES): Add terminal.mod.
13551 (terminal_mod_SOURCES): New variable.
13552 (terminal_mod_CFLAGS): Likewise.
13553 (terminal_mod_LDFLAGS): Likewise.
13554 * genhandlerlist.sh: Don't handle terminals.
13555 * genmk.rb: Generate terminal-*.lst.
13556 * genterminallist.sh: New file.
13557 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
13558 (grub_is_valid_utf8): Likewise.
13559 (grub_utf8_to_ucs4_alloc): Likewise.
13560 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
13561 (grub_menu_register_viewer): Changed argument.
13562 (grub_menu_try_text): New proto.
13563 (grub_gfxmenu_try_hook): New declaration.
13564 * include/grub/normal.h (grub_normal_exit_level): New declaration.
13565 (grub_menu_init_page): Additional argument term.
13566 (grub_normal_init_page): Likewise.
13567 (grub_cmdline_get): Arguments simplified.
13568 (grub_utf8_to_ucs4_alloc): Removed.
13569 (grub_print_ucs4): Additional argument term.
13570 (grub_getstringwidth): Likewise.
13571 (grub_print_message_indented): Likewise.
13572 (grub_menu_text_register_instances): New proto.
13573 (grub_show_menu): Likewise.
13574 (read_terminal_list): Likewise.
13575 (grub_set_more): Likewise.
13576 * include/grub/parser.h: Include handler.h.
13577 * include/grub/reader.h: Rewritten.
13578 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
13579 (GRUB_TERM_WIDTH): Changed to function.
13580 (GRUB_TERM_HEIGHT): Likewise.
13581 (GRUB_TERM_BORDER_WIDTH): Likewise.
13582 (GRUB_TERM_BORDER_HEIGHT): Likewise.
13583 (GRUB_TERM_NUM_ENTRIES): Likewise.
13584 (GRUB_TERM_ENTRY_WIDTH): Likewise.
13585 (GRUB_TERM_CURSOR_X): Likewise.
13586 (grub_term_input_class): Likewise.
13587 (grub_term_output_class): Likewise.
13588 (grub_term_outputs_disabled): New declaration.
13589 (grub_term_inputs_disabled): Likewise.
13590 (grub_term_outputs): Likewise.
13591 (grub_term_inputs): Likewise.
13592 (grub_term_register_input): Rewritten.
13593 (grub_term_register_output): Likewise.
13594 (grub_term_unregister_input): Likewise.
13595 (grub_term_unregister_output): Likewise.
13596 (FOR_ACTIVE_TERM_INPUTS): New macro.
13597 (FOR_DISABLED_TERM_INPUTS): Likewise.
13598 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
13599 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
13600 * include/grub/terminfo.h: Add oterm argument to all protypes.
13601 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
13602 Use grub_rescue_run.
13603 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
13605 * kern/reader.c: Removed. All users updated.
13606 * kern/rescue_reader.c (grub_rescue_init): Removed.
13607 (grub_rescue_reader): Likewise.
13608 (grub_register_rescue_reader): Likewise.
13609 (grub_rescue_run): New function based on kern/reader.c.
13610 * kern/term.c: Adapted for multiterm.
13611 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
13612 (grub_is_valid_utf8): Likewise.
13613 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
13614 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
13616 * loader/i386/linux.c (grub_linux_boot): Likewise.
13617 * normal/auth.c (grub_username_get): New function.
13618 (grub_auth_check_authentication): Use grub_username_get.
13619 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
13620 * normal/color.c: Adapt for multiterm.
13621 * normal/main.c (read_config_file): Don't use grub_reader_loop.
13622 (grub_normal_init_page): Additional argument term.
13623 (read_lists): Call read_terminal_lists.
13624 (grub_enter_normal_mode): Call grub_cmdline_run.
13625 Handle grub_normal_exit_level.
13626 (grub_cmd_normal): Make reentrant.
13627 (grub_cmd_normal_exit): New function.
13628 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
13629 * normal/menu.c: Adapt for multiterm.
13630 * normal/menu_entry.c: Likewise.
13631 * normal/menu_text.c: Likewise.
13632 * normal/menu_viewer.c: Removed. All users updated.
13633 * normal/term.c: New file.
13634 * util/console.c: Change order of includes to workaround a bug in
13636 * term/terminfo.c: New argument oterm on all exported functions.
13638 * util/grub-editenv.c (grub_term_input_class): Removed.
13639 (grub_term_output_class): Likewise.
13641 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
13643 Make loader output a bit more user-friendly.
13645 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
13646 is being loaded. Likewise for the Hurd.
13648 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
13649 that kernel of FreeBSD ${version} is being loaded.
13651 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
13653 (grub_cmd_initrd): Likewise.
13654 * util/grub.d/10_linux.in (linux_entry): Print message indicating
13655 that Linux ${version} is being loaded. Likewise for initrd.
13657 2010-01-09 Carles Pina i Estany <carles@pina.cat>
13659 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
13661 2010-01-08 Carles Pina i Estany <carles@pina.cat>
13663 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
13664 (GRUB_MOD_INIT): Gettextizze.
13665 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
13666 (GRUB_MOD_INIT): Gettextizze.
13667 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
13668 (grub_cmd_linux): Capitalise Linux.
13669 (GRUB_MOD_INIT): Gettextizze.
13670 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
13671 (grub_cmd_linux): Capitalise Linux.
13672 (GRUB_MOD_INIT): Gettextizze.
13673 * loader/i386/linux.c: Include `<grub/i18n.h>'.
13674 (grub_cmd_linux): Capitalise Linux.
13675 (GRUB_MOD_INIT): Gettextizze.
13676 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
13677 (GRUB_MOD_INIT): Gettextizze.
13678 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
13679 (grub_cmd_linux): Capitalise Linux.
13680 (GRUB_MOD_INIT): Gettextizze.
13681 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
13682 (grub_cpu_xnu_init): Gettextizze.
13683 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
13684 (GRUB_MOD_INIT): Gettextizze.
13685 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
13686 (GRUB_MOD_INIT): Gettextizze.
13687 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
13688 (grub_linux_load64): Capitalise Linux.
13689 (GRUB_MOD_INIT): Gettextizze.
13690 * loader/xnu.c: Include `<grub/i18n.h>'.
13691 (GRUB_MOD_INIT): Gettextizze.
13692 * po/POTFILES: Add `loader/efi/appleloader.c',
13693 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
13694 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
13695 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
13696 `loader/i386/xnu.c', `loader/multiboot_loader.c',
13697 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
13698 and `loader/xnu.c'.
13700 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
13702 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
13704 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
13706 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
13707 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
13708 * util/mkisofs/mkisofs.c (main): Readjust --version output.
13710 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13712 Reset Multiboot 2 support. New loader implements the draft in
13713 /branches/multiboot2 and shares as much code as possible with the
13714 production Multiboot 1 implementation.
13716 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
13717 * loader/multiboot2.c: Likewise.
13718 * loader/i386/multiboot_helper.S: Likewise.
13719 * include/multiboot2.h: Replace with latest version from the draft
13720 in /branches/multiboot2.
13722 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
13723 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
13724 and `loader/multiboot2.c'.
13725 (pkglib_MODULES): Add `multiboot2.mod'.
13726 (multiboot2_mod_SOURCES): New variable.
13727 (multiboot2_mod_LDFLAGS): Likewise.
13728 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
13730 * conf/i386-pc.rmk: Likewise.
13732 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
13733 (multiboot_mod_SOURCES): Remove variable.
13734 (multiboot_mod_LDFLAGS): Likewise.
13735 (multiboot_mod_CFLAGS): Likewise.
13737 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
13738 `<multiboot2.h>' instead of `<multiboot.h>'.
13739 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
13740 (MULTIBOOT_HEADER_MAGIC): New macros.
13742 * loader/multiboot_loader.c (module_version_status): Remove variable.
13743 (find_multi_boot2_header): Remove function.
13744 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
13745 logic. Always check for the Multiboot version we're compiling for.
13746 (grub_cmd_module_loader): Likewise.
13747 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
13748 command instead of `multiboot'.
13750 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13752 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
13753 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
13756 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13757 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13759 Fix breakage introduced with previous commit.
13761 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
13763 * normal/handler.c (read_handler_list): Revert part of previous commit
13764 affecting this file.
13765 * normal/main.c (read_lists): Move read_handler_list() call back to ...
13766 (grub_normal_execute): ... here.
13768 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13770 Merge prefix-redefinition-fix branch.
13772 * normal/autofs.c (read_fs_list): Make function capable of being
13773 run multiple times, gracefuly replacing the previous data
13775 * normal/dyncmd.c (read_command_list): Likewise.
13776 * normal/handler.c (read_handler_list): Likewise.
13777 * normal/main.c (read_lists): New function. Calls all the
13778 list reading functions.
13779 (grub_normal_execute): Use read_lists() instead of calling all
13780 list reading functions explicitly. Register read_lists() as a
13781 variable hook attached to ${prefix}.
13783 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13785 Merge crypto branch.
13787 * Makefile.in (pkglib_DATA): Add crypto.lst.
13788 (crypto.lst): New target.
13789 * commands/hashsum.c: New file.
13790 * commands/password.c (check_password): Use grub_crypto_memcmp.
13791 * commands/password_pbkdf2.c: New file.
13792 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
13793 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
13794 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
13795 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
13796 -I$(srcdir)/lib/libgcrypt_wrap.
13797 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
13798 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
13799 password_pbkdf2.mod.
13800 (crypto_mod_SOURCES): New variable.
13801 (crypto_mod_CFLAGS): Likewise.
13802 (crypto_mod_LDFLAGS): Likewise.
13803 (hashsum_mod_SOURCES): New variable.
13804 (hashsum_mod_CFLAGS): Likewise.
13805 (hashsum_mod_LDFLAGS): Likewise.
13806 (pbkdf2_mod_SOURCES): New variable.
13807 (pbkdf2_mod_CFLAGS): Likewise.
13808 (pbkdf2_mod_LDFLAGS): Likewise.
13809 (password_pbkdf2_mod_SOURCES): New variable.
13810 (password_pbkdf2_mod_CFLAGS): Likewise.
13811 (password_pbkdf2_mod_LDFLAGS): Likewise.
13812 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
13813 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
13814 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
13815 Include conf/gcry.rmk.
13816 * include/grub/auth.h: Rewritten.
13817 * include/grub/crypto.h: New file.
13818 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
13819 * include/grub/normal.h (read_crypto_list): New prototype.
13820 * lib/crypto.c: New file.
13821 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
13822 * lib/pbkdf2.c: Likewise.
13823 * normal/auth.c (grub_auth_strcmp): Removed.
13824 (grub_iswordseparator): Likewise.
13825 (grub_auth_strword): Likewise.
13826 (is_authenticated): Use grub_strword.
13827 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
13828 and grub_strword. Pass entered password to authentication callback.
13829 * normal/crypto.c: New file.
13830 * normal/main.c: Call read_crypto_list.
13831 * util/grub-mkpasswd-pbkdf2.c: New file.
13832 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
13834 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
13836 Fix descent and ascent calculation.
13838 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
13839 (options): New option "asce".
13841 (add_char): Ignore invalid glyphs for descent calculation.
13842 Calculate ascent from actual content.
13843 (print_glyphs): Use 'asce'.
13844 (write_font): Likewise. Allow ascent override.
13845 (main): Handle "asce" option.
13847 2010-01-06 Carles Pina i Estany <carles@pina.cat>
13849 * kern/err.c: Include `<grub/i18n.h>'.
13850 (grub_print_error): Add full stop. Gettextizze.
13851 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
13852 (grub_bsd_load_elf): Capitalise ELF.
13853 (grub_cmd_freebsd_loadenv): Add `s' in error string.
13854 (grub_cmd_freebsd_module): Likewise.
13855 (grub_cmd_freebsd_module_elf): Likewise.
13856 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
13858 2010-01-06 Carles Pina i Estany <carles@pina.cat>
13860 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
13861 * commands/search_file.c (HELP_MESSAGE): New macro.
13862 * commands/search_label.c (HELP_MESSAGE): Likewise.
13863 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
13864 * po/POTFILES: Add `commands/search_file.c',
13865 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
13866 `commands/search.c'.
13868 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
13870 * config.rpath: Update from Gnulib.
13872 2010-01-05 Yves Blusseau <blusseau@zetam.org>
13874 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
13876 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
13878 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
13880 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
13882 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
13883 arguments to fread so that we get a return value in bytes, rather
13884 than something that will normally be rounded down to 0.
13885 Adjust error handling to avoid producing garbage when size_t is not
13886 the same size as long long.
13888 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
13890 * util/mkisofs/write.c (padblock_write): Check return value of
13893 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
13895 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
13898 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
13900 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
13902 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
13903 instead of manual alignment.
13904 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
13905 verbose). Avoid attempts to read past end of the device
13906 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
13907 but GRUB_DISK_CACHE_SIZE may exceed that).
13909 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
13911 * commands/crc.c (grub_cmd_crc): Abort on read errors.
13912 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
13915 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13917 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
13919 (grub_efi_piwg_device_path): New structure
13920 (grub_efi_piwg_device_path_t): New type.
13921 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
13922 (devpath_1): Transform to a structure. All users updated.
13923 (devpath_2): Likewise.
13924 (devpath_3): Likewise.
13925 (devpath_4): Likewise.
13926 (devpath_5): Likewise.
13928 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13930 * loader/efi/appleloader.c: Restored. Update all users.
13932 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13934 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
13936 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
13937 (struct boot_blocklist): Move from here ...
13938 * include/grub/i386/pc/boot.h [ASM_FILE]
13939 (struct grub_boot_blocklist): ... to here. Update all users.
13940 (setup): Only initialize `start' member of `first_block'
13941 structure. Add assert() calls to verify the other members.
13943 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
13944 (generate_image): Fix broken blocklist length initialization.
13945 Add assert() call to verify blocklist `segment' field.
13947 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13949 * loader/efi/appleloader.c: Remove. Update all users.
13951 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13953 * boot/i386/pc/boot.S: Update copyright year.
13954 * boot/i386/pc/cdboot.S: Likewise.
13955 * boot/i386/pc/diskboot.S: Likewise.
13956 * boot/i386/pc/lnxboot.S: Likewise.
13957 * boot/i386/pc/pxeboot.S: Likewise.
13958 * bus/pci.c: Likewise.
13959 * commands/cmp.c: Likewise.
13960 * commands/help.c: Likewise.
13961 * commands/hexdump.c: Likewise.
13962 * commands/i386/pc/halt.c: Likewise.
13963 * commands/i386/pc/play.c: Likewise.
13964 * commands/i386/pc/vbeinfo.c: Likewise.
13965 * commands/ls.c: Likewise.
13966 * commands/test.c: Likewise.
13967 * disk/dmraid_nvidia.c: Likewise.
13968 * disk/i386/pc/biosdisk.c: Likewise.
13969 * disk/ieee1275/nand.c: Likewise.
13970 * disk/ieee1275/ofdisk.c: Likewise.
13971 * disk/lvm.c: Likewise.
13972 * disk/raid.c: Likewise.
13973 * disk/raid6_recover.c: Likewise.
13974 * disk/scsi.c: Likewise.
13975 * fs/affs.c: Likewise.
13976 * fs/cpio.c: Likewise.
13977 * fs/ext2.c: Likewise.
13978 * fs/hfs.c: Likewise.
13979 * fs/iso9660.c: Likewise.
13980 * fs/ntfs.c: Likewise.
13981 * fs/sfs.c: Likewise.
13982 * fs/udf.c: Likewise.
13983 * fs/ufs.c: Likewise.
13984 * fs/xfs.c: Likewise.
13985 * gencmdlist.sh: Likewise.
13986 * genmk.rb: Likewise.
13987 * include/grub/disk.h: Likewise.
13988 * include/grub/efi/api.h: Likewise.
13989 * include/grub/efi/efi.h: Likewise.
13990 * include/grub/efi/pe32.h: Likewise.
13991 * include/grub/elf.h: Likewise.
13992 * include/grub/fs.h: Likewise.
13993 * include/grub/i386/at_keyboard.h: Likewise.
13994 * include/grub/i386/pc/memory.h: Likewise.
13995 * include/grub/i386/pc/vbe.h: Likewise.
13996 * include/grub/i386/pci.h: Likewise.
13997 * include/grub/i386/tsc.h: Likewise.
13998 * include/grub/ieee1275/ieee1275.h: Likewise.
13999 * include/grub/ntfs.h: Likewise.
14000 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
14001 * include/grub/sparc64/libgcc.h: Likewise.
14002 * include/grub/symbol.h: Likewise.
14003 * include/grub/types.h: Likewise.
14004 * include/multiboot2.h: Likewise.
14005 * io/gzio.c: Likewise.
14006 * kern/device.c: Likewise.
14007 * kern/disk.c: Likewise.
14008 * kern/efi/efi.c: Likewise.
14009 * kern/efi/mm.c: Likewise.
14010 * kern/elf.c: Likewise.
14011 * kern/file.c: Likewise.
14012 * kern/i386/dl.c: Likewise.
14013 * kern/i386/pc/init.c: Likewise.
14014 * kern/i386/pc/startup.S: Likewise.
14015 * kern/ieee1275/ieee1275.c: Likewise.
14016 * kern/ieee1275/init.c: Likewise.
14017 * kern/main.c: Likewise.
14018 * kern/mm.c: Likewise.
14019 * kern/powerpc/dl.c: Likewise.
14020 * kern/sparc64/dl.c: Likewise.
14021 * kern/x86_64/dl.c: Likewise.
14022 * lib/hexdump.c: Likewise.
14023 * loader/efi/appleloader.c: Likewise.
14024 * loader/i386/ieee1275/linux.c: Likewise.
14025 * loader/i386/pc/chainloader.c: Likewise.
14026 * loader/i386/pc/linux.c: Likewise.
14027 * loader/i386/pc/multiboot2.c: Likewise.
14028 * loader/ieee1275/multiboot2.c: Likewise.
14029 * loader/multiboot2.c: Likewise.
14030 * loader/multiboot_loader.c: Likewise.
14031 * loader/powerpc/ieee1275/linux.c: Likewise.
14032 * normal/completion.c: Likewise.
14033 * normal/menu_entry.c: Likewise.
14034 * partmap/apple.c: Likewise.
14035 * util/grub.d/10_hurd.in: Likewise.
14036 * util/hostfs.c: Likewise.
14037 * video/readers/png.c: Likewise.
14039 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
14041 * include/grub/misc.h (GNUC_PREREQ): New macro.
14042 (ATTRIBUTE_ERROR): New macro.
14043 * include/grub/list.h (grub_bad_type_cast_real): Use
14046 2010-01-03 Carles Pina i Estany <carles@pina.cat>
14048 * normal/menu_text.c (print_message): Change messages.
14050 2010-01-03 Carles Pina i Estany <carles@pina.cat>
14052 * normal/menu_entry.c (store_completion): Gettextizze.
14054 2010-01-03 Carles Pina i Estany <carles@pina.cat>
14056 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
14058 2010-01-03 Carles Pina i Estany <carles@pina.cat>
14060 * po/POTFILES: Sort correctly.
14062 2010-01-03 Carles Pina i Estany <carles@pina.cat>
14064 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
14065 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
14066 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
14068 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
14069 summary. Gettextizze the strings.
14070 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
14071 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
14072 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
14074 (GRUB_MOD_INIT): Remove command name from summary.
14075 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
14077 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
14078 * term/i386/pc/serial.c (options): Add full stops.
14079 (GRUB_MOD_INIT): Remove command name from the summary.
14081 2010-01-03 Carles Pina i Estany <carles@pina.cat>
14083 * commands/acpi.c: Gettextizze help strings and/or options. Include
14084 `grub/i18n.h' if needed.
14085 * commands/blocklist.c: Likewise.
14086 * commands/boot.c: Likewise.
14087 * commands/cat.c: Likewise.
14088 * commands/cmp.c: Likewise.
14089 * commands/configfile.c: Likewise.
14090 * commands/crc.c: Likewise.
14091 * commands/date.c: Likewise.
14092 * commands/echo.c: Likewise.
14093 * commands/efi/fixvideo.c: Likewise.
14094 * commands/efi/loadbios.c: Likewise.
14095 * commands/gptsync.c: Likewise.
14096 * commands/halt.c: Likewise.
14097 * commands/handler.c: Likewise.
14098 * commands/hdparm.c: Likewise.
14099 * commands/hexdump.c: Likewise.
14100 * commands/i386/cpuid.c: Likewise.
14101 * commands/i386/pc/drivemap.c: Likewise.
14102 * commands/i386/pc/halt.c: Likewise.
14103 * commands/i386/pc/pxecmd.c: Likewise.
14104 * commands/i386/pc/vbeinfo.c: Likewise.
14105 * commands/i386/pc/vbetest.c: Likewise.
14106 * commands/ieee1275/suspend.c: Likewise.
14107 * commands/keystatus.c: Likewise.
14108 * commands/loadenv.c: Likewise.
14109 * commands/ls.c: Likewise.
14110 * commands/lsmmap.c: Likewise.
14111 * commands/lspci.c: Likewise.
14112 * commands/memrw.c: Likewise.
14113 * commands/minicmd.c: Likewise.
14114 * commands/parttool.c: Likewise.
14115 * commands/password.c: Likewise.
14116 * commands/probe.c: Likewise.
14117 * commands/read.c: Likewise.
14118 * commands/reboot.c: Likewise.
14119 * commands/search.c: Likewise.
14120 * commands/sleep.c: Likewise.
14121 * commands/test.c: Likewise.
14122 * commands/true.c: Likewise.
14123 * commands/usbtest.c: Likewise.
14124 * commands/videotest.c: Likewise.
14125 * commands/xnu_uuid.c: Likewise.
14126 * disk/loopback.c: Likewise.
14127 * hello/hello.c: Likewise.
14128 * loader/i386/bsd.c: Likewise.
14129 * term/i386/pc/serial.c: Likewise.
14130 * po/POTFILES: Add new files.
14132 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
14134 * term/i386/pc/at_keyboard.c
14135 (keyboard_controller_wait_untill_ready): Rename to ...
14136 (keyboard_controller_wait_until_ready): ... this. Update all users.
14138 2010-01-01 Carles Pina i Estany <carles@pina.cat>
14140 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
14141 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
14142 string using string width.
14143 * normal/menu_text.c (grub_print_message_indented): Use
14144 grub_print_spaces and not print_spaces.
14145 (print_timeout): Likewise.
14146 (print_spaces): Move to...
14147 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
14149 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
14151 Import from Gnulib.
14153 * gnulib/getdelim.c: New file.
14154 * gnulib/getline.c: Likewise.
14156 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
14158 * include/grub/list.h (grub_assert_fail): Removed.
14159 (grub_bad_type_cast_real): New function.
14160 (grub_bad_type_cast): New macro.
14161 (GRUB_AS_LIST): Use grub_bad_type_cast.
14162 (GRUB_AS_LIST_P): Likewise.
14163 (GRUB_AS_NAMED_LIST): Likewise.
14164 (GRUB_AS_NAMED_LIST_P): Likewise.
14165 (GRUB_AS_PRIO_LIST): Likewise.
14166 (GRUB_AS_PRIO_LIST_P): Likewise.
14167 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
14169 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
14171 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
14174 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
14176 * configure.ac: Check for TARGET_CFLAGS initialization before we
14177 initialize it ourselves (sigh).
14178 Move a few modifications to TARGET_CFLAGS to be unconditional
14179 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
14182 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
14183 * term/i386/pc/at_keyboard.c
14184 (keyboard_controller_wait_untill_ready): Likewise.
14185 (keyboard_controller_led): Rename `led_status' paramter to avoid
14188 2009-12-28 Carles Pina i Estany <carles@pina.cat>
14190 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
14193 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14195 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
14197 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14199 * normal/menu_text.c (grub_print_message_indented): Prevent
14200 past-the-end-of-array dereference.
14202 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14204 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
14205 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
14207 2009-12-27 Carles Pina i Estany <carles@pina.cat>
14209 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
14210 * normal/main.c (grub_normal_read_line): Remove a space from the
14213 2009-12-27 Carles Pina i Estany <carles@pina.cat>
14215 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
14216 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
14217 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
14218 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
14219 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
14220 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
14221 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
14223 2009-12-26 Carles Pina i Estany <carles@pina.cat>
14225 * video/readers/jpeg.c (cmd): Declare.
14226 (grub_cmd_jpegtest): Use `grub_command_t' type.
14227 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
14229 (GRUB_MOD_FINI): Use `cmd' to unregister.
14230 * video/readers/png.c (cmd): Declare.
14231 (grub_cmd_pngtest): Use `grub_command_t' type.
14232 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
14234 (GRUB_MOD_FINI): Use `cmd' to unregister.
14235 * video/readers/tga.c (cmd): Declare.
14236 (grub_cmd_tgatest): Use `grub_command_t' type.
14237 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
14239 (GRUB_MOD_FINI): Use `cmd' to unregister.
14241 2009-12-26 Carles Pina i Estany <carles@pina.cat>
14243 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
14245 * kern/corecmd.c (grub_register_core_commands): Likewise.
14246 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
14247 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
14248 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
14249 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
14250 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
14251 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
14252 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
14253 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
14254 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
14255 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
14256 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
14257 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
14258 * normal/handler.c (insert_handler): Likewise.
14259 * normal/main.c (GRUB_MOD_INIT): Likewise.
14260 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
14262 2009-12-26 Carles Pina i Estany <carles@pina.cat>
14264 * commands/help.c (grub_cmd_help): Print the command name before the
14266 (GRUB_MOD_INIT): Remove command name from the summary.
14267 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
14269 * lib/arg.c (find_long): Print the command name before the summary.
14270 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
14272 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
14273 * commands/cat.c (GRUB_MOD_INIT): Likewise.
14274 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
14275 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
14276 * commands/crc.c (GRUB_MOD_INIT): Likewise.
14277 * commands/date.c (GRUB_MOD_INIT): Likewise.
14278 * commands/echo.c (GRUB_MOD_INIT): Likewise.
14279 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
14280 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
14281 * commands/handler.c (GRUB_MOD_INIT): Likewise.
14282 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
14283 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
14284 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
14285 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
14286 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
14287 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
14288 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
14289 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
14290 * commands/ls.c (GRUB_MOD_INIT): Likewise.
14291 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
14292 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
14293 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
14294 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
14295 * commands/password.c (GRUB_MOD_INIT): Likewise.
14296 * commands/probe.c (GRUB_MOD_INIT): Likewise.
14297 * commands/read.c (GRUB_MOD_INIT): Likewise.
14298 * commands/search.c (GRUB_MOD_INIT): Likewise.
14299 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
14300 * commands/test.c (GRUB_MOD_INIT): Likewise.
14301 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
14302 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
14303 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
14304 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
14305 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
14306 * lib/arg.c (GRUB_MOD_INIT): Likewise.
14307 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
14308 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
14309 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
14310 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
14311 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
14312 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
14313 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
14314 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
14316 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14318 Use search command for preliminar UUID search.
14320 * commands/search.c: Split into ...
14321 * commands/search_wrap.c: ...this
14322 * commands/search.c: ...and this.
14323 * commands/search_file.c: New file.
14324 * commands/search_label.c: New file.
14325 * commands/search_uuid.c: New file.
14326 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
14327 Add commands/search_wrap.c, commands/search_file.c,
14328 commands/search_label.c and commands/search_uuid.c.
14329 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
14330 (search_mod_SOURCES): Set to commands/search_wrap.c.
14331 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
14333 (search_fs_file_mod_SOURCES): New variable.
14334 (search_fs_file_mod_CFLAGS): Likewise.
14335 (search_fs_file_mod_LDFLAGS): Likewise.
14336 (search_label_mod_SOURCES): Likewise.
14337 (search_label_mod_CFLAGS): Likewise.
14338 (search_label_mod_LDFLAGS): Likewise.
14339 (search_fs_uuid_mod_SOURCES): New variable.
14340 (search_fs_uuid_mod_CFLAGS): Likewise.
14341 (search_fs_uuid_mod_LDFLAGS): Likewise.
14342 (fs_file_mod_SOURCES): Removed.
14343 (fs_file_mod_CFLAGS): Likewise.
14344 (fs_file_mod_LDFLAGS): Likewise.
14345 (fs_uuid_mod_SOURCES): Removed.
14346 (fs_uuid_mod_CFLAGS): Likewise.
14347 (fs_uuid_mod_LDFLAGS): Likewise.
14348 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
14349 Set to util/grub-install.in.
14350 * disk/fs_file.c: Removed.
14351 * disk/fs_uuid.c: Likewise.
14352 * include/grub/search.h: New file.
14353 * util/grub-install.in: Handle sparc64.
14354 Create and use load.cfg.
14355 * util/sparc64/ieee1275/grub-install.in: Removed.
14357 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14359 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
14360 Ignore return status if CF is cleared.
14361 (grub_biosdisk_get_diskinfo_standard): Likewise.
14363 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
14365 * term/i386/pc/at_keyboard.c
14366 (keyboard_controller_wait_untill_ready): New function.
14367 (grub_keyboard_controller_write, grub_keyboard_controller_read)
14368 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
14369 for keyboard polling, rather than duplicate the same loop. This
14370 saves a few bytes in code size.
14372 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14374 Support for (pxe[:server[:gateway]]) syntax and
14375 use environment variable for PXE.
14377 * commands/i386/pc/pxecmd.c (options): Removed.
14378 (print_ip): Removed.
14379 (grub_cmd_pxe): Removed
14380 (grub_cmd_pxe_unload): New function.
14381 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
14382 (grub_pxe_your_ip): Made static.
14383 (grub_pxe_default_server_ip): Likewise.
14384 (grub_pxe_default_gateway_ip): Likewise.
14385 (grub_pxe_blksize): Likewise.
14386 (parse_ip): New function.
14387 (grub_pxe_open): Support server and gateway specification.
14388 (grub_pxe_close): Free disk->data.
14389 (grub_pxefs_open): Use disk->data.
14390 (grub_pxefs_read): Likewise.
14391 (grub_env_write_readonly): New function.
14392 (set_mac_env): Likewise.
14393 (set_env_limn_ro): Likewise.
14394 (parse_dhcp_vendor): Likewise.
14395 (grub_pxe_detect): Set the environment variables.
14396 (set_ip_env): New function.
14397 (write_ip_env): Likewise.
14398 (grub_env_write_pxe_default_server): Likewise.
14399 (grub_env_write_pxe_default_gateway): Likewise.
14400 (grub_env_write_pxe_blocksize): Likewise.
14401 (GRUB_MOD_INIT(pxe)): Set environment variables.
14402 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
14403 (grub_pxe_mac_addr_t): ... this. All users updated.
14404 (grub_pxe_your_ip): Removed.
14405 (grub_pxe_server_ip): Likewise.
14406 (grub_pxe_gateway_ip): Likewise.
14407 (grub_pxe_blksize): Likewise.
14409 2009-12-25 Carles Pina i Estany <carles@pina.cat>
14411 * commands/help.c: Include `<grub/i18n.h>'.
14412 (grub_cmd_help): Gettextizze.
14413 (GRUB_MOD_INIT): Likewise.
14414 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
14415 (GRUB_MOD_INIT): Gettextizze.
14416 * commands/search.c: Include `<grub/i18n.h>'.
14417 (options): Gettextizze.
14418 (GRUB_MOD_INIT): Gettextizze.
14419 * lib/arg.c: Include `<grub/i18n.h>'.
14420 (help_options): Gettextizze.
14421 (find_long): Likewise.
14422 (grub_arg_show_help): Likewise.
14423 * normal/dyncmd.c: Include `<grub/i18n.h>'.
14424 (read_command_list): Gettextizze.
14425 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
14426 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
14428 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
14430 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
14431 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
14432 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
14433 (led_status): New variable.
14434 (keyboard_controller_led): New function.
14435 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
14436 update led status for caps lock, num lock and scroll lock.
14438 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
14440 * util/hostdisk.c (open_device): Fix a comment.
14442 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
14444 * util/grub-install.in (host_os): New variable.
14445 * util/i386/efi/grub-install.in (host_os): Likewise.
14447 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
14449 * util/mkisofs/write.c (padblock_write): Abort when given an
14450 excedingly large embed image, instead of silently truncating it.
14452 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
14454 * include/multiboot.h: Indentation fixes.
14456 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
14458 * include/multiboot.h (struct multiboot_aout_symbol_table)
14459 (struct multiboot_elf_section_header_table): New structure
14460 declarations (stolen from GRUB Legacy).
14461 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
14464 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
14465 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
14468 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
14470 * include/multiboot.h: Make comments src2texi-friendly.
14472 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
14474 For consistency with [multiboot]/docs/boot.S.
14476 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
14477 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
14478 (MULTIBOOT_MAGIC2): Rename from this ...
14479 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
14481 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
14483 * include/multiboot.h: Remove `<grub/types.h>'.
14484 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
14485 types. Update all users.
14487 2009-12-25 Carles Pina i Estany <carles@pina.cat>
14489 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
14490 `couldn't' and `can not' by `cannot'.
14491 * commands/i386/pc/drivemap.c: Likewise.
14492 * disk/ata.c: Likewise.
14493 * disk/ieee1275/nand.c: Likewise.
14494 * fs/affs.c: Likewise.
14495 * fs/fat.c: Likewise.
14496 * fs/hfs.c: Likewise.
14497 * fs/hfsplus.c: Likewise.
14498 * fs/iso9660.c: Likewise.
14499 * fs/jfs.c: Likewise.
14500 * fs/minix.c: Likewise.
14501 * fs/reiserfs.c: Likewise.
14502 * fs/sfs.c: Likewise.
14503 * fs/udf.c: Likewise.
14504 * fs/ufs.c: Likewise.
14505 * fs/xfs.c: Likewise.
14506 * loader/powerpc/ieee1275/linux.c: Likewise.
14507 * loader/sparc64/ieee1275/linux.c: Likewise.
14508 * util/grub-probe.c: Likewise.
14509 * util/misc.c: Likewise.
14511 2009-12-24 Carles Pina i Estany <carles@pina.cat>
14513 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
14515 * commands/acpi.c: Likewise.
14516 * commands/blocklist.c: Likewise.
14517 * commands/efi/loadbios.c: Likewise.
14518 * commands/i386/pc/drivemap.c: Likewise.
14519 * commands/loadenv.c: Likewise.
14520 * commands/memrw.c: Likewise.
14521 * commands/password.c: Likewise.
14522 * commands/videotest.c: Likewise.
14523 * disk/ata.c: Likewise.
14524 * disk/ata_pthru.c: Likewise.
14525 * disk/dmraid_nvidia.c: Likewise.
14526 * disk/ieee1275/nand.c: Likewise.
14527 * disk/ieee1275/ofdisk.c: Likewise.
14528 * disk/loopback.c: Likewise.
14529 * disk/lvm.c: Likewise.
14530 * disk/mdraid_linux.c: Likewise.
14531 * disk/raid.c: Likewise.
14532 * disk/raid6_recover.c: Likewise.
14533 * disk/scsi.c: Likewise.
14534 * efiemu/main.c: Likewise.
14535 * efiemu/mm.c: Likewise.
14536 * efiemu/pnvram.c: Likewise.
14537 * efiemu/symbols.c: Likewise.
14538 * font/font.c: Likewise.
14539 * fs/cpio.c: Likewise.
14540 * fs/hfsplus.c: Likewise.
14541 * fs/iso9660.c: Likewise.
14542 * fs/jfs.c: Likewise.
14543 * fs/minix.c: Likewise.
14544 * fs/ntfs.c: Likewise.
14545 * fs/ntfscomp.c: Likewise.
14546 * fs/reiserfs.c: Likewise.
14547 * fs/ufs.c: Likewise.
14548 * fs/xfs.c: Likewise.
14549 * gettext/gettext.c: Likewise.
14550 * include/grub/auth.h: Likewise.
14551 * kern/elf.c: Likewise.
14552 * kern/file.c: Likewise.
14553 * kern/ieee1275/init.c: Likewise.
14554 * kern/ieee1275/mmap.c: Likewise.
14555 * kern/ieee1275/openfw.c: Likewise.
14556 * kern/powerpc/dl.c: Likewise.
14557 * kern/sparc64/dl.c: Likewise.
14558 * lib/arg.c: Likewise.
14559 * loader/i386/bsd.c: Likewise.
14560 * loader/i386/bsdXX.c: Likewise.
14561 * loader/i386/efi/linux.c: Likewise.
14562 * loader/i386/efi/xnu.c: Likewise.
14563 * loader/i386/ieee1275/linux.c: Likewise.
14564 * loader/i386/linux.c: Likewise.
14565 * loader/i386/multiboot.c: Likewise.
14566 * loader/i386/pc/linux.c: Likewise.
14567 * loader/i386/pc/multiboot2.c: Likewise.
14568 * loader/i386/xnu.c: Likewise.
14569 * loader/ieee1275/multiboot2.c: Likewise.
14570 * loader/macho.c: Likewise.
14571 * loader/machoXX.c: Likewise.
14572 * loader/multiboot2.c: Likewise.
14573 * loader/multiboot_loader.c: Likewise.
14574 * loader/powerpc/ieee1275/linux.c: Likewise.
14575 * loader/sparc64/ieee1275/linux.c: Likewise.
14576 * loader/xnu.c: Likewise.
14577 * loader/xnu_resume.c: Likewise.
14578 * mmap/i386/pc/mmap.c: Likewise.
14579 * normal/menu_viewer.c: Likewise.
14580 * partmap/acorn.c: Likewise.
14581 * partmap/amiga.c: Likewise.
14582 * partmap/apple.c: Likewise.
14583 * script/lexer.c: Likewise.
14584 * term/gfxterm.c: Likewise.
14585 * term/i386/pc/serial.c: Likewise.
14586 * term/i386/pc/vga.c: Likewise.
14587 * term/ieee1275/ofconsole.c: Likewise.
14588 * term/terminfo.c: Likewise.
14589 * video/bitmap.c: Likewise.
14590 * video/efi_gop.c: Likewise.
14591 * video/efi_uga.c: Likewise.
14592 * video/fb/video_fb.c: Likewise.
14593 * video/i386/pc/vbe.c: Likewise.
14594 * video/readers/tga.c: Likewise.
14595 * video/video.c: Likewise.
14597 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
14599 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
14600 * commands/lspci.c: Likewise.
14601 * commands/probe.c: Likewise.
14602 * commands/xnu_uuid.c: Likewise.
14603 * conf/i386-coreboot.rmk: Likewise.
14604 * conf/i386-efi.rmk: Likewise.
14605 * conf/i386-ieee1275.rmk: Likewise.
14606 * conf/i386-pc.rmk: Likewise.
14607 * conf/powerpc-ieee1275.rmk: Likewise.
14608 * conf/sparc64-ieee1275.rmk: Likewise.
14609 * conf/x86_64-efi.rmk: Likewise.
14610 * fs/i386/pc/pxe.c: Likewise.
14611 * gettext/gettext.c: Likewise.
14612 * include/grub/efi/graphics_output.h: Likewise.
14613 * include/grub/i386/pc/memory.h: Likewise.
14614 * kern/env.c: Likewise.
14615 * kern/i386/qemu/startup.S: Likewise.
14616 * lib/i386/pc/biosnum.c: Likewise.
14617 * lib/i386/relocator.c: Likewise.
14618 * lib/i386/relocator_asm.S: Likewise.
14619 * lib/relocator.c: Likewise.
14620 * loader/i386/bsd.c: Likewise.
14621 * loader/i386/multiboot.c: Likewise.
14622 * loader/i386/pc/chainloader.c: Likewise.
14623 * loader/i386/xnu.c: Likewise.
14624 * loader/xnu.c: Likewise.
14625 * normal/main.c: Likewise.
14626 * normal/menu_text.c: Likewise.
14627 * util/getroot.c: Likewise.
14628 * util/grub-mkconfig_lib.in: Likewise.
14629 * util/grub.d/00_header.in: Likewise.
14630 * util/i386/pc/grub-mkimage.c: Likewise.
14631 * util/mkisofs/eltorito.c: Likewise.
14632 * util/mkisofs/exclude.h: Likewise.
14633 * util/mkisofs/hash.c: Likewise.
14634 * util/mkisofs/iso9660.h: Likewise.
14635 * util/mkisofs/joliet.c: Likewise.
14636 * util/mkisofs/mkisofs.c: Likewise.
14637 * util/mkisofs/mkisofs.h: Likewise.
14638 * util/mkisofs/multi.c: Likewise.
14639 * util/mkisofs/name.c: Likewise.
14640 * util/mkisofs/rock.c: Likewise.
14641 * util/mkisofs/tree.c: Likewise.
14642 * util/mkisofs/write.c: Likewise.
14643 * video/efi_gop.c: Likewise.
14645 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14647 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
14650 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
14652 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
14653 * genmk.rb (class SCRIPT): Modify the target file instead of source.
14655 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14657 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
14658 (GRUB_MOD_INIT(memrw)): Update help line.
14660 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14662 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
14663 Use grub_extcmd_t. All users updated.
14664 (options): New variable.
14665 (grub_cmd_read): Restructure for readability. Support "-v" option.
14666 (grub_cmd_write): Restructure for readability.
14668 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
14670 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
14672 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
14674 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
14675 with the actual contents of the correspondending make variable.
14676 * util/grub-mkrescue.in (pkglib_DATA): New variable.
14677 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
14678 specifying `*.lst' and `efiemu??.o'
14680 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
14682 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
14683 after function name.
14684 Noticed by Rene Engelhard <rene@debian.org>.
14686 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14688 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
14689 (options): New variable.
14690 (iospace): Likewise.
14691 (grub_lspci_iter): List IO spaces if "-i" was given.
14692 (grub_cmd_lspci): Parse options.
14693 (GRUB_MOD_INIT(lspci)): Use extcmd.
14694 (GRUB_MOD_FINI(lspci)): Likewise.
14696 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
14698 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
14699 `function' keyword.
14700 Patch by Tony Mancill <tmancill@debian.org>.
14702 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14704 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
14705 (grub_uhci_portstatus): Likewise.
14706 (grub_uhci_portstatus): Add necessary delay.
14707 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
14709 2009-12-21 Carles Pina i Estany <carles@pina.cat>
14711 * commands/acpi.c (options): Fix capitalizations and/or full stops.
14712 (GRUB_MOD_INIT): Likewise.
14713 * commands/boot.c (GRUB_MOD_INIT): Likewise.
14714 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
14715 * commands/echo.c (options): Fix capitalizations and/or full stops.
14716 * commands/efi/loadbios.c (enable_rom_area): Likewise.
14717 (enable_rom_area): Likewise.
14718 (GRUB_MOD_INIT): Likewise.
14719 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
14720 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
14721 * commands/handler.c (GRUB_MOD_INIT): Likewise.
14722 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
14723 * commands/hexdump.c (options): Likewise.
14724 * commands/i386/cpuid.c (options): Likewise.
14725 (GRUB_MOD_INIT): Likewise.
14726 * commands/i386/pc/drivemap.c (options): Likewise.
14727 (GRUB_MOD_INIT): Likewise.
14728 * commands/i386/pc/halt (options): Likewise.
14729 (GRUB_MOD_INIT): Likewise.
14730 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
14731 * commands/i386/pc/pxecmd.c (options): Likewise.
14732 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
14733 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
14734 * commands/keystatus.c (options): Likewise.
14735 (GRUB_MOD_INIT): Likewise.
14736 * commands/loadenv.c (options): Likewise.
14737 * commands/ls.c (options): Likewise.
14738 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
14739 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
14740 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
14741 * commands/parttool.c (helpmsg): Likewise.
14742 * commands/probe.c (options): Likewise.
14743 * commands/read.c (GRUB_MOD_INIT): Likewise.
14744 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
14745 * commands/search.c (options): Likewise.
14746 * commands/sleep.c (options): Likewise.
14747 * commands/test.c (GRUB_MOD_INIT): Likewise.
14748 * commands/true.c (GRUB_MOD_INIT): Likewise.
14749 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
14750 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
14751 * lib/arg.c (help_options): Likewise.
14752 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
14754 * po/POTFILES: Add `commands/loadenv.c'.
14756 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
14758 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
14759 instead of specifying them explicit.
14761 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14763 * NEWS: Add grub-probe support for GNU/Hurd.
14765 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14767 * NEWS: gettext was added after 1.97.
14769 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14771 * util/mkisofs/msdos_partition.h: New file (based on
14772 include/grub/msdos_partition.h).
14773 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
14774 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
14775 (ld_options, main): Recognize --protective-msdos-label.
14776 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
14777 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
14778 (padblock_write): If `use_protective_msdos_label' is set, patch a
14779 protective DOS-style label in the output image.
14781 * util/grub-mkrescue.in: Use --protective-msdos-label.
14783 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14785 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
14788 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14790 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
14792 (ld_options, main): Recognize `--embedded-boot'.
14793 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
14795 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
14796 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
14797 (padblock_write): Likewise. Rewrite to support embedded boot image.
14799 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
14800 for BIOS-based disk boot instead of only ElTorito.
14802 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14804 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
14805 build (not needed for bootstrap).
14807 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14809 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
14810 from i386-pc build (not needed for bootstrap).
14811 Rewrite a pair of strings.
14813 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14815 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
14817 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
14819 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
14821 2009-12-21 Andreas Born <futur.andy@googlemail.com>
14823 * kern/env.c (grub_env_context_open): Mark exported variable for
14826 2009-12-21 Andreas Born <futur.andy@googlemail.com>
14828 * kern/env.c (grub_env_export): Create nonexistent variables before
14831 2009-12-20 Carles Pina i Estany <carles@pina.cat>
14833 * include/grub/auth.h: Include `<grub/i18n.h>'.
14834 (GRUB_GET_PASSWORD): Gettextizze string.
14835 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
14837 (grub_utf8_to_ucs4_alloc): Fix indentation.
14838 (grub_print_ucs4): Likewise.
14839 (grub_getstringwidth): Likewise.
14840 (print_message_indented): New declaration.
14841 * normal/auth.c: Include `<grub/i18n.h>'.
14842 (grub_auth_check_authentication): Gettexttize string.
14843 * normal/cmdline.c: Include `<grub/i18n.h>'.
14844 (grub_cmdline_get): Gettextizze.
14845 * normal/color.c: Include `<grub/i18n.h>'.
14846 (grub_parse_color_name_pair): Gettexttize strings.
14847 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
14848 string (use `print_message_indented').
14849 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
14850 `include/grub/normal.h'.
14851 (print_message_indented): Renamed to ...
14852 (grub_print_message_indented): ... this. Remove `static' qualifer (now
14853 used in normal/main.c).
14854 (print_message): Use `grub_print_message_indented' instead of
14855 `print_message_indented'.
14856 (print_timeout): Likewise.
14857 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
14858 (grub_normal_print_device_info): Gettexttize strings.
14859 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
14861 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14863 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
14864 of arguments. Return number of tokens and not arguments. All users
14867 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14869 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
14870 non-MSDOS paritions.
14872 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14874 * include/grub/types.h (UNUSED): Removed since it conflicts with
14875 NetBSD headers. All users changed to direct __attribute__ ((unused)).
14876 Reported by Grégoire Sutre.
14878 2009-12-19 Carles Pina i Estany <carles@pina.cat>
14880 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
14881 (grub_print_ucs4_alloc): Likewise.
14882 (grub_getstringwidth): Likewise.
14883 * normal/main.c (grub_normal_init_page): Gettextize version string.
14884 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
14885 (getstringwidth): Renamed to ...
14886 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
14887 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
14888 (grub_print_ucs4): Remove `static' qualifer (now used in
14890 * po/POTFILES: Add normal/main.c.
14892 2009-12-19 Carles Pina i Estany <carles@pina.cat>
14894 * normal/menu_text.c (STANDARD_MARGIN): New macro.
14895 (print_message_indented): Add `margin_left' and `margin_right'
14897 (print_message): Update `print_message_indented' calls. Adds '\n' to the
14899 (print_timeout): Use `print_message_indented' to print the message.
14900 Deletes `second_stage' parameter.
14901 (run_menu): Update `print_timeout' calls.
14903 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14905 Fix console palette on OpenFirmware.
14907 * term/ieee1275/ofconsole.c (MAX): Removed.
14908 (colors): Redone based on VGA palette.
14909 (grub_ofconsole_setcolor): Discard brightness bit since only 8
14910 colors are supported.
14911 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
14913 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14915 Fix potential EfiEmu double prepare.
14917 * efiemu/main.c (prepared): New variable
14918 (grub_efiemu_unload): Set prepare to '0'.
14919 (grub_efiemu_prepare): Return if already prepared. Set prepared.
14921 set_virtual_address_map support.
14923 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
14925 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
14927 (grub_efiemu_crc32): Likewise.
14928 (grub_efiemu_crc64): Likewise.
14929 (grub_efiemu_set_virtual_address_map): Likewise.
14930 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
14932 (grub_autoefi_set_virtual_address_map): Likewise.
14933 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
14934 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
14935 Restructure flow to accomodate it.
14936 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
14937 (grub_efiemu_crc): Recompute CRC32.
14938 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
14939 (efiemu_ptv_relocated): ... this. Made global. All users updated.
14940 * efiemu/symbols.c (relocated_handle): New variable.
14941 (grub_efiemu_free_syms): Free relocated_handle.
14942 (grub_efiemu_alloc_syms): Allocate relocated_handle.
14943 (grub_efiemu_write_sym_markers): New function.
14944 (grub_efiemu_set_virtual_address_map): Likewise.
14946 Newer XNU parameters.
14948 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
14949 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
14950 (grub_xnu_fill_devicetree): New prototype.
14951 (grub_xnu_heap_real_start): New variable.
14952 * loader/xnu.c (get_name_ptr): New function.
14953 (grub_xnu_load_driver): Fill namelen and name.
14955 64-bit xnu support.
14957 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
14958 and 'loader/macho64.c'.
14959 * conf/i386-pc.rmk: Likewise.
14960 * conf/x86_64-efi.rmk: Likewise.
14961 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
14962 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
14963 * include/grub/macho.h (grub_macho_segment64): New structure.
14964 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
14965 (grub_macho_size32): ... to this.
14966 (grub_macho32_get_entry_point): Renamed from ...
14967 (grub_macho_get_entry_point32): ... to this.
14968 (grub_macho_contains_macho64): New prototype.
14969 (grub_macho_size64): Likewise.
14970 (grub_macho_get_entry_point64): Likewise.
14971 (grub_macho32_load): Renamed from ...
14972 (grub_macho_load32): ... to this.
14973 (grub_macho32_filesize): Renamed from ...
14974 (grub_macho_filesize32): ... to this.
14975 (grub_macho32_readfile): Renamed from ...
14976 (grub_macho_readfile32): ... to this.
14977 (grub_macho_filesize64): New prototype.
14978 (grub_macho_readfile64): Likewise.
14979 (grub_macho_parse32): Likewise.
14980 (grub_macho_parse64): Likewise.
14981 * loader/macho.c: Split into ...
14982 * loader/machoXX.c: ... and this. Replace 32 with XX.
14983 * loader/macho32.c: New file.
14984 * loader/macho64.c: Likewise.
14985 * loader/xnu.c (grub_xnu_is_64bit): New variable.
14986 (grub_cmd_xnu_kernel): Make 32-bit only.
14987 (grub_cmd_xnu_kernel64): New function.
14988 (grub_xnu_load_driver): Support Mach-O 64.
14989 (grub_cmd_xnu_mkext): Likewise.
14990 * util/grub.d/30_os-prober.in (osx_entry): New function.
14991 Generate entries for 64-bit boot too.
14993 Eliminate ad-hoc tree format in XNU and EfiEmu.
14995 * efiemu/main.c (grub_efiemu_prepare): Update comment.
14996 * efiemu/pnvram.c: Rewritten to use environment variables.
14999 Inline utf16_to_utf8.
15001 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
15002 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
15004 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
15006 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
15007 * commands/usbtest.c (grub_usb_get_string): ... move here.
15008 (usb_print_str): Fix error handling.
15009 * include/grub/usb.h (grub_usb_get_string): Remove.
15011 UTF-8 to UTF-16 transformation.
15013 * conf/common.rmk (pkglib_MODULES): Add charset.mod
15014 (charset_mod_SOURCES): New variable.
15015 (charset_mod_CFLAGS): Likewise.
15016 (charset_mod_LDFLAGS): Likewise.
15017 * include/grub/utf.h: New file.
15018 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
15020 Support for device properties.
15022 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
15023 (grub_xnu_devprop_device_header): Likewise.
15024 (grub_xnu_devprop_device_descriptor): Likewise.
15025 (grub_xnu_devprop_add_device): New prototype.
15026 (grub_xnu_devprop_remove_device): Likewise.
15027 (grub_xnu_devprop_remove_property): Likewise.
15028 (grub_xnu_devprop_add_property_utf8): Likewise.
15029 (grub_xnu_devprop_add_property_utf16): Likewise.
15030 (grub_cpu_xnu_init): Likewise.
15031 (grub_cpu_xnu_fini): Likewise.
15032 (grub_cpu_xnu_unload): Likewise.
15033 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
15034 (property_descriptor): Likewise.
15035 (devices): New variable.
15036 (grub_xnu_devprop_remove_property): New function.
15037 (grub_xnu_devprop_add_device): Likewise.
15038 (grub_xnu_devprop_remove_device): Likewise.
15039 (grub_xnu_devprop_add_property): Likewise.
15040 (grub_xnu_devprop_add_property_utf8): Likewise.
15041 (grub_xnu_devprop_add_property_utf16): Likewise.
15042 (hextoval): Likewise.
15043 (grub_cpu_xnu_fill_devprop): Likewise.
15044 (grub_cmd_devprop_load): Likewise.
15045 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
15046 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
15047 (cmd_devprop_load): New variable.
15048 (grub_cpu_xnu_init): New function.
15049 (grub_cpu_xnu_fini): Likewise.
15050 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
15051 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
15052 (grub_cmd_xnu_devtree): Likewise.
15053 (hextoval): New function.
15054 (unescape): Likewise.
15055 (grub_xnu_fill_devicetree): Likewise.
15057 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
15058 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
15060 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15062 Workaround for broken ATI VBE.
15064 * video/i386/pc/vbe.c (last_set_mode): New variable.
15065 (grub_vbe_set_video_mode): Set 'last_set_mode'.
15066 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
15067 (grub_video_vbe_setup): Don't check for reserved flag.
15069 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
15071 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
15072 the `find' command.
15074 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15076 UUID support for HFS.
15078 * fs/hfs.c (grub_hfs_uuid): New function.
15079 (grub_hfs_fs): New value .uuid.
15080 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
15082 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
15084 Fix a segfault with parsing unknown long options.
15086 * util/grub-mkrelpath.c (options): Zero terminate it.
15088 2009-12-13 Carles Pina i Estany <carles@pina.cat>
15090 * include/grub/misc.h (grub_puts): New declaration.
15091 (grub_puts_): Likewise.
15092 * kern/misc.c (grub_puts): New definition.
15093 (grub_puts_): Likewise.
15095 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
15097 * util/grub-probe.c (probe): Improve error message.
15099 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
15101 * loader/i386/multiboot_elfxx.c
15102 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
15105 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15107 Relocator framework
15109 * loader/i386/xnu_helper.S: Removed. All users updated.
15110 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
15111 (relocator_mod_SOURCES): New variable.
15112 (relocator_mod_CFLAGS): Likewise.
15113 (relocator_mod_LDFLAGS): Likewise.
15114 (relocator_mod_ASFLAGS): Likewise.
15115 * conf/x86_64.rmk: Likewise.
15116 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
15117 (grub_multiboot_payload_entry_offset): Likewise.
15118 (grub_multiboot_forward_relocator): Likewise.
15119 (grub_multiboot_forward_relocator_end): Likewise.
15120 (grub_multiboot_backward_relocator): Likewise.
15121 (grub_multiboot_backward_relocator_end): Likewise.
15122 (grub_multiboot_payload_eip): New variable.
15123 (grub_multiboot_payload_orig): Likewise.
15124 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
15125 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
15126 * include/grub/i386/memory.h
15127 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
15128 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
15129 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
15130 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
15131 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
15132 * include/grub/i386/relocator.h: New file.
15133 * include/grub/x86_64/relocator.h: Likewise.
15134 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
15135 (XNU_RELOCATOR): New macro.
15136 (grub_xnu_launcher_start): Remove.
15137 (grub_xnu_launcher_end): Likewise.
15138 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
15139 (grub_xnu_heap_real_start): Remove.
15140 (grub_xnu_heap_start): Change to void *. All users updated.
15141 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
15142 * lib/i386/relocator.c: New file.
15143 * lib/i386/relocator_asm.S: Likewise.
15144 * lib/i386/relocator_backward.S: Likewise.
15145 * lib/mips/relocator.c: Likewise.
15146 * lib/mips/relocator_asm.S: Likewise.
15147 * lib/relocator.c: Likewise.
15148 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
15150 (playground): Likewise.
15151 (grub_multiboot_payload_orig): New variable.
15152 (grub_multiboot_payload_dest): Likewise.
15153 (grub_multiboot_payload_size): Likewise.
15154 (grub_multiboot_payload_eip): Likewise.
15155 (grub_multiboot_payload_esp): Likewise.
15156 (grub_multiboot_boot): Use grub_relocator32_boot.
15157 (grub_multiboot_unload): Free relocators.
15158 (grub_multiboot): Setup stack. Use relocators.
15159 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
15160 (grub_multiboot_load_elfXX): Use relocators.
15161 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
15162 (grub_multiboot_payload_size): Likewise.
15163 (grub_multiboot_payload_dest): Likewise.
15164 (grub_multiboot_payload_entry_offset): Likewise.
15165 (grub_multiboot_forward_relocator): Likewise.
15166 (grub_multiboot_backward_relocator): Likewise.
15167 (grub_multiboot_real_boot): Likewise.
15168 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
15169 (grub_xnu_entry_point): Likewise.
15170 (grub_xnu_arg1): Likewise.
15171 (grub_xnu_stack): Likewise.
15172 (grub_xnu_launch): Removed.
15173 (grub_xnu_boot_resume): New function.
15174 (grub_xnu_boot): Use relocators.
15175 * loader/i386/xnu_helper.S: Removed.
15176 * loader/xnu.c (grub_xnu_heap_start): New variable.
15177 (grub_xnu_heap_size): Likewise.
15178 (grub_xnu_heap_malloc): Use relocators.
15179 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
15181 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15183 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
15186 2009-12-13 Carles Pina i Estany <carles@pina.cat>
15188 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
15189 GRUB_ERR_NONE before calling grub_env_set.
15191 2009-12-12 Robert Millan <rmh@aybabtu.com>
15193 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
15194 * genmk.rb (video): New variable.
15195 (CLEANFILES, VIDEOFILES): Add #{video}.
15196 (#{video}): New target rule.
15197 * genvideolist.sh: New file.
15198 * Makefile.in (pkglib_DATA): Add video.lst.
15199 (video.lst): New target rule.
15200 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
15202 * util/grub.d/30_os-prober.in: Replace `vbe' with
15203 ${GRUB_VIDEO_BACKEND}.
15205 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
15207 * THANKS: Add David Miller.
15209 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
15211 libpciaccess support.
15213 * Makefile.in (LIBPCIACCESS): New variable.
15214 (enable_grub_emu_pci): Likewise.
15215 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
15216 util/pci.c and commands/lspci.c.
15217 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
15218 * configure.ac (grub-emu-pci): New option.
15219 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
15220 (grub_pci_device_unmap_range): Likewise.
15221 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
15222 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
15223 (grub_pci_address_t) [!GRUB_UTIL]: New type.
15224 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
15225 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
15226 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
15227 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
15228 * include/grub/pciutils.h: New file.
15229 * util/pci.c: Likewise.
15231 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
15233 * util/misc.c: Don't include <errno.h> twice.
15235 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
15237 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
15238 name in an error message.
15239 (grub_biosdisk_rw): Likewise.
15241 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
15243 Eliminate NTFS 4Gib barrier.
15245 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
15246 (read_run_data): Likewise.
15247 (grub_ntfs_read_run_list): Likewise.
15248 (grub_ntfs_read_block): Likewise.
15249 (grub_ntfs_iterate_dir): Likewise.
15250 (read_mft): Likewise.
15251 (read_data): Likewise.
15253 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
15254 to avoid 64-bit division
15255 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
15256 (grub_ntfs_rlst): Use grub_disk_addr_t.
15258 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
15260 Eliminate grub-fstest 4Gib barrier.
15262 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
15263 (read_file): Fix error reporting.
15265 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
15267 Eliminate hexdump 4Gib barrier.
15269 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
15270 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
15272 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
15274 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
15277 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
15279 Remove miscellaneous files in distclean target.
15281 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
15283 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
15285 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
15286 if they're already set. This resolves the conflict between my
15287 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
15288 fixing the --grub-probe option again.
15289 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
15290 change on 2009-10-06, so that we now once again source
15291 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
15293 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
15295 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
15296 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
15297 `util/devicemap.c'.
15299 2009-12-08 Carles Pina i Estany <carles@pina.cat>
15301 * include/grub/misc.h (grub_printf_): New declaration.
15302 * kern/misc.c (grub_printf_): New definition.
15303 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
15304 instead of `grub_printf' and `_'.
15305 * normal/menu_entry.c (store_completion): Likewise.
15307 (grub_menu_entry_run): Likewise.
15308 * normal/menu_text.c (grub_wait_after_message): Likewise.
15309 (notify_booting): Likewise.
15310 (notify_fallback): Likewise.
15311 (notify_execution_failure): Likewise.
15313 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
15315 * configure.ac: Check for vasprintf.
15316 * util/misc.c (asprintf): Move allocation from here ...
15317 (vasprintf): ... to here. New function.
15318 (xasprintf): New function.
15319 * include/grub/util/misc.h (vasprintf, xasprintf): Add
15321 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
15322 * util/grub-mkfont.c (write_font): Likewise.
15323 * util/grub-probe.c (probe): Likewise.
15324 * util/hostdisk.c (make_device_name): Likewise.
15326 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
15328 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
15329 anything even prefixed with 'cdrom' as a cdrom.
15331 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
15333 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
15336 2009-12-05 Carles Pina i Estany <carles@pina.cat>
15338 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
15339 grub_gettext_msg_list.
15340 (grub_gettext_gettranslation_from_position): Return const char *
15342 (grub_gettext_translate): Add the translated strings into a list,
15343 returns from the list if existing there.
15344 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
15345 (grub_gettext_delete_list): Delete the list.
15346 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
15347 lang environment variable is changed.
15348 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
15350 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
15352 Rename kernel.mod to kernel.img.
15354 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
15355 (kernel_mod_EXPORTS): Rename to ...
15356 (kernel_img_EXPORTS): ... this.
15357 (kernel_mod_SOURCES): Rename to ...
15358 (kernel_img_SOURCES): ... this.
15359 (kernel_mod_HEADERS): Rename to ...
15360 (kernel_img_HEADERS): ... this. All users updated.
15361 (kernel_mod_CFLAGS): Rename to ...
15362 (kernel_img_CFLAGS): ... this.
15363 (kernel_mod_ASFLAGS): Rename to ...
15364 (kernel_img_ASFLAGS): ... this.
15365 (kernel_mod_LDFLAGS): Rename to ...
15366 (kernel_img_LDFLAGS): ... this.
15367 * conf/x86_64-efi.rmk: Likewise.
15368 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
15369 (read_kernel_image): ... this. All users updated.
15370 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
15372 2009-12-05 Carles Pina i Estany <carles@pina.cat>
15374 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
15375 (print_spaces): New function.
15376 (grub_print_ucs4): New function.
15377 (getstringwidth): New function.
15378 (print_message_indented): New function.
15379 (print_message): Gettexttize strings using print_message_indented.
15380 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
15382 (get_entry_number): Gettextize and uses dynamic terminal width.
15383 (notify_booting, notify_fallback, notify_execution_failure):
15385 * normal/menu_entry.c (store_completion): Cleanup the gettextized
15388 (grub_menu_entry_run): Likewise.
15389 * PO/POTFILES: Add normal/menu_entry.c.
15391 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
15393 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
15395 2009-12-05 Carles Pina i Estany <carles@pina.cat>
15397 * util/grub-install.in: Install gettext .mo files.
15398 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
15400 2009-12-05 Carles Pina i Estany <carles@pina.cat>
15402 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
15405 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
15407 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
15408 non-firmware-dependant one in realmode.S takes precedence.
15410 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
15412 * commands/halt.c: Replace misc arch-specific headers with
15414 * commands/reboot.c: Likewise.
15415 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
15417 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
15418 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
15419 (kernel_img_SOURCES): ... to here.
15421 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
15422 * include/grub/i386/pc/init.h: Likewise.
15423 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
15424 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
15426 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
15428 * include/grub/i386/halt.h: Remove.
15429 * include/grub/i386/reboot.h: Likewise.
15431 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
15433 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
15435 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
15436 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
15437 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
15439 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
15440 * util/sparc64/ieee1275/grub-setup.c: Likewise.
15441 (usage): Add missing comma in printf.
15443 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
15445 Use the same reboot approach on i386 coreboot and qemu as we do on
15448 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
15449 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
15450 * kern/i386/reboot.c: Remove.
15451 * include/grub/i386/reboot.h (grub_reboot): Export function.
15452 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
15453 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
15454 0xf000:0xfff0 instead of 0xffff:0x0000.
15455 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
15456 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
15458 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
15460 Fix $srcdir != $objdir build.
15462 * Makefile.in (po/%.po): Rewrite as ...
15463 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
15465 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
15467 Fix GNU/Hurd grub-install crash.
15468 * util/grub-probe.c (probe): Try to access `path' only when it is not
15471 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
15473 Correct module naming.
15475 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
15476 (GRUB_MOD_INIT(efi_uga)): ... to this
15477 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
15478 (GRUB_MOD_FINI(efi_uga)): ... to this
15479 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
15480 (GRUB_MOD_INIT(efi_gop)): ... to this
15481 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
15482 (GRUB_MOD_FINI(efi_gop)): ... to this
15484 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
15486 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
15488 (usage): Translate `arg' strings using gettext().
15489 Thanks to Jordi Mallach for the suggestion.
15491 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
15493 GOP support. Based on patch from Bean
15494 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
15496 * video/efi_gop.c: New file.
15497 * include/grub/efi/graphics_output.h: Likewise.
15498 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
15499 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
15501 * conf/x86_64-efi.rmk: Likewise.
15503 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
15505 Rename efi_fb to efi_uga.
15507 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
15509 (efi_fb_mod_SOURCES): Rename this ...
15510 (efi_uga_mod_SOURCES): ... to this.
15511 (efi_fb_mod_CFLAGS): Rename this ...
15512 (efi_uga_mod_CFLAGS): ... to this.
15513 (efi_fb_mod_LDFLAGS): Rename this ...
15514 (efi_uga_mod_LDFLAGS): ... to this.
15515 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
15517 (efi_fb_mod_SOURCES): Rename this ...
15518 (efi_uga_mod_SOURCES): ... to this.
15519 (efi_fb_mod_CFLAGS): Rename this ...
15520 (efi_uga_mod_CFLAGS): ... to this.
15521 (efi_fb_mod_LDFLAGS): Rename this ...
15522 (efi_uga_mod_LDFLAGS): ... to this.
15523 * video/efi_fb.c: Move this ...
15524 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
15526 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
15528 * po/README: New file. Explain our PO file workflow.
15530 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
15532 * po/ChangeLog: Remove. Move relevant entries back to ...
15533 * ChangeLog: ... here.
15534 * po/ca.po: Remove (now handled by TLP).
15535 * po/id.po: Likewise.
15536 * po/zh_CN.po: Likewise.
15537 * Makefile.in (LINGUAS): Initialize in a way that supports
15540 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
15542 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
15543 reliing on po/LINGUAS.
15544 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
15545 (po/%.po): ... this.
15547 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
15549 * util/i386/efi/grub-mkimage.c: Include "progname.h".
15550 (main): Use `program_name' instead of nonexistent `progname'.
15552 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
15554 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
15555 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
15557 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
15559 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
15561 * conf/i386-efi.rmk: Likewise.
15562 * conf/i386-ieee1275.rmk: Likewise.
15563 * conf/powerpc-ieee1275.rmk: Likewise.
15564 * conf/sparc64-ieee1275.rmk: Likewise.
15565 * conf/x86_64-efi.rmk: Likewise.
15567 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
15569 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
15571 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
15573 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
15575 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
15577 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
15578 (grub_mkdevicemap_SOURCES): New variable.
15579 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
15580 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
15581 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
15582 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
15583 (grub_mkdevicemap_SOURCES): Remove.
15584 * conf/i386-efi.rmk: Likewise.
15585 * conf/i386-ieee1275.rmk: Likewise.
15586 * conf/i386-pc.rmk: Likewise.
15587 * conf/powerpc-ieee1275.rmk: Likewise.
15588 * conf/sparc64-ieee1275.rmk: Likewise.
15589 * conf/x86_64-efi.rmk: Likewise.
15590 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
15591 (usage): Fix strings to use `program_name'.
15592 (main): Initialize gettext.
15593 * util/grub-editenv.c: Likewise.
15594 * util/grub-emu.c: Likewise.
15595 * util/grub-fstest.c: Likewise.
15596 * util/grub-mkdevicemap.c: Likewise.
15597 * util/grub-mkfont.c: Likewise.
15598 * util/grub-mkrelpath.c: Likewise.
15599 * util/grub-pe2elf.c: Likewise.
15600 * util/grub-probe.c: Likewise.
15601 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
15602 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
15603 * util/sparc64/ieee1275/grub-setup.c: Likewise.
15605 * util/misc.c: Include `"progname.h"'.
15606 (progname): Remove variable.
15607 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
15609 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
15611 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
15612 printf and print a newline after the menuentry header line.
15613 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
15615 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
15617 autoconf >= 2.60 support $(localedir).
15619 * INSTALL: Note that autoconf 2.60 is required.
15620 * configure.ac (AC_PREREQ): Bump to 2.60.
15621 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
15622 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
15624 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
15626 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
15629 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
15631 * normal/main.c (grub_normal_read_line): Fix off-by-one
15634 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
15636 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
15637 "parser.grub" in grub_command_execute() call.
15639 2009-11-24 Carles Pina i Estany <carles@pina.cat>
15641 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
15642 * conf/i386-efi.rmk: Likewise.
15643 * conf/i386-ieee1275.rmk: Likewise.
15644 * conf/i386-pc.rmk: Likewise.
15645 * conf/powerpc-ieee1275.rmk: Likewise.
15646 * conf/sparc64-ieee1275.rmk: Likewise.
15647 * conf/x86_64-efi.rmk: Likewise.
15648 * gettext/gettex.c: Include <grub/i18n.h>.
15649 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
15651 * include/grub/i18n.h: ... to here
15652 * include/grub/i18n.h: ... to here.
15653 * kern/misc.c: Include <grub/i18n.h>
15654 (grub_gettext_dummy): Move above user.
15656 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15658 * util/Makefile.in (install-local): Convert a `for' into a normal
15661 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
15663 * autogen.sh: Add automake call.
15664 * config.guess: Remove.
15665 * config.sub: Likewise.
15666 * install-sh: Likewise.
15668 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15670 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
15672 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15674 * util/Makefile.in (install-local): Convert a make `$(foreach)'
15675 function to a normal shell `for'.
15677 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15679 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
15681 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15683 * util/grub-mkrelpath.c: New file.
15684 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
15685 (grub_mkrelpath_SOURCES): New variable.
15686 * include/grub/util/misc.h: New function prototype.
15687 * util/misc.c (make_system_path_relative_to_its_root): New function.
15689 * util/grub-mkconfig_lib.in (bindir): New variable.
15690 (grub_mkrelpath): Likewise.
15691 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
15693 * util/probe.c (probe): Make the file path relative to its root.
15694 Change a info message to use the GRUB path. Enable again the
15695 check if we can read the file with GRUB facilities.
15697 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
15700 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15702 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
15705 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15707 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
15710 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15712 * util/getroot.c (grub_util_is_dmraid): New function.
15713 (grub_util_get_dev_abstraction): Treat dmraid and multipath
15714 devices as normal ones, not as LVM.
15716 2009-11-23 Carles Pina i Estany <carles@pina.cat>
15718 * conf/common.rmk: Add grub-gettext_lib target and updates
15719 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
15721 * gettext/gettext.c: New file. (Reads mo files).
15722 * include/grub/file.h (grub_file_pread): New prototype.
15723 * include/grub/i18n.h (_): New prototype.
15724 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
15726 * kern/misc.c (grub_gettext_dummy): New function.
15727 * normal/menu_text.c: Include <grub/i18n.h>.
15728 * normal/menu_text.c (print_timeout): Gettexttize string.
15729 * normal/menu_text.c (print_message): Gettexttize string.
15730 * po/POTFILES: Add `normal/menu_text.c'.
15731 * po/ca.po: Add new translations.
15732 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
15733 gettext module and defines locale_dir and lang in grub.cfg.
15734 * NEWS: Add gettext support.
15736 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15738 * util/hostdisk.c: Include `<grub/i18n.h>'.
15739 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
15740 (make_device_name): Rewrite using asprintf.
15741 (convert_system_partition_to_system_disk): Replace 0 with NULL.
15742 (find_system_device): If a device is not found, generate one just
15743 by reusing the OS path name.
15744 (read_device_map): Make it permissible for device.map not to exist.
15746 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15748 * script/sh/execute.c: Move from here ...
15749 * script/execute.c: ... to here. Update all users.
15750 * script/sh/function.c: Move from here ...
15751 * script/function.c: ... to here. Update all users.
15752 * script/sh/lexer.c: Move from here ...
15753 * script/lexer.c: ... to here. Update all users.
15754 * script/sh/main.c: Move from here ...
15755 * script/main.c: ... to here. Update all users.
15756 * script/sh/parser.y: Move from here ...
15757 * script/parser.y: ... to here. Update all users.
15758 * script/sh/script.c: Move from here ...
15759 * script/script.c: ... to here. Update all users.
15761 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15763 * configure.ac: Detect all `emu' platforms. Define
15764 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
15765 --enable-grub-emu logic. Disable include/grub/machine
15766 symlink on `emu' platforms.
15768 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
15769 * gensymlist.sh.in: Likewise.
15771 * include/grub/i386/coreboot/machine.h: Remove file.
15772 * include/grub/i386/efi/machine.h: Likewise.
15773 * include/grub/i386/ieee1275/machine.h: Likewise.
15774 * include/grub/i386/pc/machine.h: Likewise.
15775 * include/grub/i386/qemu/machine.h: Likewise.
15776 * include/grub/powerpc/ieee1275/machine.h: Likewise.
15777 * include/grub/sparc64/ieee1275/machine.h: Likewise.
15778 * include/grub/x86_64/efi/machine.h: Likewise.
15780 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
15781 * commands/halt.c: Likewise.
15782 * commands/reboot.c: Likewise.
15783 * include/grub/autoefi.h: Likewise.
15784 * include/grub/i386/at_keyboard.h: Likewise.
15785 * include/grub/i386/kernel.h: Likewise.
15786 * include/grub/i386/loader.h: Likewise.
15787 * include/grub/i386/pc/memory.h: Likewise.
15788 * kern/dl.c: Likewise.
15789 * kern/i386/coreboot/init.c: Likewise.
15790 * loader/i386/bsd.c: Likewise.
15791 * loader/i386/linux.c: Likewise.
15792 * loader/multiboot_loader.c: Likewise.
15793 * term/i386/pc/serial.c: Likewise.
15794 * term/usb_keyboard.c: Likewise.
15796 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
15797 `<grub/machine/machine.h>'
15798 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
15799 * util/misc.c: Remove `<grub/machine/machine.h>' and
15800 `<grub/machine/time.h>'.
15802 * Makefile.in (enable_grub_emu): Remove variable.
15803 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
15805 * conf/any-emu.rmk: New file.
15806 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
15807 (grub_emu_init.c): Move from here ...
15808 * conf/any-emu.rmk: ... to here.
15810 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
15811 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
15812 * conf/any-emu.rmk: ... to here.
15814 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15816 * include/grub/parser.h (grub_parser_register): Document need
15817 of `name' parameter.
15818 * normal/main.c (grub_normal_read_line): Simplify prompt string.
15819 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
15822 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15824 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
15826 * include/grub/i18n.h (N_): New macro.
15827 * util/mkisofs/mkisofs.h: Likewise.
15828 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
15830 (usage): Use gettext() to translate help strings when printing them.
15832 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15834 Based on patch from Bean
15835 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
15837 * video/efi_fb.c: New file.
15838 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
15839 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
15841 * conf/x86_64-efi.rmk: Likewise.
15843 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
15845 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
15846 * util/i386/pc/grub-setup.c: Likewise.
15848 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15850 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
15852 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
15853 file_get_storage_info to implement grub_guess_root_device.
15855 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
15857 * Makefile.in (target): Use make's builtin $(shell) function
15858 instead of calling directly $(SHELL) to create the locale directories,
15859 inside the $(foreach) function.
15861 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
15863 * util/grub-mkrescue.in: Print an error and usage if output option
15864 has not been given.
15866 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
15868 Patch from Loïc Minier <loic.minier@ubuntu.com>.
15869 * util/grub.d/30_os-prober.in: Cope with Linux entries where
15870 root and /boot are on different devices.
15872 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15874 Fix build for srcdir != objdir.
15876 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
15877 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
15879 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
15880 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
15881 reference for input.
15883 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15885 * util/grub-mkrescue.in: Use source directory direcly (without copiing
15886 or hardlinking it). Remove -J option, Joliet is not compatible with
15887 multiple source directories.
15889 2009-11-21 Carles Pina i Estany <carles@pina.cat>
15890 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15892 * util/grub-mkrescue.in: Recognize `--override-directory' option.
15893 (process_input_dir): New function. Process an arbitrary input
15895 Misc adjustments to support both "override mode" and system-wide mode.
15897 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
15899 * configure.ac (UNIFONT_BDF): Rename to ...
15900 (FONT_SOURCE): ... this. Update all users.
15902 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
15904 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
15905 to the list of unifont files to look for.
15907 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15909 Patch from Joe Auricchio <jauricchio@gmail.com>
15910 * commands/minicmd.c (grub_mini_cmd_clear): New function.
15911 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
15912 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
15914 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
15916 * Makefile.in (install-local): Add a missing backslash.
15918 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
15920 * include/grub/x86_64/io.h: New file.
15922 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15924 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
15925 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
15926 Include `"progname.h"'.
15927 (main): Initialize gettext.
15928 * util/i386/pc/grub-setup.c: Gettexttize.
15929 * util/i386/pc/grub-mkimage.c: Likewise.
15931 * Makefile.in (po/*.po): Redefine as ...
15932 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
15934 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
15936 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15938 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
15939 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
15940 (program_name): Remove.
15941 (main): Initialize gettext support.
15942 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
15943 Include `<libintl.h>'.
15946 * util/mkisofs/eltorito.c: Gettexttize.
15947 * util/mkisofs/joliet.c: Likewise.
15948 * util/mkisofs/mkisofs.c: Likewise.
15949 * util/mkisofs/multi.c: Likewise.
15950 * util/mkisofs/rock.c: Likewise.
15951 * util/mkisofs/tree.c: Likewise.
15952 * util/mkisofs/write.c: Likewise.
15954 * po/POTFILES: Update with new files.
15956 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15958 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
15959 * util/mkisofs/iso9660.h: Likewise.
15960 * util/mkisofs/joliet.c: Likewise.
15961 * util/mkisofs/mkisofs.c: Likewise.
15962 * util/mkisofs/mkisofs.h: Likewise.
15963 * util/mkisofs/rock.c: Likewise.
15964 * util/mkisofs/tree.c: Likewise.
15965 * util/mkisofs/write.c: Likewise.
15967 * util/mkisofs/eltorito.c (rcsid): Remove.
15968 * util/mkisofs/hash.c: Likewise.
15969 * util/mkisofs/joliet.c: Likewise.
15970 * util/mkisofs/name.c: Likewise.
15971 * util/mkisofs/rock.c: Likewise.
15972 * util/mkisofs/tree.c: Likewise.
15973 * util/mkisofs/write.c: Likewise.
15975 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15977 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
15978 instead of static allocation.
15979 * util/mkisofs/match.h: Likewise.
15981 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15983 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
15984 and `util/grub.d/10_linux.in'.
15985 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
15986 translatable Shell files.
15988 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15990 * Makefile.in ($(srcdir)/aclocal.m4): New target.
15992 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15994 * INSTALL: Document Automake is needed for bootstrap.
15995 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
15996 * util/grub.d/10_kfreebsd.in (bindir): New variable.
15997 Add gettext initialization.
15998 (kfreebsd_entry): Make menuentry output translatable.
16000 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
16002 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
16003 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
16004 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
16005 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
16006 (LINGUAS): Auto-generate using `po/LINGUAS'.
16007 * po/LINGUAS: New file.
16009 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
16011 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
16013 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
16014 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
16015 bindtextdomain() calls for gettext initialization.
16017 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
16019 * gnulib/progname.c: New file (imported from Gnulib).
16020 * gnulib/progname.h: Likewise.
16021 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
16022 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
16023 (usage): Replace `progname' with `program_name'.
16024 (main): Use set_program_name() for program name initialization.
16026 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
16028 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
16030 * Makefile.in (CPPFLAGS): ... to here.
16032 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
16034 * aclocal.m4: Move from here ...
16035 * acinclude.m4: ... to here.
16036 * autogen.sh: Add call to `aclocal'.
16037 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
16039 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
16041 * Makefile.in (CLEANFILES): Add `po/*.mo'.
16042 (LINGUAS): New variable.
16043 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
16044 (install-local): Install MO files.
16045 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
16046 * include/grub/i18n.h: New file.
16047 * po/POTFILES: New file.
16048 * po/ca.po: New file.
16049 * util/grub.d/10_linux.in (bindir): New variable.
16050 Add gettext initialization.
16051 (linux_entry): Make menuentry output translatable.
16052 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
16053 (usage): Make --help output translatable.
16054 (main): Initialize gettext.
16056 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
16058 * import_gcry.py: New file (written by Vladimir with minor
16060 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
16062 * INSTALL: Document that Python is required for bootstrap.
16064 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
16066 Import ciphers from libgcrypt 1.4.4.
16068 * lib/libgcrypt/cipher/ChangeLog
16069 * lib/libgcrypt/cipher/ac.c
16070 * lib/libgcrypt/cipher/arcfour.c
16071 * lib/libgcrypt/cipher/bithelp.h
16072 * lib/libgcrypt/cipher/blowfish.c
16073 * lib/libgcrypt/cipher/camellia-glue.c
16074 * lib/libgcrypt/cipher/camellia.c
16075 * lib/libgcrypt/cipher/camellia.h
16076 * lib/libgcrypt/cipher/cast5.c
16077 * lib/libgcrypt/cipher/cipher.c
16078 * lib/libgcrypt/cipher/crc.c
16079 * lib/libgcrypt/cipher/des.c
16080 * lib/libgcrypt/cipher/dsa.c
16081 * lib/libgcrypt/cipher/ecc.c
16082 * lib/libgcrypt/cipher/elgamal.c
16083 * lib/libgcrypt/cipher/hash-common.c
16084 * lib/libgcrypt/cipher/hash-common.h
16085 * lib/libgcrypt/cipher/hmac-tests.c
16086 * lib/libgcrypt/cipher/md.c
16087 * lib/libgcrypt/cipher/md4.c
16088 * lib/libgcrypt/cipher/md5.c
16089 * lib/libgcrypt/cipher/primegen.c
16090 * lib/libgcrypt/cipher/pubkey.c
16091 * lib/libgcrypt/cipher/rfc2268.c
16092 * lib/libgcrypt/cipher/rijndael-tables.h
16093 * lib/libgcrypt/cipher/rijndael.c
16094 * lib/libgcrypt/cipher/rmd.h
16095 * lib/libgcrypt/cipher/rmd160.c
16096 * lib/libgcrypt/cipher/rsa.c
16097 * lib/libgcrypt/cipher/seed.c
16098 * lib/libgcrypt/cipher/serpent.c
16099 * lib/libgcrypt/cipher/sha1.c
16100 * lib/libgcrypt/cipher/sha256.c
16101 * lib/libgcrypt/cipher/sha512.c
16102 * lib/libgcrypt/cipher/tiger.c
16103 * lib/libgcrypt/cipher/twofish.c
16104 * lib/libgcrypt/cipher/whirlpool.c
16106 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
16108 Fix build for systems without error().
16110 * gnulib/error.c: New file (imported from Gnulib).
16111 * gnulib/error.h: Likewise.
16112 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
16113 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
16114 (this variable is now used by error()).
16116 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
16118 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
16119 instead of relying that char is signed.
16121 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16123 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
16124 blocksize different from specified.
16125 (grub_pxefs_read): Likewise.
16127 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
16129 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
16131 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
16132 (grub_ata_readwrite): Likewise. Update 2 format strings.
16133 (grub_atapi_read): Likewise.
16135 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
16136 * conf/i386.rmk (pkglib_MODULES): ... to here ...
16137 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
16138 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
16139 (ata_mod_LDFLAGS): Move from here ...
16140 * conf/i386.rmk: ... to here ...
16141 * conf/x86_64-efi.rmk: ... and here.
16142 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
16143 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
16145 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
16147 Relicense multiboot.h, with RMS' blessing.
16149 * include/multiboot.h: Change to X11 license.
16151 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
16153 Support --version in grub-mkisofs.
16155 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
16156 (OPTION_VERSION): New macro.
16157 (ld_options): Recognize --version.
16158 (usage): Move `program_name' from here ...
16159 (program_name): ... to here. Add `static' qualifier.
16160 (main): Recognize `OPTION_VERSION'.
16162 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
16164 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
16165 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
16167 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
16169 Fix help2man generation for mkisofs.
16171 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
16172 (usage): Send output to stdout (rather than stderr).
16174 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
16176 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
16177 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
16178 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
16179 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
16180 (bin_SCRIPTS): Add `grub-mkfloppy'.
16181 (grub_mkfloppy_SOURCES): New variable.
16183 * util/grub-mkrescue.in: New file.
16184 * util/i386/pc/grub-mkfloppy.in: New file.
16186 * util/i386/coreboot/grub-mkrescue.in: Remove.
16187 * util/i386/pc/grub-mkrescue.in: Remove.
16189 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
16191 * include/grub/multiboot.h (struct grub_multiboot_header): Move
16193 * include/multiboot.h (struct multiboot_header): ... to here. Update
16195 * include/grub/multiboot.h (struct grub_multiboot_info): Move
16197 * include/multiboot.h (struct multiboot_info): ... to here. Update
16199 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
16201 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
16203 * include/grub/multiboot.h (struct grub_mod_list): Move
16205 * include/multiboot.h (struct multiboot_mod_list): ... to here.
16208 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
16210 * include/multiboot2.h (multiboot_word): Rename from this ...
16211 (multiboot2_word): ... to this. Update all users.
16212 (multiboot_header): Rename from this ...
16213 (multiboot2_header): ... to this. Update all users.
16214 (multiboot_tag_header): Rename from this ...
16215 (multiboot2_tag_header): ... to this. Update all users.
16216 (multiboot_tag_start): Rename from this ...
16217 (multiboot2_tag_start): ... to this. Update all users.
16218 (multiboot_tag_name): Rename from this ...
16219 (multiboot2_tag_name): ... to this. Update all users.
16220 (multiboot_tag_module): Rename from this ...
16221 (multiboot2_tag_module): ... to this. Update all users.
16222 (multiboot_tag_memory): Rename from this ...
16223 (multiboot2_tag_memory): ... to this. Update all users.
16224 (multiboot_tag_unused): Rename from this ...
16225 (multiboot2_tag_unused): ... to this. Update all users.
16226 (multiboot_tag_end): Rename from this ...
16227 (multiboot2_tag_end): ... to this. Update all users.
16229 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
16231 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
16232 this platform we should support Multiboot1 first.
16234 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
16235 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
16236 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
16238 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
16240 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
16241 of write calls (converting them to fwrite() if they aren't already).
16242 (get_torito_desc): Likewise.
16243 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
16245 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
16247 * util/i386/pc/grub-install.in: Move from here ...
16248 * util/grub-install.in: ... to here. Update all users.
16250 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
16252 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
16254 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
16256 Support for El Torito without floppy emulation.
16258 * util/mkisofs/eltorito.c: Include `<errno.h>'.
16259 (init_boot_catalog): Improve error handling.
16260 (get_torito_desc): Don't use floppy emulation unless requested by
16261 user. Patch boot information table when requested via
16262 `-boot-info-table'.
16263 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
16264 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
16265 (use_boot_info_table): New variables.
16266 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
16267 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
16268 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
16269 `--eltorito-emul-floppy'.
16270 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
16271 and `OPTION_ELTORITO_EMUL_FLOPPY'.
16272 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
16273 (use_boot_info_table, get_731): New prototypes.
16274 * util/mkisofs/write.c (get_731): New function.
16276 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
16278 Fix the generation of the man page.
16280 * util/pc/i386/grub-install.in: Source
16281 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
16283 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
16285 Large file support for grub-mkisofs.
16287 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
16288 * util/mkisofs/mkisofs.c (next_extent, last_extent)
16289 (session_start): Upgrade type to `uint64_t'. Update all users.
16290 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
16291 (struct directory_entry): Upgrade type of `starting_block' and
16292 `size' to `uint64_t'. Update all users.
16293 (struct deferred): Remove unused structure.
16294 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
16296 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
16297 file is larger than `UINT32_MAX'.
16298 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
16299 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
16301 (struct deferred_write): Upgrade type of `extent' and `size' to
16302 `uint64_t'. Update all users.
16303 (last_extent_written): Upgrade type to `uint64_t'. Update all
16305 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
16306 Update all users. Upgrade type of `remain' to `int64_t' and
16307 `use' to `size_t'. Use error() to handle fread() errors.
16308 (write_files): Rely on write_one_file() rather than calling
16309 xfwrite() directly.
16311 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
16313 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
16315 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
16317 * util/mkisofs/fnmatch.c: Remove.
16318 * util/mkisofs/getopt1.c: Likewise.
16319 * util/mkisofs/getopt.c: Likewise.
16320 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
16321 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
16322 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
16323 `gnulib/getopt1.c' and `gnulib/getopt.c'.
16324 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
16326 * configure.ac: Detect `mingw32msvc' host_os.
16327 Check for lstat(), getuid() and getgid().
16329 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
16330 instances of `u_char' with `uint8_t'.
16332 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
16333 [!HAVE_GETUID] (getuid): New function (stub).
16334 [!HAVE_GETGID] (getgid): Likewise.
16335 [!HAVE_LSTAT] (lstat): Likewise.
16336 [!S_IROTH] (S_IROTH): New macro (dummy).
16337 [!S_IRGRP] (S_IRGRP): Likewise.
16339 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
16341 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
16342 conditional expression).
16344 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
16346 Import from Gnulib.
16348 * gnulib/fnmatch.c: New file.
16349 * gnulib/fnmatch.h: Likewise.
16350 * gnulib/fnmatch_loop.c: Likewise.
16351 * gnulib/getopt.c: Likewise.
16352 * gnulib/getopt.h: Likewise.
16353 * gnulib/getopt1.c: Likewise.
16354 * gnulib/getopt_int.h: Likewise.
16355 * gnulib/gettext.h: Likewise.
16357 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
16359 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
16360 * normal/handler.c (read_handler_list): Likewise.
16362 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
16366 * kern/command.c (grub_register_command_prio): Use
16367 grub_zalloc() instead of explicitly zeroing data.
16368 * kern/list.c: Include `<grub/mm.h>'.
16369 (grub_named_list_find): Replace `0' with `NULL'.
16370 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
16371 (fs_module_list): Change type to `grub_named_list_t'. Update all
16373 * normal/dyncmd.c (read_command_list): Add space between function
16374 call and parenthesis.
16375 * normal/handler.c (read_handler_list): Likewise.
16377 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
16379 * normal/auth.c (punishment_delay): Moved from here ...
16380 (grub_auth_strcmp): ... to here (inside function).
16382 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
16384 * include/grub/list.h (struct grub_named_list): Remove `const'
16385 qualifier from `name'.
16386 (struct grub_prio_list): Likewise.
16388 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
16390 * normal/auth.c: Include `<grub/time.h>'.
16391 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
16393 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
16395 * normal/auth.c (punishment_delay): New variable.
16396 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
16397 (grub_auth_check_authentication): Punish failed login attempts with
16398 an incremental (2^N) delay.
16400 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
16402 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
16403 path with $(srcdir).
16405 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16407 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
16409 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
16411 * util/i386/coreboot/grub-mkrescue.in: New file.
16412 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
16415 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
16416 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
16417 * configure.ac: Add header and function checks to satisfy grub-mkisofs
16419 * util/mkisofs/defaults.h: New file.
16420 * util/mkisofs/eltorito.c: Likewise.
16421 * util/mkisofs/exclude.h: Likewise.
16422 * util/mkisofs/fnmatch.c: Likewise.
16423 * util/mkisofs/getopt.c: Likewise.
16424 * util/mkisofs/getopt1.c: Likewise.
16425 * util/mkisofs/hash.c: Likewise.
16426 * util/mkisofs/include/fctldefs.h: Likewise.
16427 * util/mkisofs/include/mconfig.h: Likewise.
16428 * util/mkisofs/include/prototyp.h: Likewise.
16429 * util/mkisofs/include/statdefs.h: Likewise.
16430 * util/mkisofs/iso9660.h: Likewise.
16431 * util/mkisofs/joliet.c: Likewise.
16432 * util/mkisofs/match.c: Likewise.
16433 * util/mkisofs/match.h: Likewise.
16434 * util/mkisofs/mkisofs.c: Likewise.
16435 * util/mkisofs/mkisofs.h: Likewise.
16436 * util/mkisofs/multi.c: Likewise.
16437 * util/mkisofs/name.c: Likewise.
16438 * util/mkisofs/rock.c: Likewise.
16439 * util/mkisofs/tree.c: Likewise.
16440 * util/mkisofs/write.c: Likewise.
16442 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16444 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
16447 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
16449 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
16450 `grub-mkimage' (and use $0 when possible).
16452 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
16454 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
16455 error message for excessively large memory map.
16457 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
16459 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
16462 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
16464 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
16465 message for coreboot users.
16467 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
16469 Fix build with GNU gold.
16471 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
16472 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
16473 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
16475 * aclocal.m4: Likewise.
16477 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
16479 * configure.ac (AC_PREREQ): Bump to 2.59d.
16480 * INSTALL: Make it more clear when Autoconf and Ruby are
16481 needed and when to run `./autogen.sh'.
16483 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16485 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
16488 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16490 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
16492 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16494 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
16495 giving it to GNU Mach.
16497 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16499 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
16500 GNU partition number to get internal GRUB partition number.
16502 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16504 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
16505 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
16507 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
16509 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
16510 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
16513 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
16515 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
16517 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
16521 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
16522 `-isystem=$(srcdir)/include'.
16524 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
16526 * util/i386/pc/grub-install.in: Remove hint that device.map should be
16527 checked (grub-install doesn't currently rely on it).
16529 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
16533 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
16534 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
16535 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
16536 * conf/i386-ieee1275.rmk: Likewise.
16537 * conf/i386-pc.rmk: Likewise.
16538 * conf/powerpc-ieee1275.rmk: Likewise.
16539 * conf/sparc64-ieee1275.rmk: Likewise.
16540 * conf/x86_64-efi.rmk: Likewise.
16542 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
16544 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
16546 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
16548 * include/grub/misc.h: Stop checking for APPLE_CC.
16550 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
16552 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
16553 doesn't cause an infinite call loop.
16555 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
16557 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
16560 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16562 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
16564 * Makefile.in: Likewise.
16566 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16568 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
16570 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16572 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
16574 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16576 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
16578 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16580 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
16582 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
16584 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16586 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
16587 in $(MAKEINFO) invocation. This makes it clear in output that
16588 errors are being ignored.
16590 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16592 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
16594 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
16595 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
16596 * conf/i386-ieee1275.rmk: Likewise.
16597 * conf/i386-pc.rmk: Likewise.
16598 * conf/powerpc-ieee1275.rmk: Likewise.
16599 * conf/sparc64-ieee1275.rmk: Likewise.
16600 * conf/x86_64-efi.rmk: Likewise.
16602 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
16604 * util/grub-editenv.c (main): If only a command is given, use
16605 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
16606 (usage): FILENAME is now optional and has a default.
16608 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
16610 Improve grub-mkconfig performance when there are several menu
16611 entries on a single filesystem.
16613 * util/grub.d/10_linux.in (linux_entry): Cache the output of
16614 prepare_grub_to_access_device.
16615 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
16616 * util/grub.d/30_os-prober.in: Likewise.
16618 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16620 * util/grub.d/10_freebsd.in: Remove.
16621 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
16622 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
16624 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16626 * docs/grub.cfg: Fix example usage of *BSD loaders.
16628 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16630 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
16631 grub_util_error() call.
16633 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16635 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
16636 `reserved_first_sector' member.
16637 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
16638 `reserved_first_sector' to 1.
16639 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
16640 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
16641 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
16642 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
16643 filesystems which begin at first sector.
16644 (options): New option --skip-fs-probe.
16645 (main): Handle --skip-fs-probe and pass it to setup().
16647 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16649 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
16650 (memset): Fix function prototype.
16652 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16653 2009-10-25 Vasily Averin <vvs@parallels.com>
16655 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
16656 `dirent.direntlen == 0'.
16658 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16660 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
16662 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
16664 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16666 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
16667 `__trampoline_setup' and `__ucmpdi2'.
16668 * include/grub/powerpc/libgcc.h: Only export symbols for functions
16669 that libgcc provides.
16671 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16673 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
16674 * include/grub/sparc64/libgcc.h (memset): Likewise.
16675 * include/grub/misc.h (memset, memcmp): New function prototypes.
16677 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16679 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
16681 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
16683 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16685 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
16686 * docs/grub.cfg: Compensate for recent change in multiboot
16687 loader (since 2009-08-14 it won't pass filename to payload).
16688 * util/grub.d/10_hurd.in: Likewise.
16690 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
16692 * config.guess: Update to latest version from config git
16694 * config.sub: Likewise.
16696 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
16698 Fix build on sparc64.
16700 * configure.ac: Perform checks for libgcc symbols before
16701 adding `-nostdlib' to LDFLAGS.
16703 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16705 Let user specify OpenBSD root device.
16707 * loader/i386/bsd.c (openbsd_root): New variable.
16708 (openbsd_opts): New option 'root'.
16709 (OPENBSD_ROOT_ARG): New macro.
16710 (grub_openbsd_boot): Use 'openbsd_root'.
16711 (grub_cmd_openbsd): Fill 'openbsd_root'.
16713 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
16715 * NEWS: Misc adjustments.
16717 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16719 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
16721 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
16723 * configure.ac: Bump version to 1.97.
16725 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
16727 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
16728 -mno-3dnow on x86 architectures. Some toolchains enable these
16729 features by default, but they rely on registers that aren't enabled
16730 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
16732 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
16734 Make entry text a bit more readable.
16736 * util/grub.d/10_linux.in: Add `with' before `Linux'.
16738 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16740 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
16742 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16744 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
16747 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16749 * configure.ac: Add missing dollar.
16751 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16753 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
16755 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
16756 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
16758 * include/grub/sparc64/libgcc.h: Likewise. Use
16759 preprocessor conditionals.
16761 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
16763 * conf/common.rmk (grub-dumpbios): Remove rule.
16764 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
16765 * util/grub-dumpbios.in: Remove file.
16767 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
16769 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
16770 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
16772 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
16773 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
16776 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
16777 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
16778 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
16779 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
16782 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
16784 * term/tparm.c: Switch to GPLv3.
16786 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
16788 * include/grub/i386/cpuid.h: Add header protection.
16790 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
16792 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
16794 * include/grub/i386/cpuid.h: New file.
16795 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
16796 (has_longmode): Rename to ...
16797 (grub_cpuid_has_longmode): ... this. Update all users. Remove
16798 `static' attribute.
16799 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
16800 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
16801 on a CPU that doesn't implement AMD64 instruction set.
16803 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
16805 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
16806 that version.texi is rebuilt on version number changes.
16808 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
16810 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
16813 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
16815 * util/i386/pc/grub-install.in: Source
16816 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
16817 that the --grub-probe option will work.
16818 * util/sparc64/ieee1275/grub-install.in: Likewise.
16820 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
16822 * configure.ac: Bump version to 1.97~beta4.
16824 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
16826 Resync grub-mkdevicemap in x86_64-efi.
16828 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
16829 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
16830 `util/devicemap.c'.
16832 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
16834 * util/grub-editenv.c (create_envblk_file): Write new block with a
16835 .new suffix and then rename it into place, to ensure atomic
16838 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
16840 Do not automatically install headers.
16842 * Makefile.in (include_DATA): Remove. Update all users.
16844 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
16846 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
16847 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
16849 * util/osdetect.lua: Remove.
16850 * script/lua/lauxlib.c: Likewise.
16851 * script/lua/ldebug.c: Likewise.
16852 * script/lua/grub_main.c: Likewise.
16853 * script/lua/lauxlib.h: Likewise.
16854 * script/lua/ldebug.h: Likewise.
16855 * script/lua/ltablib.c: Likewise.
16856 * script/lua/liolib.c: Likewise.
16857 * script/lua/lstrlib.c: Likewise.
16858 * script/lua/lualib.h: Likewise.
16859 * script/lua/ldo.c: Likewise.
16860 * script/lua/ldump.c: Likewise.
16861 * script/lua/ldo.h: Likewise.
16862 * script/lua/loslib.c: Likewise.
16863 * script/lua/lundump.c: Likewise.
16864 * script/lua/grub_lib.c: Likewise.
16865 * script/lua/ldblib.c: Likewise.
16866 * script/lua/lundump.h: Likewise.
16867 * script/lua/lmem.c: Likewise.
16868 * script/lua/grub_lib.h: Likewise.
16869 * script/lua/lmathlib.c: Likewise.
16870 * script/lua/lstate.c: Likewise.
16871 * script/lua/ltm.c: Likewise.
16872 * script/lua/lvm.c: Likewise.
16873 * script/lua/lmem.h: Likewise.
16874 * script/lua/lstate.h: Likewise.
16875 * script/lua/ltm.h: Likewise.
16876 * script/lua/ltable.c: Likewise.
16877 * script/lua/lvm.h: Likewise.
16878 * script/lua/llex.c: Likewise.
16879 * script/lua/lgc.c: Likewise.
16880 * script/lua/grub_lua.h: Likewise.
16881 * script/lua/loadlib.c: Likewise.
16882 * script/lua/lfunc.c: Likewise.
16883 * script/lua/lopcodes.c: Likewise.
16884 * script/lua/lparser.c: Likewise.
16885 * script/lua/ltable.h: Likewise.
16886 * script/lua/llex.h: Likewise.
16887 * script/lua/lgc.h: Likewise.
16888 * script/lua/lfunc.h: Likewise.
16889 * script/lua/lbaselib.c: Likewise.
16890 * script/lua/lopcodes.h: Likewise.
16891 * script/lua/lparser.h: Likewise.
16892 * script/lua/lzio.c: Likewise.
16893 * script/lua/linit.c: Likewise.
16894 * script/lua/lobject.c: Likewise.
16895 * script/lua/llimits.h: Likewise.
16896 * script/lua/lstring.c: Likewise.
16897 * script/lua/lzio.h: Likewise.
16898 * script/lua/lapi.c: Likewise.
16899 * script/lua/lcode.c: Likewise.
16900 * script/lua/lua.h: Likewise.
16901 * script/lua/lobject.h: Likewise.
16902 * script/lua/lstring.h: Likewise.
16903 * script/lua/lapi.h: Likewise.
16904 * script/lua/lcode.h: Likewise.
16905 * script/lua/luaconf.h: Likewise.
16907 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
16909 * docs/grub.texi (Command-line and menu entry commands): Document
16910 date and echo commands.
16912 2009-09-24 Pavel Roskin <proski@gnu.org>
16914 * include/grub/kernel.h (struct grub_module_header): Remove
16915 `grub_module_header_types'. Make `type' unsigned. Make `size'
16916 32-bit on all platforms.
16917 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
16918 8-bit field. Use grub_host_to_target32() for `size'.
16919 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
16920 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
16921 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
16923 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16925 Fix "lost keypress" bug in at_keyboard.
16927 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
16928 Checks for readyness of input buffer (without flushing it).
16929 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
16930 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
16932 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16934 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
16935 size check within GRUB_MACHINE_PCBIOS section.
16937 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16939 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
16941 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
16942 KEYBOARD_ISREADY check.
16943 (grub_at_keyboard_checkkey): Rename to ...
16944 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
16945 Remove gratuitous cast.
16947 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
16949 * configure.ac: Call AC_PROG_MKDIR_P.
16950 * Makefile.in (docs/stamp-vti): Create docs directory. Create
16951 version.texi in $(builddir) rather than $(srcdir).
16952 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
16953 to makeinfo's @include search path.
16955 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
16957 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
16959 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
16961 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
16964 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
16966 Build info documentation. Some code borrowed from Automake.
16968 * configure.ac: Check for makeinfo.
16969 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
16970 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
16972 (MOSTLYCLEANFILES): Add vti.tmp.
16973 (docs/version.texi, docs/stamp-vti): Update automatically.
16974 (docs/grub.info): Build info documentation. Use --force and ignore
16976 (all-local): Add $(INFOS).
16977 (install-local): Install info files.
16978 (uninstall): Uninstall info files.
16979 * docs/version.texi: Remove from revision control. This file is
16980 automatically generated on build now.
16981 * gendistlist.sh: Add `*.info'.
16983 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
16985 * kern/term.c: Fix indentation.
16987 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
16989 * util/hostdisk.c: Fix a comment.
16991 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
16993 Fix regression introduced in r2539.
16995 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
16998 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
17000 * util/grub.d/30_os-prober.in: Don't throw away stderr from
17001 os-prober. Under normal operation, it does not print anything to
17002 stderr; if it does, we need to debug it, and throwing away stderr
17003 makes that excessively difficult.
17005 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
17007 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
17009 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
17011 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
17012 AC_LANG_PROGRAM from autoconf.
17013 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
17014 prototypes (fixes warning).
17016 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
17017 `--disable-werror' was used.
17019 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
17021 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
17022 uninitialized `lastaddr'.
17024 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17026 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
17028 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
17030 * commands/test.c (get_fileinfo): Return immediately if
17031 grub_fs_probe fails.
17033 2009-09-14 José Martínez <xosemp@gmail.com>
17035 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
17037 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
17039 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
17042 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
17044 * configure.ac: Remove --enable-grub-pe2elf. Only build
17045 grub-pe2elf when needed by the build system itself.
17046 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
17048 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
17050 * configure.ac: Bump version to 1.97~beta3.
17051 * docs/version.texi: Likewise.
17053 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
17055 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
17056 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
17058 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
17059 (grub_linux_setup_video): ... to here (with some adjustments).
17061 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
17063 Fix memory corruption issue (spotted by Colin Watson).
17065 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
17066 causing returned size to be stored in an incorrect memory location.
17067 Fix use of uninitialized value when storing the returned size.
17069 2009-09-12 Yves Blusseau <blusseau@zetam.org>
17071 Change clean rules to properly remove files
17073 * genmk.rb: add new clean rules
17074 * Makefile.in (clean): add the new targets
17075 (mostlyclean): likewise
17077 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
17079 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
17081 * fs/ntfs.c (init_file): Understand 64-bit sizes for
17082 non-resident files.
17084 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
17086 * configure.ac: Don't look for help2man when cross-compiling. Fixes
17087 part of bug #27349.
17089 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
17091 * util/grub-mkconfig.in: Make the created config mode 400 and
17092 print a warning if it fails.
17094 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
17096 * util/grub.d/40_custom.in: Ask user to type custom entries below
17097 comment, rather than below 'exec tail' line.
17099 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
17101 * util/grub.d/40_custom.in: Make sure that the explanatory text is
17102 visible in grub.cfg.
17104 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
17106 * util/grub.d/40_custom.in: Make it a little clearer how to use this
17109 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
17111 * docs/grub.cfg: Add an example menu entry for memtest86+.
17113 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
17115 * config.guess: Update to latest version from config git.
17116 * config.sub: Likewise.
17118 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
17120 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
17121 unknown-command case. Fixes bug #27320.
17123 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
17125 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
17126 `help' if the command exists.
17128 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
17130 * INSTALL: Require GCC 4.1.3 or later.
17132 2009-09-06 Yves Blusseau <blusseau@zetam.org>
17134 * Makefile.in (RMKFILES): add i386-qemu.rmk
17135 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
17136 $(srcdir)/stamp-h.in
17138 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
17140 * util/grub-probe.c (probe): Comment out buggy codepath, which
17141 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
17142 should be re-enabled after 1.97.
17144 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
17146 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
17149 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17151 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
17152 unnecessary calls to grub_error.
17154 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
17156 * NEWS: Mention `keystatus' and Unicode fonts.
17158 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
17160 * configure.ac: Bump version to 1.97~beta2.
17161 * docs/version.texi: Likewise.
17163 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
17165 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
17166 containing unwind information in some cases where it previously did
17167 not. Use -fno-dwarf2-cfi-asm if available to restore the old
17168 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
17171 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
17173 Embedding loadenv module into grub-emu
17175 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
17177 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
17178 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
17179 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
17180 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
17181 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
17182 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
17184 2009-09-03 Magnus Granberg <zorry@ume.nu>
17186 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
17187 include -fPIE in the default specs.
17188 * configure.ac: Check if pie_possible is yes and add -fno-PIE
17191 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
17193 * INSTALL: Note that GNU Bison 2.3 or later is required.
17195 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
17197 * kern/i386/pc/startup.S: Fix typo.
17199 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17201 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
17204 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
17206 * docs/grub.texi (Naming convention): Describe one-based partition
17208 (Device syntax): Likewise.
17209 (File name syntax): Likewise.
17210 (Block list syntax): Likewise.
17211 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
17213 (File name syntax): Likewise.
17214 (Command-line and menu entry commands): Document acpi, blocklist,
17215 crc, export, insmod, keystatus, ls, set, and unset commands.
17217 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
17219 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
17220 to avoid implying that only one of --shift, --ctrl, or --alt may be
17223 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
17225 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
17226 rather than comparing against S_IFREG, which will almost never work.
17228 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17230 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
17231 (write_blocklists): Likewise.
17233 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
17235 * script/lua/grub_lua.h (fputs): Supply a format string as the first
17236 argument to grub_printf.
17238 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
17240 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
17243 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17245 * kern/file.c (grub_file_read): Spelling fix
17247 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17249 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
17250 loading of headers in some cases.
17252 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
17254 * configure.ac: Bump version to 1.97~beta1.
17255 * docs/version.texi: Likewise.
17257 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17259 * include/grub/i386/xnu.h: Add license header.
17260 include grub/err.h explicitly.
17262 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
17264 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
17265 to `ufs' in the vfs.root.mountfrom kernel parameter.
17267 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
17269 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
17271 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
17272 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
17274 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
17275 `ARRAY_SIZE' macro.
17277 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17279 * kern/file.c (grub_file_read): Check offset.
17280 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
17281 * fs/jfs.c (grub_jfs_read_file): Likewise.
17282 * fs/ntfs.c (grub_ntfs_read): Likewise.
17283 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
17284 * fs/minix.c (grub_minix_read_file): Correct offset check.
17285 * fs/ufs.c (grub_ufs_read_file): Likewise.
17287 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
17289 * term/i386/pc/console.c (bios_data_area): Cast
17290 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
17292 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17294 1-bit optimised blitters.
17296 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
17298 (grub_video_fbblit_replace_24bit_1bit): Likewise.
17299 (grub_video_fbblit_replace_16bit_1bit): Likewise.
17300 (grub_video_fbblit_replace_8bit_1bit): Likewise.
17301 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
17302 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
17303 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
17304 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
17306 (grub_video_fbblit_replace_24bit_1bit): Likewise.
17307 (grub_video_fbblit_replace_16bit_1bit): Likewise.
17308 (grub_video_fbblit_replace_8bit_1bit): Likewise.
17309 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
17310 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
17311 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
17312 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
17314 * video/video.c (grub_video_get_blit_format): Return
17315 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
17317 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
17319 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
17320 the first argument to grub_printf.
17322 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
17323 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
17325 Add `getkeystatus' terminal method. Add a new `keystatus' command
17328 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
17329 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
17330 modifier key bitmasks.
17331 (struct grub_term_input): Add `getkeystatus' member.
17332 (grub_getkeystatus): Add prototype.
17333 * kern/term.c (grub_getkeystatus): New function.
17335 * include/grub/i386/pc/memory.h
17336 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
17337 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
17339 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
17340 (grub_console_term_input): Set `getkeystatus' member.
17341 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
17343 (grub_usb_keyboard_getreport): Likewise.
17344 (grub_usb_keyboard_checkkey): Likewise.
17345 (grub_usb_keyboard_getkeystatus): New function.
17346 (grub_usb_keyboard_term): Set `getkeystatus' member.
17348 * commands/keystatus.c: New file.
17349 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
17350 (keystatus_mod_SOURCES): New variable.
17351 (keystatus_mod_CFLAGS): Likewise.
17352 (keystatus_mod_LDFLAGS): Likewise.
17353 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
17354 commands/keystatus.c.
17355 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17356 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17357 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17358 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17359 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17360 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17362 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17364 Split befs.mod and afs.mod into *_be.mod and *.mod
17366 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
17367 (grub_fstest_SOURCES): Likewise.
17368 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
17369 (afs_be_mod_SOURCES): New variable.
17370 (afs_be_mod_CFLAGS): Likewise.
17371 (afs_be_mod_LDFLAGS): Likewise.
17372 (befs_be_mod_SOURCES): Likewise.
17373 (befs_be_mod_CFLAGS): Likewise.
17374 (befs_be_mod_LDFLAGS): Likewise.
17375 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
17376 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17377 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17378 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
17379 (grub_emu_SOURCES): Likewise.
17380 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17381 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17382 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17383 * fs/afs_be.c: New file.
17384 * fs/befs_be.c: New file.
17385 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
17386 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
17387 (U16): Replaced with ...
17388 (grub_afs_to_cpu16): ...this. All users updated.
17389 (U32): Replaced with ...
17390 (grub_afs_to_cpu32): ...this. All users updated.
17391 (U64): Replaced with ...
17392 (grub_afs_to_cpu64): ...this. All users updated.
17393 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
17394 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
17395 (grub_afs_validate_sblock): Check only one endianness.
17396 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
17397 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
17398 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
17399 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
17400 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
17401 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
17402 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
17403 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
17405 2009-08-26 Bean <bean123ch@gmail.com>
17407 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
17409 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17410 (grub_xfs_inode_block): Change return type to grub_uint64_t.
17411 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
17413 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
17415 NetBSD memory map support.
17417 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
17418 (grub_netbsd_btinfo_mmap_header): New structure.
17419 (grub_netbsd_btinfo_mmap_entry): Likewise.
17420 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
17422 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
17424 Enable bsd.mod on coreboot.
17426 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
17427 (bsd_mod_SOURCES): New variable.
17428 (bsd_mod_CFLAGS): Likewise.
17429 (bsd_mod_LDFLAGS): Likewise.
17430 (bsd_mod_ASFLAGS): Likewise.
17431 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
17432 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
17434 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
17436 Cleanup NetBSD root support.
17438 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
17439 grub_bsd_get_device.
17442 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
17444 * util/grub.d/00_header.in: Move check for the video backend of
17445 gfxterm from here ...
17446 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
17447 a suitable video backend.
17449 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
17451 Fix breakage in grub-setup.
17453 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
17454 "msdos_partition_map".
17456 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
17458 Fix breakage in normal/auth.c.
17460 * normal/auth.c (grub_iswordseparator): New function.
17462 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
17464 Authentication support.
17466 * commands/password.c: New file.
17467 * conf/common.rmk (pkglib_MODULES): Add password.mod.
17468 (password_mod_SOURCES): New variable.
17469 (password_mod_CFLAGS): Likewise.
17470 (password_mod_LDFLAGS): Likewise.
17471 (normal_mod_SOURCES): Add normal/auth.c.
17472 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
17474 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17475 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17476 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17477 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17478 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17479 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17480 * include/grub/auth.h: New file.
17481 * include/grub/err.h (grub_err_t): New enum value
17482 GRUB_ERR_ACCESS_DENIED.
17483 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
17485 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
17486 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
17488 * normal/auth.c: New file.
17489 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
17490 (grub_cmdline_run): Don't allow to go to command line without
17492 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
17493 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
17494 menuentry without superuser rights.
17495 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
17496 user isn't a superuser.
17498 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17500 Save space by inlining misc.c functions.
17502 * kern/misc.c (grub_iswordseparator): Made static.
17503 * kern/misc.c (grub_strcat): Moved from here ...
17504 * include/grub/misc.h (grub_strcat): ... here. Inlined.
17505 * kern/misc.c (grub_strncat): Moved from here ...
17506 * include/grub/misc.h (grub_strncat): ... here. Inlined.
17507 * kern/misc.c (grub_strcasecmp): Moved from here ...
17508 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
17509 * kern/misc.c (grub_strncasecmp): Moved from here ...
17510 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
17511 * kern/misc.c (grub_isalpha): Moved from here ...
17512 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
17513 * kern/misc.c (grub_isdigit): Moved from here ...
17514 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
17515 * kern/misc.c (grub_isgraph): Moved from here ...
17516 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
17517 * kern/misc.c (grub_tolower): Moved from here ...
17518 * include/grub/misc.h (grub_tolower): ... here. Inlined.
17520 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17522 * script/sh/function.c (grub_script_function_find): Cut error message
17523 not to flood terminal.
17524 * script/sh/lexer.c (grub_script_yylex): Remove command line length
17526 * script/sh/script.c (grub_script_arg_add): Duplicate string.
17528 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
17530 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
17531 `report' grub_uint8_t *.
17532 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
17533 Use a 50-millisecond timeout rather than just repeating
17534 grub_usb_keyboard_getreport 50 times.
17535 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
17537 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17539 Rename *_partition_map to part_*
17541 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
17542 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
17543 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
17544 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
17546 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
17548 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
17549 * util/grub-probe.c (probe_partmap): Don't transform partition name
17550 to get module name.
17552 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17554 Fix OpenBSD and NetBSD support.
17556 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
17557 memory address conflict.
17558 (OPENBSD_MMAP_ACPI): New definition.
17559 (OPENBSD_MMAP_NVS): Likewise.
17560 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
17561 and OPENBSD_MMAP_NVS.
17562 Add memory map terminator
17563 Explicit cast when calling grub_unix_real_boot.
17564 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
17566 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17568 Let user specify NetBSD root device.
17570 * loader/i386/bsd.c (netbsd_root): New variable.
17571 (netbsd_opts): New option 'root'.
17572 (NETBSD_ROOT_ARG): New macro.
17573 (grub_netbsd_boot): Use 'netbsd_root'.
17574 (grub_bsd_unload): Free 'netbsd_root'.
17575 (grub_cmd_netbsd): Fill 'netbsd_root'.
17577 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17579 Support for 64-bit NetBSD.
17581 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
17582 point when booting non-FreeBSD.
17584 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17586 Support --no-smp and --no-acpi for NetBSD.
17588 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
17589 (NETBSD_AB_NOACPI): Likewise.
17590 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
17591 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
17593 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17595 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
17597 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
17598 errors. Call grub_error when needed.
17600 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17602 * commands/search.c (search_fs): Try searching without autoload first.
17603 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
17604 filesystem module explicitly for faster booting.
17606 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
17608 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
17610 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
17612 * util/grub.d/30_os-prober.in: Disable os-prober if
17613 `GRUB_DISABLE_OS_PROBER' was set to true.
17615 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
17617 * partmap/pc.c: Rename to ...
17618 * partmap/msdos.c: ... this. Update all users.
17619 (grub_pc_partition_map): Rename to ...
17620 (grub_msdos_partition_map): ... this. Update all users.
17622 * parttool/pcpart.c: Rename to ...
17623 * parttool/msdospart.c: ... this. Update all users.
17625 * include/grub/pc_partition.h: Rename to ...
17626 * include/grub/msdos_partition.h: ... this. Update all users.
17627 (grub_pc_partition_bsd_entry): Rename to ...
17628 (grub_msdos_partition_bsd_entry): ... this. Update all users.
17629 (grub_pc_partition_disk_label): Rename to ...
17630 (grub_msdos_partition_disk_label): ... this. Update all users.
17631 (grub_pc_partition_entry): Rename to ...
17632 (grub_msdos_partition_entry): ... this. Update all users.
17633 (grub_pc_partition_mbr): Rename to ...
17634 (grub_msdos_partition_mbr): ... this. Update all users.
17635 (grub_pc_partition): Rename to ...
17636 (grub_msdos_partition): ... this. Update all users.
17637 (grub_pc_partition_is_empty): Rename to ...
17638 (grub_msdos_partition_is_empty): ... this. Update all users.
17639 (grub_pc_partition_is_extended): Rename to ...
17640 (grub_msdos_partition_is_extended): ... this. Update all users.
17641 (grub_pc_partition_is_bsd): Rename to ...
17642 (grub_msdos_partition_is_bsd): ... this. Update all users.
17644 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
17645 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
17646 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
17647 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
17648 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
17649 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
17650 (gpt_mod_LDFLAGS): Rename to ...
17651 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
17652 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
17653 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
17654 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
17655 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
17656 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
17657 (part_gpt_mod_LDFLAGS): ... this.
17658 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
17659 `pcpart.mod' to `msdospart.mod'.
17660 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
17662 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
17663 (msdospart_mod_LDFLAGS): ... this.
17665 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17667 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
17668 (openbsd_opts): Likewise.
17669 (netbsd_opts): Likewise.
17670 (freebsd_flags): Added 0 terminator.
17671 (openbsd_flags): Likewise.
17672 (netbsd_flags): Likewise.
17673 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
17674 (grub_cmd_freebsd): Transformed into extended command.
17675 (grub_cmd_openbsd): Likewise.
17676 (grub_cmd_netbsd): Likewise.
17677 (cmd_freebsd): Changed type to grub_extcmd_t.
17678 (cmd_openbsd): Likewise.
17679 (cmd_netbsd): Likewise.
17680 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
17681 grub_cmd_openbsd as extended commands.
17682 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
17683 cmd_netbsd and cmd_openbsd
17685 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
17687 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
17689 2009-08-21 Pavel Roskin <proski@gnu.org>
17691 * Makefile.in (install-local): When checking if a file is in the
17692 build directory, use "test -e" to detect symlinks.
17694 * Makefile.in (install-local): Remove all files in
17695 $(DESTDIR)$(pkglibdir) before installing new files there.
17697 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
17699 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
17702 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
17704 * util/grub-mkconfig.in: Don't use gfxterm by default if not
17705 explicitly specified by the user.
17707 2009-08-18 Pavel Roskin <proski@gnu.org>
17709 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
17710 grub_uint8_t pointer for data.
17711 * include/grub/fbutil.h (struct grub_video_fbblit_info):
17713 * video/fb/fbutil.c: Remove unnecessary casts.
17715 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
17719 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
17720 (grub_vbe_set_video_mode): Save active mode info
17721 only after setting the mode.
17722 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
17725 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
17727 Rename variables for clarity.
17729 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
17730 (active_vbe_mode_info): ... this. All users updated.
17731 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
17733 (initial_mode): Rename to ...
17734 (initial_vbe_mode): ... this. All users updated.
17735 (mode_in_use): Rename to ..
17736 (vbe_mode_in_use): ... this. All users updated.
17737 (mode_list): Rename to ..
17738 (vbe_mode_list): ... this. All users updated.
17739 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
17740 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
17741 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
17742 'mode_list_size' to 'vbe_mode_list_size'.
17743 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
17744 'best_mode_info' to 'best_vbe_mode_info' and
17745 'best_mode' to 'best_vbe_mode'
17747 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
17749 Remove duplicate grub_video_fb_get_video_ptr.
17751 * include/grub/fbutil.h (get_data_ptr): Rename to ...
17752 (grub_video_fb_get_video_ptr): ... this.
17753 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
17754 * video/fb/fbutil.c: Add comment about addressing.
17755 (get_data_ptr): Rename to ...
17756 (grub_video_fb_get_video_ptr): ... this. All users updated.
17757 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
17759 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
17761 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
17762 grub_dprintf() that was just added.
17764 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
17766 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
17767 (DEFAULT_VIDEO_MODE): Remove macros.
17768 (grub_linux_boot): Remove assumption that Linux has FB support,
17769 and use "text" as default video mode.
17771 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
17773 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
17775 * fs/fat.c (grub_fat_read_data): Likewise.
17777 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17779 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
17781 (grub_module): Likewise.
17783 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17785 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
17786 mbi->cmdline but free playground.
17788 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17790 Handle group offset on UFS1.
17792 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
17793 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
17795 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17797 Split ufs.mod into ufs1.mod and ufs2.mod.
17799 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
17800 (grub_fstest_SOURCES): Likewise.
17801 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
17802 (ufs_mod_SOURCES): Remove.
17803 (ufs_mod_CFLAGS): Likewise.
17804 (ufs_mod_LDFLAGS): Likewise.
17805 (ufs1_mod_SOURCES): New variable.
17806 (ufs1_mod_CFLAGS): Likewise.
17807 (ufs1_mod_LDFLAGS): Likewise.
17808 (ufs2_mod_SOURCES): New variable.
17809 (ufs2_mod_CFLAGS): Likewise.
17810 (ufs2_mod_LDFLAGS): Likewise.
17811 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
17812 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
17814 (grub_emu_SOURCES): Likewise.
17815 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17816 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17817 (grub_setup_SOURCES): Likewise.
17818 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17819 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
17820 (grub_setup_SOURCES): Likewise.
17821 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
17823 * fs/ufs2.c: New file.
17824 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
17826 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17830 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
17831 subsystem at the end.
17832 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
17833 (video_fb_mod_SOURCES): New variable.
17834 (video_fb_mod_CFLAGS): Likewise.
17835 (video_fb_mod_LDFLAGS): Likewise.
17836 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
17837 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
17838 * video/i386/pc/vbeblit.c: Moved from here ...
17839 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
17840 * video/i386/pc/vbefill.c: Moved from here ...
17841 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
17842 * video/i386/pc/vbeutil.c: Moved from here ...
17843 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
17844 * include/grub/i386/pc/vbeblit.h: Moved from here ...
17845 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
17846 * include/grub/i386/pc/vbefill.h: Moved from here ...
17847 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
17848 * include/grub/i386/pc/vbeutil.h: Moved from here ...
17849 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
17850 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
17851 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
17852 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
17853 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
17854 (grub_video_adapter): Added 'get_info_and_fini'.
17855 (grub_video_get_info_and_fini): New prototype.
17856 (grub_video_set_mode): make modestring const char *.
17857 * loader/i386/linux.c (grub_linux_setup_video): Use
17858 grub_video_get_info_and_fini.
17859 (grub_linux_boot): Move modesetting just before booting.
17860 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
17861 grub_video_get_info_and_fini.
17862 * video/i386/pc/vbe.c: Moved framebuffer part ...
17863 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
17864 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
17865 grub_video_fbstd_colors and grub_video_fb_set_palette.
17866 (grub_video_vbe_init): Clear 'framebuffer' variable and use
17867 grub_video_fb_init.
17868 (grub_video_vbe_fini): Use grub_video_fb_fini.
17869 (grub_video_vbe_setup): Use framebuffer.render_target instead of
17870 render_target and use grub_video_fb_set_active_render_target and
17871 grub_video_fb_set_palette.
17872 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
17873 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
17874 (grub_video_vbe_adapter): Use framebuffer.
17875 * video/video.c (grub_video_get_info_and_fini): New function.
17876 (grub_video_set_mode): Make modestring const char *.
17877 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
17878 values are already initialised.
17880 2009-08-14 Pavel Roskin <proski@gnu.org>
17882 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
17884 * boot/i386/pc/diskboot.S: Likewise.
17885 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
17886 sectors allow compilation on MacOSX.
17887 * conf/i386-pc.rmk: Enable unconditional compilation of
17890 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
17892 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
17893 * util/grub.d/00_header.in: Enter interruptible sleep if
17894 GRUB_HIDDEN_TIMEOUT is set.
17896 2009-08-13 Yves Blusseau <blusseau@zetam.org>
17898 * include/grub/symbol.h: Add the LOCAL macro.
17899 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
17900 starting with "L_".
17902 2009-08-13 Pavel Roskin <proski@gnu.org>
17904 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
17905 any modern compilers we support.
17907 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
17908 Use local labels starting with "L_" so that Apple assembler
17909 knows they are local.
17911 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
17913 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
17914 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
17915 (bsd_kernel_types): ... this enum.
17917 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
17918 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
17919 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
17921 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
17922 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
17923 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
17926 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
17928 * util/grub-dumpdevtree: Moved from here ...
17929 * util/i386/efi/grub-dumpdevtree: ... to here.
17930 (hexify): New function. Converts a string to its hex version.
17931 Generate hex versions of "efi" and "device-properties" by calling
17932 hexify() on the ASCII strings rather than by hardcoding numbers.
17934 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
17936 * fs/jfs.c: Update copyright year.
17938 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
17940 * util/grub.d/00_header.in: Fix a comment.
17941 * util/grub.d/10_linux.in: Likewise.
17942 * util/grub.d/10_windows.in: Likewise.
17943 * util/grub.d/10_hurd.in: Likewise.
17945 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
17947 * util/grub-mkconfig.in: Allow the user to specify the used font
17950 2009-08-08 Pavel Roskin <proski@gnu.org>
17952 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
17953 available, xfs.mod needs it now.
17955 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
17956 the "g" modifier in sed when the intention is to strip something
17957 once. This fixes comparison of kernels with multiple dashes.
17959 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
17960 on it. Add missing space before closing bracket. Fix
17961 misleading formatting.
17963 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17965 * docs/grub.texi: Major overhaul. Remove all sections that are
17966 specific to GRUB Legacy, or mostly composed of Legacy-specific
17969 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17971 * docs/version.texi: New file. Provides version information for
17974 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17976 * docs/grub.texi: Update CVS information to SVN.
17977 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
17979 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
17981 * util/grub-mkconfig.in: Remove a wrong `fi'.
17983 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
17985 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
17986 (grub_jfs_uuid): New function.
17987 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
17989 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
17991 * util/grub-mkconfig_lib.in (font_path): Move the functionality
17993 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
17994 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
17996 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17998 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
17999 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
18002 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
18003 not just "vmlinu[zx]".
18004 Moved from here ...
18005 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
18008 * util/grub.d/10_linux.in (find_latest): Moved from here ...
18009 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
18012 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
18014 * util/grub.d/10_freebsd.in: Use an absolute device path for
18015 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
18017 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
18019 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
18020 handling of multiple abstraction modules.
18022 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
18024 Fix a bug resulting in black screen when loading Linux using a
18027 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
18030 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
18031 (grub_vbe_bios_getset_dac_palette_width): New function.
18032 (grub_vbe_bios_get_dac_palette_width)
18033 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
18034 grub_vbe_bios_getset_dac_palette_width()).
18036 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
18037 check for return status.
18038 (grub_vbe_get_video_mode_info): When getting information for a packed
18039 mode (<= 8 bpp), obtain DAC palette width using
18040 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
18041 {red,green,blue}_mark_size.
18043 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
18045 * commands/search.c (options): Fix help output to match actual code.
18047 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
18049 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
18052 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18054 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
18055 on XFS or ReiserFS.
18057 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18059 Support Apple partition map with sector size different from 512 bytes.
18061 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
18062 (apple_partition_map_iterate): Respect 'aheader.blocksize'
18063 and 'apart.partmap_size'.
18065 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18066 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
18070 * commands/i386/cpuid.c (options): New variable.
18071 (grub_cmd_cpuid): Return real error.
18072 (GRUB_MOD_INIT(cpuid)): Declare options.
18074 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
18076 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
18079 2009-07-31 Bean <bean123ch@gmail.com>
18081 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
18083 (grub_fshelp_node): Move inode field to the end.
18084 (grub_xfs_data): Remove inode field.
18085 (grub_xfs_inode_block): Calculate inode size using sblock.
18086 (grub_xfs_inode_offset): Likewise.
18087 (grub_xfs_read_inode): Calculate inode size using sblock.
18088 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
18089 (grub_xfs_iterate_dir): Calculate inode size using sblock.
18090 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
18091 to match inode size.
18092 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
18093 not accessible when data is null.
18094 (grub_xfs_open): Likewise.
18096 2009-07-31 Bean <bean123ch@gmail.com>
18098 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
18099 Don't change pv->disk if it's already set.
18101 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
18102 (grub_raid_register): ... here.
18103 (grub_raid_rescan): Removed.
18105 * include/grub/raid.h (grub_raid_rescan): Removed.
18107 * util/grub-fstest.c: Remove include file <grub/raid.h>.
18108 (fstest): Replace grub_raid_rescan with module fini function followed
18111 * util/grub-probe.c: Add include file <grub/raid.h>.
18112 (probe_raid_level): New function.
18113 (probe): Detect abstraction by walking the disk device, support two
18114 level of abstraction (LVM on RAID) when detecting partition map.
18116 2009-07-31 Pavel Roskin <proski@gnu.org>
18118 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
18119 to grub_zalloc(), it was erroneous.
18120 Reported by Bean <bean123ch@gmail.com>
18122 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
18124 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
18125 embedding zone, not only the first one.
18127 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
18129 * term/gfxterm.c (clear_char): New function.
18130 (grub_virtual_screen_setup): Use clear_char.
18131 (scroll_up): Likewise.
18132 (grub_virtual_screen_cls): Likewise.
18134 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
18136 * util/deviceiter.c (get_acceleraid_disk_name): New static
18138 (grub_util_iterate_devices): Handle Accelraid devices.
18139 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
18141 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
18143 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
18144 separator for the suggested gfxpayload string (';' collides with the
18145 parser and needs escaping).
18147 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
18149 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
18150 Clear direction flag before jumping to OS.
18151 (grub_multiboot2_real_boot): Likewise.
18153 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
18155 * util/i386/pc/grub-install: Fix parsing of --disk-module
18158 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
18160 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
18163 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
18165 * util/grub-mkconfig.in (package_version): New variable.
18166 Use it do display the version.
18168 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
18170 * kern/file.c (grub_file_open): Revert to previous check with
18173 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18175 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
18176 from help line. It's out of sync with code.
18178 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18180 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
18181 entries on failed boot.
18183 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
18185 * kern/file.c (grub_file_open): Fix an error check.
18187 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
18189 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
18190 partition map couldn't be identified.
18192 2009-07-23 Pavel Roskin <proski@gnu.org>
18194 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
18195 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
18196 case of little endian words becomes just an optimization.
18197 Respect const modifier.
18198 (md5_final): Use code that doesn't depend on endianness.
18200 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
18201 to avoid loss of upper bits if align is unsigned and shorter
18204 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
18206 UUID support for UFS
18208 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
18209 (grub_ufs_uuid): New function.
18210 (grub_ufs_fs): add .uuid
18212 2009-07-21 Pavel Roskin <proski@gnu.org>
18214 * kern/dl.c (grub_dl_check_header): Make static.
18216 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
18218 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
18219 add drivemap for Vista. It breaks Windows 7.
18221 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
18223 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
18226 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18230 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
18231 (grub_fstest_SOURCES): Likewise.
18232 (pkglib_MODULES): Add befs.mod.
18233 (befs_mod_SOURCES): New variable.
18234 (befs_mod_CFLAGS): Likewise.
18235 (befs_mod_LDFLAGS): Likewise.
18236 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
18237 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18238 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18239 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18240 (grub_setup_SOURCES): Likewise.
18241 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18242 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18243 (grub_setup_SOURCES): Likewise.
18244 * fs/befs.c: New file.
18245 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
18246 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
18247 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
18248 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
18249 (B_KEY_INDEX_ALIGN): New declaration.
18250 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
18251 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
18252 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
18253 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
18254 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
18255 (grub_afs_mount) [MODE_BFS]: Likewise.
18256 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
18257 (grub_afs_fs): Use GRUB_AFS_FSNAME
18258 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
18259 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
18260 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
18261 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
18263 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
18265 * util/getroot.c (find_root_device): Add support for MacOSX.
18266 * util/hostdisk.c: Likewise.
18268 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18270 * font/font.c (find_glyph): Check whether a font is present to avoid
18271 segmentation fault.
18273 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
18275 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
18277 2009-07-20 Pavel Roskin <proski@gnu.org>
18279 * configure.ac: Trim excessively wordy excuses.
18281 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18283 Add symlink, mtime and label support to AtheFS.
18285 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
18286 (grub_afs_iterate_dir): Handle symlinks.
18287 (grub_afs_open): Use grub_afs_read_symlink.
18288 (grub_afs_dir): Likewise.
18290 (grub_afs_label): New function.
18291 (grub_afs_fs): Add grub_afs_label.
18292 (grub_afs_read_symlink): New function.
18294 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18296 Fix AtheFS support.
18298 * fs/afs.c: Fix comments style.
18299 (grub_afs_blockrun): Declare as packed.
18300 (grub_afs_datastream): Likewise.
18301 (grub_afs_bnode): Likewise.
18302 (grub_afs_btree): Likewise.
18303 (grub_afs_sblock): Likewise.
18304 Declare `name' as char.
18305 (grub_afs_inode): Declare as packed.
18306 Change void *vnode to grub_uint32_t unused.
18307 (grub_afs_iterate_dir): Check that key_size is positive.
18308 (grub_afs_mount): Don't read superblock twice.
18309 (grub_afs_dir): Don't free node in case of error,
18310 grub_fshelp_find_file already handles this.
18311 (grub_afs_open): Likewise.
18313 2009-07-19 Pavel Roskin <proski@gnu.org>
18315 * Makefile.in: Remove LIBLZO and enable_lzo.
18316 * conf/i386-pc.rmk: Remove lzo support.
18317 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
18318 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
18320 * kern/i386/pc/lzo1x.S: Remove.
18321 * kern/i386/pc/startup.S: Remove lzo support.
18322 * util/i386/pc/grub-mkimage.c: Likewise.
18324 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
18326 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
18327 * fs/xfs.c (grub_xfs_dir): Likewise.
18328 * fs/afs.c (grub_afs_dir): Likewise.
18329 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
18330 (grub_iso9660_open): Likewise.
18331 * fs/jfs.c (grub_jfs_open): Likewise.
18332 * fs/ext2.c (grub_ext2_dir): Likewise.
18333 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
18334 * script/sh/lexer.c (grub_script_yylex): Likewise.
18336 2009-07-16 Pavel Roskin <proski@gnu.org>
18338 * configure.ac: Never add "-c" to CFLAGS.
18340 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
18342 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
18343 grub_cv_cc_efiemu should be used.
18345 * configure.ac: Typo fixes.
18347 * kern/mm.c (grub_zalloc): New function.
18348 (grub_debug_zalloc): Likewise.
18349 * include/grub/mm.h: Declare grub_zalloc() and
18350 grub_debug_zalloc().
18351 * util/misc.c (grub_zalloc): New function.
18352 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
18353 instead of grub_malloc(), remove unneeded initializations.
18354 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
18355 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
18356 * commands/parttool.c (grub_cmd_parttool): Likewise.
18357 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18358 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
18359 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
18360 * disk/usbms.c (grub_usbms_finddevs): Likewise.
18361 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
18362 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
18363 (grub_cmd_efiemu_pnvram): Likewise.
18364 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
18365 * fs/iso9660.c (grub_iso9660_mount): Likewise.
18366 (grub_iso9660_iterate_dir): Likewise.
18367 * fs/jfs.c (grub_jfs_opendir): Likewise.
18368 * fs/ntfs.c (list_file): Likewise.
18369 (grub_ntfs_mount): Likewise.
18370 * kern/disk.c (grub_disk_open): Likewise.
18371 * kern/dl.c (grub_dl_load_core): Likewise.
18372 * kern/elf.c (grub_elf_file): Likewise.
18373 * kern/env.c (grub_env_context_open): Likewise.
18374 (grub_env_set): Likewise.
18375 (grub_env_set_data_slot): Likewise.
18376 * kern/file.c (grub_file_open): Likewise.
18377 * kern/fs.c (grub_fs_blocklist_open): Likewise.
18378 * loader/i386/multiboot.c (grub_module): Likewise.
18379 * loader/xnu.c (grub_xnu_create_key): Likewise.
18380 (grub_xnu_create_value): Likewise.
18381 * normal/main.c (grub_normal_add_menu_entry): Likewise.
18382 (read_config_file): Likewise.
18383 * normal/menu_entry.c (make_screen): Likewise.
18384 * partmap/sun.c (sun_partition_map_iterate): Likewise.
18385 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
18386 * script/sh/script.c (grub_script_parse): Likewise.
18387 * video/bitmap.c (grub_video_bitmap_create): Likewise.
18388 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18389 * video/readers/png.c (grub_png_output_byte): Likewise.
18390 (grub_video_reader_png): Likewise.
18392 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
18394 Enable all targets that can be built by default
18396 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
18397 grub-mkfont and grub-fstest if they can be built
18399 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
18401 Fix hang and segmentation fault in grub-emu-usb
18403 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
18404 * util/usb.c (grub_libusb_devices): likewise
18405 (grub_libusb_init): rename to ...
18406 (GRUB_MOD_INIT (libusb)):...this
18407 (grub_libusb_fini): rename to ..
18408 (GRUB_MOD_FINI (libusb)):...this
18409 * disk/usbms.c (grub_usbms_transfer): fix retry logic
18410 * include/grub/disk.h (grub_raid_init): removed, it's useless
18411 (grub_raid_fini): likewise
18412 (grub_lvm_init): likewise
18413 (grub_lvm_fini): likewise
18414 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
18417 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
18421 * Makefile.in (LIBUSB): new macro
18422 * genmk.rb (Utility/print_tail): new method
18423 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
18424 (top level): call util.print_tail at the end.
18426 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
18428 Make FreeBSD accept zpool.cache
18430 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
18431 type is /boot/zfs/zpool.cache
18433 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
18437 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
18438 correct wrong typedef
18439 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
18441 2009-07-15 Pavel Roskin <proski@gnu.org>
18443 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
18444 * kern/disk.c (struct grub_disk_cache): Likewise.
18446 * commands/probe.c (options): Typo fix.
18448 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
18449 Increase to 0x5a to accommodate FAT32. Adjust other offsets
18451 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
18453 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
18454 the end of "Error" to make the message more readable.
18456 * boot/i386/pc/boot.S (kernel_segment): Remove.
18457 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
18460 * boot/i386/pc/boot.S (boot_version): Remove.
18461 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
18464 * include/grub/i386/pc/boot.h: Sort all offsets.
18465 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
18466 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
18467 * boot/i386/pc/boot.S: Assert location of every offset listed in
18468 include/grub/i386/pc/boot.h.
18470 2009-07-13 Pavel Roskin <proski@gnu.org>
18472 * include/grub/i386/coreboot/machine.h: Rename
18473 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
18474 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
18475 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
18477 * kern/dl.c: Force native word size to suppress warnings when
18478 compiling grub-emu.
18480 * kern/device.c (grub_device_iterate): Change struct part_ent to
18481 hold the name, not a pointer to it. Use one grub_malloc() per
18482 partition, not two. Free partition_name if grub_malloc() fails.
18483 Set ents to NULL only before grub_partition_iterate() is called.
18485 2009-07-11 Bean <bean123ch@gmail.com>
18487 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
18490 2009-07-10 Bean <bean123ch@gmail.com>
18491 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
18493 * kern/ieee1275/openfw.c (grub_children_iterate)
18494 (grub_devalias_iterate): Fix size evaluation for property or path
18495 strings, which was broken since r2132.
18497 2009-07-07 Pavel Roskin <proski@gnu.org>
18499 * commands/search.c (search_file): Merge into ...
18500 (search_fs): ... this. Accept search type as argument.
18501 (grub_cmd_search): Pass search type to search_fs().
18503 * include/grub/util/console.h: New file.
18504 * util/console.c: Use it instead of grub/machine/console.h.
18505 * util/grub-emu.c: Likewise.
18507 * lib/arg.c (find_long_option): Remove.
18508 (find_long): Add `len' argument, make `s' const char *.
18509 (grub_arg_parse): Parse long options in place, not in a
18512 2009-07-06 Pavel Roskin <proski@gnu.org>
18514 * commands/search.c (search_fs): Fix potential NULL pointer
18517 * commands/search.c (search_fs): Replace QUID macro with quid_fn
18520 2009-07-06 Daniel Mierswa <impulze@impulze.org>
18522 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
18525 2009-07-05 Pavel Roskin <proski@gnu.org>
18527 * include/grub/i386/linux.h (struct linux_kernel_params):
18528 Restore padding3, it's still needed.
18530 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
18532 * util/osdetect.lua: Likewise.
18534 2009-07-05 Bean <bean123ch@gmail.com>
18536 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
18538 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
18539 (grub_lua_getenv): Likewise.
18540 (grub_lua_setenv): Likewise.
18541 (save_errno): New function.
18542 (push_result): Likewise.
18543 (grub_lua_enum_device): Likewise.
18544 (grub_lua_enum_file): Likewise.
18545 (grub_lua_file_open): Likewise.
18546 (grub_lua_file_close): Likewise.
18547 (grub_lua_file_seek): Likewise.
18548 (grub_lua_file_read): Likewise.
18549 (grub_lua_file_getline): Likewise.
18550 (grub_lua_file_getsize): Likewise.
18551 (grub_lua_file_getpos): Likewise.
18552 (grub_lua_file_eof): Likewise.
18553 (grub_lua_file_exist): Likewise.
18554 (grub_lua_add_menu): Likewise.
18556 * script/lua/grub_lua.h (isupper): New inline function.
18557 (islower): Likewise.
18558 (ispunct): Likewise.
18559 (isxdigit): Likewise.
18560 (strcspn): Change to normal function.
18561 (strpbkr): New function declaration.
18562 (memchr): Likewise.
18564 * script/lua/grub_main.c (scan_str): New function.
18565 (strcspn): Likewise.
18566 (strpbrk): Likewise.
18567 (memchr): Likewise.
18569 * script/lua/linit.c (lualibs): Enable the string library.
18571 * util/osdetect.lua: New file.
18573 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
18575 * include/grub/i386/linux.h (struct linux_kernel_params): Add
18576 `capabilities' member.
18578 2009-07-02 Pavel Roskin <proski@gnu.org>
18580 * genparttoollist.sh: Add missing newline at the end.
18582 2009-07-01 Pavel Roskin <proski@gnu.org>
18584 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
18586 * util/hostdisk.c (open_device): Remove `const' from
18587 `sysctl_size', as sysctlbyname() can change it (in this case it
18588 doesn't actually happen).
18590 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
18591 using signed long int constants.
18593 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
18594 constant to avoid a warning on FreeBSD.
18596 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
18599 * Makefile.in: Install include/grub/machine symlink.
18601 * Makefile.in: When installing symlinks, use "cp -fR", which
18602 works on FreeBSD and MacOSX.
18603 From Yves Blusseau <cl7m42e02@sneakemail.com>
18605 * kern/dl.c (grub_dl_resolve_symbol): Make static.
18606 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
18608 * util/misc.c: Move grub_reboot() and grub_halt() ...
18609 * util/grub-emu.c: ... here. Make main_env static.
18610 * include/grub/util/misc.h: Remove main_env.
18612 * kern/mm.c: Use correct format to print size_t.
18614 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
18615 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
18616 * kern/powerpc/dl.c: Likewise.
18617 * kern/sparc64/dl.c: Likewise.
18618 * kern/x86_64/dl.c: Likewise.
18620 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18622 Fix grub-emu build on sparc64-ieee1275.
18624 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
18625 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
18627 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18629 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
18630 (grub_reboot, grub_halt): New functions.
18632 * util/i386/pc/misc.c: Delete. Update all users.
18633 * util/sparc64/ieee1275/misc.c: Likewise.
18634 * util/powerpc/ieee1275/misc.c: Likewise.
18636 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18638 * conf/i386.rmk (setjmp_mod_SOURCES)
18639 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
18640 * conf/common.rmk (setjmp_mod_SOURCES)
18641 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
18642 to use $(target_cpu).
18643 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
18644 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
18645 * conf/powerpc-ieee1275.rmk: Likewise.
18646 * conf/sparc64-ieee1275.rmk: Likewise.
18648 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
18649 $(target_cpu) for kern/$(target_cpu)/dl.c.
18650 * conf/i386-efi.rmk: Likewise.
18651 * conf/i386-ieee1275.rmk: Likewise.
18652 * conf/x86_64-efi.rmk: Likewise.
18653 * conf/i386-coreboot.rmk: Likewise.
18654 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
18655 $(target_cpu) for kern/$(target_cpu)/dl.c and for
18656 kern/$(target_cpu)/cache.S.
18657 * conf/sparc64-ieee1275.rmk: Likewise.
18659 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18661 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
18662 type to `grub_uint8_t', and adjust `padding9' accordingly.
18664 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
18666 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
18668 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
18669 assembly in final jump, using register constraints.
18671 (grub_linux_boot): For text mode, initialize `have_vga' using
18672 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
18674 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
18675 right before the final jump.
18677 Set `video_mode' to 0x3.
18679 Document initialization of `video_page', `video_mode' and
18682 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
18684 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
18685 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
18686 and set GRUB_LINUX_FLAG_QUIET appropriately.
18688 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
18690 Fix build on Debian / sparc.
18692 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
18694 2009-06-28 Pavel Roskin <proski@gnu.org>
18696 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
18699 * util/grub.d/10_linux.in: Match SUSE style initrd names.
18701 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18703 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
18706 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18710 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
18711 file can't be opened. grub_file_open() is already supposed to set
18712 grub_errno / grub_errmsg appropriately.
18713 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18715 2009-06-27 Pavel Roskin <proski@gnu.org>
18716 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18718 * include/grub/dl.h: Include grub/elf.h.
18719 (struct grub_dl): Add symtab field.
18720 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
18721 GRUB_MODULES_MACHINE_READONLY.
18722 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
18723 of the header for read-only modules.
18724 (grub_dl_unload): Free mod->symtab for read-only modules.
18725 * kern/i386/dl.c: Use mod->symtab.
18726 * kern/powerpc/dl.c: Likewise.
18727 * kern/sparc64/dl.c: Likewise.
18728 * kern/x86_64/dl.c: Likewise.
18730 * conf/i386-qemu.rmk: New file.
18731 * kern/i386/qemu/startup.S: Likewise.
18732 * kern/i386/qemu/mmap.c: Likewise.
18733 * boot/i386/qemu/boot.S: Likewise.
18734 * include/grub/i386/qemu/time.h: Likewise.
18735 * include/grub/i386/qemu/serial.h: Likewise.
18736 * include/grub/i386/qemu/kernel.h: Likewise.
18737 * include/grub/i386/qemu/console.h: Likewise.
18738 * include/grub/i386/qemu/boot.h: Likewise.
18739 * include/grub/i386/qemu/init.h: Likewise.
18740 * include/grub/i386/qemu/machine.h: Likewise.
18741 * include/grub/i386/qemu/loader.h: Likewise.
18742 * include/grub/i386/qemu/memory.h: Likewise.
18744 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
18745 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
18746 [qemu] (pkglib_IMAGES): Add `boot.img'.
18747 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
18748 [qemu] (boot_img_FORMAT): New variables.
18749 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
18750 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
18751 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
18752 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18753 [qemu] (kernel_img_FORMAT): New variables.
18755 * configure.ac: Recognise `i386-qemu'.
18757 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
18758 (for no compression).
18759 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
18760 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
18761 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
18762 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
18765 2009-06-27 Pavel Roskin <proski@gnu.org>
18767 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
18769 * efiemu/prepare32.c: Likewise.
18770 * efiemu/prepare64.c: Likewise.
18772 2009-06-26 Pavel Roskin <proski@gnu.org>
18774 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
18775 * include/grub/elf.h: Define symbols without "32" or "64" based
18776 on GRUB_TARGET_WORDSIZE.
18777 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
18778 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
18780 * efiemu/loadcore64.c: Likewise.
18781 * loader/i386/bsd32.c: Likewise.
18782 * loader/i386/bsd64.c: Likewise.
18783 * kern/dl.c: Remove own ELF definitions.
18784 * util/i386/efi/grub-mkimage.c: Likewise.
18786 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
18788 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
18789 segment 0x0 unconditionally, because the reference generated by
18790 GAS is an absolute address.
18792 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18794 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
18795 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
18797 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18799 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
18800 indexes. Check for -f explicitly.
18801 (search_file): Improve error message.
18802 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
18804 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18806 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
18807 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
18809 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18811 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
18812 * conf/i386-ieee1275.rmk: Likewise.
18813 * conf/i386-coreboot.rmk: Likewise.
18815 * kern/i386/pc/startup.S (grub_stop): Remove function.
18816 * kern/i386/ieee1275/startup.S: Likewise.
18817 * kern/i386/coreboot/startup.S: Likewise.
18818 * kern/i386/misc.S (grub_stop): New function.
18820 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18822 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
18823 * kern/i386/realmode.S (real_to_prot): ... to here.
18825 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18827 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
18829 (kernel_elf_SOURCES): Rename to ...
18830 (kernel_img_SOURCES): ... this.
18831 (kernel_elf_HEADERS): Rename to ...
18832 (kernel_img_HEADERS): ... this. Update all users.
18833 (kernel_elf_ASFLAGS): Rename to ...
18834 (kernel_img_ASFLAGS): ... this.
18835 (kernel_elf_CFLAGS): Rename to ...
18836 (kernel_img_CFLAGS): ... this.
18837 (kernel_elf_LDFLAGS): Rename to ...
18838 (kernel_img_LDFLAGS): ... this.
18839 * conf/i386-coreboot.rmk: Likewise.
18840 * conf/powerpc-ieee1275.rmk: Likewise.
18842 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
18845 2009-06-21 Pavel Roskin <proski@gnu.org>
18847 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
18848 to match nested functions.
18849 * loader/sparc64/ieee1275/linux.c: Likewise.
18851 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
18853 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
18855 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
18856 all i386 platforms.
18858 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
18860 Fix asm file handling on ELF, and remove workarounds.
18862 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
18863 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
18864 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
18865 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
18867 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
18869 Load BSD ELF modules
18871 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
18872 and loader/i386/bsd64.c
18873 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
18874 (FREEBSD_MODTYPE_ELF_MODULE): New definition
18875 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
18876 (grub_freebsd_load_elfmodule32): New declaration
18877 (grub_freebsd_load_elfmoduleobj64): Likewise
18878 (grub_freebsd_load_elf_meta32): Likewise
18879 (grub_freebsd_load_elf_meta64): Likewise
18880 (grub_freebsd_add_meta): Likewise
18881 (grub_freebsd_add_meta_module): Likewise
18882 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
18883 (grub_freebsd_add_meta_module): Likewise and move module-specific
18884 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
18885 (grub_cmd_freebsd): Add elf-kernel specific parts
18886 based on grub_freebsd_add_meta_module
18887 (grub_cmd_freebsd_module): Add type parsing moved from
18888 grub_freebsd_add_meta_module
18889 (grub_cmd_freebsd_module_elf): New function
18890 (cmd_freebsd_module_elf): New variable
18891 (GRUB_MOD_INIT): Register freebsd_module_elf
18892 * loader/i386/bsd32.c: New file
18893 * loader/i386/bsd64.c: Likewise
18894 * loader/i386/bsdXX.c: Likewise
18895 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
18896 (grub_elf64_load): Likewise
18897 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
18899 (grub_elf64_load_hook_t): Likewise
18901 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
18903 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
18905 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
18906 don't write a menu entry for recovery mode.
18908 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
18910 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
18911 after it's no longer needed.
18913 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
18915 * include/grub/i386/loader.h (grub_linux_prot_size)
18916 (grub_linux_tmp_addr, grub_linux_real_addr)
18917 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
18918 GRUB_MACHINE_PCBIOS.
18919 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
18920 common grub_util_info() call to ...
18921 (generate_image): ... here.
18922 Fix use of uninitialized memory, comparison of signed with
18923 unsigned integers and memory leak.
18924 Remove bogus module address message.
18926 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
18928 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
18930 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
18932 2009-06-19 Pavel Roskin <proski@gnu.org>
18934 * configure.ac: Remove stray AC_MSG_CHECKING.
18936 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
18938 * disk/scsi.c (grub_scsi_open): use continue instead of big if
18940 2009-06-18 Pavel Roskin <proski@gnu.org>
18942 * conf/common.rmk: Add fs_file.mod.
18943 * disk/fs_file.c: New file.
18944 * include/grub/disk.h (enum grub_disk_dev_id): Add
18945 GRUB_DISK_DEVICE_FILE_ID.
18947 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18949 Fix build with Apple's toolchain. Part 2
18951 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
18954 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18956 Fix build with Apple's toolchain. Part 1
18958 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
18960 * configure.ac: remove a leftover AC_MSG_RESULT
18961 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
18964 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18968 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
18969 (decomp_block): initialize ch
18970 use grub_memcpy instead of memcpy
18972 2009-06-17 Pavel Roskin <proski@gnu.org>
18974 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
18975 version, use declarations needed to use vga_text as the startup
18978 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
18979 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
18981 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
18982 and grub_at_keyboard_fini(), it's done on module load and
18985 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
18987 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
18988 file can't be found.
18989 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18991 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
18993 Fix newline handling
18995 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
18996 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
18997 (grub_script_yylex): don't segfault on unterminated script
18998 newline terminates command and variable
19000 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
19002 avoid double grub_adjust_range call. Bug reported by David Simner
19004 * kern/disk.c (grub_disk_write): change to raw disk access before
19007 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
19009 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
19010 spaces, for the benefit of help2man.
19011 * util/i386/efi/grub-mkimage.c (usage): Likewise.
19013 2009-06-16 Pavel Roskin <proski@gnu.org>
19015 * kern/i386/halt.c: Include grub/machine/init.h.
19016 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
19018 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
19020 * util/grub.d/30_os-prober.in: Use ${root} in the generated
19021 drivemap menuentry.
19023 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
19025 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
19028 2009-06-16 Pavel Roskin <proski@gnu.org>
19030 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
19031 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
19032 save %dx, we only need %dl and we never change it.
19033 * boot/i386/pc/cdboot.S: Don't set the root drive.
19034 * boot/i386/pc/pxeboot.S: Likewise.
19035 * include/grub/i386/pc/boot.h: Remove
19036 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
19037 GRUB_BOOT_MACHINE_DRIVE_CHECK.
19038 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
19039 * kern/i386/pc/init.c (make_install_device): Remove references
19040 to grub_root_drive.
19041 * kern/i386/pc/startup.S: Likewise.
19042 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
19044 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
19048 * commands/xnu_uuid.c: new file
19049 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
19050 (xnu_uuid_mod_SOURCES): new variable
19051 (xnu_uuid_mod_CFLAGS): likewise
19052 (xnu_uuid_mod_LDFLAGS): likewise
19053 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
19054 * conf/i386-ieee1275.rmk: likewise
19055 * conf/i386-pc.rmk: likewise
19056 * conf/powerpc-ieee1275.rmk: likewise
19057 * conf/sparc64-ieee1275.rmk: likewise
19058 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
19060 2009-06-16 Pavel Roskin <proski@gnu.org>
19062 * configure.ac: Avoid '==' in test command, it's not portable.
19064 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
19068 * commands/probe.c: new file
19069 * conf/common.rmk (pkglib_MODULES): add probe.mod
19070 (probe_mod_SOURCES): new variable
19071 (probe_mod_CFLAGS): likewise
19072 (probe_mod_LDFLAGS): likewise
19073 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
19074 * conf/i386-ieee1275.rmk: likewise
19075 * conf/i386-pc.rmk: likewise
19076 * conf/powerpc-ieee1275.rmk: likewise
19077 * conf/sparc64-ieee1275.rmk: likewise
19079 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
19081 Fix handling of string like \"hello\" and "a
19084 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
19085 (grub_script_yylex): fix parsing of quoting, escaping and newline
19087 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
19089 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
19092 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
19094 * util/grub-mkconfig.in: Fix parsing of --output option.
19096 2009-06-12 Pavel Roskin <proski@gnu.org>
19098 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
19099 genmk.rb don't need to be generated or installed.
19101 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19103 * commands/i386/pc/drivemap_int13h.S: add more comments
19105 2009-06-11 Pavel Roskin <proski@gnu.org>
19107 * Makefile.in (uninstall): Uninstall manuals.
19109 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
19110 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
19111 and update-grub_lib in two places.
19112 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
19114 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
19115 a compiler warning.
19117 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
19118 `entry_lo' to fix variable shadowing.
19120 2009-06-11 Christian Franke <franke@computer.org>
19122 * kern/misc.c (__enable_execute_stack): Add missing return type
19123 to prevent gcc warning.
19125 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
19127 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
19129 2009-06-11 Pavel Roskin <proski@gnu.org>
19131 * Makefile.in: Don't rely on any scripts being executable.
19132 Always use $(SHELL) to run shell scripts.
19134 * configure.ac: Always define ___main if using -nostdlib. This
19135 fixes tests on Cygwin.
19137 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
19141 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
19142 is in bytes and not in blocks
19144 2009-06-11 Pavel Roskin <proski@gnu.org>
19146 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
19149 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
19151 * util/grub.d/30_os-prober.in: Fix a comment. Source
19152 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
19153 to set the root device. Place drivemap command in the generated
19156 2009-06-11 Pavel Roskin <proski@gnu.org>
19158 * configure.ac: Remove host_m32. Issues with 64-bit utilities
19159 have long been resolved.
19161 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
19163 * util/grub.d/10_linux.in: Capitalise "Linux".
19165 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
19167 2009-06-11 Pavel Roskin <proski@gnu.org>
19169 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
19170 fix a gcc warning and ensure that the function won't ever exit.
19172 * kern/i386/ieee1275/init.c: Add missing prototype for
19173 grub_stop_floppy().
19175 * loader/ieee1275/multiboot2.c [__i386__]: Include
19176 grub/cpu/multiboot.h.
19178 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
19179 casts to short - they are not portable and cause warnings. Fix
19180 use of uninitialized values in input_buf. Use ARRAY_SIZE.
19182 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
19186 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
19188 (grub_get_root_biosnumber_saved): new variable
19189 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
19190 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
19191 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
19192 %dx after the call if necessary
19193 * conf/common.rmk (pkglib_MODULES): remove boot.mod
19194 (boot_mod_SOURCES): remove
19195 (boot_mod_CFLAGS): remove
19196 (boot_mod_LDFLAGS): remove
19197 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
19198 (boot_mod_SOURCES): new variable
19199 (boot_mod_CFLAGS): likewise
19200 (boot_mod_LDFLAGS): likewise
19201 * conf/i386-efi.rmk: likewise
19202 * conf/i386-ieee1275.rmk: likewise
19203 * conf/i386-pc.rmk: likewise
19204 * conf/powerpc-ieee1275.rmk: likewise
19205 * conf/sparc64-ieee1275.rmk: likewise
19206 * conf/x86_64-efi.rmk: likewise
19207 * include/grub/i386/pc/biosnum.h: new file
19208 * lib/i386/pc/biosnum.c: likewise
19209 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
19210 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
19211 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
19213 2009-06-10 Pavel Roskin <proski@gnu.org>
19215 * io/gzio.c (test_header): Don't reuse one buffer for all data.
19216 Use separate variables. Read only the file size at the end, but
19217 not the checksum that we don't use.
19219 * kern/file.c (grub_file_read): Use void pointer for the buffer.
19220 Adjust all callers.
19222 * kern/ieee1275/openfw.c: Remove libc includes.
19223 * kern/ieee1275/cmain.c: Likewise.
19224 * include/grub/ieee1275/ieee1275.h: Likewise.
19226 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
19229 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
19231 * Makefile.in: Remove all trailing whitespace.
19232 * conf/i386-pc.rmk: Likewise.
19233 * conf/powerpc-ieee1275.rmk: Likewise.
19234 * conf/sparc64-ieee1275.rmk: Likewise.
19235 * docs/grub.texi: Likewise.
19236 * docs/texinfo.tex: Likewise.
19237 * disk/fs_uuid.c: Likewise.
19238 * disk/lvm.c: Likewise.
19239 * disk/scsi.c: Likewise.
19240 * disk/ata.c: Likewise.
19241 * disk/ieee1275/ofdisk.c: Likewise.
19242 * disk/i386/pc/biosdisk.c: Likewise.
19243 * disk/host.c: Likewise.
19244 * disk/raid.c: Likewise.
19245 * disk/efi/efidisk.c: Likewise.
19246 * disk/usbms.c: Likewise.
19247 * disk/memdisk.c: Likewise.
19248 * disk/loopback.c: Likewise.
19249 * kern/powerpc/dl.c: Likewise.
19250 * kern/device.c: Likewise.
19251 * kern/dl.c: Likewise.
19252 * kern/sparc64/dl.c: Likewise.
19253 * kern/ieee1275/ieee1275.c: Likewise.
19254 * kern/term.c: Likewise.
19255 * kern/fs.c: Likewise.
19256 * kern/i386/dl.c: Likewise.
19257 * kern/i386/pc/startup.S: Likewise.
19258 * kern/i386/pc/init.c: Likewise.
19259 * kern/i386/pc/mmap.c: Likewise.
19260 * kern/i386/pc/lzo1x.S: Likewise.
19261 * kern/i386/ieee1275/init.c: Likewise.
19262 * kern/i386/realmode.S: Likewise.
19263 * kern/i386/tsc.c: Likewise.
19264 * kern/partition.c: Likewise.
19265 * kern/corecmd.c: Likewise.
19266 * kern/file.c: Likewise.
19267 * kern/efi/efi.c: Likewise.
19268 * kern/efi/init.c: Likewise.
19269 * kern/efi/mm.c: Likewise.
19270 * kern/main.c: Likewise.
19271 * kern/err.c: Likewise.
19272 * kern/env.c: Likewise.
19273 * kern/disk.c: Likewise.
19274 * kern/generic/millisleep.c: Likewise.
19275 * kern/generic/rtc_get_time_ms.c: Likewise.
19276 * kern/misc.c: Likewise.
19277 * kern/parser.c: Likewise.
19278 * genmk.rb: Likewise.
19279 * configure.ac: Likewise.
19280 * boot/i386/pc/diskboot.S: Likewise.
19281 * boot/i386/pc/pxeboot.S: Likewise.
19282 * boot/i386/pc/boot.S: Likewise.
19283 * boot/i386/pc/lnxboot.S: Likewise.
19284 * boot/i386/pc/cdboot.S: Likewise.
19285 * parttool/pcpart.c: Likewise.
19286 * video/readers/tga.c: Likewise.
19287 * video/video.c: Likewise.
19288 * video/bitmap.c: Likewise.
19289 * lib/envblk.c: Likewise.
19290 * lib/i386/setjmp.S: Likewise.
19291 * fs/xfs.c: Likewise.
19292 * fs/afs.c: Likewise.
19293 * fs/fat.c: Likewise.
19294 * fs/ntfs.c: Likewise.
19295 * fs/udf.c: Likewise.
19296 * fs/affs.c: Likewise.
19297 * fs/iso9660.c: Likewise.
19298 * fs/hfs.c: Likewise.
19299 * fs/fshelp.c: Likewise.
19300 * fs/ext2.c: Likewise.
19301 * fs/jfs.c: Likewise.
19302 * fs/reiserfs.c: Likewise.
19303 * fs/hfsplus.c: Likewise.
19304 * fs/minix.c: Likewise.
19305 * fs/cpio.c: Likewise.
19306 * fs/sfs.c: Likewise.
19307 * fs/ufs.c: Likewise.
19308 * efiemu/prepare.c: Likewise.
19309 * efiemu/loadcore_common.c: Likewise.
19310 * efiemu/runtime/efiemu.sh: Likewise.
19311 * efiemu/runtime/efiemu.S: Likewise.
19312 * efiemu/runtime/efiemu.c: Likewise.
19313 * efiemu/pnvram.c: Likewise.
19314 * efiemu/main.c: Likewise.
19315 * efiemu/i386/pc/cfgtables.c: Likewise.
19316 * efiemu/i386/loadcore64.c: Likewise.
19317 * efiemu/i386/loadcore32.c: Likewise.
19318 * efiemu/loadcore.c: Likewise.
19319 * efiemu/symbols.c: Likewise.
19320 * efiemu/mm.c: Likewise.
19321 * include/grub/autoefi.h: Likewise.
19322 * include/grub/datetime.h: Likewise.
19323 * include/grub/term.h: Likewise.
19324 * include/grub/hfs.h: Likewise.
19325 * include/grub/lvm.h: Likewise.
19326 * include/grub/i386/tsc.h: Likewise.
19327 * include/grub/i386/linux.h: Likewise.
19328 * include/grub/i386/xnu.h: Likewise.
19329 * include/grub/i386/efiemu.h: Likewise.
19330 * include/grub/i386/pc/biosdisk.h: Likewise.
19331 * include/grub/i386/pc/memory.h: Likewise.
19332 * include/grub/i386/pc/vbe.h: Likewise.
19333 * include/grub/parttool.h: Likewise.
19334 * include/grub/video.h: Likewise.
19335 * include/grub/memory.h: Likewise.
19336 * include/grub/fs.h: Likewise.
19337 * include/grub/partition.h: Likewise.
19338 * include/grub/xnu.h: Likewise.
19339 * include/grub/efi/api.h: Likewise.
19340 * include/grub/efi/pe32.h: Likewise.
19341 * include/grub/efi/memory.h: Likewise.
19342 * include/grub/multiboot.h: Likewise.
19343 * include/grub/usbdesc.h: Likewise.
19344 * include/grub/multiboot2.h: Likewise.
19345 * include/grub/acpi.h: Likewise.
19346 * include/grub/efiemu/efiemu.h: Likewise.
19347 * include/grub/disk.h: Likewise.
19348 * include/grub/ieee1275/ieee1275.h: Likewise.
19349 * include/grub/net.h: Likewise.
19350 * include/grub/machoload.h: Likewise.
19351 * include/grub/macho.h: Likewise.
19352 * include/multiboot.h: Likewise.
19353 * genmoddep.awk: Likewise.
19354 * normal/main.c: Likewise.
19355 * normal/menu_entry.c: Likewise.
19356 * normal/menu_viewer.c: Likewise.
19357 * normal/completion.c: Likewise.
19358 * normal/cmdline.c: Likewise.
19359 * normal/misc.c: Likewise.
19360 * normal/datetime.c: Likewise.
19361 * bus/usb/usbtrans.c: Likewise.
19362 * bus/usb/ohci.c: Likewise.
19363 * bus/usb/uhci.c: Likewise.
19364 * bus/usb/usb.c: Likewise.
19365 * mmap/efi/mmap.c: Likewise.
19366 * mmap/i386/pc/mmap_helper.S: Likewise.
19367 * mmap/i386/pc/mmap.c: Likewise.
19368 * mmap/i386/mmap.c: Likewise.
19369 * mmap/i386/uppermem.c: Likewise.
19370 * mmap/mmap.c: Likewise.
19371 * commands/acpi.c: Likewise.
19372 * commands/echo.c: Likewise.
19373 * commands/blocklist.c: Likewise.
19374 * commands/loadenv.c: Likewise.
19375 * commands/usbtest.c: Likewise.
19376 * commands/boot.c: Likewise.
19377 * commands/parttool.c: Likewise.
19378 * commands/search.c: Likewise.
19379 * commands/cat.c: Likewise.
19380 * commands/i386/pc/play.c: Likewise.
19381 * commands/i386/pc/drivemap.c: Likewise.
19382 * commands/i386/pc/vbeinfo.c: Likewise.
19383 * commands/i386/pc/acpi.c: Likewise.
19384 * commands/i386/pc/vbetest.c: Likewise.
19385 * commands/ls.c: Likewise.
19386 * commands/cmp.c: Likewise.
19387 * commands/test.c: Likewise.
19388 * commands/efi/acpi.c: Likewise.
19389 * commands/gptsync.c: Likewise.
19390 * commands/help.c: Likewise.
19391 * partmap/amiga.c: Likewise.
19392 * partmap/apple.c: Likewise.
19393 * partmap/acorn.c: Likewise.
19394 * partmap/pc.c: Likewise.
19395 * partmap/sun.c: Likewise.
19396 * partmap/gpt.c: Likewise.
19397 * script/sh/lexer.c: Likewise.
19398 * script/sh/function.c: Likewise.
19399 * font/font.c: Likewise.
19400 * font/font_cmd.c: Likewise.
19401 * loader/powerpc/ieee1275/linux.c: Likewise.
19402 * loader/efi/chainloader.c: Likewise.
19403 * loader/multiboot_loader.c: Likewise.
19404 * loader/macho.c: Likewise.
19405 * loader/i386/multiboot.c: Likewise.
19406 * loader/i386/linux.c: Likewise.
19407 * loader/i386/pc/linux.c: Likewise.
19408 * loader/i386/pc/multiboot2.c: Likewise.
19409 * loader/i386/pc/chainloader.c: Likewise.
19410 * loader/i386/pc/xnu.c: Likewise.
19411 * loader/i386/bsd_trampoline.S: Likewise.
19412 * loader/i386/efi/linux.c: Likewise.
19413 * loader/i386/multiboot_elfxx.c: Likewise.
19414 * loader/i386/bsd_helper.S: Likewise.
19415 * loader/i386/bsd.c: Likewise.
19416 * loader/i386/linux_trampoline.S: Likewise.
19417 * loader/i386/xnu_helper.S: Likewise.
19418 * loader/i386/xnu.c: Likewise.
19419 * loader/i386/bsd_pagetable.c: Likewise.
19420 * loader/i386/multiboot_helper.S: Likewise.
19421 * loader/xnu.c: Likewise.
19422 * loader/xnu_resume.c: Likewise.
19423 * io/gzio.c: Likewise.
19424 * term/efi/console.c: Likewise.
19425 * term/terminfo.c: Likewise.
19426 * term/ieee1275/ofconsole.c: Likewise.
19427 * term/i386/pc/serial.c: Likewise.
19428 * term/i386/pc/vesafb.c: Likewise.
19429 * term/i386/pc/vga.c: Likewise.
19430 * term/usb_keyboard.c: Likewise.
19431 * term/gfxterm.c: Likewise.
19432 * aclocal.m4: Likewise.
19433 * util/lvm.c: Likewise.
19434 * util/grub.d/30_os-prober.in: Likewise.
19435 * util/grub.d/10_hurd.in: Likewise.
19436 * util/console.c: Likewise.
19437 * util/grub-macho2img.c: Likewise.
19438 * util/grub-probe.c: Likewise.
19439 * util/hostfs.c: Likewise.
19440 * util/i386/pc/grub-mkimage.c: Likewise.
19441 * util/i386/pc/grub-setup.c: Likewise.
19442 * util/i386/efi/grub-mkimage.c: Likewise.
19443 * util/grub-mkconfig.in: Likewise.
19444 * util/raid.c: Likewise.
19445 * util/resolve.c: Likewise.
19446 * util/grub-mkdevicemap.c: Likewise.
19447 * util/grub-emu.c: Likewise.
19448 * util/getroot.c: Likewise.
19449 * util/hostdisk.c: Likewise.
19450 * util/usb.c: Likewise.
19451 * util/grub-editenv.c: Likewise.
19452 * util/misc.c: Likewise.
19454 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
19456 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
19457 `genparttoollist.sh'.
19458 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
19459 Add `*.sh' to the list find searches for and change `mdate.sh'
19462 2009-06-10 Pavel Roskin <proski@gnu.org>
19464 * include/grub/multiboot2.h: Provide compatibility defines for
19466 * include/multiboot2.h: Include stdint.h only if needed, using
19468 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
19470 * loader/ieee1275/multiboot2.c: Likewise.
19471 * loader/multiboot2.c: Likewise.
19472 * loader/multiboot_loader.c: Likewise.
19474 * configure.ac: Use -nostdlib when probing for the target. It
19475 should not be required to have libc for the target.
19477 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
19478 they fail without libc headers for the target.
19479 * include/grub/powerpc/libgcc.h: Use weak attribute for all
19481 * include/grub/sparc64/libgcc.h: Likewise. Don't use
19482 preprocessor conditionals.
19484 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
19485 build system doesn't need to be aware of the tar.c internals.
19487 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
19489 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
19491 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
19493 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
19494 disk limit to 26 for IDE, Virtio, Xen and SCSI.
19496 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
19498 * util/i386/pc/grub-install.in: Change the error message if UUIDs
19499 aren't available if ata.mod gets used.
19501 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
19503 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
19504 initialising controller.
19505 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
19507 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
19509 * util/i386/pc/grub-install.in: Add a parameter --disk-module
19510 to choose between ata and biosdisk module on i386-pc.
19512 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
19514 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
19515 Subclass and Programming Interface fields in terms of the 3 byte
19516 Class Code register.
19517 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
19519 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
19520 interface is OHCI. Add grub_dprintf for symmetry with
19522 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
19523 interface is UHCI. Add interf variable for programming
19524 interface. Print interface with class/subclass.
19526 * bus/usb/ohci.c: Set interf with correct field.
19528 * bus/usb/uhci.c: Remove unneeded doubled lines.
19529 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
19530 Remove whitespace inside comment.
19532 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
19534 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
19535 as fallback an equivalent option without depth.
19537 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
19539 Not fail if unable to retrieve C/H/S on LBA disks
19541 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
19542 if unable to retrieve C/H/S on LBA disks
19544 2009-06-08 Pavel Roskin <proski@gnu.org>
19546 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
19549 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
19551 * Makefile.in (uninstall): Remove all $lib_DATA files.
19553 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
19555 Bugfix: install on partitionless device
19557 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
19560 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
19562 * Makefile.in (uninstall): Remove all $include_DATA files.
19564 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
19566 * commands/true.c: New file. Implement the true and false commands.
19567 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
19568 (true_mod_SOURCES): New variable.
19569 (true_mod_CFLAGS): Likewise.
19570 (true_mod_LDFLAGS): Likewise.
19572 2009-06-05 Colin D Bennett <colin@gibibit.com>
19574 Optimized font character lookup using binary search instead of linear
19575 search. Fonts now are required to have the character index ordered by
19578 * font/font.c (load_font_index): Verify that fonts have ordered
19580 (find_glyph): Use binary search instead of linear search to find a
19581 character in a font.
19583 2009-06-05 Michael Scherer <misc@mandriva.org>
19585 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
19586 uses case sensitive btree.
19587 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
19588 only for case insensitive filesystems.
19590 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
19592 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
19593 * conf/common.rmk (search_mod_CFLAGS): likewise
19595 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19597 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
19598 compensate a compiler bug
19600 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19602 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
19605 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19607 Definitions for creating asm symbols with Apple's CC
19609 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
19610 [APPLE_CC] (VARIABLE): likewise
19612 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19614 Disable lnxboot.img when compiled
19617 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
19618 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
19619 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
19620 [! APPLE_CC] (CODE_LENG): skip
19621 [! APPLE_CC] (setup_sects): likewise
19622 [! APPLE_CC]: skip filling
19624 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19626 Address in trampolines based on 32-bit registers when compiled
19629 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
19631 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
19633 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19635 Avoid aliases when compiling with Apple's CC for PCBIOS machine
19637 * kern/misc.c [APPLE_CC] (memcpy): new function
19638 [APPLE_CC] (memmove): likewise
19639 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
19640 (memcpy): define alias conditionally on !APPLE_CC
19643 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
19644 APPLE_CC are defined
19645 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
19646 (grub_assert_fail): make prototype conditional
19648 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19650 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
19652 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
19654 (CLEANFILES): add grub-macho2img
19655 (grub_macho2img_SOURCES): new variable
19656 * kern/i386/pc/startup.S (bss_start): new variable
19657 (bss_end): likewise
19658 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
19659 * util/grub-macho2img.c: new file
19661 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19663 Use objconv when compiling with Apple's CC
19665 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
19666 (efiemu64.o): likewise
19667 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
19668 when compiling with Apple's CC
19669 (efiemu64_s.o): likewise
19670 * configure.ac: check for objconv when compiling with Apple's CC
19671 * genmk.rb: use objconv for modules when compiled with Apple's CC
19673 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19675 Define segment as well as section when compiling with
19678 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
19679 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
19680 (efiemu_convert_pointer): likewise
19681 (efiemu_set_virtual_address_map): likewise
19682 (efiemu_convert_pointer): likewise
19683 (efiemu_getcrc32): likewise
19684 (init_crc32_table): likewise
19685 (reflect): likewise
19686 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
19687 (GRUB_MOD_DEP): likewise
19689 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19691 Allow a compilation without -mcmodel=large
19693 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
19694 when compiled without -mcmodel=large
19695 (filter_memory_map): remove memory post 4 GiB when compiled
19696 without -mcmodel=large
19697 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
19698 TARGET_CFLAGS when -mcmodel=large isn't supported
19700 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19702 Remove nested functions in efiemu core
19704 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
19706 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19708 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
19710 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
19712 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
19714 (grub_cpu_is_tsc_supported): likewise
19715 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
19717 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19719 Absolute addressing through constant with Apple's cc
19721 * kern/i386/pc/startup.S: Define necessary constants
19722 and address through it when using ABS with Apple's CC
19723 * boot/i386/pc/diskboot.S: likewise
19724 * boot/i386/pc/boot.S: likewise
19725 * boot/i386/pc/lnxboot.S: likewise
19726 * boot/i386/pc/cdboot.S: likewise
19727 * mmap/i386/pc/mmap_helper.S: likewise
19728 * commands/i386/pc/drivemap_int13h.S: likewise
19730 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19732 Check if compiler is apple cc
19734 * Makefile.in (ASFLAGS): new variable
19735 (TARGET_ASFLAGS): likewise
19736 (TARGET_MODULE_FORMAT): likewise
19737 (TARGET_APPLE_CC): likewise
19738 (OBJCONV): likewise
19739 (TARGET_IMG_CFLAGS): likewise
19740 (TARGET_CPPFLAGS): add includedir
19741 * configure.ac: call grub_apple_cc and grub_apple_target_cc
19742 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
19743 Check for linker script only if compiler isn't Apple's CC
19744 (TARGET_MODULE_FORMAT): set
19745 (TARGET_APPLE_CC): likewise
19746 (TARGET_ASFLAGS): likewise
19747 (ASFLAGS): likewise
19748 Check for objcopy only if compiler isn't Apple's CC
19749 Check for BSS symbol only if compiler isn't Apple's CC
19750 * genmk.rb: adapt nm options if we use Apple's utils
19751 * aclocal.m4 (grub_apple_cc): new test
19752 (grub_apple_target_cc): likewise
19754 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19756 Simplify sed expressions and improve awk
19758 * Makefile.in (install-local): simplify sed expression
19759 * gencmdlist.sh: likewise
19760 * genmoddep.awk: avoid adding module as a dependency of itself
19762 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19764 Add missing start symbols
19766 * boot/i386/pc/boot.S: add start
19767 * boot/i386/pc/pxeboot.S: likewise
19769 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19771 Fix wrong assumptions with grub-mkimage on EFI
19773 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
19774 (relocate_addresses): consider both r_addend and value at offset
19775 (make_mods_section): zerofill modinfo and header
19776 (convert_elf): write prefix here
19778 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19780 Use .asciz instead of .string
19782 * i386/pc/diskboot.S: use .asciz instead of .string
19783 * i386/pc/boot.S: likewise
19784 * include/grub/dl.h (GRUB_MOD_DEP): likewise
19785 (GRUB_MOD_NAME): likewise
19787 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19791 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
19792 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
19793 (grub_video_setup): remove
19794 (grub_video_set_mode): new prototype
19795 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
19797 (linux_vesafb_res): compile only on PCBIOS
19798 (grub_linux_boot): support gfxpayload
19799 * loader/i386/pc/xnu.c (video_hook): new function
19800 (grub_xnu_set_video): support gfxpayload
19801 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
19802 (DEFAULT_VIDEO_HEIGHT): likewise
19803 (DEFAULT_VIDEO_FLAGS): likewise
19804 (DEFAULT_VIDEO_MODE): new definition
19805 (video_hook): new function
19806 (grub_gfxterm_init): use grub_video_set_mode
19807 * util/grub.d/30_os-prober.in: remove explicit modesetting before
19809 * video/video.c (grub_video_setup): removed
19810 (grub_video_set_mode): new function based on grub_gfxterm_init and
19813 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19815 Avoid calling biosdisk in drivemap
19817 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
19818 (revparse_biosdisk): likewise
19819 (list_mappings): derive name from id directly
19820 (grub_cmd_drivemap): use tryparse_diskstring
19822 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19826 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
19827 (grub_lexer_param): add tokenonhold
19828 (grub_script_create_cmdline): remove cmdline. All callers updated
19829 (grub_script_function_create): make functionname
19830 grub_script_arg. All callers updated
19831 (grub_script_execute_argument_to_string): new prototype
19832 * kern/parser.c (state_transitions): reorder
19833 (grub_parser_cmdline_state): fix a bug and make more compact
19834 * script/sh/execute.c (grub_script_execute_argument_to_string):
19836 (grub_script_execute_cmdline): use new format
19837 * script/sh/function.c (grub_script_function_create): make functionname
19838 grub_script_arg. All callers updated
19839 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
19840 (grub_script_yylex): remove
19841 (grub_script_yylex2): renamed to ...
19842 (grub_script_yylex): ...renamed
19843 parse the expressions like a${b}c
19844 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
19845 (GRUB_PARSER_TOKEN_VAR): remove
19846 (GRUB_PARSER_TOKEN_NAME): likewise
19847 ("if"): declare as typeless
19848 ("while"): likewise
19849 ("function"): likewise
19854 (argument): likewise
19855 (script): accept empty scripts and make exit on error
19856 (arguments): use GRUB_PARSER_TOKEN_ARG
19857 (function): likewise
19858 (command): move error handling to script
19859 (menuentry): move grub_script_lexer_ref before
19860 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
19861 argument. All callers updated
19863 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
19865 Prevent GRUB from probing floppies during boot.
19867 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
19868 * commands/search.c (options): Add --no-floppy.
19869 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
19870 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
19871 --no-floppy when searching for UUIDs.
19873 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
19875 Simplify the code duplication in commands/search.c.
19877 * commands/search.c (search_label, search_fs_uuid): Merge into ...
19878 (search_fs): ... this. Update all users.
19880 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
19882 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
19884 2009-05-28 Pavel Roskin <proski@gnu.org>
19886 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
19887 Remove the original symlink explicitly.
19889 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
19890 just one slash. That's how grub_fshelp_find_file() does it.
19892 2009-05-26 Pavel Roskin <proski@gnu.org>
19894 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
19897 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
19900 2009-05-25 Christian Franke <franke@computer.org>
19902 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
19904 (grub_atapi_identify): Add wait after drive select.
19905 (grub_ata_identify): Do more strict status register check before
19906 calling grub_atapi_identify (). Suppress error message if status
19907 register is 0x00 after command failure. Add status register
19908 check after PIO read to avoid bogus identify due to stuck DRQ.
19909 Thanks to Pavel Roskin for testing.
19910 (grub_device_initialize): Remove unsafe status register check.
19911 Thanks to 'phcoder' for problem report and patch.
19912 Prevent sign extension in debug message.
19914 2009-05-23 Colin D Bennett <colin@gibibit.com>
19916 Cleaned up `include/grub/normal.h'. Grouped prototypes by
19917 definition file, and functions defined in `normal/menu.c' have had
19918 their prototypes moved to `include/grub/menu.h' for consistency.
19920 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
19922 (grub_menu_get_entry): Likewise.
19923 (grub_menu_get_timeout): Likewise.
19924 (grub_menu_set_timeout): Likewise.
19925 (grub_menu_execute_entry): Likewise.
19926 (grub_menu_execute_with_fallback): Likewise.
19927 (grub_menu_entry_run): Likewise.
19929 * include/grub/normal.h: Re-ordered and grouped function
19930 prototypes by file that the function is defined in.
19931 (grub_menu_execute_callback): Removed; moved to menu.h.
19932 (grub_menu_get_entry): Likewise.
19933 (grub_menu_get_timeout): Likewise.
19934 (grub_menu_set_timeout): Likewise.
19935 (grub_menu_execute_entry): Likewise.
19936 (grub_menu_execute_with_fallback): Likewise.
19937 (grub_menu_entry_run): Likewise.
19938 (grub_menu_addentry): Renamed from this ...
19939 (grub_normal_add_menu_entry): ... to this.
19941 * normal/main.c (grub_menu_addentry): Renamed from this ...
19942 (grub_normal_add_menu_entry): ... to this.
19944 * script/sh/execute.c (grub_script_execute_menuentry): Update
19945 reference to renamed grub_menu_addentry function.
19947 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
19949 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
19951 2009-05-22 Pavel Roskin <proski@gnu.org>
19953 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
19954 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
19955 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
19956 compiling for the i386 targets, but not for the utilities.
19958 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
19960 (grub_root_drive): Likewise.
19961 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
19963 (grub_root_drive): Change size to byte.
19964 (grub_start_addr): Remove.
19965 (grub_end_addr): Likewise.
19966 (grub_apm_bios_info): Likewise.
19968 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
19970 * normal/i386: Remove.
19971 * normal/powerpc: Likewise.
19972 * normal/sparc64: Likewise.
19973 * normal/x86_64: Likewise.
19975 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19977 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
19978 * loader/i386/linux_trampoline.S: Fix indentation
19979 * loader/i386/xnu_helper.S: Likewise
19981 2009-05-18 Colin D Bennett <colin@gibibit.com>
19983 Display error messages when parsing a Lua statement fails.
19984 Previously, executing a syntactically invalid statement like
19985 ")foo" or "bar;" would silently fail.
19987 * script/lua/grub_main.c (handle_lua_error): New function.
19988 (grub_lua_parse_line): Improved reporting of Lua parser and
19991 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19993 Remove -Werror which causes build to fail on some systems
19995 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
19996 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
19997 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
19999 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20001 trampoline for linux on 64-bit platform
20003 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
20004 loader/i386/efi/linux_trampoline.S
20005 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
20007 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
20009 * loader/i386/linux_trampoline.S: moved here
20010 * loader/i386/efi/linux.c (allocate_pages): reserve space for
20012 (jumpvector): removed
20013 (grub_linux_trampoline_start): new declaration
20014 (grub_linux_trampoline_end): likewise
20015 (grub_linux_boot): use trampoline when on 64-bit platform
20016 * loader/i386/linux.c: likewise
20018 2009-05-16 Pavel Roskin <proski@gnu.org>
20020 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
20021 const to avoid a warning.
20022 (grub_lua_setenv): Likewise.
20023 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
20024 lmsg to fix a warning.
20026 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
20028 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
20029 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
20030 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
20031 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
20032 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
20033 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
20034 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
20035 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
20037 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
20039 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
20041 2009-05-16 Bean <bean123ch@gmail.com>
20043 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
20044 (lua_mod_SOURCES): New variable.
20045 (lua_mod_CFLAGS): Likewise.
20046 (lua_mod_LDFLAGS): Likewise.
20048 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
20049 (setjmp_mod_SOURCES): New variable.
20050 (setjmp_mod_CFLAGS): Likewise.
20051 (setjmp_LDFLAGS): Likewise.
20053 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
20054 (setjmp_mod_SOURCES): New variable.
20055 (setjmp_mod_CFLAGS): Likewise.
20056 (setjmp_LDFLAGS): Likewise.
20058 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
20059 (setjmp_mod_SOURCES): New variable.
20060 (setjmp_mod_CFLAGS): Likewise.
20061 (setjmp_LDFLAGS): Likewise.
20063 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
20064 (setjmp_mod_SOURCES): New variable.
20065 (setjmp_mod_CFLAGS): Likewise.
20066 (setjmp_LDFLAGS): Likewise.
20068 * normal/i386/setjmp.S: Moved from here ...
20069 * lib/i386/setjmp.S: ... Moved here
20070 * normal/x86_64/setjmp.S: Moved from here ...
20071 * lib/x86_64/setjmp.S: ... Moved here
20072 * normal/powerpc/setjmp.S: Moved from here ...
20073 * lib/powerpc/setjmp.S: ... Moved here
20074 * normal/sparc64/setjmp.S: Moved from here ...
20075 * lib/sparc64/setjmp.S: ... Moved here
20077 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
20078 returns_twice in mingw.
20080 * script/lua/grub_lib.c: New file.
20081 * script/lua/grub_lib.h: Likewise.
20082 * script/lua/grub_lua.h: Likewise.
20083 * script/lua/grub_main.c: Likewise.
20084 * script/lua/lapi.c: Likewise.
20085 * script/lua/lapi.h: Likewise.
20086 * script/lua/lauxlib.c: Likewise.
20087 * script/lua/lauxlib.h: Likewise.
20088 * script/lua/lbaselib.c: Likewise.
20089 * script/lua/lcode.c: Likewise.
20090 * script/lua/lcode.h: Likewise.
20091 * script/lua/ldblib.c: Likewise.
20092 * script/lua/ldebug.c: Likewise.
20093 * script/lua/ldebug.h: Likewise.
20094 * script/lua/ldo.c: Likewise.
20095 * script/lua/ldo.h: Likewise.
20096 * script/lua/ldump.c: Likewise.
20097 * script/lua/lfunc.c: Likewise.
20098 * script/lua/lfunc.h: Likewise.
20099 * script/lua/lgc.c: Likewise.
20100 * script/lua/lgc.h: Likewise.
20101 * script/lua/linit.c: Likewise.
20102 * script/lua/liolib.c: Likewise.
20103 * script/lua/llex.c: Likewise.
20104 * script/lua/llex.h: Likewise.
20105 * script/lua/llimits.h: Likewise.
20106 * script/lua/lmathlib.c: Likewise.
20107 * script/lua/lmem.c: Likewise.
20108 * script/lua/lmem.h: Likewise.
20109 * script/lua/loadlib.c: Likewise.
20110 * script/lua/lobject.c: Likewise.
20111 * script/lua/lobject.h: Likewise.
20112 * script/lua/lopcodes.c: Likewise.
20113 * script/lua/lopcodes.h: Likewise.
20114 * script/lua/loslib.c: Likewise.
20115 * script/lua/lparser.c: Likewise.
20116 * script/lua/lparser.h: Likewise.
20117 * script/lua/lstate.c: Likewise.
20118 * script/lua/lstate.h: Likewise.
20119 * script/lua/lstring.c: Likewise.
20120 * script/lua/lstring.h: Likewise.
20121 * script/lua/lstrlib.c: Likewise.
20122 * script/lua/ltable.c: Likewise.
20123 * script/lua/ltable.h: Likewise.
20124 * script/lua/ltablib.c: Likewise.
20125 * script/lua/ltm.c: Likewise.
20126 * script/lua/ltm.h: Likewise.
20127 * script/lua/lua.h: Likewise.
20128 * script/lua/luaconf.h: Likewise.
20129 * script/lua/lualib.h: Likewise.
20130 * script/lua/lundump.c: Likewise.
20131 * script/lua/lundump.h: Likewise.
20132 * script/lua/lvm.c: Likewise.
20133 * script/lua/lvm.h: Likewise.
20134 * script/lua/lzio.c: Likewise.
20135 * script/lua/lzio.h: Likewise.
20137 2009-05-16 Bean <bean123ch@gmail.com>
20139 * include/grub/kernel.h (grub_module_header_types): Add type
20142 * kern/main.c (grub_load_config): New function.
20143 (grub_main): Call grub_load_config to read boot config.
20145 * grub-mkimage (generate_image): New parameter config_path.
20146 (options): New option --config.
20147 (main): Parse --config option, and pass it to generate_image.
20149 2009-05-14 Christian Franke <franke@computer.org>
20151 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
20152 This fixes build on Cygwin.
20154 2009-05-14 Pavel Roskin <proski@gnu.org>
20156 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
20157 jump. This saves two bytes, so the typical case of 2 swapped
20158 drives would fit 32 bytes.
20160 2009-05-13 Pavel Roskin <proski@gnu.org>
20162 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
20163 grub_uint32_t to avoid a warning.
20165 * loader/i386/linux.c (allocate_pages): When assigning
20166 real_mode_mem, cast through grub_size_t to fix a warning. The
20167 code already makes sure that the value would fit a pointer.
20168 (grub_linux_setup_video): Cast render_target->data to
20169 grub_size_t to fix a warning.
20171 2009-05-13 Javier Martín <lordhabbit@gmail.com>
20173 * commands/i386/pc/drivemap.c: New file - implement drivemap
20175 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
20176 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
20178 2009-05-13 Pavel Roskin <proski@gnu.org>
20180 * util/i386/pc/grub-setup.c (setup): Remove unused variable
20181 embedding_area_exists.
20183 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
20185 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
20186 it easier to understand / work with.
20187 Improve warning messages for cases where there's no embedding area,
20188 or when it is too small (or core.img too large).
20190 2009-05-13 Pavel Roskin <proski@gnu.org>
20192 * loader/i386/pc/multiboot2.c: Add necessary includes for
20193 grub_multiboot2_real_boot().
20195 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
20196 PX record is always little-endian. We only need the lower 2
20199 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
20200 facilitate code reuse.
20201 (grub_cpio_mount): Use "struct head", not a char buffer. This
20202 fixes a warning reported by gcc 4.4.
20204 * kernel/disk.c (grub_disk_read): Use void pointer for the
20206 (grub_disk_write): Use const void pointer for the buffer.
20207 Adjust all callers. Remove unnecessary casts.
20209 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
20211 * util/i386/pc/grub-install.in: Update copyright year.
20213 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20217 * commands/gptsync.c: new file
20218 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
20219 (gptsync_mod_SOURCES): new variable
20220 (gptsync_mod_CFLAGS): likewise
20221 (gptsync_mod_LDFLAGS): likewise
20222 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
20224 (GRUB_PC_PARTITION_TYPE_HFS): likewise
20225 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
20226 * conf/i386-ieee1275.rmk: likewise
20227 * conf/i386-pc.rmk: likewise
20228 * conf/powerpc-ieee1275.rmk: likewise
20230 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20234 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
20235 (grub_dl_ref): likewise
20237 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
20239 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
20240 split in two functions (one for msdos and one for gpt).
20242 2009-05-08 Pavel Roskin <proski@gnu.org>
20244 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
20247 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
20248 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
20249 Initialize them with -1. Add sanity check for bad1. Eliminate
20252 2009-05-08 David S. Miller <davem@davemloft.net>
20254 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
20256 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
20258 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
20261 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
20263 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
20264 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
20266 2009-05-05 David S. Miller <davem@davemloft.net>
20268 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
20270 2009-05-05 Pavel Roskin <proski@gnu.org>
20272 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
20273 of grub_dl_ref() and grub_dl_unref().
20274 * commands/parttool.c: Remove preprocessor conditionals around
20275 grub_dl_ref() and grub_dl_unref().
20276 * fs/affs.c: Likewise.
20277 * fs/afs.c: Likewise.
20278 * fs/cpio.c: Likewise.
20279 * fs/ext2.c: Likewise.
20280 * fs/fat.c: Likewise.
20281 * fs/hfs.c: Likewise.
20282 * fs/hfsplus.c: Likewise.
20283 * fs/iso9660.c: Likewise.
20284 * fs/jfs.c: Likewise.
20285 * fs/minix.c: Likewise.
20286 * fs/ntfs.c: Likewise.
20287 * fs/reiserfs.c: Likewise.
20288 * fs/sfs.c: Likewise.
20289 * fs/udf.c: Likewise.
20290 * fs/ufs.c: Likewise.
20291 * fs/xfs.c: Likewise.
20292 * include/grub/dl.h: Likewise.
20293 * loader/xnu.c: Likewise.
20295 2009-05-04 Pavel Roskin <proski@gnu.org>
20297 * commands/acpi.c: Remove unused variable my_mod.
20298 * partmap/amiga.c: Likewise.
20299 * partmap/apple.c: Likewise.
20300 * partmap/gpt.c: Likewise.
20301 * partmap/pc.c: Likewise.
20302 * partmap/sun.c: Likewise.
20303 * term/gfxterm.c: Likewise.
20304 * term/i386/pc/vesafb.c: Likewise.
20305 * term/i386/pc/vga.c: Likewise.
20307 2009-05-04 David S. Miller <davem@davemloft.net>
20309 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
20310 pointer args to grub_ieee1275_get_property().
20312 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
20314 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
20315 devices, and do not traverse down under controller nodes.
20317 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
20318 (grub_ofdisk_open): Use it to un-escape "," characters.
20319 * kern/disk.c (find_part_sep): New.
20320 (grub_disk_open): Use it to find the first non-escaped ','
20321 character in the disk name.
20322 * util/ieee1275/devicemap.c (escape_of_path): New.
20323 (grub_util_emit_devicemap_entry): Use it.
20324 * util/sparc64/ieee1275/grub-install.in: Update script to
20325 strip partition specifiers properly by not triggering on
20326 '\' escaped ',' characters.
20328 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
20330 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
20332 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
20334 (linux_vesafb_modes): Add a lot of additional modes to the list (based
20335 on documentation from Wikipedia).
20337 2009-05-04 Pavel Roskin <proski@gnu.org>
20339 * disk/ata.c: Spelling fixes.
20340 * disk/raid.c: Likewise.
20341 * disk/usbms.c: Likewise.
20342 * disk/dmraid_nvidia.c: Likewise.
20343 * kern/ieee1275/openfw.c: Likewise.
20344 * kern/ieee1275/init.c: Likewise.
20345 * kern/ieee1275/cmain.c: Likewise.
20346 * boot/i386/pc/cdboot.S: Likewise.
20347 * video/readers/png.c: Likewise.
20348 * video/i386/pc/vbe.c: Likewise.
20349 * fs/udf.c: Likewise.
20350 * fs/hfs.c: Likewise.
20351 * fs/reiserfs.c: Likewise.
20352 * efiemu/runtime/efiemu.c: Likewise.
20353 * efiemu/main.c: Likewise.
20354 * efiemu/mm.c: Likewise.
20355 * include/grub/elf.h: Likewise.
20356 * include/grub/xnu.h: Likewise.
20357 * include/grub/usbdesc.h: Likewise.
20358 * include/grub/usb.h: Likewise.
20359 * include/grub/script_sh.h: Likewise.
20360 * include/grub/lib/LzmaEnc.h: Likewise.
20361 * include/grub/efiemu/efiemu.h: Likewise.
20362 * include/grub/command.h: Likewise.
20363 * normal/menu.c: Likewise.
20364 * normal/main.c: Likewise.
20365 * normal/datetime.c: Likewise.
20366 * bus/usb/uhci.c: Likewise.
20367 * mmap/i386/uppermem.c: Likewise.
20368 * mmap/mmap.c: Likewise.
20369 * commands/acpi.c: Likewise.
20370 * commands/test.c: Likewise.
20371 * partmap/apple.c: Likewise.
20372 * font/font.c: Likewise.
20373 * loader/sparc64/ieee1275/linux.c: Likewise.
20374 * loader/macho.c: Likewise.
20375 * loader/i386/bsd_trampoline.S: Likewise.
20376 * loader/i386/bsd.c: Likewise.
20377 * loader/xnu.c: Likewise.
20378 * term/i386/pc/vesafb.c: Likewise.
20379 * term/usb_keyboard.c: Likewise.
20380 * util/resolve.c: Likewise.
20381 * util/getroot.c: Likewise.
20383 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
20385 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
20387 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
20389 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
20392 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
20394 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
20395 parameter only available on BIOS.
20397 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
20399 Removed wrong semicolon in declaration
20401 * grub/misc.h (grub_dprintf): remove semicolon
20403 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
20405 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
20406 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
20407 is done by grub_cmd_linux() now).
20408 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
20409 restore video to text mode.
20410 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
20411 indicates lack of "vga=" parameter. "vga=0" is mapped to
20412 `GRUB_LINUX_VID_MODE_NORMAL'.
20414 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
20416 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
20417 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
20418 and `normal/script.c'. Add `kern/rescue_reader.c',
20419 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
20420 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
20421 `grub_script.tab.c'.
20423 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20424 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20425 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20426 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
20427 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20429 * Makefile.in: Remove duplicated 2008 in Copyright line.
20431 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
20433 * util/misc.c (grub_util_warn): New function. Emits a warning
20435 * include/grub/util/misc.h (grub_util_warn): New declaration.
20437 * util/i386/pc/grub-install.in: Understand --force and pass it down
20440 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
20442 (setup): Improve error messages and add warnings when requested to
20443 install in odd layouts. Refuse to install using blocklists unless
20446 2009-05-04 martin f. krafft <madduck@madduck.net>
20448 * disk/raid.c (grub_raid_scan_device): Improve debug message.
20450 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
20452 Updated copyright year
20454 * fs/hfsplus.c: updated copyright year
20456 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
20460 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
20461 in the space previously used by unused3
20462 (grub_hfsplus_uuid): new function
20463 (grub_hfsplus_fs): added uuid field
20465 2009-05-03 Pavel Roskin <proski@gnu.org>
20467 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
20468 suppress warnings. It's no longer needed.
20469 * disk/host.c: Likewise.
20470 * disk/ata_pthru.c: Likewise.
20471 * disk/loopback.c: Likewise.
20472 * hook/datehook.c: Likewise.
20473 * parttool/pcpart.c: Likewise.
20474 * fs/i386/pc/pxe.c: Likewise.
20475 * fs/ntfscomp.c: Likewise.
20476 * efiemu/main.c: Likewise.
20477 * mmap/mmap.c: Likewise.
20478 * commands/crc.c: Likewise.
20479 * commands/hexdump.c: Likewise.
20480 * commands/hdparm.c: Likewise.
20481 * commands/acpi.c: Likewise.
20482 * commands/echo.c: Likewise.
20483 * commands/minicmd.c: Likewise.
20484 * commands/blocklist.c: Likewise.
20485 * commands/memrw.c: Likewise.
20486 * commands/loadenv.c: Likewise.
20487 * commands/usbtest.c: Likewise.
20488 * commands/lsmmap.c: Likewise.
20489 * commands/boot.c: Likewise.
20490 * commands/parttool.c: Likewise.
20491 * commands/configfile.c: Likewise.
20492 * commands/search.c: Likewise.
20493 * commands/ieee1275/suspend.c: Likewise.
20494 * commands/cat.c: Likewise.
20495 * commands/i386/pc/pxecmd.c: Likewise.
20496 * commands/i386/pc/play.c: Likewise.
20497 * commands/i386/pc/halt.c: Likewise.
20498 * commands/i386/pc/vbeinfo.c: Likewise.
20499 * commands/i386/pc/vbetest.c: Likewise.
20500 * commands/lspci.c: Likewise.
20501 * commands/date.c: Likewise.
20502 * commands/handler.c: Likewise.
20503 * commands/ls.c: Likewise.
20504 * commands/test.c: Likewise.
20505 * commands/cmp.c: Likewise.
20506 * commands/efi/loadbios.c: Likewise.
20507 * commands/efi/fixvideo.c: Likewise.
20508 * commands/halt.c: Likewise.
20509 * commands/help.c: Likewise.
20510 * commands/reboot.c: Likewise.
20511 * hello/hello.c: Likewise.
20512 * script/sh/main.c: Likewise.
20513 * loader/xnu.c: Likewise.
20514 * term/terminfo.c: Likewise.
20515 * term/i386/pc/serial.c: Likewise.
20516 * term/usb_keyboard.c: Likewise.
20518 2009-05-03 David S. Miller <davem@davemloft.net>
20520 * normal/menu.c: Include grub/parser.h
20522 2009-05-03 Pavel Roskin <proski@gnu.org>
20524 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
20526 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
20527 Suggested by Javier Martín <lordhabbit@gmail.com>
20529 * util/i386/pc/grub-mkrescue.in: Allow for the case when
20530 efiemu??.o doesn't exist.
20531 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
20534 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
20536 FreeBSD 64-bit support
20538 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
20539 and loader/i386/bsd_trampoline.S
20540 (bsd_mod_ASFLAGS): new variable
20541 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
20542 (FREEBSD_MODTYPE_KERNEL64): likewise
20543 (grub_bsd64_trampoline_start): likewise
20544 (grub_bsd64_trampoline_end): likewise
20545 (grub_bsd64_trampoline_selfjump): likewise
20546 (grub_bsd64_trampoline_gdt): likewise
20547 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
20548 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
20549 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
20550 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
20551 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
20553 * loader/i386/bsd_pagetable.c: new file
20554 * loader/i386/bsd_trampoline.S: likewise
20555 * loader/i386/bsd.c (ALIGN_QWORD): new macro
20556 (ALIGN_VAR): likewise
20557 (entry_hi): new variable
20558 (kern_end_mdofs): likewise
20559 (is_64bit): likewise
20560 (grub_freebsd_add_meta): use ALIGN_VAR
20561 (grub_e820_mmap): new declaration
20562 (grub_freebsd_add_mmap): new function
20563 (grub_freebsd_add_meta_module): support 64 bit kernels
20564 (grub_freebsd_list_modules): use ALIGN_VAR
20565 (gdt_descriptor): new declaration
20566 (grub_freebsd_boot): support 64 bit kernels
20567 (grub_bsd_elf64_hook): new function
20568 (grub_bsd_load_elf): support elf64
20570 2009-05-03 Bean <bean123ch@gmail.com>
20572 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
20573 after we get the result of if statement.
20575 2009-05-03 Bean <bean123ch@gmail.com>
20577 * Makefile.in (enable_efiemu): New variable.
20579 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
20581 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
20583 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
20584 path, add -mno-red-zone option.
20585 (efiemu64_s.o): Likewise.
20586 (efiemu64.o): Use macro $^ for source file.
20588 * configure.ac (--enable-efiemu): New option.
20590 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20594 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
20595 (pkglib_MODULES): add xnu.mod
20596 (xnu_mod_SOURCES): new variable
20597 (xnu_mod_CFLAGS): likewise
20598 (xnu_mod_LDFLAGS): likewise
20599 (xnu_mod_ASFLAGS): likewise
20600 * conf/i386-pc.rmk: likewise
20601 * conf/x86_64-efi.rmk: likewise
20602 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
20604 * include/grub/i386/macho.h: new file
20605 * include/grub/i386/xnu.h: likewise
20606 * include/grub/macho.h: likewise
20607 * include/grub/machoload.h: likewise
20608 * include/grub/x86_64/macho.h: likewise
20609 * include/grub/x86_64/xnu.h: likewise
20610 * include/grub/xnu.h: likewise
20611 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
20612 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
20613 * loader/i386/efi/xnu.c: new file
20614 * loader/i386/pc/xnu.c: likewise
20615 * loader/i386/xnu.c: likewise
20616 * loader/i386/xnu_helper.S: likewise
20617 * loader/macho.c: likewise
20618 * loader/xnu.c: likewise
20619 * loader/xnu_resume.c: likewise
20620 * util/grub-dumpdevtree: likewise
20621 * include/grub/i386/pit.h: include grub/err.h
20622 (grub_pit_wait): export
20623 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
20625 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20629 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
20630 _linux_efi, linux_efi.
20631 new files in grub-emu
20632 new targets efiemu32.o and efiemu64.o
20633 * loader/linux_normal_efiemu.c: likewise
20634 * loader/i386/efi/linux.c: added preliminary efiemu support
20635 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
20637 * include/grub/autoefi.h: new file
20638 * include/grub/i386/efiemu.h: likewise
20639 * include/grub/i386/pc/efiemu.h: likewise
20640 * include/grub/efi/api.h: add LL suffix when necessary
20641 new definitions relating to tables
20642 * include/grub/efiemu/efiemu.h: new file
20643 * include/grub/efiemu/runtime.h: likewise
20644 * efiemu/prepare.c: likewise
20645 * efiemu/loadcore_common.c: likewise
20646 * efiemu/loadcore64.c: likewise
20647 * efiemu/runtime/efiemu.sh: likewise
20648 * efiemu/runtime/efiemu.S: likewise
20649 * efiemu/runtime/efiemu.c: likewise
20650 * efiemu/runtime/config.h: likewise
20651 * efiemu/prepare32.c: likewise
20652 * efiemu/main.c: likewise
20653 * efiemu/modules/pnvram.c: likewise
20654 * efiemu/modules/i386: likewise
20655 * efiemu/modules/i386/pc: likewise
20656 * efiemu/modules/acpi.c: likewise
20657 * efiemu/i386/pc/cfgtables.c: likewise
20658 * efiemu/i386/loadcore64.c: likewise
20659 * efiemu/i386/loadcore32.c: likewise
20660 * efiemu/prepare64.c: likewise
20661 * efiemu/loadcore.c: likewise
20662 * efiemu/symbols.c: likewise
20663 * efiemu/mm.c: likewise
20664 * efiemu/loadcore32.c: likewise
20666 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20670 * commands/acpi.c: new file
20671 * commands/i386/pc/acpi.c: likewise
20672 * commands/efi/acpi.c: likewise
20673 * include/grub/acpi.h: likewise
20674 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
20675 (acpi_mod_SOURCES): new variable
20676 (acpi_mod_CFLAGS): likewise
20677 (acpi_mod_LDFLAGS): likewise
20678 * conf/i386-efi.rmk: likewise
20679 * conf/x86_64-efi.rmk: likewise
20681 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20683 Missing part from mmap patch
20685 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
20686 (grub_mmap_unregister)
20687 (grub_mmap_free_and_unregister): use grub_mmap_register
20689 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20693 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
20694 * loader/i386/linux.c (find_mmap_size): likewise
20695 (allocate_pages): likewise
20696 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
20697 (grub_fill_multiboot_mmap): likewise
20698 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
20699 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
20700 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
20701 (OPENBSD_MMAP_RESERVED): likewise
20702 * include/grub/i386/pc/memory.h: include grub/memory.h
20703 (grub_lower_mem): removed
20704 (grub_upper_mem): likewise
20705 (GRUB_MACHINE_MEMORY_ACPI): new definition
20706 (GRUB_MACHINE_MEMORY_NVS): likewise
20707 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
20708 (GRUB_MACHINE_MEMORY_HOLE): likewise
20709 (grub_machine_mmap_register): likewise
20710 (grub_machine_mmap_unregister): likewise
20711 (grub_machine_get_upper): likewise
20712 (grub_machine_get_lower): likewise
20713 (grub_machine_get_post64): likewise
20714 * include/grub/i386/efi/memory.h: new file
20715 * include/grub/x86_64/efi/memory.h: likewise
20716 * include/grub/efi/memory.h: likewise
20717 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
20718 (mmap_mod_SOURCES): new variable
20719 (mmap_mod_LDFLAGS): likewise
20720 (mmap_mod_ASFLAGS): likewise
20721 * conf/i386-coreboot.rmk: likewise
20722 * conf/i386-ieee1275.rmk: likewise
20723 * conf/i386-efi.rmk: likewise
20724 * conf/x86_64-efi.rmk: likewise
20725 * include/grub/types.h (UINT_TO_PTR): new macro
20726 (PTR_TO_UINT32): likewise
20727 (PTR_TO_UINT64): likewise
20728 * include/grub/memory.h: new file
20729 * mmap/i386/pc/mmap.c: likewise
20730 * mmap/i386/pc/mmap_helper.S: likewise
20731 * mmap/i386/uppermem.c: likewise
20732 * mmap/mmap.c: likewise
20733 * mmap/efi/mmap.c: likewise
20734 * kern/i386/coreboot/init.c (grub_machine_init): don't use
20736 * kern/i386/pc/init.c (grub_lower_mem): removed variable
20737 (grub_upper_mem): likewise
20738 (grub_machine_init): don't use grub_upper_mem,
20739 make grub_lower_mem local
20740 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
20741 grub_mmap_iterate and grub_mmap_get_upper
20742 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
20744 2009-05-02 Bean <bean123ch@gmail.com>
20746 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
20747 script/sh/parser.y.
20748 (pkglib_MODULES): Add normal.mod and sh.mod.
20749 (normal_SOURCES): New variable.
20750 (normal_mod_CFLAGS): Likewise.
20751 (normal_mod_LDFLAGS): Likewise.
20752 (sh_mod_SOURCES): Likewise.
20753 (sh_mod_CFLAGS): Likewise.
20754 (sh_mod_LDFLAGS): Likewise.
20756 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
20757 script/sh/lexer.c_DEPENDENCIES.
20758 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
20759 kern/rescue_reader.c and kern/rescue_parser.c.
20760 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
20761 (grub_emu_SOURCES): Change source files.
20762 (pkglib_MODULES): Remove normal.mod.
20763 (normal_SOURCES): Removed.
20764 (normal_mod_CFLAGS): Likewise.
20765 (normal_mod_LDFLAGS): Likewise.
20766 * conf/i386-coreboot.rmk: Likewise.
20767 * conf/i386-efi.rmk: Likewise.
20768 * conf/i386-ieee1276.rmk: Likewise.
20769 * conf/powerpc-ieee1275.rmk: Likewise.
20770 * conf/sparc64-ieee1275.rmk: Likewise.
20771 * conf/x86_64-efi.rmk: Likewise.
20773 * include/grub/command.h (grub_command_execute): New inline function.
20775 * include/grub/menu.h (grub_menu_entry): Removed commands field.
20777 * include/grub/normal.h: Remove <grub/setjmp.h>.
20778 (grub_fs_module_list): Moved to normal/autofs.c.
20779 (grub_exit_env): Removed.
20780 (grub_command_execute): Likewise.
20781 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
20783 (read_command_list): New function declaration.
20784 (read_fs_list): Likewise.
20786 * include/parser.h: Include <grub/reader.h>.
20787 (grub_parser_split_cmdline): Change type of getline parameter.
20788 (grub_parser): New structure.
20789 (grub_parser_class): New variable.
20790 (grub_parser_execute): New function declaration.
20791 (grub_register_rescue_parser): Likewise.
20792 (grub_parser_register): New inline function.
20793 (grub_parser_unregister): Likewise.
20794 (grub_parser_get_current): Likewise.
20795 (grub_parser_set_current): Likewise.
20797 * include/grub/reader.h: New file.
20798 * kern/reader.c: Likewise.
20799 * kern/rescue_parser.c: Likewise.
20800 * kern/rescue_reader.c: Likewise.
20801 * normal/autofs.c: Likewise.
20802 * normal/dyncmd.c: Likewise.
20804 * include/grub/rescue.h: Removed.
20805 * normal/command.h: Likewise.
20807 * include/grub/script.h: Moved to ...
20808 * include/grub/script_sh.h: ... Moved here.
20809 * normal/execute.c: Moved to ...
20810 * script/sh/execute.c: ... Moved here.
20811 * normal/function.c: Moved to ...
20812 * script/sh/function.c: ... Moved here.
20813 * normal/lexer.c: Moved to ...
20814 * script/sh/lexer.c: ... Moved here.
20815 * normal/parser.y: Moved to ...
20816 * script/sh/parser.y: ... Moved here.
20817 * normal/script.c: Moved to ...
20818 * script/sh/script.c: ... Moved here.
20820 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
20822 (grub_exit_env): Removed.
20823 (fs_module_list): Moved to normal/autofs.c.
20824 (grub_file_getline): Don't handle comment here.
20825 (free_menu): Skip removed field entry->commands.
20826 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
20828 (read_config_file): Removed nested parameter, change getline function.
20829 (grub_enter_normal_mode): Removed.
20830 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
20831 (read_command_list): Likewise.
20832 (autoload_fs_module): Moved to normal/autofs.c.
20833 (read_fs_list): Likewise.
20834 (reader_nested): New variable.
20835 (grub_normal_execute): Run parser.sh to switch to sh parser.
20836 (grub_cmd_rescue): Removed.
20837 (cmd_normal): Removed.
20838 (grub_cmd_normal): Unregister itself at the beginning. Don't register
20840 (grub_cmdline_run): New function.
20841 (grub_normal_reader_init): Likewise.
20842 (grub_normal_read_line): Likewise.
20843 (grub_env_write_pager): Likewise.
20844 (cmdline): New variable.
20845 (grub_normal_reader): Likewise.
20846 (GRUB_MOD_INIT): Register normal reader and set as current, register
20847 pager hook, register normal command with grub_register_command_prio,
20848 so that it won't show up in command.lst.
20849 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
20850 grub_fs_autoload_hook.
20852 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
20853 (grub_menu_execute_entry): Replace grub_script_execute with
20854 grub_parser_execute, change parameter to grub_command_execute.
20856 * normal/menu_text.c: Remove <grub/script.h>.
20858 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
20859 and <grub/parser.h>.
20860 (run): Change editor_getline to use new parser interface. Change
20861 parameter to grub_command_execute.
20863 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
20864 <grub/reader.h> and <grub/parser.h>.
20865 (grub_load_normal_mode): Execute normal command.
20866 (grub_main): Call grub_register_core_commands,
20867 grub_register_rescue_parser and grub_register_rescue_reader, use
20868 grub_reader_loop to enter input loop.
20870 * kern/parser.c (grub_parser_split_cmdline): Change type of
20872 (grub_parser_class): New variable.
20873 (grub_parser_execute): New function.
20875 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
20876 * loader/multiboot2.c: Likewise.
20877 * loader/sparc64/ieee1275/linux.c: Likewise.
20879 * util/grub-emu.c (read_command_list): New dummy function.
20881 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
20883 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
20884 count to 16 for CCISS and IDA.
20886 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
20888 * normal/menu_text.c (grub_wait_after_message): Print a newline
20889 after waiting for user input.
20891 * loader/i386/linux.c: Include `<grub/normal.h>'.
20892 (grub_cmd_linux): Improve the error message about `ask' mode, by
20893 waiting for user input so it's not missed (we can do this, since
20894 user requested interaction).
20896 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20898 Added missing lst to grub-mkrescue
20900 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
20901 and ${input_dir}/parttool.lst
20903 2009-04-30 David S. Miller <davem@davemloft.net>
20905 * util/hostdisk.c (device_is_wholedisk): New function.
20906 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
20907 zero only if device_is_wholedisk() returns true.
20909 * util/hostdisk.c (convert_system_partition_to_system_disk):
20910 Handle virtual disk devices named /dev/vdiskX as found on sparc
20913 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
20914 lettered partition specifier is found, convert to numbered.
20916 2009-04-29 David S. Miller <davem@davemloft.net>
20918 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
20919 * include/grub/sparc64/ieee1275/memory.h: Likewise.
20921 * normal/command.c: Add missing newline at end of file.
20923 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
20925 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
20926 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
20927 grub_ofdisk_read): Likewise, and deal similarly with the fact that
20928 ihandles have a 32-bit type but need to be stored in a "void *".
20930 2009-04-28 Pavel Roskin <proski@gnu.org>
20932 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
20933 not disk. Adjust all dependencies.
20934 (grub_fs_uuid_close): Use grub_device_close(), not
20937 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
20938 parent's partition, don't copy it by reference, as it gets freed
20941 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20943 Preboot hooks support
20945 * commands/boot.c (struct grub_preboot_t): new declaration
20946 (preboots_head): new variable
20947 (preboots_tail): likewise
20948 (grub_loader_register_preboot_hook): new function
20949 (grub_loader_unregister_preboot_hook): likewise
20950 (grub_loader_set): launch preboot hooks
20951 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
20952 (grub_loader_register_preboot_hook): new declaration
20953 (grub_loader_unregister_preboot_hook): likewise
20955 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20959 * disk/scsi.c (grub_scsi_open): added missing cast when
20960 calling grub_dprintf
20962 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
20964 Bug and warning fixes
20966 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
20968 * commands/test.c (test_parse): fixed bug with file tests and corrected
20969 declaration of find_file
20971 2009-04-26 Pavel Roskin <proski@gnu.org>
20973 * Makefile.in: Don't install empty manual pages if help2man is
20974 missing. Use help2man option for output, not shell redirection.
20976 2009-04-26 David S. Miller <davem@davemloft.net>
20978 * util/grub-mkdevicemap.c (make_device_map): Add missing
20979 NESTED_FUNC_ATTR to process_device().
20981 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20985 * commands/test.c: rewritten to use bash-like test
20987 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20989 Parttool autoloading and improvements
20991 * Makefile.in (pkglib_DATA): add parttool.lst
20992 (parttool.lst): new target
20993 * genmk.rb: generate parttool-*
20994 (CLEANFILES): add #{parttool}
20995 (PARTTOOLFILES): new variable
20996 * genparttoollist.sh: new file
20997 * parttool/pcpart.c (grub_pcpart_boot): more feedback
20998 (grub_pcpart_type): likewise
20999 * commands/parttool.c (helpmsg): new variable
21000 (grub_cmd_parttool): output help if not enough arguments are supplied
21002 (GRUB_MOD_INIT(parttool)): use helpmsg
21004 2009-04-24 David S. Miller <davem@davemloft.net>
21006 Avoiding opening same device multiple times in device iterator.
21008 * kern/device.c: (grub_device_iterate): Define struct part_ent,
21009 and use it to build a list of partitions in iterate_disk() and
21010 iterate_partition().
21012 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
21015 * disk/ieee1275/nand.c (grub_nand_iterate): Return
21016 grub_devalias_iterate() result instead of unconditional 0.
21017 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
21018 Also, capture hook return value, either directly or via
21019 grub_children_iterate(), and propagate to caller.
21020 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
21021 grub_children_iterate): Return value is now 'int' instead of
21023 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
21024 like a proper iterator, stopping when hooks return non-zero.
21025 (grub_devalias_iterate): Likewise.
21027 2009-04-23 David S. Miller <davem@davemloft.net>
21029 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
21031 2009-04-22 David S. Miller <davem@davemloft.net>
21033 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
21034 is larger than address_cells, use that value for address_cells too.
21036 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
21037 IEEE1275_MAX_PATH_LEN): Define.
21038 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
21039 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
21040 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
21041 'devtype'. Explicitly NULL terminate devalias expansion.
21043 * util/sparc64/ieee1275/misc.c: New file.
21044 * util/sparc64/ieee1275/grub-setup.c: New file.
21045 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
21046 * util/sparc64/ieee1275/grub-mkimage.c: New file.
21047 * util/sparc64/ieee1275/grub-install.in: New file.
21048 * util/ieee1275/ofpath.c: New file.
21049 * util/ieee1275/devicemap.c: New file.
21050 * util/devicemap.c: New file.
21051 * util/deviceiter.c: New file.
21052 * kern/sparc64/ieee1275/init.c: New file.
21053 * include/grub/util/ofpath.h: New file.
21054 * include/grub/util/deviceiter.h: New file.
21055 * util/grub-mkdevicemap.c: Include deviceiter.h.
21056 Implement using grub_util_emit_devicemap_entry and
21057 grub_util_iterate_devices.
21058 * conf/i386-corebook.rmk: Build util/deviceiter.c and
21059 util/devicemap.c into grub-mkdevicemap
21060 * conf/i386-efi.rmk: Likewise.
21061 * conf/i386-ieee1275.rmk: Likewise.
21062 * conf/i386-pc.rmk: Likewise.
21063 * conf/powerpc-ieee1275.rmk: Likewise.
21064 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
21065 images and installation utilities. Build kernel as image
21066 instead of as elf binary. Use common rules as much as possible.
21068 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21070 Correct GPT definition
21072 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
21075 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
21077 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
21079 2009-04-19 David S. Miller <davem@davemloft.net>
21081 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
21082 (grub_rescue_cmd_linux): Rename to...
21083 (grub_cmd_linux): and fix prototype.
21084 (grub_rescue_cmd_initrd): Rename to...
21085 (grub_cmd_initrd): and fix prototype.
21086 (cmd_linux, cmd_initrd): New.
21087 (GRUB_MOD_INIT(linux)): Use grub_register_command().
21088 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
21090 2009-04-17 Pavel Roskin <proski@gnu.org>
21092 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
21094 (grub_ohci_transfer): Likewise.
21096 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
21098 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
21099 return without a value. Fix inconsistent indentation.
21101 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
21102 match struct grub_fs.
21104 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
21105 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
21106 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
21107 * commands/lspci.c (grub_lspci_iter): Likewise.
21109 2009-04-16 Bean <bean123ch@gmail.com>
21111 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
21114 2009-04-15 Pavel Roskin <proski@gnu.org>
21116 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
21117 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
21118 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
21121 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
21123 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
21124 that no multiple data or metadata areas are supported and `Unknown
21127 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
21129 Move loader out of the kernel
21131 * kern/loader.c: moved to ...
21132 * commands/boot.c: ... moved here
21133 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
21134 * commands/boot.c (grub_cmd_boot): moved here. All users updated
21135 * include/grub/kernel.h (grub_machine_fini): export
21136 * include/grub/loader.h (grub_loader_is_loaded): update declaration
21137 (grub_loader_set): likewise
21138 (grub_loader_unset): likewise
21139 (grub_loader_boot): likewise
21140 * conf/common.rmk: new module boot.mod
21141 (pkglib_MODULES): add boot.mod
21142 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
21143 (grub_emu_SOURCES): likewise
21144 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
21145 (grub_emu_SOURCES): likewise
21146 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
21147 (grub_emu_SOURCES): likewise
21148 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
21149 (grub_emu_SOURCES): likewise
21150 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
21151 (grub_emu_SOURCES): likewise
21152 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
21153 (grub_emu_SOURCES): likewise
21154 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
21155 (grub_emu_SOURCES): likewise
21157 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
21159 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
21161 * kern/misc.c (grub_itoa): Removed function
21162 (grub_ltoa): likewise
21163 (grub_vsprintf): use grub_lltoa
21165 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
21169 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
21170 * conf/i386-coreboot.rmk: likewise
21171 * conf/i386-ieee1275.rmk: likewise
21172 * conf/powerpc-ieee1275.rmk: likewise
21174 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
21176 * INSTALL: Add that `./autogen.sh' needs to be run before
21179 2009-04-14 Bean <bean123ch@gmail.com>
21181 * Makefile.in (pkglib_DATA): Add handler.lst.
21182 (handler.lst): New rule.
21184 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
21185 * conf/i386-coreboot.rmk: Likewise.
21186 * conf/i386-ieee1275.rmk: Likewise.
21187 * conf/i386-efi.rmk: Likewise.
21188 * conf/x86_64-efi.rmk: Likewise.
21189 * conf/powerpc-ieee1275.rmk: Likewise.
21190 * conf/sparc64-ieee1275.rmk: Likewise.
21192 * genhandlerlist.sh: New file.
21194 * genmk.rb: Add rules to generate handler.lst.
21196 * include/grub/normal.h (grub_file_getline): New function definition.
21197 (read_handler_list): Likewise.
21198 (free_handler_list): Likewise.
21200 * include/grub/term.h (grub_term_register_input): Add name parameter
21201 for auto generation of handler.lst.
21202 (grub_term_register_output): Likewise.
21204 * normal/handler.c: New file.
21206 * normal/main.c (get_line): Renamed to grub_file_getline.
21207 (read_config_file): Use the newly renamed grub_file_getline.
21208 (read_command_list): Likewise.
21209 (read_fs_list): Likewise.
21210 (grub_normal_execute): Call read_handler_list to parse handler.lst.
21211 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
21213 * term/efi/console.c (grub_console_init): Add name parameter for auto
21214 generation of handler.lst.
21215 * term/gfxterm.c: Likewise.
21216 * term/i386/pc/at_keyboard.c: Likewise.
21217 * term/i386/pc/console.c: Likewise.
21218 * term/i386/pc/serial.c: Likewise.
21219 * term/i386/pc/vesafb.c: Likewise.
21220 * term/i386/pc/vga.c: Likewise.
21221 * term/i386/pc/vga_text.c: Likewise.
21222 * term/ieee1275/ofconsole.c: Likewise.
21223 * term/usb_keyboard.c: Likewise.
21225 2009-04-14 Bean <bean123ch@gmail.com>
21227 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
21228 properly with null character.
21230 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
21232 * configure: Remove.
21233 * config.h.in: Likewise.
21234 * stamp-h.in: Likewise.
21235 * DISTLIST: Likewise.
21236 * conf/common.mk: Likewise.
21237 * conf/i386-coreboot.mk: Likewise.
21238 * conf/i386-efi.mk: Likewise.
21239 * conf/i386-ieee1275.mk: Likewise.
21240 * conf/i386.mk: Likewise.
21241 * conf/i386-pc.mk: Likewise.
21242 * conf/powerpc-ieee1275.mk: Likewise.
21243 * conf/sparc64-ieee1275.mk: Likewise.
21244 * conf/x86_64-efi.mk: Likewise.
21246 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
21249 2009-04-14 John Stanley <jpsinthemix@verizon.net>
21250 David S. Miller <davem@davemloft.net>
21252 * util/hostdisk.c (make_device_name): Fix buffer length
21255 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
21257 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
21258 <sys/param.h> and <sys/sysctl.h>.
21259 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
21260 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
21261 opening the device and reset them afterwards.
21263 2009-04-13 Pavel Roskin <proski@gnu.org>
21265 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
21266 Reported by John Stanley <jpsinthemix@verizon.net>
21268 2009-04-13 Robert Millan <rmh@aybabtu.com>
21270 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
21271 that name for menuentries when appropriate.
21273 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
21275 * util/grub.d/10_freebsd.in: Add a missing `fi'.
21277 2009-04-13 Robert Millan <rmh@aybabtu.com>
21279 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
21280 to Linux, simply abort telling the user it's no longer supported.
21282 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
21284 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
21285 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
21286 `freebsd_loadenv' only when devices.hints exist.
21288 2009-04-13 Pavel Roskin <proski@gnu.org>
21290 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
21292 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
21294 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
21296 (grub_drive): Likewise.
21298 2009-04-13 David S. Miller <davem@davemloft.net>
21300 * kern/sparc64/ieee1275/ieee1275.c: New file.
21301 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
21302 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
21303 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
21304 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
21305 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
21306 grub_ieee1275_alloc_physmem): Declare new exported functions.
21308 * include/grub/sparc64/ieee1275/loader.h: New file.
21309 * include/grub/sparc64/ieee1275/memory.h: Likewise.
21310 * include/grub/sparc64/kernel.h: Likewise.
21311 * loader/sparc64/ieee1275/linux.c: Likewise.
21313 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
21314 (grub_fstest_SOURCES): Likewise.
21316 * util/hostdisk.c (make_device_name): Do not make any assumptions
21317 about the length of drive names.
21319 * kern/dl.c (grub_dl_load_file): Close file immediately when
21320 we are done using it.
21322 2009-04-12 David S. Miller <davem@davemloft.net>
21324 * kern/misc.c (grub_ltoa): Fix cast when handling negative
21325 values. Noticed by Pavel Roskin.
21327 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
21330 * genmk.rb: Add more flexible image type specification, also
21331 pass --strip-unneeded to objcopy.
21332 * conf/i386-pc.rmk: Use *_FORMAT.
21333 * conf/i386-pc.mk: Rebuilt.
21335 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
21336 (OFDISK_HASH_SZ): Define.
21337 (ofdisk_hash): New hash table.
21338 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
21339 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
21340 instead of device phandle which is not unique.
21342 * kern/sparc64/ieee1275/init.c: Delete, replace with...
21343 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
21344 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
21345 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
21346 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
21347 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
21348 GRUB_KERNEL_MACHINE_DATA_END): Define.
21349 (grub_kernel_image_size, grub_total_module_size): Declare.
21351 2009-04-12 Pavel Roskin <proski@gnu.org>
21353 * configure.ac: Change the logic when we check for target tools.
21354 Do it when the target is specified and it's different from the
21355 specified value of the host.
21357 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
21359 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
21360 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
21361 GNU/kFreeBSD. Check if a device is a character device. Use
21362 DIOCGMEDIASIZE to get the size.
21363 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
21364 support for GNU/kFreeBSD.
21365 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
21366 is a character device instead of a block device. Add support for
21367 FreeBSD device names.
21369 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
21370 is a character device instead of a block device.
21372 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
21373 is a character device instead of a block device.
21375 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
21377 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
21378 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
21379 FreeBSD. Check if a device is a character device. Use
21380 DIOCGMEDIASIZE to get the size.
21381 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
21382 support for FreeBSD.
21383 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
21384 is a character device instead of a block device. Add support for
21385 FreeBSD device names.
21387 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
21388 a character device instead of a block device.
21389 (grub_util_check_char_device): New function.
21391 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
21392 a character device instead of a block device.
21394 * include/grub/util/getroot.h (grub_util_check_char_device): New
21397 2009-04-11 David S. Miller <davem@davemloft.net>
21399 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
21401 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
21402 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
21403 function, if present.
21404 (__bswapdi2): Likewise.
21406 * include/grub/sparc64/ieee1275/boot.h: New file.
21407 * boot/sparc64/ieee1275/boot.S: Likewise.
21408 * boot/sparc64/ieee1275/diskboot.S: Likewise.
21410 * kern/misc.c (grub_ltoa): New function.
21411 (grub_vsprintf): Use it to format 'long' integers.
21413 2009-04-10 David S. Miller <davem@davemloft.net>
21415 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
21416 slots are of type grub_ieee1275_cell_t.
21417 (grub_nand_read): Likewise.
21418 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
21419 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
21420 macros are used to compare values in arg/ret block of the call.
21421 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21422 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
21423 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
21424 grub_ieee1275_instance_to_path, grub_ieee1275_write,
21425 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
21426 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
21427 grub_ieee1275_close, grub_ieee1275_set_property,
21428 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
21429 grub_ieee1275_cell_t.
21430 * kern/ieee1275/openfw.c (grub_map): Likewise.
21431 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
21432 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
21434 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
21435 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
21436 (grub_devalias_iterate): Likewise.
21438 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21442 * fs/ufs.c (INODE_NBLOCKS): new definition
21443 (struct grub_ufs_dirent): added fields for non-BSD dirents
21444 (grub_ufs_get_file_block): fixed double indirect handling
21445 (grub_ufs_lookup_symlink): use more robust way to determine whether
21447 (grub_ufs_find_file): support for non-BSD dirents
21448 (grub_ufs_dir): support for non-BSD dirents
21450 2009-04-10 Bean <bean123ch@gnail.com>
21452 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
21453 attribute, otherwise the size would be wrong for i386 platform.
21455 * include/grub/pci.h (grub_pci_read_word): New inline function.
21456 (grub_pci_read_byte): Likewise.
21457 (grub_pci_write): Likewise.
21458 (grub_pci_write_word): Likewise.
21459 (grub_pci_write_byte): Likewise.
21461 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
21463 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
21464 (find_framebuf): Scan pci to locate the frame buffer address.
21466 * commands/efi/fixvideo.c: New file.
21468 * commands/efi/loadbios.c: Likewise.
21470 * commands/memrw.c: Likewise.
21472 * util/grub-dumpbios.in: Likewise.
21474 * conf/common.rmk (grub-dumpbios): New utility.
21475 (pkglib_MODULES): New module memrw.mod.
21476 (memrw_mod_SOURCE): New macro.
21477 (memrw_mod_CFLAGS): Likewise.
21478 (memrw_mod_LDFLAGS): Likewise.
21480 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
21482 (loadbios_mod_SOURCE): New macro.
21483 (loadbios_mod_CFLAGS): Likewise.
21484 (loadbios_mod_LDFLAGS): Likewise.
21485 (fixvideo_mod_SOURCE): Likewise.
21486 (fixvideo_mod_CFLAGS): Likewise.
21487 (fixvideo_mod_LDFLAGS): Likewise.
21489 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
21491 (loadbios_mod_SOURCE): New macro.
21492 (loadbios_mod_CFLAGS): Likewise.
21493 (loadbios_mod_LDFLAGS): Likewise.
21494 (fixvideo_mod_SOURCE): Likewise.
21495 (fixvideo_mod_CFLAGS): Likewise.
21496 (fixvideo_mod_LDFLAGS): Likewise.
21498 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
21500 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
21502 2009-04-07 David S. Miller <davem@davemloft.net>
21504 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
21505 support for R_SPARC_OLO10 relocations. Fix compile warning for
21506 R_SPARC_WDISP30 case.
21507 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
21509 2009-04-06 Pavel Roskin <proski@gnu.org>
21511 * include/grub/misc.h (ARRAY_SIZE): New macro.
21512 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
21514 * loader/i386/linux.c (allocate_pages): Use free_pages().
21515 (grub_linux_unload): Don't use free_pages().
21516 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
21517 wrong index. Treat all other modes as text modes.
21518 (grub_cmd_linux): Initialize vid_mode unconditionally to
21519 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
21521 * commands/help.c (print_command_help): Use cmd->prio, not
21522 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
21524 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
21528 * parttool/pcpart.c: new file
21529 * commands/parttool.c: likewise
21530 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
21531 (parttool_mod_SOURCES): new variable
21532 (parttool_mod_CFLAGS): likewise
21533 (parttool_mod_LDFLAGS): likewise
21534 (pcpart_mod_SOURCES): likewise
21535 (pcpart_mod_CFLAGS): likewise
21536 (pcpart_mod_LDFLAGS): likewise
21537 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
21538 and parttool/pcpart.c
21539 * conf/i386-efi.rmk: likewise
21540 * conf/i386-ieee1275.rmk: likewise
21541 * conf/i386-pc.rmk: likewise
21542 * conf/powerpc-ieee1275.rmk: likewise
21543 * conf/sparc64-ieee1275.rmk: likewise
21544 * conf/x86_64-ieee1275.rmk: likewise
21546 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21548 Support for mtime and further expandability of dir command
21550 * include/grub/lib/datetime.h: moved to ...
21551 * include/grub/datetime.h: ... moved here and added
21552 declaration of grub_unixtime2datetime. All users updated
21553 * include/grub/fs.h: new syntax for dir and mtime functions in
21555 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
21556 and GRUB_FSHELP_FLAGS_MASK
21557 * commands/ls.c (grub_ls_list_files): Write mtime in long format
21558 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
21559 (grub_ext2_mtime): new function
21560 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
21561 (grub_hfsplus_mtime): new function
21562 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
21563 (GRUB_UFS_ATTR_FILE): likewise
21564 (GRUB_UFS_ATTR_LNK): likewise
21565 (struct grub_ufs_sblock): new fields mtime
21566 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
21568 (grub_ufs_dir): mtime support
21569 (grub_ufs_mtime): new function
21570 * fs/affs.c (grub_affs_dir): use new dir syntax
21571 * fs/afs.c (grub_afs_dir): likewise
21572 * fs/cpio.c (grub_cpio_dir): likewise
21573 * fs/fat.c (grub_fat_find_dir): likewise
21574 * fs/hfs.c (grub_hfs_dir): likewise
21575 * fs/iso9660.c (grub_iso9660_dir): likewise
21576 * fs/jfs.c (grub_jfs_dir): likewise
21577 * fs/minix.c (grub_minix_dir): likewise
21578 * fs/ntfs.c (grub_ntfs_dir): likewise
21579 * fs/reiserfs.c (grub_reiserfs_dir): likewise
21580 * fs/sfs.c (grub_sfs_dir): likewise
21581 * fs/xfs.c (grub_xfs_dir): likewise
21582 * util/hostfs.c (grub_hostfs_dir): likewise
21583 * lib/datetime.c: moved to ...
21584 * normal/datetime.c: ... moved here
21585 (grub_unixtime2datetime): new function
21586 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
21587 * normal/completion.c (iterate_dir): use new dir syntax
21588 * normal/misc.c (grub_normal_print_device_info): tell the
21589 last modification time of a volume
21590 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
21591 * conf/common.rmk: added lib/datetime.c to ls.mod
21592 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
21593 (normal_mod_SOURCES): likewise
21594 (datetime_mod_SOURCES): Removed lib/datetime.c
21595 * conf/i386-efi.rmk: likewise
21596 * conf/i386-ieee1275.rmk: likewise
21597 * conf/i386-pc.rmk: likewise
21598 * conf/powerpc-ieee1275.rmk: likewise
21599 * conf/sparc64-ieee1275.rmk: likewise
21600 * conf/x86_64-efi.rmk: likewise
21602 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21604 Trim trailing spaces in FAT label and support mtools-like labels
21606 * fs/fat.c (grub_fat_iterate_dir): New function based
21607 on grub_fat_find_dir
21608 (grub_fat_find_dir): use grub_fat_iterate_dir
21609 (grub_fat_label): likewise
21611 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
21613 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
21615 remove extraneous kernel_elf_HEADERS
21617 2009-04-04 Bean <bean123ch@gnail.com>
21619 * include/grub/util/misc.h: Add dummy function fsync for mingw.
21621 * util/misc.c: Likewise.
21623 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
21625 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
21626 instead of grub_printf.
21628 2009-04-03 Robert Millan <rmh@aybabtu.com>
21630 * loader/i386/linux.c (grub_linux_setup_video): Fill
21631 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
21632 values from `mode info' structure instead of hardcoded
21635 2009-04-01 Pavel Roskin <proski@gnu.org>
21637 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
21639 * genmk.rb: Likewise.
21640 * configure.ac: Likewise.
21642 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
21644 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
21645 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
21647 2009-04-01 David S. Miller <davem@davemloft.net>
21649 * normal/sparc64/setjmp.S: Fix setjmp implementation.
21650 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
21651 (grub_setjmp): Mark with 'returns_twice' attribute.
21652 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
21653 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
21654 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
21656 2009-04-01 Robert Millan <rmh@aybabtu.com>
21658 Reapply fix from 2008-07-28 which was accidentally reverted; also
21659 perform the same fix to a similar check in same function.
21661 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
21662 with the same number are found, just use issue a warning with
21663 grub_dprintf(), as this error has been reported to be non-fatal.
21665 2009-03-31 Pavel Roskin <proski@gnu.org>
21667 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
21668 for cross-compilation.
21670 2009-03-30 Robert Millan <rmh@aybabtu.com>
21672 Fix i386-ieee1275 build.
21674 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
21675 Remove declaration.
21677 2009-03-30 Pavel Roskin <proski@gnu.org>
21679 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
21680 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
21681 zero-terminated, rely only on the strlen value. Fix comparison
21682 of strings differing in length.
21684 2009-03-30 Robert Millan <rmh@aybabtu.com>
21686 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
21687 checking for abi version. Improve error messages on BIOS to notify
21688 user about `linux16' command.
21690 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21694 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
21695 in case of collision
21696 * disk/scsi.c (grub_scsi_open): free scsi in case of error
21698 2009-03-29 Robert Millan <rmh@aybabtu.com>
21700 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
21701 set `vid_mode' accordingly.
21702 (grub_linux_boot): Process `vid_mode' and set video mode.
21704 2009-03-29 Robert Millan <rmh@aybabtu.com>
21706 * util/grub.d/10_linux.in (linux_entry): New function.
21707 Factorize generation of Linux boot entries.
21709 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
21711 Make the format of Environment Block plain text. The boot loader
21712 part is not tested well yet.
21714 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
21716 (envblk): Likewise.
21717 (usage): Remove "info" and "clear". Add "unset". Update the
21718 description of "set", as this does not delete variables any
21720 (create_envblk_file): Complete rewrite.
21721 (open_envblk_file): Likewise.
21722 (cmd_info): Removed.
21723 (cmd_list): Likewise.
21724 (cmd_set): Likewise.
21725 (cmd_clear): Likewise.
21726 (list_variables): New function.
21727 (write_envblk): Likewise.
21728 (set_variables): Likewise.
21729 (unset_variables): Likewise.
21730 (main): Complete rewrite.
21732 * commands/loadenv.c (buffer): Removed.
21733 (envblk): Likewise.
21734 (open_envblk_file): New function.
21735 (read_envblk_file): Complete rewrite.
21736 (grub_cmd_load_env): Likewise.
21737 (grub_cmd_list_env): Likewise.
21738 (struct blocklist): New struct.
21739 (free_blocklists): New function.
21740 (check_blocklists): Likewise.
21741 (write_blocklists): Likewise.
21742 (grub_cmd_save_env): Complete rewrite.
21744 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
21745 a plain text signature.
21746 (GRUB_ENVBLK_MAXLEN): Removed.
21747 (struct grub_envblk): Complete rewrite.
21748 (grub_envblk_find): Removed.
21749 (grub_envblk_insert): Likewise.
21750 (grub_envblk_open): New prototype.
21751 (grub_envblk_set): Likewise.
21752 (grub_envblk_delete): Put const to VALUE.
21753 (grub_envblk_iterate): Put const to NAME and VALUE.
21754 (grub_envblk_close): New prototype.
21755 (grub_envblk_buffer): New inline function.
21756 (grub_envblk_size): Likewise.
21758 * lib/envblk.c: Include grub/mm.h.
21759 (grub_env_find): Removed.
21760 (grub_envblk_open): New function.
21761 (grub_envblk_close): Likewise.
21762 (escaped_value_len): Likewise.
21763 (find_next_line): Likewise.
21764 (grub_envblk_insert): Removed.
21765 (grub_envblk_set): New function.
21766 (grub_envblk_delete): Complete rewrite.
21767 (grub_envblk_iterate): Likewise.
21769 2009-03-28 Robert Millan <rmh@aybabtu.com>
21771 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
21772 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
21773 variables. Use 16-bit loader.
21774 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
21776 * kern/i386/loader.S (grub_linux_boot): Rename to ...
21777 (grub_linux16_boot): ... this. Update all users.
21778 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
21779 (grub_linux_boot): ... this. Update all users.
21781 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
21782 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
21783 commands to `linux16' and `initrd16'.
21784 (GRUB_MOD_FINI(linux)): Rename to ...
21785 (GRUB_MOD_FINI(linux16)): ... this.
21787 2009-03-24 Pavel Roskin <proski@gnu.org>
21789 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
21790 not just for compilation.
21792 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
21794 Move multiboot helper out of kernel
21796 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
21797 `loader/i386/multiboot_helper.S'.
21798 * conf/i386-coreboot.rmk: Likewise
21799 * conf/i386-ieee1275.rmk: Likewise
21801 * kern/i386/loader.S: Move multiboot helpers from here...
21802 * loader/i386/multiboot_helper.S: ...moved here
21803 * include/grub/i386/loader.h: Move declarations of multiboot
21804 helpers from here...
21805 * include/grub/i386/multiboot.h: ...moved here
21806 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
21808 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21810 * kern/env.c (grub_env_context_open): Added an argument to specify
21811 whether a new context inherits exported variables from current
21812 one. This is useful when making a sandbox to interpret a config
21814 All callers updated.
21816 * include/grub/env.h (grub_env_context_open): Updated the prototype.
21818 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21820 * kern/env.c (grub_env_context_close): Fix memory leaks.
21822 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21824 * normal/main.c (grub_normal_execute): Added an argument
21825 BATCH to specify if an interactive interface should be provided
21826 after reading a config file.
21827 All callers updated.
21828 (read_command_list): Prevent being executed twice.
21829 (read_fs_list): Likewise.
21831 * include/grub/normal.h (grub_normal_execute): Updated the
21834 2009-03-22 Pavel Roskin <proski@gno.org>
21836 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
21838 * kern/i386/pc/startup.S: Likewise.
21839 * kern/i386/efi/startup.S: Likewise.
21840 * kern/i386/ieee1275/startup.S: Likewise.
21841 * kern/i386/coreboot/startup.S: Likewise.
21842 * kern/x86_64/efi/startup.S: Likewise.
21844 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
21845 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
21846 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
21848 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
21850 Bugfixes in multiboot for bugs uncovered by solaris kernel.
21852 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
21854 Use vaddr of correct segment for entry_point.
21856 2009-03-21 Bean <bean123ch@gmail.com>
21858 * commands/blocklist.c: Add include file <grub/command.h>, remove
21859 <grub/normal.h> and <grub/arg.h>.
21860 (grub_cmd_blocklist): Use the new command interface.
21861 (GRUB_MOD_INIT): Likewise.
21862 (GRUB_MOD_FINI): Likewise.
21863 * commands/boot.c: Likewise.
21864 * commands/cat.c: Likewise.
21865 * commands/cmp.c: Likewise.
21866 * commands/configfile.c: Likewise.
21867 * commands/crc.c: Likewise.
21868 * commands/echo.c: Likewise.
21869 * commands/halt.c: Likewise.
21870 * commands/handler.c: Likewise.
21871 * commands/hdparm.c: Likewise.
21872 * commands/help.c: Likewise.
21873 * commands/hexdump.c: Likewise.
21874 * commands/loadenv.c: Likewise.
21875 * commands/ls.c: Likewise.
21876 * commands/lsmmap.c: Likewise.
21877 * commands/lspci.c: Likewise.
21878 * commands/loadenv.c: Likewise.
21879 * commands/read.c: Likewise.
21880 * commands/reboot.c: Likewise.
21881 * commands/search.c: Likewise.
21882 * commands/sleep.c: Likewise.
21883 * commands/test.c: Likewise.
21884 * commands/usbtest.c: Likewise.
21885 * commands/videotest.c: Likewise.
21886 * commands/i386/cpuid.c: Likewise.
21887 * commands/i386/pc/halt.c: Likewise.
21888 * commands/i386/pc/play.c: Likewise.
21889 * commands/i386/pc/pxecmd.c: Likewise.
21890 * commands/i386/pc/vbeinfo.c: Likewise.
21891 * commands/i386/pc/vbetest.c: Likewise.
21892 * commands/ieee1275/suspend.c: Likewise.
21893 * disk/loopback.c: Likewise.
21894 * font/font_cmd.c: Likewise.
21895 * hello/hello.c: Likewise.
21896 * loader/efi/appleloader.c: Likewise.
21897 * loader/efi/chainloader.c: Likewise.
21898 * loader/i386/bsd.c: Likewise.
21899 * loader/i386/efi/linux.c: Likewise.
21900 * loader/i386/ieee1275/linux.c: Likewise.
21901 * loader/i386/linux.c: Likewise.
21902 * loader/i386/pc/chainloader.c: Likewise.
21903 * loader/i386/pc/linux.c: Likewise.
21904 * loader/powerpc/ieee1275/linux.c: Likewise.
21905 * loader/multiboot_loader.c: Likewise.
21906 * term/gfxterm.c: Likewise.
21907 * term/i386/pc/serial.c: Likewise.
21908 * term/terminfo.c: Likewise.
21910 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
21911 * term/i386/pc/vga.c: Likewise.
21912 * video/readers/jpeg.c: Likewise.
21913 * video/readers/png.c: Likewise.
21914 * video/readers/tga.c: Likewise.
21916 * util/grub-fstest (cmd_loopback): Removed.
21917 (cmd_blocklist): Likewise.
21918 (cmd_ls): Likewise.
21919 (grub_register_command): Likewise.
21920 (grub_unregister_command): Likewise.
21921 (execute_command): Use grub_command_find to locate command and execute
21924 * include/grub/efi/chainloader.h: Removed.
21925 * loader/efi/chainloader_normal.c: Likewise.
21926 * loader/i386/bsd_normal.c: Likewise.
21927 * loader/i386/pc/chainloader_normal.c: Likewise.
21928 * loader/i386/pc/multiboot_normal.c: Likewise.
21929 * loader/linux_normal.c: Likewise.
21930 * loader/multiboot_loader_normal.c: Likewise.
21931 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
21933 * gencmdlist.sh: Scan new registration command grub_register_extcmd
21934 and grub_register_command_p1.
21936 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
21937 kern/command.c, lib/arg.c and commands/extcmd.c.
21938 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
21939 (minicmd_mod_SOURCES): New variable.
21940 (minicmd_mod_CFLAGS): Likewise.
21941 (minicmd_mod_LDFLAGS): Likewise.
21942 (extcmd_mod_SOURCES): Likewise.
21943 (extcmd_mod_CFLAGS): Likewise.
21944 (extcmd_mod_LDFLAGS): Likewise.
21945 (boot_mod_SOURCES): Removed.
21946 (boot_mod_CFLAGS): Likewise.
21947 (boot_mod_LDFLAGS): Likewise.
21949 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
21951 (kernel_img_HEADERS): Add command.h.
21952 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
21953 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
21955 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
21956 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
21957 remove the corresponding normal mode command.
21958 (normal_mod_SOURCES): Remove normal/arg.c.
21959 * conf/i386-coreboot.rmk: Likewise.
21960 * conf/i386-efi.rmk: Likewise.
21961 * conf/i386-ieee1275.rmk: Likewise.
21962 * conf/powerpc-ieee1275.rmk: Likewise.
21963 * conf/x86_64-efi.rmk: Likewise.
21965 * include/grub/arg.h: Move from here ...
21966 * include/grub/lib/arg.h: ... to here.
21968 * normal/arg.c: Move from here ...
21969 * lib/arg.c: ... to here.
21971 * commands/extcmd.c: New file.
21972 * commands/minicmd.c: Likewise.
21973 * include/grub/command.h: Likewise.
21974 * include/grub/extcmd.h: Likewise.
21975 * kern/command.c: Likewise.
21976 * kern/corecmd.c: Likewise.
21978 * kern/list.c (grub_list_iterate): Return int instead of void.
21979 (grub_list_insert): New function.
21980 (grub_prio_list_insert): Likewise.
21982 * kern/rescue.c (grub_rescue_command): Removed.
21983 (grub_rescue_command_list): Likewise.
21984 (grub_rescue_register_command): Likewise.
21985 (grub_rescue_unregister_command): Likewise.
21986 (grub_rescue_cmd_boot): Move to minicmd.c
21987 (grub_rescue_cmd_help): Likewise.
21988 (grub_rescue_cmd_info): Likewise.
21989 (grub_rescue_cmd_boot): Likewise.
21990 (grub_rescue_cmd_testload): Likewise.
21991 (grub_rescue_cmd_dump): Likewise.
21992 (grub_rescue_cmd_rmmod): Likewise.
21993 (grub_rescue_cmd_lsmod): Likewise.
21994 (grub_rescue_cmd_exit): Likewise.
21995 (grub_rescue_print_devices): Moved to corecmd.c.
21996 (grub_rescue_print_files): Likewise.
21997 (grub_rescue_cmd_ls): Likewise.
21998 (grub_rescue_cmd_insmod): Likewise.
21999 (grub_rescue_cmd_set): Likewise.
22000 (grub_rescue_cmd_unset): Likewise.
22001 (attempt_normal_mode): Use grub_command_find to get normal module.
22002 (grub_enter_rescue_mode): Use grub_register_core_commands to register
22003 commands, remove grub_rescue_register_command calls.
22005 * normal/command.c (grub_register_command): Removed.
22006 (grub_unregister_command): Likewise.
22007 (grub_command_find): Likewise.
22008 (grub_iterate_commands): Likewise.
22009 (rescue_command): Likewise.
22010 (export_command): Moved to corecmd.c.
22011 (set_command): Removed.
22012 (unset_command): Likewise.
22013 (insmod_command): Likewise.
22014 (rmmod_command): Likewise.
22015 (lsmod_command): Likewise.
22016 (grub_command_init): Likewise.
22018 * normal/completion.c (iterate_command): Use cmd->prio to check for
22020 (complete_arguments): Use grub_extcmd_t structure to find options.
22021 (grub_normal_do_completion): Change function grub_iterate_commands to
22022 grub_command_iterate.
22024 * normal/execute.c (grub_script_execute_cmd): No need to parse
22027 * normal/main.c (grub_dyncmd_dispatcher): New function.
22028 (read_command_list): Register unload commands as dyncmd.
22029 (grub_cmd_normal): Use new command interface, register rescue,
22030 unregister normal at entry, register normal, unregister rescue at exit.
22032 * include/grub/list.h (grub_list_test_t): New type.
22033 (grub_list_iterate): Return int instead of void.
22034 (grub_list_insert): New function.
22035 (GRUB_AS_NAMED_LIST_P): New macro.
22036 (GRUB_AS_PRIO_LIST): Likewise.
22037 (GRUB_AS_PRIO_LIST_P): Likewise.
22038 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
22039 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
22040 (grub_prio_list): New structure.
22041 (grub_prio_list_insert): New function.
22042 (grub_prio_list_remove): New inline function.
22044 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
22045 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
22046 (GRUB_COMMAND_FLAG_MENU): Likewise.
22047 (GRUB_COMMAND_FLAG_BOTH): Likewise.
22048 (GRUB_COMMAND_FLAG_TITLE): Likewise.
22049 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
22050 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
22051 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
22052 (grub_command): Likewise.
22053 (grub_register_command): Likewise.
22054 (grub_command_find): Likewise.
22055 (grub_iterate_commands): Likewise.
22056 (grub_command_init): Likewise.
22057 (grub_arg_parse): Likewise.
22058 (grub_arg_show_help): Likewise.
22060 * include/grub/rescue.h (grub_rescue_register_command): Removed.
22061 (grub_rescue_unregister_command): Likewise.
22063 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
22064 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
22065 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
22067 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
22068 grub_rescue_cmd_initrd.
22069 * include/grub/i386/loader.h: Likewise.
22070 * include/grub/x86_64/loader.h: Likewise.
22072 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
22074 2009-03-21 Bean <bean123ch@gmail.com>
22076 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
22077 instead of stat in mingw environment.
22079 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
22081 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
22083 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
22086 2009-03-21 Bean <bean123ch@gmail.com>
22088 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
22089 out of range error.
22091 2009-03-18 Michel Dänzer <michel@daenzer.net>
22093 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
22094 checking inode flags for EXT4_EXTENTS_FLAG.
22096 2009-03-18 Robert Millan <rmh@aybabtu.com>
22098 * loader/i386/linux.c: Include `<grub/video.h>' and
22099 `<grub/i386/pc/vbe.h>'..
22100 (grub_linux_setup_video): New function. Loosely based on the EFI one.
22101 (grub_linux32_boot): Attempt to configure video settings with
22102 grub_linux_setup_video().
22103 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
22104 to avoid grub_console_fini() which would step out of graphical mode
22107 2009-03-14 Robert Millan <rmh@aybabtu.com>
22109 Fix build on powerpc.
22110 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
22112 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
22114 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
22115 background image command.
22117 2009-03-12 Colin D Bennett <colin@gibibit.com>
22119 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
22120 (grub_gfxterm_putchar): Extract pairs of identical calls to
22121 draw_cursor out of conditional blocks.
22123 2009-03-11 Pavel Roskin <proski@gnu.org>
22125 * fs/hfs.c (grub_hfs_strncasecmp): New function.
22126 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
22128 2009-03-11 Robert Millan <rmh@aybabtu.com>
22130 * loader/i386/multiboot_elfxx.c
22131 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
22133 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
22135 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
22138 2009-03-11 Robert Millan <rmh@aybabtu.com>
22140 * loader/i386/multiboot.c (code_size): New variable.
22141 (grub_multiboot): Define offsets by adding to `code_size' rather
22142 than subtracting from `grub_multiboot_payload_size'. Provide
22143 4-byte alignment to MBI and others by increasing
22144 `boot_loader_name_length' appropriately.
22146 * loader/i386/multiboot_elfxx.c
22147 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
22149 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
22151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
22154 2009-03-08 Robert Millan <rmh@aybabtu.com>
22156 Make loader/i386/linux.c usable on i386-pc again.
22158 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
22160 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
22163 2009-03-07 Bean <bean123ch@gmail.com>
22165 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
22168 2009-03-06 Robert Millan <rmh@aybabtu.com>
22170 Fix display issue on terminals with screen size other than 80x25
22171 (e.g. gfxterm with resolution higher than 640x480).
22173 * normal/main.c (grub_normal_init_page): Display title text in a
22174 position relative to the center of the terminal instead of relying
22175 on a hardcoded offset.
22177 2009-03-04 Robert Millan <rmh@aybabtu.com>
22179 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
22182 * Makefile.in (host_kernel): New variable.
22183 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
22184 scripts instead of just the windows one.
22185 * configure.ac: Initialize and AC_SUBST `host_kernel'.
22187 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
22189 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
22191 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22192 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22193 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22194 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22195 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22196 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22198 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
22200 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
22201 or if there's no space for the disk label and print the partition number on a
22204 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
22206 * util/misc.c: Include <time.h>.
22207 (grub_millisleep): New function.
22209 2009-03-04 Bean <bean123ch@gmail.com>
22211 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
22212 another option -mno-red-zone.
22214 * commands/handler.c: Change module description.
22216 * kern/handler.c: Add missing space at the end of description line.
22218 * kern/list.c: Likewise.
22220 2009-03-03 Robert Millan <rmh@aybabtu.com>
22222 Move more components to the relocation area, and fix mbi pointer
22223 handling to use the destination rather than the origin (thanks to
22224 Vladimir Serbinenko for spotting).
22226 * loader/i386/multiboot.c (mbi_dest): New variable.
22227 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
22228 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
22231 2009-03-01 Bean <bean123ch@gmail.com>
22233 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
22234 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
22235 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
22236 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
22238 * loader/i386/efi/linux.c (acpi_guid): New variable.
22239 (acpi_guid): Likewise.
22240 (EBDA_SEG_ADDR): New constant.
22241 (LOW_MEM_ADDR): Likewise.
22242 (FAKE_EBDA_SEG): Likewise.
22243 (fake_bios_data): New function.
22244 (grub_linux_boot): Call fake_bios_data.
22246 2009-03-01 Bean <bean123ch@gmail.com>
22248 * commands/terminal.c: Removed.
22250 * commands/handler.c: New file.
22252 * include/grub/list.h: Likewise.
22254 * include/grub/handler.h: Likewise.
22256 * kern/list.c: Likewise.
22258 * kern/handler.c: Likewise.
22260 * kern/term.h: Include header file <grub/handler.h>.
22261 (grub_term_input): Move next field to the beginning.
22262 (grub_term_output): Likewise.
22263 (grub_term_input_class): New variable.
22264 (grub_term_output_class): Likewise.
22265 (grub_term_register_input): Changed to inline function.
22266 (grub_term_register_output): Likewise.
22267 (grub_term_unregister_input): Likewise.
22268 (grub_term_unregister_output): Likewise.
22269 (grub_term_set_current_input): Likewise.
22270 (grub_term_set_current_output): Likewise.
22271 (grub_term_get_current_input): Likewise.
22272 (grub_term_get_current_output): Likewise.
22273 (grub_term_iterate_input): Removed.
22274 (grub_term_iterate_output): Likewise.
22276 * kern/term.c (grub_term_list_input): Removed.
22277 (grub_term_list_output): Likewise.
22278 (grub_term_input_class): New variable.
22279 (grub_term_output_class): Likewise.
22280 (grub_cur_term_input): Change variable as macro.
22281 (grub_cur_term_output): Likewise.
22282 (grub_term_register_input): Removed.
22283 (grub_term_register_output): Likewise.
22284 (grub_term_unregister_input): Likewise.
22285 (grub_term_unregister_output): Likewise.
22286 (grub_term_set_current_input): Likewise.
22287 (grub_term_set_current_output): Likewise.
22288 (grub_term_iterate_input): Likewise.
22289 (grub_term_iterate_output): Likewise.
22290 (grub_term_get_current_input): Likewise.
22291 (grub_term_get_current_output): Likewise.
22293 * util/grub-editenv.c: Include header file <grub/handler.h>.
22294 (grub_term_get_current_input): Removed.
22295 (grub_term_get_current_output): Likewise.
22296 (grub_term_input_class): New variable.
22297 (grub_term_output_class): Likewise.
22299 * util/grub-fstest.c (grub_term_get_current_input): Removed.
22300 (grub_term_get_current_output): Likewise.
22301 (grub_term_input_class): New variable.
22302 (grub_term_output_class): Likewise.
22304 * util/grub-probe.c (grub_term_get_current_input): Removed.
22305 (grub_term_get_current_output): Likewise.
22306 (grub_term_input_class): New variable.
22307 (grub_term_output_class): Likewise.
22309 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
22310 (grub_term_get_current_output): Likewise.
22311 (grub_term_input_class): New variable.
22312 (grub_term_output_class): Likewise.
22314 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
22315 (terminal_mod_SOURCES): Likewise.
22316 (terminal_mod_CFLAGS): Likewise.
22317 (terminal_mod_LDFLAGS): Likewise.
22319 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
22321 (kernel_img_SOURCES): Add list.c and handler.c.
22322 (kernel_img_HEADERS): Add list.h and handler.h.
22324 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
22326 (kernel_mod_SOURCES): Add list.c and handler.c.
22327 (kernel_mod_HEADERS): Add list.h and handler.h.
22329 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
22331 (kernel_elf_SOURCES): Add list.c and handler.c.
22332 (kernel_elf_HEADERS): Add list.h and handler.h.
22334 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
22336 (kernel_elf_SOURCES): Add list.c and handler.c.
22337 (kernel_elf_HEADERS): Add list.h and handler.h.
22339 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
22341 (kernel_mod_SOURCES): Add list.c and handler.c.
22342 (kernel_mod_HEADERS): Add list.h and handler.h.
22344 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
22346 (kernel_elf_SOURCES): Add list.c and handler.c.
22347 (kernel_elf_HEADERS): Add list.h and handler.h.
22349 2009-02-27 Robert Millan <rmh@aybabtu.com>
22351 Factorize elf32 / elf64 code in Multiboot loader. This will
22352 prevent it from getting out of sync again.
22354 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
22355 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
22356 grub_multiboot_load_elf64): Move from here ...
22357 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
22358 grub_multiboot_load_elf): ... to here (new file).
22360 2009-02-27 Robert Millan <rmh@aybabtu.com>
22362 * util/grub.d/10_linux.in: Rename "single-user mode" to
22365 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
22367 Don't leak in SCSI code.
22368 * disk/scsi.c (grub_scsi_close): free `scsi'.
22370 2009-02-27 Robert Millan <rmh@aybabtu.com>
22372 * loader/i386/pc/multiboot.c: Move from here ...
22373 * loader/i386/multiboot.c: ... to here. Update all users.
22375 2009-02-27 Robert Millan <rmh@aybabtu.com>
22377 Patch from Alexandre Bique <bique.alexandre@gmail.com>
22378 * util/i386/pc/grub-setup.c (setup): Fix directory path.
22380 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
22382 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
22385 2009-02-27 Robert Millan <rmh@aybabtu.com>
22387 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
22388 `0x' qualifier as 0 when base is specified as parameter).
22390 2009-02-24 Bean <bean123ch@gmail.com>
22392 * configure.ac: Check for -mcmodel=large in x86_64 target.
22394 * include/grub/efi/api.h (efi_call_10): New macro.
22395 (efi_wrap_10): New function.
22397 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
22398 (GRUB_PE32_REL_BASED_HIGH): Likewise.
22399 (GRUB_PE32_REL_BASED_LOW): Likewise.
22400 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
22401 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
22402 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
22403 (GRUB_PE32_REL_BASED_SECTION): Likewise.
22404 (GRUB_PE32_REL_BASED_REL): Likewise.
22405 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
22406 (GRUB_PE32_REL_BASED_DIR64): Likewise.
22407 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
22409 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
22412 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
22413 (efi_wrap_10): New function.
22415 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
22417 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
22418 MB/MBP model (NV chipset).
22419 (devdata_devs): Add devpath_5 to the list.
22421 * load/i386/efi/linux.c (video_base): Remove variable.
22422 (RGB_MASK): New macro.
22423 (RGB_MAGIC): Likewise.
22424 (LINE_MIN): Likewise.
22425 (LINE_MAX): Likewise.
22426 (FBTEST_STEP): Likewise.
22427 (FBTEST_COUNT): Likewise.
22428 (fb_list): New variable.
22429 (grub_find_video_card): Remove function.
22430 (find_framebuf): New function.
22431 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
22434 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
22435 problem for x86_64.
22437 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
22439 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
22441 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
22444 2009-02-22 Robert Millan <rmh@aybabtu.com>
22446 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
22447 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
22448 in our relocation, instead of using it directly from heap. Also
22449 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
22451 2009-02-21 Robert Millan <rmh@aybabtu.com>
22453 Implement USB keyboard support (based on patch by Marco Gerards)
22455 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
22456 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
22457 (usb_keyboard_mod_LDFLAGS): New variables.
22459 * term/usb_keyboard.c: New file.
22461 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22463 Corrected wrong declaration
22465 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
22467 2009-02-14 Christian Franke <franke@computer.org>
22469 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
22470 (grub_lspci_iter): Print class code and programming interface byte.
22472 2009-02-14 Christian Franke <franke@computer.org>
22474 * gendistlist.sh: Ignore `.svn' directories.
22476 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
22478 * fs/fat.c: Add 2009 to Copyright line.
22480 2009-02-14 Christian Franke <franke@computer.org>
22482 * commands/hdparm.c: New file. Provides `hdparm' command
22483 which sends ATA commands via grub_disk_ata_pass_through ().
22485 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
22487 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
22488 and <grub/cpu/io.h> to include/grub/ata.h.
22489 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
22490 (GRUB_CDROM_SECTOR_SIZE): Remove.
22491 (GRUB_ATA_*): Move to include/grub/ata.h.
22492 (GRUB_ATAPI_*): Likewise.
22493 (enum grub_ata_commands): Likewise.
22494 (enum grub_ata_timeout_milliseconds): Likewise.
22495 (struct grub_ata_device): Likewise.
22496 (grub_ata_regset): Likewise.
22497 (grub_ata_regget): Likewise.
22498 (grub_ata_regset2): Likewise.
22499 (grub_ata_regget2): Likewise.
22500 (grub_ata_check_ready): Likewise.
22501 (grub_ata_wait_not_busy): Remove static, exported in
22502 include/grub/ata.h.
22503 (grub_ata_wait_drq): Likewise.
22504 (grub_ata_pio_read): Likewise.
22506 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
22507 function for hdparm.mod.
22509 * include/grub/ata.h: New file, contains declarations from
22511 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
22513 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
22514 (grub_disk_ata_pass_through): New exported variable.
22516 * kern/disk.c (grub_disk_ata_pass_through): New variable.
22518 2009-02-13 Colin D Bennett <colin@gibibit.com>
22520 Support multiple fallback entries, and provide an API to support
22521 executing default+fallback menu entries. Renamed the `terminal' menu
22524 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
22525 variable declaration.
22526 (grub_menu_execute_callback): New structure declaration.
22527 (grub_menu_execute_callback_t): New typedef.
22528 (grub_menu_execute_with_fallback): New function declaration.
22529 (grub_menu_get_entry): Likewise.
22530 (grub_menu_get_timeout): Likewise.
22531 (grub_menu_set_timeout): Likewise.
22533 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
22535 * normal/menu.c (grub_wait_after_message): Moved to
22536 `normal/menu_text.c'.
22537 (draw_border): Likewise.
22538 (print_message): Likewise.
22539 (print_entry): Likewise.
22540 (print_entries): Likewise.
22541 (grub_menu_init_page): Likewise.
22542 (get_entry_number): Likewise.
22543 (print_timeout): Likewise.
22544 (run_menu): Likewise.
22545 (grub_menu_execute_entry): Likewise.
22546 (show_text_menu): Likewise.
22547 (get_and_remove_first_entry_number): New function.
22548 (grub_menu_execute_with_fallback): Likewise.
22549 (get_entry): Renamed to ...
22550 (grub_menu_get_entry): .. this and made it global.
22551 (get_timeout): Renamed to ...
22552 (grub_menu_get_timeout): ... this and made it global.
22553 (set_timeout): Renamed to ...
22554 (grub_menu_set_timeout): ... this and made it global.
22555 (grub_normal_terminal_menu_viewer): Renamed to ...
22556 (grub_normal_text_menu_viewer): ... this.
22558 * normal/menu_text.c: New file. Extracted text-menu-specific code
22559 from normal/menu.c.
22561 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
22562 (normal_mod_SOURCES): Likewise.
22564 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22565 (normal_mod_SOURCES): Likewise.
22567 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22568 (normal_mod_SOURCES): Likewise.
22570 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
22571 (normal_mod_SOURCES): Likewise.
22573 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22574 (normal_mod_SOURCES): Likewise.
22576 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22577 (normal_mod_SOURCES): Likewise.
22579 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22580 (normal_mod_SOURCES): Likewise.
22582 2009-02-11 Robert Millan <rmh@aybabtu.com>
22584 * util/grub.d/00_header.in: Update old reference to `font' command.
22586 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
22588 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
22590 Based on patch from Javier Martín.
22592 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
22594 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
22595 to avoid false positives with FAT.
22596 (grub_fstest_SOURCES): Likewise.
22597 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22598 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22599 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22600 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22601 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22602 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22604 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
22606 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
22607 bpb.version_specific.fat12_or_fat16.fstype and
22608 bpb.version_specific.fat32.fstype.
22610 2009-02-08 Robert Millan <rmh@aybabtu.com>
22612 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
22614 2009-02-08 Robert Millan <rmh@aybabtu.com>
22616 * Makefile.in (host_os, host_cpu): New variables.
22617 (target_os): Remove. Update all users.
22619 2009-02-08 Marco Gerards <marco@gnu.org>
22621 * Makefile.in (enable_grub_emu_usb): New variable.
22622 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
22623 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
22624 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
22625 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
22626 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
22627 `usbtest.mod' and `usbms.mod'.
22628 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
22629 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
22630 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
22631 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
22632 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
22635 * disk/usbms.c: New file.
22637 * include/grub/usb.h: Likewise.
22639 * include/grub/usbtrans.h: Likewise.
22641 * include/grub/usbdesc.h: Likewise.
22643 * bus/usb/usbtrans.c: Likewise.
22645 * bus/usb/ohci.c: Likewise.
22647 * bus/usb/uhci.c: Likewise.
22649 * bus/usb/usbhub.c: Likewise.
22651 * bus/usb/usb.c: Likewise.
22653 * commands/usbtest.c: Likewise.
22655 * util/usb.c: Likewise.
22657 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
22659 * configure.ac: Test for libusb presence.
22661 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
22663 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
22665 * kern/mm.c: Add more comments.
22667 2009-02-08 Robert Millan <rmh@aybabtu.com>
22669 Patch from Javier Martín.
22670 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
22671 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
22673 2009-02-08 Robert Millan <rmh@aybabtu.com>
22675 * fs/cpio.c: Split tar functionality to ...
22676 * fs/tar.c: ... here (new file). Update all users.
22678 2009-02-07 Robert Millan <rmh@aybabtu.com>
22680 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
22681 backward-incompatible features.
22683 Based on patch from Javier Martín, with some adjustments.
22685 2009-02-07 Michael Scherer <misc@mandriva.org>
22687 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
22689 2009-02-07 Robert Millan <rmh@aybabtu.com>
22691 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
22692 position of `disk/lvm.c' to ensure grub_init_all() always picks it
22693 after the RAID stuff.
22695 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
22697 Fixes problem when running vbetest command as reported by
22698 Vladimir Serbinenko <phcoder@gmail.com>.
22700 * (grub_vbe_set_video_mode): Fixed problem with text modes.
22702 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
22704 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
22705 /dev/md/NpN style mdraid devices.
22707 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
22709 * util/unifont2pff.rb: Remove.
22711 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
22713 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
22716 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
22718 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
22719 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22720 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22721 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22723 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22724 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22726 2009-02-02 Christian Franke <franke@computer.org>
22728 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
22730 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
22732 * INSTALL: Note that we now require at least autoconf 2.59 and
22733 that LZO is optional.
22735 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
22737 Base on patch on bug #24154 created by Tomas Tintera
22738 <trosos@seznam.cz>.
22740 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
22742 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
22744 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
22745 <bero@arklinux.org>.
22747 * normal/parser.y (script_init): Add missing semicolon.
22749 2009-01-31 Colin D Bennett <colin@gibibit.com>
22751 * normal/main.c: Add include to grub/menu_viewer.h.
22752 (free_menu_entry_classes): Added.
22753 (grub_normal_menu_addentry): Added class property handling.
22754 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
22755 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
22757 * normal/menu_viewer.c: New file.
22759 * normal/menu.c (run_menu_entry): Renamed to ...
22760 (grub_menu_execute_entry): ... this and made it as global.
22761 (grub_menu_run): Renamed to ...
22762 (show_text_menu): ... this and made it local.
22763 (show_text_menu): Adapt to new function names.
22764 (grub_normal_terminal_menu_viewer): New global variable.
22766 * include/grub/menu.h: New file.
22768 * include/grub/menu_viewer.h: New file.
22770 * include/grub/normal.h: Added include to grub/menu.h.
22771 (grub_menu_entry): Moved to include/grub/menu.h.
22772 (grub_menu_entry_t): Likewise.
22773 (grub_menu): Likewise.
22774 (grub_menu_t): Likewise.
22775 (grub_normal_terminal_menu_viewer): Added.
22776 (grub_menu_execute_entry): Likewise.
22777 (grub_menu_run): Removed.
22779 * DISTLIST: Added include/grub/menu.h.
22780 Added include/grub/menu_viewer.h.
22781 Added normal/menu_viewer.c.
22783 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
22785 * normal/execute.c (grub_script_execute_menuentry): Changed to use
22786 arglist for menutitle arguments.
22788 * normal/main.c (grub_normal_menu_addentry): Likewise.
22790 * normal/parser.y (menuentry): Likewise.
22792 * normal/script.c (grub_script_create_cmdmenu): Likewise.
22794 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
22795 (grub_script_create_cmdmenu): Likewise.
22797 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
22799 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
22802 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
22804 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
22806 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
22808 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22810 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22812 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22814 2009-01-30 Christian Franke <franke@computer.org>
22816 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
22817 in option help text.
22819 2009-01-27 Pavel Roskin <proski@gnu.org>
22821 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
22823 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
22825 * commands/lsmmap.c: Add include to grub/machine/memory.h.
22827 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
22829 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
22830 unregister function.
22832 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
22834 * disk/scsi.c (grub_scsi_read): Fix sign problem.
22836 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
22838 * util/grub-mkfont.c (usage): Fix typo.
22840 * util/elf/grub-mkimage.c (load_modules): Fix warning.
22842 2009-01-26 Daniel Mierswa <impulze@impulze.org>
22844 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
22846 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
22848 * kern/misc.c (grub_strcasecmp): New function.
22849 (grub_strcasecmp): Use grub_size_t instead of int for length.
22851 * include/grub/misc.h: Update function prototypes.
22853 2009-01-26 Robert Millan <rmh@aybabtu.com>
22855 * configure.ac: Fix cross-compilation check.
22857 2009-01-22 Christian Franke <franke@computer.org>
22859 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
22860 (precision) digit string. Allow `.format2' without `format1' (width).
22861 Limit input chars for `%s' output to `format2' if specified. This is
22862 compatible with standard printf ().
22864 2009-01-22 Christian Franke <franke@computer.org>
22866 * disk/ata.c (grub_ata_wait_status): Replace by ...
22867 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
22868 other status bits may be invalid while BSY is asserted.
22869 (grub_ata_check_ready): New function.
22870 (grub_ata_cmd): Removed.
22871 (grub_ata_wait_drq): New function.
22872 (grub_ata_strncpy): Remove inline.
22873 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
22874 and error check now done by grub_ata_wait_drq ().
22875 (grub_ata_pio_write): Likewise.
22876 (grub_atapi_identify): Set DEV before check for !BSY. Use
22877 grub_ata_wait_drq () to wait for data.
22878 (grub_ata_device_initialize): Add status register check to
22879 detect missing SATA slave devices. Add debug messages.
22880 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
22881 (grub_atapi_packet): Set DEV before check for !BSY. Replace
22882 transfer loop by grub_ata_pio_write ().
22883 (grub_ata_identify): Set DEV before check for !BSY. Use
22884 grub_ata_wait_drq () to wait for data.
22885 (grub_ata_setaddress): Set DEV before check for !BSY.
22886 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
22887 read/write in one loop. Fix invalid command on write. Fix incomplete
22888 command on (size % batch) == 0. Add missing error check after write of
22889 last block. Add debug messages.
22890 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
22892 2009-01-19 Christian Franke <franke@computer.org>
22894 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
22895 (GRUB_ATAPI_IREASON_*): Likewise.
22896 (grub_ata_pio_write): Fix timeout error return.
22897 (grub_atapi_identify): Add grub_ata_wait () after cmd.
22898 (grub_atapi_wait_drq): New function.
22899 (grub_atapi_packet): New parameter `size'.
22900 Use grub_atapi_wait_drq () and direct write instead of
22901 grub_ata_pio_write ().
22902 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
22903 reads the number of bytes requested by the device for each DRQ
22905 (grub_atapi_write): Remove old implementation, return not
22906 implemented instead.
22908 2009-01-19 Christian Franke <franke@computer.org>
22910 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
22911 of 512 to calculate data size.
22912 (grub_scsi_read12): Likewise.
22913 (grub_scsi_write10): Likewise.
22914 (grub_scsi_write12): Likewise.
22915 (grub_scsi_read): Adjust size according to blocksize.
22916 Add checks for invalid blocksize and unaligned transfer.
22918 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
22920 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
22922 * term/gfxterm.c (write_char): Fix background rendering for wide
22925 2009-01-19 Robert Millan <rmh@aybabtu.com>
22927 * config.guess: Update to latest version from config git.
22928 * config.sub: Likewise.
22930 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
22932 * Makefile.in: Change font compilation to use new grub-mkfont instead
22935 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
22936 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
22937 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22938 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22939 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
22940 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
22941 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
22942 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
22943 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
22945 2009-01-16 Christian Franke <franke@computer.org>
22947 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
22948 (enum grub_ata_timeout_milliseconds): New enum.
22949 (grub_ata_wait_status): Add parameter milliseconds.
22950 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
22951 recovery from timed-out commands.
22952 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
22953 return grub_errno instead of REG_ERROR.
22954 (grub_ata_pio_write): Add parameter milliseconds.
22955 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
22956 Pass milliseconds to grub_ata_wait_status () and
22957 grub_ata_pio_read ().
22958 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
22959 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
22960 grub_ata_wait_status (). Fix IDENTIFY timeout check.
22961 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
22962 It is not suitable for device detection, because DEV bit is ignored,
22963 the command may run too long, and not all devices set the signature
22965 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
22966 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
22967 Fix device selection, DEV bit must be set first to address the registers
22968 of the correct device.
22969 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
22970 grub_ata_pio_read/write ().
22971 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
22972 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
22974 2009-01-13 Carles Pina i Estany <carles@pina.cat>
22976 * util/grub-editenv.c (main): Use fseeko(), not fseek().
22978 2009-01-13 Bean <bean123ch@gmail.com>
22980 * util/grub-mkfont.c (write_font): forget to remove some debug code.
22982 2009-01-13 Bean <bean123ch@gmail.com>
22984 * Makefile.in: (enable_grub_mkfont): New variable.
22985 (freetype_cflags): Likewise.
22986 (freetype_libs): Likewise.
22988 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
22989 (grub_mkfont_SOURCES): New variable.
22990 (grub_mkfont_CFLAGS): Likewise.
22991 (grub_mkfont_LDFLAGS): Likewise.
22993 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
22994 library if `--enable-grub-mkfont' is requested.
22995 (enable_grub_mkfont): New variable.
22996 (freetype_cflags): Likewise.
22997 (freetype_libs): Likewise.
22999 * util/grub-mkfont.c: New file.
23001 2009-01-12 Christian Franke <franke@computer.org>
23003 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
23004 mode check. Fix setting of compat_use[].
23006 2009-01-10 Robert Millan <rmh@aybabtu.com>
23008 Update a few copyright years which we forgot to do in 2008 (only for
23009 files whose changes made in 2008 were copyright-significant)
23011 * Makefile.in: Add 2008 to Copyright line.
23012 * disk/ieee1275/ofdisk.c: Likewise.
23013 * disk/efi/efidisk.c: Likewise.
23014 * kern/dl.c: Likewise.
23015 * kern/sparc64/ieee1275/init.c: Likewise.
23016 * kern/mm.c: Likewise.
23017 * kern/efi/mm.c: Likewise.
23018 * boot/i386/pc/boot.S: Likewise.
23019 * genfslist.sh: Likewise.
23020 * fs/iso9660.c: Likewise.
23021 * fs/hfs.c: Likewise.
23022 * fs/jfs.c: Likewise.
23023 * fs/minix.c: Likewise.
23024 * fs/ufs.c: Likewise.
23025 * gensymlist.sh.in: Likewise.
23026 * genkernsyms.sh.in: Likewise.
23027 * include/grub/misc.h: Likewise.
23028 * include/grub/types.h: Likewise.
23029 * include/grub/symbol.h: Likewise.
23030 * include/grub/elf.h: Likewise.
23031 * include/grub/kernel.h: Likewise.
23032 * include/grub/disk.h: Likewise.
23033 * include/grub/dl.h: Likewise.
23034 * include/grub/i386/linux.h: Likewise.
23035 * include/grub/i386/pc/biosdisk.h: Likewise.
23036 * include/grub/efi/api.h: Likewise.
23037 * include/grub/efi/pe32.h: Likewise.
23038 * include/grub/util/misc.h: Likewise.
23039 * normal/execute.c: Likewise.
23040 * normal/arg.c: Likewise.
23041 * normal/completion.c: Likewise.
23042 * normal/lexer.c: Likewise.
23043 * normal/parser.y: Likewise.
23044 * normal/misc.c: Likewise.
23045 * commands/i386/pc/vbeinfo.c: Likewise.
23046 * commands/hexdump.c: Likewise.
23047 * commands/terminal.c: Likewise.
23048 * commands/ls.c: Likewise.
23049 * commands/help.c: Likewise.
23050 * partmap/pc.c: Likewise.
23051 * loader/efi/chainloader.c: Likewise.
23052 * loader/multiboot_loader.c: Likewise.
23053 * loader/i386/pc/multiboot2.c: Likewise.
23054 * term/efi/console.c: Likewise.
23055 * term/i386/pc/serial.c: Likewise.
23056 * util/lvm.c: Likewise.
23057 * util/console.c: Likewise.
23058 * util/i386/efi/grub-mkimage.c: Likewise.
23059 * util/raid.c: Likewise.
23061 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
23063 * commands/videotest.c: Removed include to grub/machine/memory.h.
23065 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
23066 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
23067 (video_mod_SOURCES): Removed.
23068 (video_mod_CFLAGS): Likewise.
23069 (video_mod_LDFLAGS): Likewise.
23070 (gfxterm_mod_SOURCES): Likewise.
23071 (gfxterm_mod_CFLAGS): Likewise.
23072 (gfxterm_mod_LDFLAGS): Likewise.
23073 (videotest_mod_SOURCES): Likewise.
23074 (videotest_mod_CFLAGS): Likewise.
23075 (videotest_mod_LDFLAGS): Likewise.
23076 (bitmap_mod_SOURCES): Likewise.
23077 (bitmap_mod_CFLAGS): Likewise.
23078 (bitmap_mod_LDFLAGS): Likewise.
23079 (tga_mod_SOURCES): Likewise.
23080 (tga_mod_CFLAGS): Likewise.
23081 (tga_mod_LDFLAGS): Likewise.
23082 (jpeg_mod_SOURCES): Likewise.
23083 (jpeg_mod_CFLAGS): Likewise.
23084 (jpeg_mod_LDFLAGS): Likewise.
23085 (png_mod_SOURCES): Likewise.
23086 (png_mod_CFLAGS): Likewise.
23087 (png_mod_LDFLAGS): Likewise.
23089 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
23090 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
23091 (video_mod_SOURCES): Added.
23092 (video_mod_CFLAGS): Likewise.
23093 (video_mod_LDFLAGS): Likewise.
23094 (videotest_mod_SOURCES): Likewise.
23095 (videotest_mod_CFLAGS): Likewise.
23096 (videotest_mod_LDFLAGS): Likewise.
23097 (bitmap_mod_SOURCES): Likewise.
23098 (bitmap_mod_CFLAGS): Likewise.
23099 (bitmap_mod_LDFLAGS): Likewise.
23100 (tga_mod_SOURCES): Likewise.
23101 (tga_mod_CFLAGS): Likewise.
23102 (tga_mod_LDFLAGS): Likewise.
23103 (jpeg_mod_SOURCES): Likewise.
23104 (jpeg_mod_CFLAGS): Likewise.
23105 (jpeg_mod_LDFLAGS): Likewise.
23106 (png_mod_SOURCES): Likewise.
23107 (png_mod_CFLAGS): Likewise.
23108 (png_mod_LDFLAGS): Likewise.
23109 (gfxterm_mod_SOURCES): Likewise.
23110 (gfxterm_mod_CFLAGS): Likewise.
23111 (gfxterm_mod_LDFLAGS): Likewise.
23113 * term/gfxterm.c: Removed include to grub/machine/memory.h,
23114 grub/machine/console.h.
23116 2009-01-04 Jerone Young <jerone@gmail.com>
23118 Make on screen instructions clearer
23120 Based on patch created by Jidanni <jidanni@jidanni.org>
23122 * normal/menu.c: print clearer instructions on the screen
23124 2009-01-02 Colin D Bennett <colin@gibibit.com>
23128 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
23129 build system and fixed gfxterm.c to work with different sized fonts.
23131 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
23133 * configure: Re-generated.
23135 * DISTLIST: Removed font/manager.c.
23137 Added font/font_cmd.c.
23139 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
23142 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
23144 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
23146 * kern/term.c: Changed users of grub_utf8_to_ucs4.
23148 * normal/menu.c: Likewise.
23150 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
23151 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
23153 * include/grub/font.h: Replaced with new file.
23155 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
23156 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
23157 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
23158 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
23159 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
23160 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
23161 fg_red, fg_green, fg_blue, fg_alpha.
23162 (grub_video_adapter): Removed blit_glyph.
23163 (grub_video_blit_glyph): Removed.
23165 * font/manager.c: Removed file.
23167 * font/font.c: New file.
23169 * font/font_cmd.c: Likewise.
23171 * video/video.c (grub_video_blit_glyph): Removed.
23173 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
23174 (grub_video_vbe_map_rgba): Likewise.
23175 (grub_video_vbe_unmap_color_int): Likewise.
23176 (grub_video_vbe_blit_glyph): Removed.
23177 (grub_video_vbe_adapter): Removed blit_glyph.
23179 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
23180 (get_pixel): Likewise.
23181 (set_pixel): Likewise.
23183 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
23185 * term/gfxterm.c: Adapted to new font engine.
23187 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
23189 * term/i386/pc/vga.c: Likewise.
23191 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
23193 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
23195 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
23197 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
23199 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
23201 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
23203 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
23205 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
23207 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
23209 * util/grub.d/00_header.in: Changed to use new loadfont command.
23211 * util/grub-mkconfig_lib.in: Changed font extension.
23213 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
23215 * util/getroot.c (grub_util_get_grub_dev): Add support for
23216 /dev/md/dNNpNN style partitionable mdraid devices.
23218 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
23220 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
23221 at a time limit of the PXE TFTP API correctly.
23222 (grub_pxefs_close): Likewise.
23224 2008-11-29 Robert Millan <rmh@aybabtu.com>
23226 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
23227 grub_ata_device_initialize() calls.
23229 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
23231 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
23233 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
23235 2008-11-28 Robert Millan <rmh@aybabtu.com>
23237 Fix build on powerpc-ieee1275. Based on patch created by
23238 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
23239 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
23240 `kern/ieee1275/mmap.c'.
23241 * include/grub/powerpc/ieee1275/memory.h: New file.
23243 Provide grub-install on coreboot.
23244 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
23245 (grub_install_SOURCES): New variable.
23246 * util/i386/pc/grub-install.in: Add a few condition checks to make it
23247 usable on coreboot.
23249 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
23251 * util/grub-fstest.c (grub_term_get_current_input): Change return type
23252 to `grub_term_input_t'.
23253 (grub_term_get_current_output): Change return type to
23254 `grub_term_output_t'.
23256 2008-11-22 Robert Millan <rmh@aybabtu.com>
23258 Fix breakage on coreboot due to declaration mismatch.
23259 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
23260 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
23261 grub_vga_text_cls().
23263 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
23264 comments. Avoid copying one more byte than necessary (just in case).
23266 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
23267 to 0x200000 (avoids trouble with some OFW implementations, and matches
23268 with the one in Yaboot).
23269 Reported by Manoel Abranches
23271 2008-11-20 Robert Millan <rmh@aybabtu.com>
23273 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
23274 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
23276 * util/grub-mkconfig_lib.in (grub_warn): New function.
23277 (convert_system_path_to_grub_path): Use grub_warn() when issuing
23278 warnings, to obtain consistent formatting.
23279 * util/grub.d/00_header.in: Likewise.
23280 * util/update-grub_lib.in: Likewise.
23282 * loader/i386/linux.c (allocate_pages): Fix a warning.
23283 Move comment text to `#error' stanza.
23285 Harmonize ieee1275's grub_available_iterate() with the generic
23286 grub_machine_mmap_iterate() interface (fixes a recently-introduced
23287 build problem on i386-ieee1275):
23288 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
23289 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
23290 parameter `type'. Update all users of this function.
23291 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
23292 `kern/ieee1275/mmap.c'.
23293 * kern/ieee1275/init.c
23294 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
23296 (grub_machine_mmap_iterate): ... this.
23297 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
23298 return type to `grub_err_t'. Update all implementations of this
23299 function prototype.
23300 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
23303 Add `lsmmap' command (lists firmware-provided memory map):
23304 * commands/lsmmap.c: New file.
23305 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
23306 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
23308 * conf/powerpc-ieee1275.rmk: Likewise.
23309 * conf/i386-coreboot.rmk: Likewise.
23310 * conf/i386-ieee1275.rmk: Likewise.
23312 2008-11-19 Robert Millan <rmh@aybabtu.com>
23314 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
23315 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
23316 constraints to initrd allocation (based on code from
23317 loader/i386/pc/linux.c). Without them, initrd was allocated too high
23318 for Linux to find it.
23320 2008-11-14 Robert Millan <rmh@aybabtu.com>
23322 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
23323 order to cope with duplicate slashes.
23325 2008-11-14 Robert Millan <rmh@aybabtu.com>
23327 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
23328 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
23329 don't want to mess with lower memory, because it is used in the Linux
23332 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
23333 an appropriate place in lower memory, between 0x10000 and 0x90000,
23334 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
23335 is in our heap (probably as a result of it being corrupted during
23336 decompression). Add #error instance with comment to explain why this
23337 loader isn't currently usable on PC/BIOS.
23339 2008-11-14 Robert Millan <rmh@aybabtu.com>
23341 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
23342 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
23344 2008-11-12 Robert Millan <rmh@aybabtu.com>
23346 Make loader/i386/linux.c buildable on i386-pc (although disabled).
23348 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
23349 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
23351 * include/grub/i386/pc/memory.h: ... to here.
23353 2008-11-12 Robert Millan <rmh@aybabtu.com>
23355 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
23358 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
23359 (grub_console_cur_color, grub_console_real_putchar)
23360 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
23361 (grub_console_setcolorstate, grub_console_setcolor)
23362 (grub_console_getcolor): Move from here ...
23363 * include/grub/i386/vga_common.h: ... to here (new file).
23365 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
23366 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
23367 `<grub/i386/io.h>'.
23368 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
23369 `<grub/i386/vga_common.h>'.
23371 2008-11-12 Robert Millan <rmh@aybabtu.com>
23373 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
23374 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
23375 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
23377 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
23378 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
23380 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
23381 grub_console_init() with call to grub_vga_text_init().
23382 (grub_machine_fini): Replace call to
23383 grub_console_fini() with call to grub_vga_text_fini() and
23384 grub_at_keyboard_fini().
23386 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
23387 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
23388 (grub_console_setcolorstate, grub_console_setcolor)
23389 (grub_console_getcolor): New function prototypes.
23391 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
23392 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
23393 (grub_vga_text_setcursor): Static-ize.
23394 (grub_vga_text_term): New structure.
23395 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
23397 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
23398 (grub_console_cur_color, grub_console_standard_color)
23399 (grub_console_normal_color, grub_console_highlight_color)
23400 (map_char, grub_console_putchar, grub_console_getcharwidth)
23401 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
23402 (grub_console_getcolor): Move from here ...
23403 * term/i386/vga_common.c: ... to here (same function names).
23405 2008-11-12 Robert Millan <rmh@aybabtu.com>
23407 Use newly-added Multiboot support in coreboot.
23409 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
23410 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
23412 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
23413 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
23414 (codestart): Store the MBI in `startup_multiboot_info' when we're
23415 being loaded using Multiboot.
23417 * kern/i386/coreboot/init.c (grub_machine_init): Move
23418 grub_at_keyboard_init() call to beginning of function (useful for
23419 debugging). Call grub_machine_mmap_init() before attempting to use
23420 grub_machine_mmap_iterate().
23421 (grub_lower_mem, grub_upper_mem): Move from here ...
23422 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
23425 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
23426 function prototype.
23428 2008-11-12 Robert Millan <rmh@aybabtu.com>
23430 Fix a regression introduced by the at_keyboard.mod split. Because
23431 some terminals are default on some platforms and non-default on
23432 others, the first terminal being registered determines which is
23433 going to be default.
23435 * kern/term.c (grub_term_register_input): If this is the first
23436 terminal being registered, set it as the current one.
23437 (grub_term_register_output): Likewise.
23439 * term/efi/console.c (grub_console_init): Do not call
23440 grub_term_set_current_output() or grub_term_set_current_input().
23441 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
23442 * term/i386/pc/console.c (grub_console_init): Likewise.
23443 (grub_console_fini): Do not call grub_term_set_current_input()
23444 (but leave grub_term_set_current_output() to restore text mode).
23446 2008-11-10 Robert Millan <rmh@aybabtu.com>
23448 * util/grub.d/00_header.in: Add backward compatibility check for
23449 versions of terminal.mod that don't understand `terminal_input' or
23452 2008-11-09 Robert Millan <rmh@aybabtu.com>
23454 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
23455 `terminal_input' / `terminal_output', not `terminal'.
23457 2008-11-08 Robert Millan <rmh@aybabtu.com>
23459 * Makefile.in (include_DATA): Fix srcdir=. assumption.
23460 (DISTCLEANFILES): Add `build_env.mk'.
23462 2008-11-08 Robert Millan <rmh@aybabtu.com>
23464 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
23465 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
23466 members. Update all users.
23467 * util/console.c (grub_ncurses_term): Split in ...
23468 (grub_ncurses_term_input): ... this, and ...
23469 (grub_ncurses_term_output): ... this. Update all users.
23470 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
23472 2008-11-08 Robert Millan <rmh@aybabtu.com>
23474 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
23475 (PKGDATA): Add $(pkgdata_SRCDIR).
23476 (pkglib_BUILDDIR): New variable.
23477 (pkgdata_SRCDIR): New variable.
23478 (build_env.mk): New target.
23479 (include_DATA): New variable.
23480 (install-local): Install $(include_DATA) files in $(includedir).
23482 2008-11-07 Pavel Roskin <proski@gnu.org>
23484 * gendistlist.sh: Use C locale for sorting to ensure consistent
23485 output on all systems.
23487 * util/grub.d/00_header.in: Remove incorrect space before
23490 2008-11-07 Robert Millan <rmh@aybabtu.com>
23492 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
23494 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
23495 * loader/multiboot_loader.c (find_multi_boot2_header): New function
23496 (based on find_multi_boot1_header).
23497 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
23498 using find_multi_boot2_header(), and abort if neither Multiboot or
23499 Multiboot headers were found.
23501 2008-11-07 Robert Millan <rmh@aybabtu.com>
23503 Modularize at_keyboard.mod:
23505 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
23506 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23507 (at_keyboard_mod_LDFLAGS): New variables.
23509 Actual terminal split:
23511 * include/grub/term.h (struct grub_term): Split in ...
23512 (struct grub_term_input): ... this, and ...
23513 (struct grub_term_output): ... this. Update all users.
23514 (grub_term_set_current): Split in ...
23515 (grub_term_set_current_input): ... this, and ...
23516 (grub_term_set_current_output): ... this.
23517 (grub_term_get_current): Split in ...
23518 (grub_term_get_current_input): ... this, and ...
23519 (grub_term_get_current_output): ... this.
23520 (grub_term_register): Split in ...
23521 (grub_term_register_input): ... this, and ...
23522 (grub_term_register_output): ... this.
23523 (grub_term_unregister): Split in ...
23524 (grub_term_unregister_input): ... this, and ...
23525 (grub_term_unregister_output): ... this.
23526 (grub_term_iterate): Split in ...
23527 (grub_term_iterate_input): ... this, and ...
23528 (grub_term_iterate_output): ... this.
23530 * kern/term.c (grub_term_list): Split in ...
23531 (grub_term_list_input): ... this, and ...
23532 (grub_term_list_output): ... this. Update all users.
23533 (grub_cur_term): Split in ...
23534 (grub_cur_term_input): ... this, and ...
23535 (grub_cur_term_output): ... this. Update all users.
23536 (grub_term_set_current): Split in ...
23537 (grub_term_set_current_input): ... this, and ...
23538 (grub_term_set_current_output): ... this.
23539 (grub_term_get_current): Split in ...
23540 (grub_term_get_current_input): ... this, and ...
23541 (grub_term_get_current_output): ... this.
23542 (grub_term_register): Split in ...
23543 (grub_term_register_input): ... this, and ...
23544 (grub_term_register_output): ... this.
23545 (grub_term_unregister): Split in ...
23546 (grub_term_unregister_input): ... this, and ...
23547 (grub_term_unregister_output): ... this.
23548 (grub_term_iterate): Split in ...
23549 (grub_term_iterate_input): ... this, and ...
23550 (grub_term_iterate_output): ... this.
23552 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
23553 a check for input and one for output (and only attempt to get keys
23554 from user when input works).
23556 * util/grub-probe.c (grub_term_get_current): Split in ...
23557 (grub_term_get_current_input): ... this, and ...
23558 (grub_term_get_current_output): ... this.
23559 * util/grub-fstest.c: Likewise.
23560 * util/i386/pc/grub-setup.c: Likewise.
23561 * util/grub-editenv.c: Likewise.
23563 Portability adjustments:
23565 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
23566 `term/i386/pc/at_keyboard.c'.
23567 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
23568 grub_keyboard_controller_init() (now handled by terminal .init).
23569 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
23570 grub_at_keyboard_init().
23571 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
23572 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
23573 at_keyboard.mod via input terminal interface).
23574 * include/grub/i386/coreboot/console.h: Convert into a stub for
23575 `<grub/i386/pc/console.h>'.
23577 Migrate full terminals to new API:
23579 * term/efi/console.c (grub_console_term): Split into ...
23580 (grub_console_term_input): ... this, and ...
23581 (grub_console_term_output): ... this. Update all users.
23582 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
23583 (grub_ofconsole_init): Split into ...
23584 (grub_ofconsole_init_input): ... this, and ...
23585 (grub_ofconsole_init_output): ... this.
23586 (grub_ofconsole_term): Split into ...
23587 (grub_ofconsole_term_input): ... this, and ...
23588 (grub_ofconsole_term_output): ... this. Update all users.
23589 * term/i386/pc/serial.c (grub_serial_term): Split into ...
23590 (grub_serial_term_input): ... this, and ...
23591 (grub_serial_term_output): ... this. Update all users.
23592 * term/i386/pc/console.c (grub_console_term): Split into ...
23593 (grub_console_term_input): ... this, and ...
23594 (grub_console_term_output): ... this. Update all users.
23595 (grub_console_term_input): Only enable it on PC/BIOS platform.
23596 (grub_console_init): Remove grub_keyboard_controller_init() call.
23598 Migrate input terminals to new API:
23600 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
23601 `i386' and `i386/pc' to enable build on x86_64 (this driver is
23602 i386-specific anyway).
23603 (grub_console_checkkey): Rename to ...
23604 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
23606 (grub_keyboard_controller_orig): New variable.
23607 (grub_console_getkey): Rename to ...
23608 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
23610 (grub_keyboard_controller_init): Static-ize. Save original
23611 controller value so that it can be restored ...
23612 (grub_keyboard_controller_fini): ... here (new function).
23613 (grub_at_keyboard_term): New structure.
23614 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
23617 Migrate output terminals to new API:
23619 * term/i386/pc/vga.c (grub_vga_term): Change type to
23620 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
23621 members. Update all users.
23622 * term/gfxterm.c (grub_video_term): Change type to
23623 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
23624 members. Update all users.
23625 * include/grub/i386/pc/console.h (grub_console_checkkey)
23626 (grub_console_getkey): Do not export (no longer needed by gfxterm,
23629 Migrate `terminal' command and userland tools to new API:
23631 * commands/terminal.c (grub_cmd_terminal): Split into ...
23632 (grub_cmd_terminal_input): ... this, and ...
23633 (grub_cmd_terminal_output): ... this.
23634 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
23635 `terminal_input' and `terminal_output'.
23636 * util/grub.d/00_header.in: Adjust `terminal' calls to new
23637 `terminal_input' / `terminal_output' API.
23638 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
23639 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
23640 provided ${GRUB_TERMINAL}, convert it).
23642 2008-11-04 Robert Millan <rmh@aybabtu.com>
23644 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
23646 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
23648 2008-11-03 Bean <bean123ch@gmail.com>
23650 * kern/elf.c (grub_elf32_load): Revert to previous code.
23651 (grub_elf64_load): Likewise.
23653 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
23655 2008-11-01 Robert Millan <rmh@aybabtu.com>
23657 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
23658 (TARGET_CPPFLAGS): Likewise.
23659 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
23661 2008-11-01 Carles Pina i Estany <carles@pina.cat>
23663 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
23665 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
23667 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
23668 addition of objects until the code is not going to be able to fail.
23670 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
23672 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
23673 (add a missing NULL check, and correct them by moving the pointer
23674 operations after the actual check).
23676 2008-10-29 Robert Millan <rmh@aybabtu.com>
23678 * util/i386/pc/grub-install.in: Handle empty string as output from
23679 make_system_path_relative_to_its_root().
23681 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
23683 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
23684 circular metadata worst case scenario. If the metadata is circular
23685 then copy the wrap in place.
23686 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
23687 project lib/format_text/layout.h
23688 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
23690 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
23692 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
23694 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
23696 * util/update-grub_lib.in: Mention filename in warning message.
23698 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
23700 * NEWS: Update for rename of update-grub to grub-mkconfig.
23702 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
23704 * util/update-grub_lib.in: Copy to ...
23705 * util/grub-mkconfig_lib.in: ... this. Update all users.
23706 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
23707 * util/update-grub.in: Rename to ...
23708 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
23709 option. Add `--output' option to allow users to specify the generated
23710 configuration file. Default to stdout.
23711 (update_grub_dir): Rename to ...
23712 (grub_mkconfig_dir): ... this.
23713 (grub_cfg): Default to an empty string.
23714 * conf/common.rmk (update-grub): Rename to ...
23715 (grub-mkconfig): ... this.
23716 (update-grub_lib): Copy to ...
23717 (grub-mkconfig_lib): ... this.
23718 (update-grub_SCRIPTS): Copy to ...
23719 (grub-mkconfig_SCRIPTS): ... this. Update all users.
23720 (update-grub_DATA): Rename to ...
23721 (grub-mkconfig_DATA): ... this.
23723 2008-09-28 Robert Millan <rmh@aybabtu.com>
23725 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
23726 to `modified'. Add the real `created' field.
23727 (grub_iso9660_uuid): Use `modified' rather than `created' for
23728 constructing the UUID.
23730 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
23732 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
23733 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
23735 2008-09-28 Bean <bean123ch@gmail.com>
23737 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
23738 Thanks to Christian Franke for finding this bug.
23740 2008-09-25 Robert Millan <rmh@aybabtu.com>
23742 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
23743 instances of grub_util_get_disk_name() (see previous commit).
23745 2008-09-25 Robert Millan <rmh@aybabtu.com>
23747 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
23748 `util/i386/get_disk_name.c'.
23749 * conf/i386-efi.rmk: Likewise.
23750 * conf/x86_64-efi.rmk: Likewise.
23751 * conf/i386-coreboot.rmk: Likewise.
23752 * conf/i386-ieee1275.rmk: Likewise.
23753 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
23754 `util/ieee1275/get_disk_name.c'.
23755 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
23756 * util/ieee1275/get_disk_name.c: Remove file.
23757 * util/i386/get_disk_name.c: Remove file.
23758 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
23759 "hd%d" for device.map entries, rather than using
23760 grub_util_get_disk_name().
23762 2008-09-24 Carles Pina i Estany <carles@pina.cat>
23764 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
23766 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
23768 2008-09-24 Carles Pina i Estany <carles@pina.cat>
23770 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
23772 (GRUB_TERM_PPAGE): Changed to 0x4900.
23774 2008-09-24 Robert Millan <rmh@aybabtu.com>
23776 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
23777 macros (they were i386-pc specific).
23778 * include/grub/sparc64/ieee1275/console.h: Likewise.
23779 * include/grub/efi/console.h: Likewise.
23781 2008-09-22 Bean <bean123ch@gmail.com>
23783 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
23784 resident and in attribute list.
23786 * include/grub/ntfs.h (BMP_LEN): Removed.
23788 2008-09-22 Bean <bean123ch@gmail.com>
23790 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
23791 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
23793 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
23794 error occurs, as grub_disk_open will call grub_disk_close, which will
23795 call p->close (scsi).
23797 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
23799 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
23800 (AC_PREREQ): Bumped to 2.59.
23801 (AC_TRY_COMPILE): Replace obsolete macro with ...
23802 (AC_COMPILE_IFELSE): ... this.
23803 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
23804 (AC_LINK_IFELSE): ... this.
23806 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
23808 * autogen.sh: Add a call to `gendistlist.sh'.
23810 2008-09-19 Christian Franke <franke@computer.org>
23812 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
23813 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
23814 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
23815 Export __enable_execute_stack() to modules.
23816 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
23819 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
23821 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
23824 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
23826 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
23827 #include <grub/util/hostdisk.h>.
23829 2008-09-08 Robert Millan <rmh@aybabtu.com>
23831 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
23832 segments when their filesz is zero (grub_file_read() interprets
23833 zero-size as "read until EOF", which results in memory corruption).
23834 Use `lowest_segment' rather than 0 for calculating the current
23835 segment load address.
23837 2008-09-08 Robert Millan <rmh@aybabtu.com>
23839 * util/hostdisk.c (open_device): Replace a grub_util_info() call
23840 with grub_dprintf("hostdisk", ...), as it was so verbose that it
23841 clobbered useful information.
23843 2008-09-08 Robert Millan <rmh@aybabtu.com>
23845 * include/grub/util/biosdisk.h: Move to ...
23846 * include/grub/util/hostdisk.h: ... here. Update all users.
23847 * util/biosdisk.c: Move to ...
23848 * util/hostdisk.c: ... here. Update all users.
23850 2008-09-07 Robert Millan <rmh@aybabtu.com>
23852 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
23854 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
23855 and length can be stored directly in the `mbi->mmap_addr' and
23856 `mbi->mmap_length' struct fields.
23858 2008-09-07 Robert Millan <rmh@aybabtu.com>
23860 * conf/i386.rmk: New file. Provides declaration for building
23862 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
23863 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
23865 Include `conf/i386.mk'.
23866 * conf/i386-efi.rmk: Likewise.
23867 * conf/x86_64-efi.rmk: Likewise.
23868 * conf/i386-coreboot.rmk: Likewise.
23869 * conf/i386-ieee1275.rmk: Likewise.
23871 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
23873 Based on patch created by Colin D Bennett <colin@gibibit.com>.
23874 Adds optimization support for BGR based modes.
23876 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
23877 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
23878 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
23879 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
23880 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
23881 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
23882 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
23883 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
23884 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
23885 (grub_video_i386_vbeblit_index_index): Likewise.
23886 (grub_video_i386_vbeblit_replace_directN): Added.
23887 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
23888 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
23889 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
23890 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
23891 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
23892 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
23893 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
23894 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
23895 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
23896 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
23897 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
23898 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
23899 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
23901 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
23902 (grub_video_i386_vbefill_R8G8B8): Likewise.
23903 (grub_video_i386_vbefill_index): Likewise.
23904 (grub_video_i386_vbefill_direct32): Added.
23905 (grub_video_i386_vbefill_direct24): Likewise.
23906 (grub_video_i386_vbefill_direct16): Likewise.
23907 (grub_video_i386_vbefill_direct8): Likewise.
23909 * include/grub/video.h (grub_video_blit_format): Removed
23910 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
23911 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
23912 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
23913 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
23914 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
23916 * video/video.c (grub_video_get_blit_format): Updated to use new
23917 blit formats. Added handling for 16 bit color modes.
23919 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
23921 (common_blitter): Updated to use new blitters.
23923 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
23925 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
23926 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
23927 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
23928 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
23929 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
23930 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
23931 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
23932 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
23933 (grub_video_i386_vbeblit_index_index): Likewise.
23934 (grub_video_i386_vbeblit_replace_directN): Added.
23935 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
23936 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
23937 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
23938 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
23939 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
23940 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
23941 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
23942 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
23943 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
23944 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
23945 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
23946 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
23947 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
23949 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
23950 (grub_video_i386_vbefill_R8G8B8): Likewise.
23951 (grub_video_i386_vbefill_index): Likewise.
23952 (grub_video_i386_vbefill_direct32): Added.
23953 (grub_video_i386_vbefill_direct24): Likewise.
23954 (grub_video_i386_vbefill_direct16): Likewise.
23955 (grub_video_i386_vbefill_direct8): Likewise.
23957 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
23960 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
23963 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
23966 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
23969 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
23971 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
23974 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
23976 * fs/iso9660.c (grub_iso9660_date): New structure.
23977 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
23978 (grub_iso9660_uuid): New function.
23980 2008-09-05 Bean <bean123ch@gmail.com>
23982 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
23984 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
23985 insensitive bit for names in Win32 and Win32 & DOS namespace.
23987 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
23989 * include/grub/types.h (LONG_MAX): Likewise.
23991 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
23993 * util/getroot.c: Include <config.h>.
23994 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
23995 add support for /dev/md/N devices and handle LVM double dash escaping.
23997 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
23999 * config.guess: Update to latest version from config git.
24000 * config.sub: Likewise.
24002 2008-09-03 Robert Millan <rmh@aybabtu.com>
24004 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
24005 `disk->total_sectors'.
24007 2008-09-01 Colin D Bennett <colin@gibibit.com>
24009 * include/grub/normal.h: Fixed incorrect comment for
24010 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
24012 2008-09-01 Colin D Bennett <colin@gibibit.com>
24014 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
24015 values with defines.
24017 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
24018 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
24019 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
24020 (GRUB_VBE_MODEATTR_COLOR): Likewise.
24021 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
24022 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
24023 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
24024 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
24025 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
24026 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
24027 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
24028 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
24029 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
24030 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
24031 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
24032 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
24033 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
24034 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
24035 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
24037 2008-08-31 Robert Millan <rmh@aybabtu.com>
24039 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
24041 (grub_multiboot): Fix a few warnings.
24043 2008-08-31 Robert Millan <rmh@aybabtu.com>
24045 * loader/i386/pc/multiboot.c: Update comment not to say that
24046 boot_device support is unimplemented.
24048 2008-08-31 Robert Millan <rmh@aybabtu.com>
24050 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
24051 or memory map support are unimplemented.
24053 2008-08-31 Colin D Bennett <colin@gibibit.com>
24055 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
24057 2008-08-31 Colin D Bennett <colin@gibibit.com>
24059 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
24060 total video memory in 'vbeinfo' output; show color format details for
24063 2008-08-30 Pavel Roskin <proski@gnu.org>
24065 * util/genmoddep.c: Remove for real this time.
24066 * DISTLIST: Remove util/genmoddep.c.
24068 2008-08-30 Robert Millan <rmh@aybabtu.com>
24070 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
24071 as required by Multiboot spec (it was already 4-byte aligned, but
24074 2008-08-29 Pavel Roskin <proski@gnu.org>
24076 * kern/powerpc/ieee1275/crt0.S: Rename to ...
24077 * kern/powerpc/ieee1275/startup.S: ... this.
24078 * conf/powerpc-ieee1275.rmk: Adjust for the above.
24079 * DISTLIST: Likewise.
24081 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
24082 grub/cpu/kernel.h. Add start label for consistency with other
24083 platforms. Add grub_prefix immediately after start. Add jump
24084 to the code after grub_prefix.
24085 * include/grub/powerpc/kernel.h: Provide valid values for
24086 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
24088 2008-08-29 Bean <bean123ch@gmail.com>
24090 * configure.ac: Change host_os to cygwin for mingw.
24091 (asprintf): New check for function.
24093 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
24094 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
24096 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
24097 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
24098 sync, sleep and grub_util_get_disk_size for mingw.
24100 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
24101 to get size in mingw.
24102 (open_device): Use flag O_BINARY if it's defined.
24103 (find_root_device): Add dummy code for mingw.
24105 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
24106 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
24107 (get_scsi_disk_name): Return 0 for mingw.
24109 * util/hostfs.c: #include <grub/util/misc.h>.
24110 (grub_hostfs_open): Use "rb" flag to open file, use
24111 grub_util_get_disk_size to get disk size for mingw.
24113 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
24114 (asprintf): New function if HAVE_ASPRINTF is not set.
24115 (sync): New function for mingw.
24117 (grub_util_get_disk_size): Likewise.
24119 2008-08-28 Pavel Roskin <proski@gnu.org>
24121 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
24124 2008-08-28 Robert Millan <rmh@aybabtu.com>
24126 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
24128 2008-08-28 Robert Millan <rmh@aybabtu.com>
24130 Change find_grub_drive() syntax so it doesn't prevent it from
24131 detecting NULL names as errors.
24133 * util/biosdisk.c (find_grub_drive): Move free slot search code
24135 (find_free_slot): ... to here.
24136 (read_device_map): Use find_free_slot() to search for free slots.
24138 2008-08-27 Marco Gerards <marco@gnu.org>
24140 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
24141 (scsi_mod_SOURCES): New variable.
24142 (scsi_mod_CFLAGS): Likewise
24143 (scsi_mod_LDFLAGS): Likewise.
24145 * disk/scsi.c: New file.
24147 * include/grub/scsi.h: Likewise.
24149 * include/grub/scsicmd.h: Likewise.
24151 * disk/ata.c: Include <grub/scsi.h>.
24152 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
24154 (grub_ata_iterate): Skip ATAPI devices.
24155 (grub_ata_open): Only handle ATAPI devices.
24156 (struct grub_atapi_read): Removed.
24157 (grub_atapi_readsector): Likewise.
24158 (grub_ata_read): No longer handle ATAPI devices.
24159 (grub_ata_write): Likewise.
24160 (grub_atapi_iterate): New function.
24161 (grub_atapi_read): Likewise.
24162 (grub_atapi_write): Likewise.
24163 (grub_atapi_open): Likewise.
24164 (grub_atapi_close): Likewise.
24165 (grub_atapi_dev): New variable.
24166 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
24167 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
24169 * include/grub/disk.h (enum grub_disk_dev_id): Add
24170 `GRUB_DISK_DEVICE_SCSI_ID'.
24172 2008-08-26 Robert Millan <rmh@aybabtu.com>
24174 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
24175 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
24178 2008-08-23 Bean <bean123ch@gmail.com>
24180 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
24181 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
24182 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
24183 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
24185 (raid5rec_mod_SOURCES): New macro.
24186 (raid5rec_mod_CFLAGS): Likewise.
24187 (raid5rec_mod_LDFLAGS): Likewise.
24188 (raid6rec_mod_SOURCES): Likewise.
24189 (raid6rec_mod_CFLAGS): Likewise.
24190 (raid6rec_mod_LDFLAGS): Likewise.
24191 (mdraid_mod_SOURCES): Likewise.
24192 (mdraid_mod_CFLAGS): Likewise.
24193 (mdraid_mod_LDFLAGS): Likewise.
24194 (dm_nv_mod_SOURCES): Likewise.
24195 (dm_nv_mod_CFLAGS): Likewise.
24196 (dm_nv_mod_LDFLAGS): Likewise.
24198 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
24199 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
24200 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
24202 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
24203 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
24205 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24207 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24209 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24211 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24213 * disk/raid5_recover.c: New file.
24215 * disk/raid6_recover.c: Likewise.
24217 * disk/mdraid_linux.c: Likewise.
24219 * disk/dmraid_nvidia.c: Likewise.
24221 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
24224 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
24225 calculate the size of raid device.
24226 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
24227 different layout of raid5.
24228 (grub_raid_scan_device): Remove code specific to mdraid.
24229 (grub_raid_list): New variable.
24230 (free_array): New function.
24231 (grub_raid_register): Likewise.
24232 (grub_raid_unregister): Likewise.
24233 (grub_raid_rescan): Likewise.
24234 (GRUB_MOD_INIT): Don't iterate device here.
24235 (GRUB_MOD_FINI): Use free_array to release resource.
24237 * include/grub/raid.h: Remove macro and structure specific to mdraid.
24238 (grub_raid5_recover_func_t): New function variable type.
24239 (grub_raid6_recover_func_t): Likewise.
24240 (grub_raid5_recover_func): New variable.
24241 (grub_raid6_recover_func): Likewise.
24242 (grub_raid_register): New function.
24243 (grub_raid_unregister): Likewise.
24244 (grub_raid_rescan): Likewise.
24245 (grub_raid_block_xor): Likewise.
24247 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
24248 (CMD_CRC): New macro.
24250 (read_file): Handle device as well as file.
24251 (cmd_crc): New function.
24252 (fstest): Handle multiple disks.
24253 (options): Remove part, raw and long, add root and diskcount.
24254 (usage): Add crc, remove -p, -r, -l, add -r and -c.
24255 (main): Find the first non option entry and ignore subsequent options,
24256 add handling for the new options, support multiple disks.
24258 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
24260 2008-08-23 Bean <bean123ch@gmail.com>
24262 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
24264 * genfslist.sh: Ignore kernel.mod.
24266 * genpartmaplist.sh: Likewise.
24268 2008-08-23 Robert Millan <rmh@aybabtu.com>
24270 * util/getroot.c (find_root_device): Skip anything that starts with
24271 a dot, not just directories. This avoids things like /dev/.tmp.md0.
24273 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
24275 * util/update-grub.in (GRUB_GFXMODE): Export variable.
24276 * util/grub.d/00_header.in: Allow the administrator to change default
24277 gfxmode via ${GRUB_GFXMODE}.
24279 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
24281 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
24283 2008-08-21 Robert Millan <rmh@aybabtu.com>
24285 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
24287 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
24288 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
24290 2008-08-20 Carles Pina i Estany <carles@pina.cat>
24292 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
24293 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
24295 2008-08-19 Robert Millan <rmh@aybabtu.com>
24297 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
24298 (struct grub_virtual_screen): Remove `cursor_color'.
24299 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
24301 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
24303 2008-08-18 Robert Millan <rmh@aybabtu.com>
24305 Unify (identical) linux_normal.c files.
24306 * loader/i386/efi/linux_normal.c: Move from here ...
24307 * loader/linux_normal.c: ... to here. Update all users.
24308 * loader/i386/pc/linux_normal.c: Delete. Update all users.
24309 * loader/i386/ieee1275/linux_normal.c: Likewise.
24311 2008-08-18 Robert Millan <rmh@aybabtu.com>
24313 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
24314 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
24315 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
24316 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
24317 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
24319 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
24320 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
24321 (GRUB_LINUX_CL_END_OFFSET): ... to here.
24322 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
24323 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
24324 (GRUB_EFI_CL_END_OFFSET): Rename to ...
24325 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
24326 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
24327 Initialize `params->video_cursor_x' and `params->video_cursor_y'
24328 portably using grub_getxy().
24329 Replace `-EFI' with `-bzImage' in boot message.
24331 2008-08-17 Robert Millan <rmh@aybabtu.com>
24333 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
24335 2008-08-17 Robert Millan <rmh@aybabtu.com>
24337 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
24339 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
24340 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
24341 (grub_machine_mmap_iterate): New function declaration.
24342 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
24344 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
24347 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
24348 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
24349 Move e820 parsing from here ...
24350 * kern/i386/pc/mmap.c: New file.
24351 (grub_machine_mmap_iterate): ... to here.
24353 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
24354 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
24355 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
24356 (grub_available_iterate): Redeclare to return `void', and redeclare
24357 its hook to use grub_uint64_t as addr and size parameters, and rename
24359 (grub_machine_mmap_iterate): ... this. Update all users.
24361 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
24362 to make it more readable. Rename to ...
24363 (grub_machine_mmap_iterate): ... this.
24365 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
24366 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
24367 (grub_multiboot): Allocate an extra region after the payload, and fill
24368 it with a Multiboot memory map. Adjust a.out loader to calculate size
24369 with the extra space.
24370 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
24371 with the extra space.
24373 2008-08-17 Carles Pina i Estany <carles@pina.cat>
24375 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
24377 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
24379 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
24380 mdate-sh to the list `find' searches for.
24381 * DISTLIST: Regenerated.
24383 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
24385 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
24386 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
24387 genmoddep.awk, gensymlist.sh.in.
24388 (DISTDIRS): Add bus, docs, hook, lib.
24389 * DISTLIST: Regenerated.
24390 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
24392 2008-08-16 Robert Millan <rmh@aybabtu.com>
24394 * disk/raid.c (grub_raid_init): Handle/report errors set by
24395 grub_device_iterate().
24396 * disk/lvm.c (grub_lvm_init): Likewise.
24398 2008-08-15 Bean <bean123ch@gmail.com>
24400 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
24402 (datetime_mod_SOURCES): New macro.
24403 (datetime_mod_CFLAGS): Likewise.
24404 (datetime_mod_LDFLAGS): Likewise.
24405 (date_mod_SOURCES): Likewise.
24406 (date_mod_CFLAGS): Likewise.
24407 (date_mod_LDFLAGS): Likewise.
24408 (datehook_mod_SOURCES): Likewise.
24409 (datehook_mod_CFLAGS): Likewise.
24410 (datehook_mod_LDFLAGS): Likewise.
24412 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
24414 (datetime_mod_SOURCES): New macro.
24415 (datetime_mod_CFLAGS): Likewise.
24416 (datetime_mod_LDFLAGS): Likewise.
24417 (date_mod_SOURCES): Likewise.
24418 (date_mod_CFLAGS): Likewise.
24419 (date_mod_LDFLAGS): Likewise.
24420 (datehook_mod_SOURCES): Likewise.
24421 (datehook_mod_CFLAGS): Likewise.
24422 (datehook_mod_LDFLAGS): Likewise.
24424 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
24426 (datetime_mod_SOURCES): New macro.
24427 (datetime_mod_CFLAGS): Likewise.
24428 (datetime_mod_LDFLAGS): Likewise.
24429 (date_mod_SOURCES): Likewise.
24430 (date_mod_CFLAGS): Likewise.
24431 (date_mod_LDFLAGS): Likewise.
24432 (datehook_mod_SOURCES): Likewise.
24433 (datehook_mod_CFLAGS): Likewise.
24434 (datehook_mod_LDFLAGS): Likewise.
24436 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
24438 (datetime_mod_SOURCES): New macro.
24439 (datetime_mod_CFLAGS): Likewise.
24440 (datetime_mod_LDFLAGS): Likewise.
24441 (date_mod_SOURCES): Likewise.
24442 (date_mod_CFLAGS): Likewise.
24443 (date_mod_LDFLAGS): Likewise.
24444 (datehook_mod_SOURCES): Likewise.
24445 (datehook_mod_CFLAGS): Likewise.
24446 (datehook_mod_LDFLAGS): Likewise.
24448 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
24450 (datetime_mod_SOURCES): New macro.
24451 (datetime_mod_CFLAGS): Likewise.
24452 (datetime_mod_LDFLAGS): Likewise.
24453 (date_mod_SOURCES): Likewise.
24454 (date_mod_CFLAGS): Likewise.
24455 (date_mod_LDFLAGS): Likewise.
24456 (datehook_mod_SOURCES): Likewise.
24457 (datehook_mod_CFLAGS): Likewise.
24458 (datehook_mod_LDFLAGS): Likewise.
24460 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
24462 * commands/date.c: New file.
24464 * hook/datehook.c: Likewise.
24466 * include/grub/lib/datetime.h: Likewise.
24468 * include/grub/i386/cmos.h: Likewise.
24470 * lib/datetime.c: Likewise.
24472 * lib/i386/datetime.c: Likewise.
24474 * lib/efi/datetime.c: Likewise.
24476 2008-08-14 Robert Millan <rmh@aybabtu.com>
24478 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
24479 (grub_mkelfimage_SOURCES): New variable.
24480 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
24482 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
24483 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
24484 * conf/powerpc-ieee1275.rmk: Likewise.
24485 * conf/i386-ieee1275.rmk: Likewise.
24487 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
24488 * kern/i386/coreboot/init.c: Likewise.
24490 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
24491 with `<grub/cpu/kernel.h>'.
24492 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
24494 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
24495 * kern/i386/coreboot/startup.S: Likewise.
24497 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
24498 (GRUB_MOD_GAP): Remove.
24499 * include/grub/powerpc/kernel.h: New file.
24500 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
24501 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
24502 * include/grub/i386/kernel.h: New file.
24503 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
24504 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
24505 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
24507 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
24509 Use --directory when invoking grub_mkimage.
24511 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
24512 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
24513 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
24514 and GRUB_KERNEL_CPU_PREFIX.
24516 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
24518 * include/grub/err.h (grub_err_printf): New function prototype.
24519 * util/misc.c (grub_err_printf): New function.
24520 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
24522 * kern/err.c (grub_print_error): Use grub_err_printf.
24524 2008-08-13 Robert Millan <rmh@aybabtu.com>
24526 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
24528 2008-08-13 Robert Millan <rmh@aybabtu.com>
24530 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
24533 2008-08-12 Robert Millan <rmh@aybabtu.com>
24535 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
24536 of the relocation code from here ...
24537 (grub_multiboot): ... to here.
24538 (forward_relocator, backward_relocator): Move from here ...
24539 * kern/i386/loader.S (grub_multiboot_forward_relocator)
24540 (grub_multiboot_backward_relocator): ... to here.
24541 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
24542 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
24543 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
24544 (grub_multiboot_forward_relocator_end)
24545 (grub_multiboot_backward_relocator)
24546 (grub_multiboot_backward_relocator_end): New variables.
24548 2008-08-12 Bean <bean123ch@gmail.com>
24550 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
24552 2008-08-11 Robert Millan <rmh@aybabtu.com>
24554 * kern/i386/linuxbios/startup.S: Move from here ...
24555 * kern/i386/coreboot/startup.S: ... to here.
24557 * kern/i386/linuxbios/init.c: Move from here ...
24558 * kern/i386/coreboot/init.c: ... to here.
24560 * kern/i386/linuxbios/table.c: Move from here ...
24561 * kern/i386/coreboot/mmap.c: ... to here.
24563 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
24565 2008-08-11 Robert Millan <rmh@aybabtu.com>
24567 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
24568 errors. Leave it to the upper layer to handle them.
24570 2008-08-09 Christian Franke <franke@computer.org>
24572 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
24573 * conf/common.rmk: Install `grub-pe2elf' only if requested.
24574 Install `grub.d/10_windows' only on Cygwin.
24575 * configure.ac: Add subst of `target_os'.
24576 Check `target_os' also before setting TARGET_OBJ2ELF.
24577 Add `--enable-grub-pe2elf'.
24579 2008-08-08 Robert Millan <rmh@aybabtu.com>
24581 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
24582 (grub_last_time): Change type to grub_uint64_t.
24583 (grub_disk_open): Migrate code from to using grub_get_time_ms().
24584 (grub_disk_close): Likewise.
24586 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
24587 (run_menu): Migrate code from to using grub_get_time_ms().
24589 * util/misc.c (grub_get_time_ms): New function.
24591 2008-08-08 Marco Gerards <marco@gnu.org>
24593 * disk/ata.c (grub_ata_regget): Change return type to
24595 (grub_ata_regget2): Likewise.
24596 (grub_ata_wait_status): New function.
24597 (grub_ata_wait_busy): Removed function, updated all users to use
24598 `grub_ata_wait_status'.
24599 (grub_ata_wait_drq): Likewise.
24600 (grub_ata_cmd): New function.
24601 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
24603 (grub_ata_pio_write): Add error handling.
24604 (grub_atapi_identify): Likewise.
24605 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
24607 (grub_ata_identify): Use `grub_ata_cmd' and improve error
24608 handling. Actually use the detected registers. Reorder the
24609 detection logic such that it is easier to read.
24610 (grub_ata_pciinit): Do not assign the same ID to each controller.
24611 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
24613 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
24615 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
24617 2008-08-08 Marco Gerards <marco@gnu.org>
24621 2008-08-07 Bean <bean123ch@gmail.com>
24623 * include/grub/x86_64/pci.h: New file.
24625 2008-08-07 Christian Franke <franke@computer.org>
24627 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
24628 (TIMER2_GATE): Likewise.
24629 (grub_pit_wait): Add enable/disable of the timer2 gate
24630 bit of port 0x61. This fixes a possible infinite loop.
24632 2008-08-07 Bean <bean123ch@gmail.com>
24634 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
24635 kern/i386/tsc.c and kern/i386/pit.c.
24637 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
24640 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
24643 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
24645 2008-08-07 Bean <bean123ch@gmail.com>
24647 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
24649 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
24651 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
24652 multiple inclusion. Add #include <grub/types.h>.
24654 2008-08-06 Christian Franke <franke@computer.org>
24656 * conf/common.rmk: Build and install `10_windows'.
24657 * util/grub.d/10_windows.in: New script.
24659 2008-08-06 Pavel Roskin <proski@gnu.org>
24661 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
24663 2008-08-06 Robert Millan <rmh@aybabtu.com>
24665 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
24666 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
24668 2008-08-06 Bean <bean123ch@gmail.com>
24670 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
24671 (grub_pxefs_fs_int): Remove dummy definition.
24672 (grub_pxefs_open): Use data->block_size to store the current block
24674 (grub_pxefs_read): Use block size stored in data->block_size. As the
24675 value of grub_pxe_blksize can be changed after the file is opened.
24677 2008-08-06 Bean <bean123ch@gmail.com>
24679 * fs/i386/pc/pxe.c (curr_file): new variable.
24680 (grub_pxefs_open): Simply the handling of pxe file system. Don't
24681 require the dummy internal file system anymore.
24682 (grub_pxefs_read): Removed.
24683 (grub_pxefs_close): Likewise.
24684 (grub_pxefs_fs_int): Likewise.
24685 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
24686 connection when we switch file.
24687 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
24689 2008-08-06 Robert Millan <rmh@aybabtu.com>
24691 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
24693 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
24694 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
24696 * kern/i386/halt.c: New file.
24697 * kern/i386/reboot.c: Likewise.
24698 * include/grub/i386/reboot.h: Likewise.
24699 * include/grub/i386/halt.h: Likewise.
24701 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
24702 Include `<grub/cpu/halt.h>'.
24703 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
24704 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
24706 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
24707 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
24708 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
24709 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
24710 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
24711 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
24713 * include/grub/i386/at_keyboard.h: ... to here.
24715 2008-08-05 Robert Millan <rmh@aybabtu.com>
24717 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
24718 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
24719 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
24720 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
24721 `kern/generic/millisleep.c'.
24723 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
24724 instead of grub_get_rtc().
24725 (grub_tsc_init): Initialize `tsc_boot_time'.
24727 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
24728 (grub_machine_init): Use grub_tsc_init() rather than
24729 installing an RTC-based handler via grub_install_get_time_ms().
24731 * kern/i386/pit.c: New file.
24732 * include/grub/i386/pit.h: Likewise.
24734 2008-08-05 Bean <bean123ch@gmail.com>
24736 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
24738 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
24739 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
24740 (pxe_mod_SOURCES): New macro.
24741 (pxe_mod_CFLAGS): Likewise.
24742 (pxe_mod_LDFLAGS): Likewise.
24743 (pxecmd_mod_SOURCES): Likewise.
24744 (pxecmd_mod_CFLAGS): Likewise.
24745 (pxecmd_mod_LDFLAGS): Likewise.
24747 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
24748 (grub_pxe_call): Likewise.
24750 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
24752 * commands/i386/pc/pxecmd.c: New file.
24754 * fs/i386/pc/pxe.c: Likewise.
24756 * include/grub/i386/pc/pxe.h: Likewise.
24758 2008-08-05 Bean <bean123ch@gmail.com>
24760 * util/console.c (grub_console_cur_color): New variable.
24761 (grub_console_standard_color): Likewise.
24762 (grub_console_normal_color): Likewise.
24763 (grub_console_highlight_color): Likewise.
24764 (color_map): Likewise.
24765 (use_color): Likewise.
24766 (NUM_COLORS): New macro.
24767 (grub_ncurses_setcolorstate): Handle color properly.
24768 (grub_ncurses_setcolor): Don't change color here, just remember the
24769 settings, color will be set in grub_ncurses_setcolorstate.
24770 (grub_ncurses_getcolor): New function.
24771 (grub_ncurses_init): Initialize color pairs.
24772 (grub_ncurses_term): New member grub_ncurses_getcolor.
24774 2008-08-05 Colin D Bennett <colin@gibibit.com>
24776 High resolution timer support. Implemented for x86 CPUs using TSC.
24777 Extracted generic grub_millisleep() so it's linked in only as needed.
24778 This requires a Pentium compatible CPU; if the RDTSC instruction is
24779 not supported, then it falls back on the generic grub_get_time_ms()
24780 implementation that uses the machine's RTC.
24782 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
24783 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
24784 `kern/generic/millisleep.c'.
24786 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
24787 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
24789 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
24790 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
24792 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
24794 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
24795 `kern/generic/millisleep.c'.
24797 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
24799 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
24801 * kern/generic/rtc_get_time_ms.c: New file.
24803 * kern/generic/millisleep.c: New file.
24805 * kern/misc.c: Don't include
24806 <kern/time.h> anymore.
24807 (grub_millisleep_generic): Removed.
24809 * commands/sleep.c (grub_interruptible_millisleep): Uses
24810 grub_get_time_ms() instead of grub_get_rtc().
24812 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
24814 (grub_cpu_is_cpuid_supported): New inline function.
24815 (grub_cpu_is_tsc_supported): New inline function.
24816 (grub_tsc_init): New function prototype.
24817 (grub_tsc_get_time_ms): New function prototype.
24819 * kern/i386/tsc.c (grub_get_time_ms): New file.
24821 * include/grub/time.h: Include <grub/types.h.
24822 (grub_millisleep_generic): Removed.
24823 (grub_get_time_ms): New prototype.
24824 (grub_install_get_time_ms): New prototype.
24825 (grub_rtc_get_time_ms): New prototype.
24827 * kern/time.c (grub_get_time_ms): New function.
24828 (grub_install_get_time_ms): New function.
24830 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
24831 <grub/time.h> anymore.
24832 (grub_millisleep): Removed.
24833 (grub_machine_init): Call grub_tsc_init.
24835 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
24836 get_time_ms() implementation.
24838 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
24839 (ieee1275_get_time_ms): New function.
24840 (grub_machine_init): Install get_time_ms() implementation.
24842 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
24843 (grub_machine_init): Call grub_tsc_init().
24844 (grub_millisleep): Removed.
24846 * kern/ieee1275/init.c (grub_millisleep): Removed.
24847 (grub_machine_init): Install ieee1275_get_time_ms()
24849 (ieee1275_get_time_ms): New function.
24850 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
24853 2008-08-05 Marco Gerards <marco@gnu.org>
24855 * disk/ata.c: Include <grub/pci.h>.
24856 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
24857 (grub_ata_initialize): Rewritten.
24858 (grub_ata_device_initialize): New function.
24860 2008-08-04 Pavel Roskin <proski@gnu.org>
24862 * kern/main.c: Include grub/mm.h.
24864 2008-08-04 Robert Millan <rmh@aybabtu.com>
24866 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
24867 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
24868 corruption problem).
24870 2008-08-04 Robert Millan <rmh@aybabtu.com>
24872 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
24873 warnings introduced in my last commit.
24875 2008-08-03 Robert Millan <rmh@aybabtu.com>
24877 Make PCI available on all i386 architectures.
24879 * include/grub/i386/pc/pci.h: Move from here ...
24880 * include/grub/i386/pci.h: ... to here.
24882 * include/grub/i386/pc/pci.h: Remove.
24883 * include/grub/i386/efi/pci.h: Remove.
24884 * include/grub/x86_64/efi/pci.h: Remove.
24886 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
24887 `<grub/cpu/pci.h>'.
24889 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
24890 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
24891 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
24893 * conf/i386-ieee1275.rmk: Likewise.
24895 2008-08-03 Robert Millan <rmh@aybabtu.com>
24897 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
24898 (grub_console_setcursor): Make it possible to set cursor off.
24900 2008-08-03 Robert Millan <rmh@aybabtu.com>
24902 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
24903 of modules instead of assuming which platform provides what.
24904 * util/update-grub.in: Likewise.
24906 2008-08-03 Robert Millan <rmh@aybabtu.com>
24908 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
24909 instead of `grub_install_dos_part' to determine whether a drive needs
24910 to be prepended to prefix (`grub_install_dos_part' is not reliable,
24911 because it can be overridden when loading GRUB via Multiboot).
24913 2008-08-02 Robert Millan <rmh@aybabtu.com>
24915 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
24917 2008-08-02 Robert Millan <rmh@aybabtu.com>
24919 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
24920 of informational grub_dprintf() calls.
24922 2008-08-02 Robert Millan <rmh@aybabtu.com>
24924 * disk/memdisk.c (memdisk_size): Don't initialize.
24925 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
24927 * include/grub/i386/pc/kernel.h
24928 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
24929 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
24930 (grub_memdisk_image_size, grub_arch_memdisk_addr)
24931 (grub_arch_memdisk_size): Remove.
24933 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
24934 field (was only used to transfer a constant). Add `type' field to
24935 support multiple module types.
24936 (grub_module_iterate): New function.
24938 * kern/device.c (grub_device_open): Do not hide error messages
24939 when grub_disk_open() fails. Use grub_print_error() instead.
24941 * kern/i386/pc/init.c (grub_arch_modules_addr)
24942 (grub_arch_memdisk_size): Remove functions.
24943 (grub_arch_modules_addr): Return the module address in high memory
24944 (now that it isn't copied anymore).
24946 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
24947 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
24948 decompression routine (grub_total_module_size already includes that
24949 now). Don't copy modules back to low memory.
24951 * kern/main.c: Include `<grub/mm.h>'.
24952 (grub_load_modules): Split out (and use) ...
24953 (grub_module_iterate): ... this function, which iterates through
24954 module objects and runs a hook.
24955 Comment out grub_mm_init_region() call, as it would cause non-ELF
24956 modules to be overwritten.
24958 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
24959 the memdisk image in its own region, make it part of the module list.
24960 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
24961 (main): Parse --memdisk|-m option, and pass user-provided path as
24962 parameter to generate_image().
24963 (add_segments): Pass `memdisk_path' down to load_modules().
24964 (load_modules): Embed memdisk image in module section when requested.
24965 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
24966 `header.type' instead of `header.offset'.
24968 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
24969 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
24970 (memdisk_mod_LDFLAGS): New variables.
24971 * conf/i386-coreboot.rmk: Likewise.
24972 * conf/i386-ieee1275.rmk: Likewise.
24974 2008-08-02 Robert Millan <rmh@aybabtu.com>
24976 * loader/i386/pc/multiboot.c (playground, forward_relocator)
24977 (backward_relocator): New variables. Used to allocate and relocate
24978 the payload, respectively.
24979 (grub_multiboot_load_elf32): Load into heap instead of requested
24980 address, install the appropriate relocator code in each bound of
24981 the payload, and set the entry point such that
24982 grub_multiboot_real_boot() will jump to one of them.
24984 * kern/i386/loader.S (grub_multiboot_payload_size)
24985 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
24986 (grub_multiboot_payload_entry_offset): New variables.
24987 (grub_multiboot_real_boot): Set cpu context to what the relocator
24988 expects, and jump to the relocator instead of the payload.
24990 * include/grub/i386/loader.h (grub_multiboot_payload_size)
24991 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
24992 (grub_multiboot_payload_entry_offset): Export.
24994 2008-08-01 Bean <bean123ch@gmail.com>
24996 * normal/menu_entry.c (editor_getline): Don't return the original
24997 string as result, as it will be released by lexer once it has done
25000 2008-08-01 Robert Millan <rmh@aybabtu.com>
25002 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
25003 within menuentries, not before them.
25004 util/grub.d/10_hurd.in: Likewise.
25006 2008-08-01 Bean <bean123ch@gmail.com>
25008 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
25009 (bufio_mod_SOURCES): New macro.
25010 (bufio_mod_CFLAGS): Likewise.
25011 (bufio_mod_LDFLAGS): Likewise.
25013 * include/grub/bufio.h: New file.
25015 * io/bufio.c: Likewise.
25017 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
25018 (grub_video_reader_png): Use grub_buffile_open to open file.
25020 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
25021 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
25023 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
25024 (grub_video_reader_tga): Use grub_buffile_open to open file.
25026 * font/manager.c: Include <grub/bufio.h>.
25027 (add_font): Use grub_buffile_open to open file.
25029 2008-07-31 Robert Millan <rmh@aybabtu.com>
25031 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
25032 ELF segments, use a macro for arbitrarily accessing any of them instead
25033 of preparing a pointer that allows access to one at a time.
25034 (grub_multiboot_load_elf64): Likewise.
25036 2008-07-31 Bean <bean123ch@gmail.com>
25038 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
25039 GRUB_KERNEL_MACHINE_DATA_END.
25041 2008-07-30 Robert Millan <rmh@aybabtu.com>
25043 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
25044 Increase from 0x50 to 0x60.
25045 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
25046 use UUIDs to identify the root drive for them. If that's not
25048 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
25049 check, for cross-disk installs.
25051 2008-07-30 Robert Millan <rmh@aybabtu.com>
25053 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
25054 is non-empty, use it to set the `prefix' environment variable instead
25055 of the usual approach.
25056 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
25057 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
25058 environment variable instead of dummy make_install_device().
25060 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
25061 (start): Insert a data section, with `grub_prefix' variable.
25062 * kern/i386/linuxbios/startup.S: Likewise.
25064 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
25065 New variable reference.
25066 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
25067 New macro. Defines offset of `grub_prefix' within startup.S (relative
25069 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
25070 section within startup.S (relative to `start').
25071 * include/grub/i386/coreboot/kernel.h: Likewise.
25073 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
25074 Overwrite grub_prefix with its contents, at the beginning of the
25076 (main): Understand -p|--prefix.
25078 2008-07-30 Robert Millan <rmh@aybabtu.com>
25080 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
25082 2008-07-30 Robert Millan <rmh@aybabtu.com>
25084 * term/i386/pc/vga_text.c (grub_console_cls): Use
25085 grub_console_gotoxy() to go back to beginning of the screen.
25086 Found by Patrick Georgi <patrick.georgi@coresystems.de>
25088 2008-07-29 Christian Franke <franke@computer.org>
25090 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
25091 Add conversion of emulated mount points on Cygwin.
25093 2008-07-29 Christian Franke <franke@computer.org>
25095 * util/update-grub.in: Add a check for admin
25097 Remove old `grub.cfg.new' before creation.
25098 Add `-f' to `mv' to handle the different filesystem
25099 semantics of Windows.
25101 2008-07-29 Bean <bean123ch@gmail.com>
25103 * normal/main.c (get_line): Fix buffer overflow bug.
25105 2008-07-28 Robert Millan <rmh@aybabtu.com>
25107 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
25108 (struct grub_apple_header): New struct. Describes the layout of
25109 the partmap header.
25110 (apple_partition_map_iterate): Check the header magic as well as the
25111 partition magic (which was already being checked).
25113 2008-07-28 Pavel Roskin <proski@gnu.org>
25115 * genmk.rb: Add a warning to the beginning of the output that
25116 it's a generated file and should not be edited.
25118 2008-07-28 Robert Millan <rmh@aybabtu.com>
25120 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
25121 with the same number are found, just use issue a warning with
25122 grub_dprintf(), as this error has been reported to be non-fatal.
25124 2008-07-27 Robert Millan <rmh@aybabtu.com>
25126 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
25129 2008-07-27 Bean <bean123ch@gmail.com>
25131 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
25132 (grub_fat_find_dir): Ignore case when comparing filename.
25134 2008-07-27 Bean <bean123ch@gmail.com>
25136 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
25137 smallino, as it's more descriptive, and i8count can be confused with
25138 the other field count.
25139 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
25142 2008-07-27 Bean <bean123ch@gmail.com>
25144 * commands/crc.c: New file.
25146 * lib/crc.c: Likewise.
25148 * include/grub/lib/crc.h: Likewise.
25150 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
25152 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
25153 (hexdump): Move this function to ...
25155 * lib/hexdump.c: ... here.
25157 * include/grub/hexdump.h: Renamed to ...
25159 * include/grub/lib/hexdump.h: ... this.
25161 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
25163 * util/grub-editenv.c: Likewise.
25165 * include/envblk.h: Renamed to ...
25167 * include/lib/envblk.h: ... this.
25169 * util/envblk.c: Renamed to ...
25171 * lib/envblk.c: ... this.
25173 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
25175 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
25176 (pkglib_MODULES): Add crc.mod.
25177 (hexdump_mod_SOURCES): Add lib/hexdump.c.
25178 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
25179 (crc_mod_SOURCES): New macro.
25180 (crc_mod_CFLAGS): Likewise.
25181 (crc_mod_LDFLAGS): Likewise.
25183 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
25185 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25187 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25189 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25191 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25193 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
25195 * commands/help.c: Include <grub/term.h>.
25196 (TERM_WIDTH): Removed. Updated all users.
25198 2008-07-27 Pavel Roskin <proski@gnu.org>
25200 * util/getroot.c (find_root_device): Rephrase a comment to avoid
25201 spurious warnings about a comment within a comment.
25203 2008-07-25 Robert Millan <rmh@aybabtu.com>
25205 * util/getroot.c (find_root_device): Skip devices that match
25206 /dev/dm-[0-9]. This lets the real device be found for any type of
25207 abstraction (LVM, EVMS, RAID..).
25208 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
25209 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
25210 device is found first, find_root_device() will now skip it.
25212 2008-07-24 Pavel Roskin <proski@gnu.org>
25214 * include/grub/types.h: Use __builtin_bswap32() and
25215 __builtin_bswap64() with gcc 4.3 and newer.
25217 2008-07-24 Christian Franke <franke@computer.org>
25219 * util/i386/pc/grub-install.in: If `--debug' is specified,
25220 pass `--verbose' to grub-setup.
25221 Abort script if make_system_path_relative_to_its_root() fails.
25223 2008-07-24 Bean <bean123ch@gmail.com>
25225 * configure.ac: Fixed a bug caused by the previous cygwin patch,
25226 variable `target_platform' should be `platform'.
25228 2008-07-24 Bean <bean123ch@gmail.com>
25230 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
25231 (grub_png_init_fixed_block): New function.
25232 (grub_png_decode_image_data): Handle fixed huffman code compression.
25234 2008-07-24 Bean <bean123ch@gmail.com>
25236 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
25237 (grub_pe2elf_SOURCES): New macro.
25238 (CLEANFILES): Add grub-pe2elf.
25240 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
25241 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
25242 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
25243 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
25244 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
25245 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
25246 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
25247 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
25248 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
25249 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
25250 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
25251 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
25252 (GRUB_PE32_DT_FUNCTION): Likewise.
25253 (GRUB_PE32_REL_I386_DIR32): Likewise.
25254 (GRUB_PE32_REL_I386_REL32): Likewise.
25255 (grub_pe32_symbol): New structure.
25256 (grub_pe32_reloc): Likewise.
25258 * util/grub-pe2elf.c: New file.
25260 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
25261 start symbol in non pc platform.
25263 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
25265 The following patches are from Christian Franke.
25267 * include/grub/dl.h: Remove .previous, gas supports this only
25270 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
25271 Remove .type, gas supports this only for ELF format.
25273 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
25274 nullbytes in symbol table. This fixes an infinite loop if table is
25277 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
25278 TARGET_IMG_LDFLAGS and EXEEXT.
25280 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
25281 TARGET_IMG_LDFLAGS_AC.
25282 (grub_CHECK_STACK_ARG_PROBE): New function.
25284 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
25286 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
25288 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
25289 to set TARGET_IMG_LD* accordingly.
25290 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
25291 Add call to grub_CHECK_STACK_ARG_PROBE.
25292 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
25294 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
25296 * genmk.rb: Add EXEEXT to CLEANFILES.
25298 2008-07-23 Robert Millan <rmh@aybabtu.com>
25300 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
25301 define the codes for arrows and lines used for the menu).
25302 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
25305 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
25306 fonts, because the latter are too slow.
25308 2008-07-21 Bean <bean123ch@gmail.com>
25310 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
25311 a20. Run keyboard test last, as it will cause macbook to halt.
25313 2008-07-18 Pavel Roskin <proski@gnu.org>
25315 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
25316 load foreign architecture modules correctly anyway. Keep
25317 support for loading host architecture modules, whether we
25318 compile them or not.
25320 2008-07-17 Pavel Roskin <proski@gnu.org>
25322 * configure.ac: Use -m32 or -m64 regardless of whether we had to
25323 change target_cpu. The compiler default can mismatch target_cpu
25326 * disk/efi/efidisk.c: Fix format warnings on x86_64.
25327 * kern/efi/efi.c: Likewise.
25329 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
25330 target compiler is functional.
25331 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
25334 * configure.ac: Default to efi platform for x86_64-apple. Allow
25335 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
25336 adjustments from the rest, only do them if target is not
25337 explicitly given. Merge other adjustments with the final sanity
25338 check. Remove an extraneous check for supported CPU. Be
25339 specific which CPU and which platform is not supported.
25341 * configure.ac: Default to pc platform for x86_64.
25343 2008-07-17 Robert Millan <rmh@aybabtu.com>
25345 Partial LinuxBIOS -> Coreboot rename.
25347 * conf/i386-linuxbios.rmk: Renamed to ...
25348 * conf/i386-coreboot.rmk: ... this.
25349 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
25350 * configure.ac: Accept "coreboot" as input platform (but maintain
25351 compatibility with "linuxbios").
25352 * include/grub/i386/linuxbios: Renamed to ...
25353 * include/grub/i386/coreboot: ... this.
25355 2008-07-17 Bean <bean123ch@gmail.com>
25357 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
25358 (appleldr_mod_SOURCE): New variable.
25359 (appleldr_mod_CFLAGS): Likewise.
25360 (appleldr_mod_LDFLAGS): Likewise.
25361 (pci_mod_SOURCES): Likewise.
25362 (pci_mod_CFLAGS): Likewise.
25363 (pci_mod_LDFLAGS): Likewise.
25364 (lspci_mod_SOURCES): Likewise.
25365 (lspci_mod_CFLAGS): Likewise.
25366 (lspci_mod_LDFLAGS): Likewise.
25368 * conf/x86_64-efi.rmk: New file.
25370 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
25372 (grub_efidisk_write): Likewise.
25374 * include/efi/api.h (efi_call_0): New macro.
25375 (efi_call_1): Likewise.
25376 (efi_call_2): Likewise.
25377 (efi_call_3): Likewise.
25378 (efi_call_4): Likewise.
25379 (efi_call_5): Likewise.
25380 (efi_call_6): Likewise.
25382 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
25383 grub_rescue_cmd_chainloader.
25385 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
25386 (grub_pe32_optional_header): Change some fields based on i386 or
25388 (GRUB_PE32_PE32_MAGIC): Likewise.
25390 * include/grub/efi/uga_draw.h: New file.
25392 * include/grub/elf.h (STN_ABS): New constant.
25393 (R_X86_64_NONE): Relocation constant for x86_64.
25394 (R_X86_64_64): Likewise.
25395 (R_X86_64_PC32): Likewise.
25396 (R_X86_64_GOT32): Likewise.
25397 (R_X86_64_PLT32): Likewise.
25398 (R_X86_64_COPY): Likewise.
25399 (R_X86_64_GLOB_DAT): Likewise.
25400 (R_X86_64_JUMP_SLOT): Likewise.
25401 (R_X86_64_RELATIVE): Likewise.
25402 (R_X86_64_GOTPCREL): Likewise.
25403 (R_X86_64_32): Likewise.
25404 (R_X86_64_32S): Likewise.
25405 (R_X86_64_16): Likewise.
25406 (R_X86_64_PC16): Likewise.
25407 (R_X86_64_8): Likewise.
25408 (R_X86_64_PC8): Likewise.
25410 * include/grub/i386/efi/pci.h: New file.
25412 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
25413 Change it value based on platform.
25414 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
25415 (GRUB_E820_RAM): Likewise.
25416 (GRUB_E820_RESERVED): Likewise.
25417 (GRUB_E820_ACPI): Likewise.
25418 (GRUB_E820_NVS): Likewise.
25419 (GRUB_E820_EXEC_CODE): Likewise.
25420 (GRUB_E820_MAX_ENTRY): Likewise.
25421 (grub_e820_mmap): New structure.
25422 (linux_kernel_header): Change the efi field according to different
25423 kernel version, also field from linux_kernel_header.
25425 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
25427 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
25428 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
25429 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
25430 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
25431 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
25432 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
25433 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
25434 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
25435 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
25436 (GRUB_PCI_ADDR_IO_MASK): Likewise.
25438 * include/grub/x86_64/efi/kernel.h: New file.
25440 * include/grub/x86_64/efi/loader.h: Likewise.
25442 * include/grub/x86_64/efi/machine.h: Likewise.
25444 * include/grub/x86_64/efi/pci.h: Likewise.
25446 * include/grub/x86_64/efi/time.h: Likewise.
25448 * include/grub/x86_64/linux.h: Likewise.
25450 * include/grub/x86_64/setjmp.h: Likewise.
25452 * include/grub/x86_64/time.h: Likewise.
25454 * include/grub/x86_64/types.h: Likewise.
25456 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
25457 GRUB_TARGET_SIZEOF_VOID_P.
25459 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
25460 (grub_efi_locate_handle): Likewise.
25461 (grub_efi_open_protocol): Likewise.
25462 (grub_efi_set_text_mode): Likewise.
25463 (grub_efi_stall): Likewise.
25464 (grub_exit): Likewise.
25465 (grub_reboot): Likewise.
25466 (grub_halt): Likewise.
25467 (grub_efi_exit_boot_services): Likewise.
25468 (grub_get_rtc): Likewise.
25470 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
25471 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
25472 (grub_efi_allocate_pages): Wrap efi calls.
25473 (grub_efi_free_pages): Wrap efi calls.
25474 (grub_efi_get_memory_map): Wrap efi calls.
25476 * kern/x86_64/dl.c: New file.
25478 * kern/x86_64/efi/callwrap.S: Likewise.
25480 * kern/x86_64/efi/startup.S: Likewise.
25482 * loader/efi/appleloader.c: Likewise.
25484 * loader/efi/chainloader.c (cmdline): New variable.
25485 (grub_chainloader_unload): Wrap efi calls.
25486 (grub_chainloader_boot): Likewise.
25487 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
25490 * loader/efi/chainloader_normal.c (chainloader_command):
25491 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
25494 * loader/i386/efi/linux.c (allocate_pages): Change allocation
25496 (grub_e820_add_region): New function.
25497 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
25499 (grub_find_video_card): New function.
25500 (grub_linux_setup_video): New function.
25501 (grub_rescue_cmd_linux): Probe for video information.
25503 * normal/x86_64/setjmp.S: New file.
25505 * term/efi/console.c (map_char): New function.
25506 (grub_console_putchar): Map unicode char.
25507 (grub_console_checkkey): Wrap efi calls.
25508 (grub_console_getkey): Likewise.
25509 (grub_console_getwh): Likewise.
25510 (grub_console_gotoxy): Likewise.
25511 (grub_console_cls): Likewise.
25512 (grub_console_setcolorstate): Likewise.
25513 (grub_console_setcursor): Likewise.
25515 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
25517 2008-07-16 Pavel Roskin <proski@gnu.org>
25519 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
25522 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
25523 pointer, not an integer. This fixes a warning and prevents
25524 precision loss on 64-bit systems.
25525 (relocate_addresses): Remove unneeded cast.
25527 2008-07-15 Pavel Roskin <proski@gnu.org>
25529 * kern/i386/ieee1275/init.c: Include grub/cache.h.
25531 * term/ieee1275/ofconsole.c: Disable code unused on i386.
25533 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
25534 Fix comparison between signed and unsigned.
25536 * include/grub/i386/ieee1275/console.h: Declare
25537 grub_console_init() and grub_console_fini().
25539 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
25540 It's empty and unused.
25542 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
25543 beginning to avoid warnings with some compilers.
25545 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
25546 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
25548 2008-07-14 Pavel Roskin <proski@gnu.org>
25550 * kern/env.c (grub_register_variable_hook): Don't copy empty
25551 string, it leaks memory. Pass "" to grub_env_set(), it should
25552 handle constant strings.
25554 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
25555 * commands/cmp.c (grub_cmd_cmp): Likewise.
25556 * kern/dl.c (grub_dl_flush_cache): Likewise.
25557 (grub_dl_load_core): Likewise.
25558 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
25559 (grub_elf64_load_phdrs): Likewise.
25561 2008-07-13 Pavel Roskin <proski@gnu.org>
25563 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
25564 between signed and unsigned.
25565 (LzmaEnc_Finish): Fix warning about an unused parameter.
25567 2008-07-13 Bean <bean123ch@gmail.com>
25569 * Makefile.in (enable_lzo): New rule.
25571 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
25573 * configure.ac (ENABLE_LZO): New option --enable-lzo.
25575 * boot/i386/pc/lnxboot.S: #include <config.h>.
25577 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
25578 its value according to the compression algorithm used, lzo or lzma.
25580 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
25581 compression algorithm according to configure macro.
25583 * kern/i386/pc/startup.S (codestart): Likewise.
25585 * kern/i386/pc/lzma_decode.S: New file.
25587 * include/grub/lib/LzFind.h: Likewise.
25589 * include/grub/lib/LzHash.h: Likewise.
25591 * include/grub/lib/LzmaDec.h: Likewise.
25593 * include/grub/lib/LzmaEnc.h: Likewise.
25595 * include/grub/lib/LzmaTypes.h: Likewise.
25597 * lib/LzFind.c: Likewise.
25599 * lib/LzmaDec.c: Likewise.
25601 * lib/LzmaEnc.c: Likewise.
25603 2008-07-13 Bean <bean123ch@gmail.com>
25605 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
25606 (grub_ext4_extent_header): New structure.
25607 (grub_ext4_extent): Likewise.
25608 (grub_ext4_extent_idx): Likewise.
25609 (grub_ext4_find_leaf): New function.
25610 (grub_ext2_read_block): Handle extents.
25612 2008-07-12 Robert Millan <rmh@aybabtu.com>
25614 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
25616 2008-07-11 Robert Millan <rmh@aybabtu.com>
25618 * util/grub.d/40_custom.in: New file. Example on how to add custom
25619 entries to /etc/grub.d.
25620 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
25621 40_custom (implicitly, by merging all the grub.d rules).
25623 2008-07-11 Pavel Roskin <proski@gnu.org>
25625 * commands/read.c (grub_getline): Fix invalid memory access.
25626 Don't add newline to the variable value.
25628 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
25629 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
25630 (serial_hw_get_port): Check validity of the port number.
25631 (grub_cmd_serial): Check return value of serial_hw_get_port().
25633 2008-07-07 Pavel Roskin <proski@gnu.org>
25635 * boot/i386/pc/diskboot.S (notification_string): Replace
25636 "Loading kernel" with just "loading". This is shorter, less
25637 confusing and saves a few bytes for possible future changes.
25639 2008-07-05 Pavel Roskin <proski@gnu.org>
25641 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
25642 size for ATAPI devices, they are undefined. Output sector
25643 number in decimal form.
25645 * disk/ata.c: Use named constants for status bits.
25647 2008-07-04 Pavel Roskin <proski@gnu.org>
25649 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
25650 grub_addr_t before casting it to the void pointer to fix a
25651 warning. Non-addressable regions are discarded earlier.
25652 (grub_arch_modules_addr): Cast _end to grub_addr_t.
25653 * kern/i386/linuxbios/table.c: Include grub/misc.h.
25654 (check_signature): Don't shadow table_header.
25655 (grub_linuxbios_table_iterate): Cast numeric constants to
25656 grub_linuxbios_table_header_t.
25657 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
25660 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
25663 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
25664 pointer, which can cause warnings. Support 64-bit addresses.
25666 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
25667 of sizeof(long). This fixes PowerPC image generation on x86_64.
25669 2008-07-04 Robert Millan <rmh@aybabtu.com>
25671 This fixes a performance issue when pc & gpt partmap iterators
25672 didn't abort iteration even after our hook found what it was
25673 looking for (often causing expensive probes of non-existent drives).
25675 Some callers relied on previous buggy behaviour, since they would
25676 raise an error when their own hooks caused early abortion of its
25679 * kern/device.c (grub_device_open): Improve error message.
25680 * disk/lvm.c (grub_lvm_open): Likewise.
25681 * disk/raid.c (grub_raid_open): Likewise.
25683 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
25684 when hook requests it, independently of grub_errno.
25685 (pc_partition_map_probe): Do not fail when find_func() caused
25686 early abortion of pc_partition_map_iterate().
25688 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
25689 when hook requests it, independently of grub_errno.
25690 (gpt_partition_map_probe): Do not fail when find_func() caused
25691 early abortion of gpt_partition_map_iterate().
25693 * kern/partition.c (grub_partition_iterate): Abort parent iteration
25694 when hook requests it, independently of grub_errno. Do not fail when
25695 part_map_iterate_hook() caused early abortion of p->iterate().
25697 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
25698 when grub_partition_iterate() returned with non-zero.
25700 2008-07-03 Pavel Roskin <proski@gnu.org>
25702 * disk/ata.c (grub_ata_pio_write): Check status before writing,
25703 like we do in grub_ata_pio_read().
25704 (grub_ata_readwrite): Always write individual sectors. Fix the
25705 sector count for the remainder.
25706 (grub_ata_write): Enable writing to ATA devices. Correctly
25707 report error for ATAPI devices.
25709 2008-07-02 Pavel Roskin <proski@gnu.org>
25711 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
25714 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
25715 for every read sector, we already increment it for the whole
25716 batch. This fixes reading more than 256 sectors at once.
25718 * util/grub-editenv.c (cmd_info): Cast argument to long
25719 explicitly. ptrdiff_t reduces to int on i386.
25721 * util/grub-editenv.c (main): Be specific which parameter is
25724 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
25725 (memdisk): Make memdisk_orig_addr a pointer.
25727 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
25728 for file offsets, use grub_off_t instead. Fix printf format
25731 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
25732 there. Real unexpected warnings should not drown in the noise
25733 about known problems.
25735 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
25736 grub_disk_addr_t for memory addresses.
25738 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
25739 explicitly to fix a warning.
25741 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
25743 * Makefile.in (MODULE_LDFLAGS): New variable.
25744 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
25745 the linker accepts --build-id=none.
25746 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
25748 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
25750 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
25751 those in Linux XFS code. Provide a way to access 64-bit parent
25753 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
25754 the end of struct grub_xfs_dir_header.
25756 2008-07-02 Bean <bean123ch@gmail.com>
25758 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
25759 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
25760 and GRUB_IEEE1275_FLAG_NO_ANSI.
25762 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
25763 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
25764 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
25766 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
25767 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
25769 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
25770 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
25772 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
25773 esc sequence on non ANSI terminal.
25774 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
25776 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
25779 2008-07-02 Bean <bean123ch@gmail.com>
25781 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
25782 (grub_editenv_SOURCES): New variable.
25783 (pkglib_MODULES): Add loadenv.mod.
25784 (loadenv_mod_SOURCES): New variable.
25785 (loadenv_mod_CFLAGS): Likewise.
25786 (loadenv_mod_LDFLAGS): Likewise.
25788 * include/grub/envblk.h: New file.
25790 * util/envblk.c: New file.
25792 * util/grub-editenv.c: New file.
25794 * commands/loadenv.c: New file.
25796 2008-07-01 Pavel Roskin <proski@gnu.org>
25798 * include/multiboot2.h (struct multiboot_tag_module): Use char,
25799 not unsigned char. This fixes warnings and is consistent with
25802 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
25804 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
25806 * term/tparm.c (analyze): Always set *popcount.
25808 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
25809 cast to fix a warning.
25811 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
25812 cast to suppress a warning.
25814 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
25815 grub_fshelp_read_file() expects.
25817 * fs/fat.c: Fix UUID calculation on big-endian systems. We
25818 write uuid as a 32-bit value in CPU byte order, so declare and
25821 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
25822 long if the format specifier expects it.
25823 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
25824 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25825 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
25826 long to fix a warning.
25827 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
25828 grub_dprintf() arguments to fix warnings.
25830 2008-06-30 Pavel Roskin <proski@gnu.org>
25832 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
25833 install_bsd_part immediately before core.img is embedded or
25834 modified on disk. This fixes core.img verification if core.img
25835 cannot be embedded.
25837 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
25838 core_path to calculate the blocklist.
25839 Patch from Javier Martín <lordhabbit@gmail.com>
25841 2008-06-29 Robert Millan <rmh@aybabtu.com>
25843 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
25844 block to disk block.
25845 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
25846 Patch from Niels Böhm <bitbucket@arcor.de>
25848 2008-06-29 Robert Millan <rmh@aybabtu.com>
25850 * util/update-grub_lib.in (font_path): Search for fonts in
25851 /boot/grub first, which is more likely to be readable (we aren't
25852 deciding where fonts live, just looking for them).
25854 2008-06-26 Pavel Roskin <proski@gnu.org>
25856 * util/biosdisk.c (read_device_map): Don't leave dead map
25857 entries for devices failing stat() check.
25859 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
25860 core_path_dev for the core.img path on the target device.
25862 2008-06-26 Robert Millan <rmh@aybabtu.com>
25864 * disk/fs_uuid.c: New file.
25865 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
25866 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
25867 (fs_uuid_mod_LDFLAGS): New variables.
25868 * include/grub/disk.h (grub_disk_dev_id): Add
25869 `GRUB_DISK_DEVICE_UUID_ID'.
25870 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
25871 implement iterate().
25873 2008-06-26 Robert Millan <rmh@aybabtu.com>
25875 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
25876 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
25877 Linux image includes no initrd.
25879 2008-06-21 Javier Martín <lordhabbit@gmail.com>
25881 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
25882 call to resolve the core image location that effectively appended the
25885 2008-06-21 Robert Millan <rmh@aybabtu.com>
25887 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
25890 * util/grub.d/10_hurd.in: ... to here ...
25891 * util/grub.d/10_linux.in: ... and here.
25893 2008-06-19 Robert Millan <rmh@aybabtu.com>
25895 * kern/main.c (grub_main): Export `prefix' variable immediately
25896 after it has been set by grub_machine_set_prefix().
25898 2008-06-19 Robert Millan <rmh@aybabtu.com>
25900 * commands/search.c (search_label, search_fs_uuid, search_file): Print
25901 search result when not saving to variable, not the other way around.
25902 When saving to variable, abort iteration as soon as a match is found.
25904 2008-06-19 Robert Millan <rmh@aybabtu.com>
25906 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
25907 check for partition that provides /boot/grub. Its logic is flawed,
25908 as it prevents prepare_grub_to_access_device() from being called
25911 2008-06-19 Robert Millan <rmh@aybabtu.com>
25913 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
25914 "insmod" command directly when abstraction modules are needed,
25915 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
25916 since it had already been processed).
25918 2008-06-19 Pavel Roskin <proski@gnu.org>
25920 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
25921 changed. This is needed in case GRUB_LIBDIR changes.
25922 * conf/i386-ieee1275.rmk: Likewise.
25923 * conf/i386-linuxbios.rmk: Likewise.
25924 * conf/i386-pc.rmk: Likewise.
25925 * conf/powerpc-ieee1275.rmk: Likewise.
25927 2008-06-18 Pavel Roskin <proski@gnu.org>
25929 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
25930 kernel_elf_symlist.c to symlist.c for consistency with other
25931 architectures. Update all users.
25932 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
25934 2008-06-18 Robert Millan <rmh@aybabtu.com>
25936 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
25939 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
25940 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
25941 a RAID device, run setup() for all members independently on whether
25942 LVM abstraction is being used.
25943 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
25944 If grub-mkimage has set `*install_dos_part == -2', don't override this
25946 Perform *install_dos_part adjustments independently on whether
25947 we're embedding or not.
25948 Clarify error message when image is too big for embedding.
25949 Remove duplicate *install_dos_part stanza.
25951 2008-06-17 Robert Millan <rmh@aybabtu.com>
25953 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
25954 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
25956 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
25957 values in grub_ofconsole_normal_color and
25958 grub_ofconsole_highlight_color (they're not directly related to
25959 background and foreground).
25960 (grub_ofconsole_setcolorstate): Extract background and foreground
25961 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
25963 2008-06-17 Robert Millan <rmh@aybabtu.com>
25965 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
25966 /boot/grub for the check in last commit, not /boot (they could be
25967 different partitions).
25969 2008-06-16 Robert Millan <rmh@aybabtu.com>
25971 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
25972 asked to setup access for the same partition that provides /boot,
25973 don't bother using UUIDs since our root already has the value we
25976 2008-06-16 Robert Millan <rmh@aybabtu.com>
25978 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
25980 Patch from Sven Mueller <sven@debian.org>.
25982 2008-06-16 Robert Millan <rmh@aybabtu.com>
25984 * util/update-grub.in: Check for $EUID instead of $UID.
25985 Reported by Vincent Zweije.
25987 2008-06-16 Bean <bean123ch@gmail.com>
25989 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
25990 (grub_ext2_read_block): Likewise.
25991 (grub_ext2_read_inode): Likewise.
25992 (grub_ext2_mount): Likewise.
25993 (grub_ext2_close): Likewise.
25994 (grub_ext3_get_journal): Removed.
25996 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
25997 (grub_reiserfs_read_symlink): Likewise.
25998 (grub_reiserfs_mount): Likewise.
25999 (grub_reiserfs_open): Likewise.
26000 (grub_reiserfs_read): Likewise.
26001 (grub_reiserfs_close): Likewise.
26002 (grub_reiserfs_get_journal): Removed.
26004 * fs/fshelp.c (grub_fshelp_read): Removed.
26005 (grub_fshelp_map_block): Likewise.
26007 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
26008 (grub_fshelp_journal): Likewise.
26009 (grub_fshelp_read): Likewise.
26010 (grub_fshelp_map_block): Likewise.
26012 2008-06-16 Pavel Roskin <proski@gnu.org>
26014 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
26015 floating point anymore.
26016 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
26018 2008-06-15 Pavel Roskin <proski@gnu.org>
26020 * commands/ls.c (grub_ls_list_files): Use integer calculations
26021 for human readable format, avoid floating point use.
26022 * kern/misc.c (grub_ftoa): Remove.
26023 (grub_vsprintf): Remove floating point support.
26025 2008-06-15 Robert Millan <rmh@aybabtu.com>
26027 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
26029 Reported by Max Vozeler.
26031 2008-06-15 Robert Millan <rmh@aybabtu.com>
26033 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
26034 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
26036 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
26037 the beginning of the prefix.
26039 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
26040 It is assumed that if we have a memdisk, grub-mkimage has set
26041 grub_prefix to include the "(memdisk)" drive in it.
26043 2008-06-15 Robert Millan <rmh@aybabtu.com>
26045 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
26046 Initialize keyboard controller after registering the terminal, so that
26047 grub_printf() can be called from grub_keyboard_controller_init().
26049 2008-06-15 Robert Millan <rmh@aybabtu.com>
26051 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
26052 extent-btree which is written as big endian on disk.
26053 Reported by Alain Greppin <al@chilibi.org>.
26055 2008-06-14 Robert Millan <rmh@aybabtu.com>
26057 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
26058 * util/i386/pc/grub-install.in (modules): Likewise.
26060 2008-06-13 Pavel Roskin <proski@gnu.org>
26062 * commands/ls.c (grub_ls_list_files): Fix format warnings.
26064 2008-06-13 Bean <bean123ch@gmail.com>
26066 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
26068 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
26070 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
26071 to indicate sparse block.
26073 2008-06-12 Pavel Roskin <proski@gnu.org>
26075 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
26076 number, grub_fshelp_read() does it for us.
26078 * fs/fshelp.c (grub_fshelp_read): New function. Implement
26079 linear disk read with journal translation.
26080 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
26081 * include/grub/fshelp.h: Declare grub_fshelp_read().
26083 2008-06-09 Pavel Roskin <proski@gnu.org>
26085 * fs/minix.c (grub_minix_mount): Handle error reading
26088 2008-06-08 Robert Millan <rmh@aybabtu.com>
26090 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
26091 don't append the RAID prefix afterwards.
26092 Reported by Clint Adams.
26094 2008-06-08 Robert Millan <rmh@aybabtu.com>
26096 Based on description from Pavel:
26097 * kern/disk.c (grub_disk_check_range): Rename to ...
26098 (grub_disk_adjust_range): ... this. Add a comment explaining the
26099 tasks performed by this function.
26101 2008-06-08 Robert Millan <rmh@aybabtu.com>
26103 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
26104 `num_serial' (for consistency with other variables).
26105 (struct grub_ntfs_data): Add `uuid' member.
26106 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
26107 (grub_ntfs_uuid): New function.
26108 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
26110 2008-06-07 Pavel Roskin <proski@gnu.org>
26112 * util/biosdisk.c (open_device): Revert last change to the
26113 function, it broke installation. The sector needs to be
26114 different dependent on which device is opened.
26116 2008-06-06 Robert Millan <rmh@aybabtu.com>
26118 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
26119 rest of GRUB, and breakage doesn't happen if its value were modified.
26121 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26122 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
26123 a constant (same value).
26124 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
26125 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
26127 2008-06-06 Robert Millan <rmh@aybabtu.com>
26129 * util/biosdisk.c (open_device): Do not modify sector offset when
26130 accessing a partition. kern/disk.c already handles this for us.
26132 2008-06-06 Robert Millan <rmh@aybabtu.com>
26134 * util/grub-emu.c (grub_machine_init): Move code in this function from
26136 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
26137 segfault in case grub_printf() is called).
26139 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
26140 grub_probe. Update all users not to explicitly add it again.
26141 (grub_device): New variable; contains corresponding device for grubdir.
26142 (fs_module, partmap_module, devabstraction_module): Pass
26143 `--device ${grub_device}' to grub_probe to avoid traversing /dev
26146 2008-06-05 Robert Millan <rmh@aybabtu.com>
26148 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
26149 is found, print it (same layout as with labels).
26151 2008-06-04 Robert Millan <rmh@aybabtu.com>
26153 * util/biosdisk.c (get_drive): Rename to ...
26154 (find_grub_drive): ... this. Update all users.
26156 (get_os_disk): Rename to ...
26157 (convert_system_partition_to_system_disk): ... this. Update all users.
26159 (find_drive): Rename to ...
26160 (find_system_device): ... this. Update all users.
26162 2008-06-04 Robert Millan <rmh@aybabtu.com>
26164 * util/biosdisk.c (get_os_disk): Handle IDA devices.
26165 * util/grub-mkdevicemap.c (get_mmc_disk_name)
26166 (make_device_map): Likewise.
26168 2008-06-01 Robert Millan <rmh@aybabtu.com>
26170 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
26171 before dereferencing it.
26173 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
26174 union with fat12/fat16-specific ones. Add some new fields, including
26175 `num_serial' for both versions.
26176 (struct grub_fat_data): Add `uuid' member.
26177 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
26178 names. Initialize `data->uuid' using `num_serial'.
26179 (grub_fat_uuid): New function.
26180 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
26182 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
26183 (grub_reiserfs_uuid): New function.
26184 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
26187 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
26188 (grub_xfs_uuid): New function.
26189 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
26191 2008-06-01 Robert Millan <rmh@aybabtu.com>
26193 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
26194 code that is backward compatible with pre-uuid search command.
26196 2008-05-31 Robert Millan <rmh@aybabtu.com>
26198 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
26199 floppies after everything else, to ensure floppy drive isn't accessed
26200 unnecessarily (patch from Bean).
26202 2008-05-31 Robert Millan <rmh@aybabtu.com>
26204 * commands/search.c (search_label, search_fs_uuid, search_file): Do
26205 not print device names when we were asked to set a variable.
26207 2008-05-31 Robert Millan <rmh@aybabtu.com>
26209 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
26210 using "cursor-on" and "cursor-off" commands (understood at least by
26211 the Open Firmware flavour on OLPC).
26213 2008-05-31 Michael Gorven <michael@gorven.za.net>
26215 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
26216 on and off sequences.
26218 2008-05-31 Robert Millan <rmh@aybabtu.com>
26220 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
26221 * util/update-grub.in: Likewise.
26223 2008-05-30 Pavel Roskin <proski@gnu.org>
26225 * util/biosdisk.c (linux_find_partition): Simplify logic and
26226 make the code more universal. Keep special processing for
26227 devfs, but use a simple rule for all other devices. If the
26228 device ends with a number, append 'p' and the partition number.
26229 Otherwise, append only the partition number.
26231 2008-05-30 Robert Millan <rmh@aybabtu.com>
26233 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
26234 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
26235 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
26236 the `root' parameter to Linux.
26238 2008-05-30 Robert Millan <rmh@aybabtu.com>
26240 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
26241 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
26242 --fs_uuid with --fs-uuid.
26243 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
26244 all filesystems support them).
26246 2008-05-30 Robert Millan <rmh@aybabtu.com>
26248 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
26249 grub_printf() flags, since we're printing in units of 2 bytes.
26251 2008-05-30 Robert Millan <rmh@aybabtu.com>
26253 * util/grub.d/00_header.in: Remove obsolete comment referencing
26254 convert_system_path_to_grub_path().
26255 * util/update-grub.in: Likewise.
26256 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
26257 (convert_system_path_to_grub_path): Add a warning message explaining
26258 that this function is deprecated. Rely on is_path_readable_by_grub()
26259 for the readability checks.
26260 (font_path): Use is_path_readable_by_grub() for the readability
26261 check rather than convert_system_path_to_grub_path().
26263 2008-05-30 Robert Millan <rmh@aybabtu.com>
26265 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
26266 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
26267 converting it first.
26268 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
26269 grub.cfg for access to font file, and afterwards call it again to set
26272 2008-05-30 Robert Millan <rmh@aybabtu.com>
26274 * commands/search.c (options): Add --fs_uuid option.
26275 (search_fs_uuid): New function.
26276 (grub_cmd_search): Fix --set argument passing.
26277 Use search_fs_uuid() when requested via --fs_uuid.
26278 (grub_search_init): Update help message.
26279 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
26280 and redeclare it as an array of 16-bit words.
26281 (grub_ext2_uuid): New function.
26282 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
26283 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
26284 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
26285 (GRUB_DEVICE_BOOT_UUID): New variables.
26286 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
26287 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
26289 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
26290 just assume `root' variable has the right value.
26291 * util/grub.d/10_linux.in: Likewise.
26292 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
26294 (main): Recognise `-t fs_uuid' argument.
26296 2008-05-30 Robert Millan <rmh@aybabtu.com>
26298 * util/biosdisk.c (map): Redefine structure to hold information
26299 about GRUB drive name.
26300 (get_drive): Reimplement without assuming (and verifying) BIOS-like
26302 (call_hook): Remove.
26303 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
26304 member. Assume drive has partitions.
26305 (grub_util_biosdisk_open): Access device names via `.device' struct
26307 (open_device): Likewise.
26308 (find_drive): Likewise.
26309 (read_device_map): Adjust map[] usage to match the new struct
26310 definition. Don't check for duplicates (still possible, but not cheap
26312 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
26313 (make_device_name): Remove assumption of BIOS-like drive names.
26315 2008-05-30 Pavel Roskin <proski@gnu.org>
26317 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
26318 compiling execute.c doesn't need grub_script.tab.h anymore.
26319 (normal/command.c_DEPENDENCIES): Likewise.
26320 (normal/function.c_DEPENDENCIES): Likewise.
26321 * conf/i386-ieee1275.rmk: Likewise.
26322 * conf/i386-linuxbios.rmk: Likewise.
26323 * conf/i386-pc.rmk: Likewise.
26324 * conf/powerpc-ieee1275.rmk: Likewise.
26325 * conf/sparc64-ieee1275.rmk: Likewise.
26327 2008-05-29 Pavel Roskin <proski@gnu.org>
26329 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
26330 when scanning metadata for volume group name.
26332 * include/grub/script.h: Don't include grub_script.tab.h. It's
26333 a generated file, which may only be included from the files with
26334 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
26335 use union YYSTYPE, as the later allows forward declaration.
26336 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
26338 2008-05-29 Robert Millan <rmh@aybabtu.com>
26340 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
26341 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
26342 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
26343 (grub_console_checkkey): Add grub_dprintf() call to report unknown
26346 2008-05-29 Robert Millan <rmh@aybabtu.com>
26348 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
26349 control key combinations.
26351 2008-05-29 Robert Millan <rmh@aybabtu.com>
26353 * util/powerpc/ieee1275/grub-install.in: Move from here ...
26354 * util/ieee1275/grub-install.in: ... to here.
26355 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
26356 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
26357 (grub_install_SOURCES): Likewise.
26359 2008-05-29 Robert Millan <rmh@aybabtu.com>
26361 * fs/affs.c: Update copyright year.
26362 * fs/ext2.c: Likewise.
26363 * fs/fshelp.c: Likewise.
26364 * fs/hfsplus.c: Likewise.
26365 * fs/ntfs.c: Likewise.
26366 * fs/xfs.c: Likewise.
26367 * include/grub/fshelp.h: Likewise.
26368 * util/grub-mkdevicemap.c: Likewise.
26370 2008-05-28 Robert Millan <rmh@aybabtu.com>
26372 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
26373 might need to be fatfs to support some firmware implementations
26376 2008-05-28 Robert Millan <rmh@aybabtu.com>
26378 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
26380 * util/grub-mkdevicemap.c (get_mmc_disk_name)
26381 (make_device_map): Likewise.
26383 2008-05-20 Bean <bean123ch@gmail.com>
26385 * fs/fshelp.c (grub_fshelp_map_block): New function.
26386 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
26387 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
26389 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
26390 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
26391 (grub_fshelp_journal): New structure.
26392 (grub_fshelp_map_block): New function prototype.
26393 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
26394 (grub_fshelp_map_block): Likewise.
26396 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
26397 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
26398 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
26399 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
26400 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
26401 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
26402 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
26403 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
26404 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
26405 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
26406 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
26407 (grub_ext2_sblock): New members for journal support.
26408 (grub_ext3_journal_header): New structure.
26409 (grub_ext3_journal_revoke_header): Likewise.
26410 (grub_ext3_journal_block_tag): Likewise.
26411 (grub_ext3_journal_sblock): Likewise.
26412 (grub_fshelp_node): New members logfile and journal.
26413 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
26414 grub_fshelp_map_block to get real block number.
26415 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
26417 (grub_ext2_read_inode): Likewise.
26418 (grub_ext3_get_journal): New function.
26419 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
26420 (grub_ext2_close): Release memory used by journal.
26422 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
26423 (REISERFS_MAGIC_DESC_BLOCK): New macro.
26424 (grub_reiserfs_transaction_header): Renamed to
26425 grub_reiserfs_description_block, replace field data with real_blocks.
26426 (grub_reiserfs_commit_block): New structure.
26427 (grub_reiserfs_data): New member journal.
26428 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
26430 (grub_reiserfs_read_symlink): Likewise.
26431 (grub_reiserfs_iterate_dir): Likewise.
26432 (grub_reiserfs_open): Likewise.
26433 (grub_reiserfs_read): Likewise.
26434 (grub_reiserfs_get_journal): New function.
26435 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
26436 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
26437 using grub_reiserfs_get_journal.
26438 (grub_reiserfs_close): Release memory used by journal.
26440 * fs/affs.c (grub_affs_read_block): Change block type to
26441 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
26443 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
26445 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
26447 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
26449 * fs/udf.c (grub_udf_read_block): Change block type to
26450 grub_disk_addr_t. Use type cast to avoid warning.
26452 * fs/xfs.c (grub_xfs_read_block): Likewise.
26454 2008-05-16 Christian Franke <franke@computer.org>
26456 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
26457 to ensure that break with ESC will always work.
26458 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
26459 Remove ESC from keyboard queue.
26461 2008-05-16 Christian Franke <franke@computer.org>
26463 * util/biosdisk.c: [__CYGWIN__] Add includes.
26464 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
26465 (get_os_disk): Move variable declarations to OS specific
26466 parts to avoid warning.
26467 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
26468 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
26469 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
26471 * util/getroot.c: [__CYGWIN__] Add includes.
26472 (strip_extra_slashes): Fix "/" case.
26473 [__CYGWIN__] (get_win32_path): New function.
26474 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
26475 [__CYGWIN__] (find_root_device): Disable.
26476 [__CYGWIN__] (get_bootsec_serial): New function.
26477 [__CYGWIN__] (find_cygwin_root_device): Likewise.
26478 [__linux__] (grub_guess_root_device): Add early returns to simplify
26480 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
26481 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
26482 check for Linux only.
26484 2008-05-15 Bean <bean123ch@gmail.com>
26486 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
26487 keyboard hang problem in apple's intel mac.
26489 2008-05-09 Robert Millan <rmh@aybabtu.com>
26491 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
26493 * util/grub-mkdevicemap.c (get_virtio_disk_name)
26494 (make_device_map): Likewise.
26495 Reported by Aurelien Jarno <aurel32@debian.org>
26497 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
26499 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
26500 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
26501 (make_device_map): Output entries for xvd type disks.
26503 2008-05-07 Robert Millan <rmh@aybabtu.com>
26505 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
26507 * util/grub-mkdevicemap.c (get_cciss_disk_name)
26508 (make_device_map): Likewise.
26509 Reported by Roland Dreier <rdreier@cisco.com>
26511 2008-05-07 Robert Millan <rmh@aybabtu.com>
26513 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
26514 grub_strstr() call. Correct a few mistakes in failure path handling.
26516 2008-05-06 Robert Millan <rmh@aybabtu.com>
26518 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
26519 Do not print a trailing slash (therefore, the root directory is an
26521 (convert_system_path_to_grub_path): Do not remove trailing slash
26522 from make_system_path_relative_to_its_root() output.
26524 * util/i386/pc/grub-install.in: Add trailing slash to output from
26525 make_system_path_relative_to_its_root().
26527 2008-05-06 Robert Millan <rmh@aybabtu.com>
26529 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
26530 ensures that output lines aren't intermangled with those sent to
26531 stderr (via grub_util_info()).
26532 * util/grub-probe.c (grub_refresh): Likewise.
26533 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
26535 2008-05-05 Christian Franke <franke@computer.org>
26537 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
26538 Add Cygwin device names.
26539 (get_ide_disk_name) [__CYGWIN__]: Likewise.
26540 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
26541 (check_device): Return error instead of success on empty name.
26542 (make_device_map): Move label inside linux specific code to
26543 prevent compiler warning.
26545 2008-04-30 Robert Millan <rmh@aybabtu.com>
26547 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
26548 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
26550 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
26552 2008-04-29 Robert Millan <rmh@aybabtu.com>
26554 * docs/grub.cfg: New file (example GRUB configuration).
26556 2008-04-26 Robert Millan <rmh@aybabtu.com>
26558 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
26559 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
26560 and `disk/ieee1275/nand.c'.
26562 2008-04-25 Bean <bean123ch@gmail.com>
26564 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
26567 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
26568 change the buffer size to 4096 for cdrom device.
26570 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
26572 (_linux_mod_SOURCES): New variable.
26573 (_linux_mod_CFLAGS): Likewise.
26574 (_linux_mod_LDFLAGS): Likewise.
26575 (linux_mod_SOURCES): Likewise.
26576 (linux_mod_CFLAGS): Likewise.
26577 (linux_mod_LDFLAGS): Likewise.
26578 (nand_mod_SOURCES): Likewise.
26579 (nand_mod_CFLAGS): Likewise.
26580 (nand_mod_LDFLAGS): Likewise.
26582 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
26583 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
26584 type property. (nand device in olpc don't have this property)
26586 * include/grub/disk.h (grub_disk_dev_id): New macro
26587 GRUB_DISK_DEVICE_NAND_ID.
26589 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
26590 function prototype.
26591 (grub_rescue_cmd_initrd): Likewise.
26593 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
26594 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
26595 ofw_cif_handler and ofw_idt, adjust padding number.
26597 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
26598 GRUB_MACHINE_IEEE1275 is defined.
26600 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
26601 Use NESTED_FUNC_ATTR attribute on the hook parameter.
26603 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
26604 on nested function heap_init.
26605 (grub_upper_mem): New variable for i386-ieee1275.
26606 (grub_get_extended_memory): New function for i386-ieee1275.
26607 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
26609 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
26610 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
26613 * loader/i386/ieee1275/linux.c: New file.
26615 * loader/i386/ieee1275/linux_normal.c: New file.
26617 * disk/ieee1275/nand.c: New file.
26619 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
26621 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
26623 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
26625 2008-04-18 Robert Millan <rmh@aybabtu.com>
26627 Restructures early code path on ieee1275 to unify grub_main() as
26628 the first C function that is executed in every platform.
26630 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
26631 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
26633 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
26634 * kern/ieee1275/cmain.c (cmain): Rename to ...
26635 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
26636 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
26639 2008-04-18 Robert Millan <rmh@aybabtu.com>
26641 * util/update-grub.in: Fix syntax error when setting
26642 `GRUB_PRELOAD_MODULES'.
26643 Reported by Stephane Chazelas <stephane@artesyncp.com>
26645 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
26647 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
26648 section into account, newer toolchains generate unique build ids
26649 * configure.ac: remove the test for --build-id=none acceptance,
26650 we want build ids to be preserved
26651 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
26652 far from other sections don't cause the raw binary images grow
26655 2008-04-15 Robert Millan <rmh@aybabtu.com>
26657 * disk/lvm.c: Update copyright year.
26658 * kern/misc.c: Likewise.
26660 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
26662 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
26663 there is no memory left for physical volume name.
26665 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
26667 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
26668 volume name mapping to support bigger than 9 character names properly.
26670 2008-04-13 Robert Millan <rmh@aybabtu.com>
26672 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
26673 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
26675 2008-04-13 Christian Franke <franke@computer.org>
26677 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
26678 to create a floppy emulation boot CD when non emulation mode
26680 Enable Joliet CD filesystem extension.
26682 2008-04-13 Robert Millan <rmh@aybabtu.com>
26684 * kern/misc.c (grub_strncat): Fix off-by-one error.
26685 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
26687 * kern/env.c (grub_env_context_close): Clear current context, not
26689 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
26691 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
26693 2008-04-13 Robert Millan <rmh@aybabtu.com>
26695 Improve robustness when handling LVM.
26697 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
26698 (and leave `*p' unmodified).
26699 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
26701 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
26702 iterating through it.
26703 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
26705 (grub_lvm_scan_device): Check the return value (and fail gracefully
26706 when due) on each grub_lvm_getvalue() or grub_strstr() call.
26707 Don't assume `vg->pvs != NULL' when iterating through it.
26709 2008-04-13 Robert Millan <rmh@aybabtu.com>
26711 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
26712 * genmk.rb (partmap): New variable.
26713 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
26714 (#{partmap}): New target rule.
26715 * genpartmaplist.sh: New file.
26716 * Makefile.in (pkglib_DATA): Add partmap.lst.
26717 (partmap.lst): New target rule.
26718 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
26719 modules (including all partition maps), instead of preloading them.
26721 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
26723 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
26724 `linux-boot-prober' (if installed) to detect other operating
26725 systems which are installed on the computer and add them to
26727 * conf/common.rmk: Build and install 30_os-prober.
26729 2008-04-12 Robert Millan <rmh@aybabtu.com>
26731 * kern/powerpc/ieee1275/init.c: Move from here ...
26732 * kern/ieee1275/init.c: ... to here. Update all users.
26734 * kern/powerpc/ieee1275/cmain.c: Move from here ...
26735 * kern/ieee1275/cmain.c: ... to here. Update all users.
26737 * kern/powerpc/ieee1275/openfw.c: Move from here ...
26738 * kern/ieee1275/openfw.c: ... to here. Update all users.
26740 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
26741 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
26743 2008-04-10 Pavel Roskin <proski@gnu.org>
26745 * configure.ac: Always use "_cv_" in cache variables for
26746 compatibility with Autoconf 2.62.
26748 2008-04-07 Robert Millan <rmh@aybabtu.com>
26750 Revert grub/machine/init.h addition by Pavel (since it breaks on
26751 i386-ieee1275 and others):
26752 * util/i386/pc/misc.c: Remove grub/machine/init.h.
26753 * util/powerpc/ieee1275/misc.c: Likewise.
26755 2008-04-07 Robert Millan <rmh@aybabtu.com>
26757 * util/grub-probe.c (probe): Improve error message.
26759 2008-04-07 Robert Millan <rmh@aybabtu.com>
26761 * util/biosdisk.c (read_device_map): Skip devices that don't exist
26762 (this prevents the presence of a bogus entry from ruining the whole
26765 2008-04-06 Pavel Roskin <proski@gnu.org>
26767 * util/biosdisk.c: Include grub/util/biosdisk.h.
26768 * util/grub-fstest.c (execute_command): Make static.
26769 * util/grub-mkdevicemap.c (check_device): Likewise.
26770 * util/i386/pc/misc.c: Include grub/machine/init.h.
26771 * util/powerpc/ieee1275/misc.c: Likewise.
26772 * util/lvm.c: Include grub/util/lvm.h.
26773 * util/misc.c: Include grub/kernel.h, grub/misc.h and
26775 * util/raid.c: Include grub/util/raid.h.
26776 (grub_util_getdiskname): Make static.
26778 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
26779 grub_hostfs_fini(), as they are called from grub_init_all() and
26780 grub_fini_all() respectively. This fixes an infinite loop in
26781 grub-fstest due to double registration of hostfs.
26782 Reported by Christian Franke <Christian.Franke@t-online.de>
26784 2008-04-05 Pavel Roskin <proski@gnu.org>
26786 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
26787 all 8 functions. Otherwise, probe function 0 only.
26789 2008-04-04 Pavel Roskin <proski@gnu.org>
26791 * commands/lspci.c (grub_lspci_iter): Print the bus number
26794 * commands/lspci.c (grub_pci_classes): Fix typos.
26795 (grub_lspci_iter): Don't print func twice. Print vendor ID
26796 before device ID, as it's normally done.
26798 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
26799 Fix signedness warnings.
26800 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
26802 * util/ieee1275/get_disk_name.c: Include config.h so that
26803 _GNU_SOURCE is defined and getline() is declared. Mark an
26804 unused argument as such. Fix a signedness warning.
26806 2008-04-02 Pavel Roskin <proski@gnu.org>
26808 * genkernsyms.sh.in: Use more robust assignments for CC and
26809 srcdir. Quote srcdir.
26810 * gensymlist.sh.in: Likewise. Assert at the compile time that
26811 the symbol table is not empty.
26813 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
26814 * fs/cpio.c (grub_cpio_read): Likewise.
26816 2008-04-01 Pavel Roskin <proski@gnu.org>
26818 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
26819 * disk/host.c (grub_host_open): Likewise.
26820 * disk/loopback.c (grub_loopback_open): Likewise.
26821 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
26822 disk->id as in disk/host.c, not a multi-character constant.
26824 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
26825 later is obsolete, potentially dangerous and sets a bad example.
26826 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
26827 * util/misc.c (grub_util_get_image_size): Likewise.
26829 * disk/loopback.c (options): Improve help for "--partitions".
26831 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
26832 options to align them with the short options, e.g. "echo -e".
26834 2008-03-31 Bean <bean123ch@gmail.com>
26836 * video/reader/png.c (grub_png_data): New member is_16bit and
26838 (grub_png_decode_image_header): Detect 16 bit png image.
26839 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
26840 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
26841 (grub_video_reader_png): Release memory occupied by image_data.
26843 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
26845 (grub_nfs_mount): Skip the test for sector per cluster.
26847 * include/grub/ntfs.h (MAX_SPC): Removed.
26849 2008-03-31 Bean <bean123ch@gmail.com>
26851 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
26852 (grub_probe_SOURCES): Add fs/afs.c.
26853 (grub_fstest_SOURCES): Likewise.
26854 (afs_mod_SOURCES): New variable.
26855 (afs_mod_CFLAGS): Likewise.
26856 (afs_mod_LDFLAGS): Likewise.
26858 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
26859 (grub_emu_SOURCES): Likewise.
26861 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26863 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26865 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26867 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26869 * fs/afs.c: New file.
26871 2008-03-30 Pavel Roskin <proski@gnu.org>
26873 * disk/host.c: Include grub/misc.h to fix a warning.
26874 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
26875 warnings about implicit declarations.
26877 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
26879 * include/grub/i386/loader.h: Change declaration of
26880 grub_linux_boot() to match what grub_loader_set() expects.
26881 * util/getroot.c (grub_guess_root_device): Return const char* to
26883 * util/grub-probe.c (probe): Fix a warning about uninitialized
26884 abstraction_name variable.
26885 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
26886 second argument as unused to fix a warning.
26888 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
26889 missing grub_error() call.
26891 * util/update-grub_lib.in: Define datarootdir, since Autoconf
26892 2.60 and newer uses it to define datadir.
26894 * commands/sleep.c: Fix warning about implicit declaration.
26895 * disk/memdisk.c: Likewise.
26896 * loader/aout.c: Likewise.
26897 * loader/i386/bsd_normal.c: Likewise.
26898 * util/grub-probe.c: Likewise.
26900 * commands/i386/cpuid.c (has_longmode): Make static.
26901 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
26902 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
26904 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
26905 GDT. This is more robust, as %ds can change.
26906 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
26907 calling real_to_prot().
26908 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
26910 2008-03-28 Pavel Roskin <proski@gnu.org>
26912 * kern/i386/pc/startup.S: Assert that uncompressed functions
26913 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
26914 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
26915 code, as they push parts of the code (error handlers) beyond
26916 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
26917 code as correctness and size.
26919 2008-03-28 Pavel Roskin <proski@gnu.org>
26921 * kern/i386/pc/startup.S
26922 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
26923 data block address to the real mode, keep offset minimal. This
26924 works around a bug in AWARD BIOS on old Athlon systems, which
26925 makes CD detection hang.
26927 2008-03-26 Pavel Roskin <proski@gnu.org>
26929 * normal/color.c (grub_parse_color_name_pair): Make `name' a
26931 * include/grub/normal.h: Add grub_parse_color_name_pair()
26934 2008-03-24 Bean <bean123ch@gmail.com>
26936 * disk/i386/pc/biosdisk.c (cd_start): Removed.
26937 (cd_count): Removed.
26938 (cd_drive): New variable.
26939 (grub_biosdisk_get_drive): Don't check for (cdN) device.
26940 (grub_biosdisk_call_hook): Likewise.
26941 (grub_biosdisk_iterate): Change cdrom detection method.
26942 (grub_biosdisk_open): Replace cd_start with cd_drive.
26943 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
26944 detect cdrom device.
26946 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
26948 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
26949 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
26950 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
26951 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
26952 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
26953 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
26954 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
26955 (grub_biosdisk_cdrp): New structure.
26956 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
26958 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
26960 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
26963 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
26966 2008-03-20 Robert Millan <rmh@aybabtu.com>
26968 Remove 2 TiB limit in ata.mod.
26969 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
26970 (grub_ata_dumpinfo): Print sector count with 0x%llx.
26971 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
26972 grub_uint64_t instead of grub_uint32_t.
26974 2008-03-05 Bean <bean123ch@gmail.com>
26976 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
26977 (grub_multiboot): Set boot device.
26979 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
26981 2008-03-02 Bean <bean123ch@gmail.com>
26983 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
26986 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
26988 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
26991 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
26994 * docs/fdl.texi: New file.
26996 * docs/mdate-sh: New file. Copied from gnulib.
26997 * docs/texinfo.tex: Likewise.
26999 * config.guess: Updated from gnulib.
27000 * install-sh: Likewise.
27002 2008-02-28 Robert Millan <rmh@aybabtu.com>
27004 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
27005 (aout_mod_SOURCES): New variable.
27006 (aout_mod_CFLAGS): Likewise.
27007 (aout_mod_LDFLAGS): Likewise.
27009 * conf/i386-ieee1275.rmk: Likewise.
27011 2008-02-28 Robert Millan <rmh@aybabtu.com>
27013 * util/update-grub.in: Reorganise terminal validity check. Accept
27014 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
27015 Based on suggestion by Franklin PIAT.
27017 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
27019 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
27021 * util/getroot.c (grub_util_check_block_device): New function that
27022 returns the given argument if it is a block device and returns NULL else.
27023 * util/grub-probe.c (argument_is_device): New variable.
27024 (probe): Promote device_name from a variable to an argument. Receive
27025 device_name from grub_util_check_block_device() if path is NULL and from
27026 grub_guess_root_device() else. Do not free() device_name anymore.
27027 (options): Introduce new parameter '-d, --device'.
27028 (main): Add description of the new parameter to the help screen.
27029 Rename path variable to argument. Set argument_is_device if the '-d'
27030 option is given. Pass argument to probe() depending on
27031 argument_is_device.
27033 2008-02-24 Bean <bean123ch@gmail.com>
27035 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
27036 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
27037 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
27038 (GRUB_ISO9660_VOLDESC_PART): Likewise.
27039 (GRUB_ISO9660_VOLDESC_END): Likewise.
27040 (grub_iso9660_primary_voldesc): New member escape.
27041 (grub_iso9660_data): New member joliet.
27042 (grub_iso9660_convert_string): New function.
27043 (grub_iso9660_mount): Detect joliet extension.
27044 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
27045 (grub_iso9660_iso9660_label): Likewise.
27047 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
27048 (grub_setup_SOURCES): Add fs/udf.c.
27049 (grub_fstest_SOURCES): Likewise.
27050 (udf_mod_SOURCES): New variable.
27051 (udf_mod_CFLAGS): Likewise.
27052 (udf_mod_LDFLAGS): Likewise.
27054 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
27055 (grub_emu_SOURCES): Likewise.
27057 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27059 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27061 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27063 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27065 * fs/udf.c: New file.
27067 2008-02-24 Robert Millan <rmh@aybabtu.com>
27069 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
27070 (normal/lexer.c_DEPENDENCIES): New variables.
27071 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
27072 (normal/lexer.c_DEPENDENCIES): Likewise.
27073 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
27074 (normal/lexer.c_DEPENDENCIES): Likewise.
27075 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
27076 (normal/lexer.c_DEPENDENCIES): Likewise.
27077 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
27078 (normal/lexer.c_DEPENDENCIES): Likewise.
27079 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
27080 (normal/lexer.c_DEPENDENCIES): Likewise.
27082 2008-02-23 Robert Millan <rmh@aybabtu.com>
27084 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
27085 since they were intended to be in hex. This didn't break previously
27086 because of a bug in gpt_partition_map_iterate() (see below).
27088 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
27089 when checking the validity of GPT header.
27090 Remove `partno', since it always provides the same information as `i'.
27092 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
27094 * include/grub/efi/time.h: Fix a wrong comment.
27096 2008-02-19 Pavel Roskin <proski@gnu.org>
27098 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
27101 2008-02-19 Bean <bean123ch@gmail.com>
27103 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
27104 (aout_mod_SOURCES): New variable.
27105 (aout_mod_CFLAGS): Likewise.
27106 (aout_mod_LDFLAGS): Likewise.
27107 (_bsd_mod_SOURCES): New variable.
27108 (_bsd_mod_CFLAGS): Likewise.
27109 (_bsd_mod_LDFLAGS): Likewise.
27110 (bsd_mod_SOURCES): New variable.
27111 (bsd_mod_CFLAGS): Likewise.
27112 (bsd_mod_LDFLAGS): Likewise.
27114 * include/grub/aout.h: New file.
27116 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
27118 * include/grub/i386/bsd.h: New file.
27120 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
27123 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
27124 function is called, so that it's possible to change it inside the hook.
27125 (grub_elf64_load): Likewise.
27126 (grub_elf_file): Don't close the file if elf header is not found.
27127 (grub_elf_close): Close the file if grub_elf_file fails (The new
27128 grub_elf_file won't close it).
27129 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
27130 (grub_elf64_size): Likewise.
27132 * kern/i386/loader.S (grub_unix_real_boot): New function.
27134 * loader/aout.c: New file.
27136 * loader/i386/bsd.c: New file.
27138 * loader/i386/bsd_normal.c: New file.
27140 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
27142 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
27143 can test other formats.
27145 2008-02-19 Robert Millan <rmh@aybabtu.com>
27147 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
27148 (grub_gpt_partition_type_empty): Redefine with macro from
27149 `<grub/gpt_partition.h>'.
27150 (gpt_partition_map_iterate): Adjust partition type comparison.
27152 Export `entry' as partmap-specific `part.data' struct.
27153 (grub_gpt_header, grub_gpt_partentry): Move from here ...
27155 * include/grub/gpt_partition.h (grub_gpt_header)
27156 (grub_gpt_partentry): ... to here (new file).
27158 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
27160 (grub_gpt_partition_type_bios_boot): New const variable, defined
27161 with macro from `<grub/gpt_partition.h>'.
27163 (setup): Replace `first_start' with `embed_region', which keeps
27164 track of the embed region (and is partmap-agnostic).
27166 Replace find_first_partition_start() with find_usable_region(),
27167 which finds a usable region for embedding using partmap-specific
27168 knowledge (supports PC/MSDOS and GPT).
27170 Fix all assumptions that the embed region start at sector 1, using
27171 `embed_region.start' from now on. Similarly, use `embed_region.end'
27172 rather than `first_start' to calculate available size.
27174 In grub_util_info() message, replace "into after the MBR" with an
27175 indication of the specific sector our embed region starts at.
27177 2008-02-19 Robert Millan <rmh@aybabtu.com>
27179 * DISTLIST: Replace `commands/ieee1275/halt.c' and
27180 `commands/ieee1275/reboot.c' with `commands/halt.c' and
27181 `commands/reboot.c'.
27182 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
27183 (halt_mod_SOURCES): Likewise.
27184 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
27185 (halt_mod_SOURCES): Likewise.
27187 2008-02-17 Christian Franke <franke@computer.org>
27189 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
27191 2008-02-17 Robert Millan <rmh@aybabtu.com>
27193 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
27194 set `first_start' to 0 for non-PC/MSDOS partition maps.
27196 2008-02-16 Robert Millan <rmh@aybabtu.com>
27198 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
27199 do not assume partition map is PC/MSDOS before performing checks that
27200 are specific to that layout.
27202 2008-02-13 Robert Millan <rmh@aybabtu.com>
27204 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
27205 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
27206 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
27208 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
27210 * configure.ac: Only a cosmetic change on the handling of
27211 -fno-stack-protector.
27213 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
27215 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
27216 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
27218 (grub_install_SOURCES): Add halt.mod and reboot.mod.
27219 (halt_mod_SOURCES): New variable.
27220 (halt_mod_CFLAGS): Likewise.
27221 (halt_mod_LDFLAGS): Likewise.
27222 (reboot_mod_SOURCES): Likewise.
27223 (reboot_mod_CFLAGS): Likewise.
27224 (reboot_mod_LDFLAGS): Likewise.
27226 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
27227 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
27229 (halt_mod_SOURCES): Likewise.
27230 (reboot_mod_SOURCES): Likewise.
27232 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
27233 commands/i386/pc/reboot.c by commands/reboot.c.
27234 (reboot_mod_SOURCES): Likewise.
27236 * commands/i386/pc/reboot.c: merge this file ...
27238 * commands/ieee1275/reboot.c: ... and this file ...
27240 * commands/reboot.c: ... to this file.
27241 Add some precompiler directive to include the correct header for
27244 * commands/ieee1275/halt.c: move this file ...
27246 * commands/halt.c: ... to here.
27247 Add some precompiler directive to include the correct header for
27250 * include/grub/efi/efi.h (grub_reboot): New function declaration.
27251 (grub_halt): Likewise.
27253 * kern/efi/efi.c (grub_reboot): New function.
27254 (grub_halt): Likewise.
27256 2008-02-12 Robert Millan <rmh@aybabtu.com>
27258 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
27259 /dev (like it is done for /dev/mapper). This doesn't provide support
27260 for EVMS, but at least it is now easy to identify the problem when it
27263 2008-02-11 Robert Millan <rmh@aybabtu.com>
27265 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
27266 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
27267 comparing it with -1, not 0.
27269 2008-02-10 Robert Millan <rmh@aybabtu.com>
27271 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
27273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27274 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
27276 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
27277 `disk/lvm.c' to the end of the list.
27278 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27279 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27281 2008-02-10 Robert Millan <rmh@aybabtu.com>
27283 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
27284 grub_print_error() instead. This will let user know why we're entering
27286 Based on suggestions from Sam Morris.
27288 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
27290 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
27291 on remaining N args, instead of "--" arg N times.
27293 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
27295 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
27296 (fill_with_default_glyph): Changed to use unknown_glyph for fill
27297 pattern for unknown glyphs.
27299 2008-02-09 Robert Millan <rmh@aybabtu.com>
27301 * configure.ac: Probe for `help2man'.
27302 * Makefile.in (builddir): New variable.
27303 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
27304 or otherwise add a few flags/options to it.
27305 (install-local): For every executable utility or script that is
27306 installed, invoke $(HELP2MAN) to install a manpage based on --help
27309 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
27310 that it doesn't prevent --help from working in build tree.
27312 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
27313 with `bug-grub@gnu.org'.
27314 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
27315 * util/update-grub.in (usage): New function.
27316 Implement proper argument check, with support for --help and --version
27317 (as well as existing -y).
27319 2008-02-09 Christian Franke <franke@computer.org>
27321 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
27322 avoid overwriting previous output.
27323 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
27325 2008-02-09 Robert Millan <rmh@aybabtu.com>
27327 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
27330 2008-02-09 Robert Millan <rmh@aybabtu.com>
27332 * commands/sleep.c: New file.
27333 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
27334 (sleep_mod_SOURCES): New variable.
27335 (sleep_mod_CFLAGS): Likewise.
27336 (sleep_mod_LDFLAGS): Likewise.
27338 2008-02-09 Robert Millan <rmh@aybabtu.com>
27340 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
27341 situations in which we can deduce the RAID size and the superblock
27344 2008-02-09 Robert Millan <rmh@aybabtu.com>
27346 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
27347 and return a grub_diskmemberlist_t composed of LVM physical volumes.
27348 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
27350 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
27351 and return a grub_diskmemberlist_t composed of physical array members.
27352 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
27354 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
27356 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
27357 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
27358 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
27360 * util/grub-probe.c (probe): Move partmap probing code from here ...
27361 (probe_partmap): ... to here.
27362 (probe): Use probe_partmap() once for the disk we're probing, and
27363 additionally, when such disk contains a memberlist() struct member,
27364 once for each disk that is contained in the structure returned by
27367 2008-02-09 Robert Millan <rmh@aybabtu.com>
27369 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
27370 environment variable to 'all' in order to obtain debug output from
27372 * util/i386/pc/grub-setup.c (main): Likewise.
27374 2008-02-08 Robert Millan <rmh@aybabtu.com>
27376 * disk/raid.c (grub_raid_scan_device): Check for
27377 `array->device[sb.this_disk.number]' rather than for
27378 `array->device[sb.this_disk.number]->name', since the latter is not
27379 guaranteed to be accessible.
27381 2008-02-08 Robert Millan <rmh@aybabtu.com>
27383 * disk/raid.c: Update copyright.
27384 * fs/cpio.c: Likewise.
27385 * include/grub/raid.h: Likewise.
27386 * loader/i386/pc/multiboot.c: Likewise.
27387 * util/hostfs.c: Likewise.
27389 2008-02-08 Robert Millan <rmh@aybabtu.com>
27391 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
27392 to a grub_disk_t array.
27393 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
27395 (grub_raid_scan_device): Replace `device[x].name' accesses with
27396 `device[x]->name'. Simplify initialization of `array->device[x]'.
27398 2008-02-08 Robert Millan <rmh@aybabtu.com>
27400 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
27401 grub_dprintf() calls.
27402 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
27405 2008-02-07 Christian Franke <franke@computer.org>
27407 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
27408 instead of fseek and ftell to support large files.
27409 (grub_hostfs_read): Likewise.
27411 2008-02-07 Robert Millan <rmh@aybabtu.com>
27413 Patch from Jeroen Dekkers.
27414 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
27415 failure, since successfully reading all array members might not be
27418 2008-02-06 Robert Millan <rmh@aybabtu.com>
27420 * util/grub-probe.c (probe): Simplify partmap probing (with the
27421 assumption that the first word up to the underscore equals to
27424 2008-02-06 Christian Franke <franke@computer.org>
27426 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
27427 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
27428 last block of a cpio or tar stream.
27429 Check for "TRAILER!!!" instead of any empty data
27430 block to detect last block of a cpio stream.
27431 (grub_cpio_dir): Fix constness of variable np.
27432 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
27433 cpio or tar trailer is detected. This fixes a crash
27434 on open of a non existing file.
27436 2008-02-05 Bean <bean123ch@gmail.com>
27438 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
27440 (grub_multiboot_load_elf64): Likewise.
27441 (grub_multiboot): Initialize mbi structure.
27443 * util/grub-fstest.c: Don't include unused header file script.h.
27445 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
27447 (grub_fstest_SOURCES): Likewise.
27449 2008-02-05 Robert Millan <rmh@aybabtu.com>
27451 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
27452 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
27453 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
27454 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
27456 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
27457 (translation_table): Replace hardcoded values with macros
27458 provided by `<grub/term.h>'.
27460 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
27461 (keyboard_map): Correct/add a few values, with macros provided
27462 by `<grub/term.h>'.
27463 (keyboard_map_shift): Zero values that don't differ from their
27464 `keyboard_map' equivalents.
27465 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
27466 Discard the second scan code that is always sent by Caps lock.
27467 Only use `keyboard_map_shift' when it provides a non-zero value,
27468 otherwise fallback to `keyboard_map'.
27470 2008-02-04 Bean <bean123ch@gmail.com>
27472 * Makefile.in (enable_grub_fstest): New variable.
27474 * conf/common.rmk (grub_fstest_init.lst): New rule.
27475 (grub_fstest_init.h): Likewise.
27476 (grub_fstest_init.c): Likewise.
27477 (util/grub-fstest.c_DEPENDENCIES): New variable.
27478 (grub_fstest_SOURCES): Likewise.
27480 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
27482 * util/grub-fstest.c: New file.
27484 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
27486 Make grub-setup handle a separate root device.
27488 * util/i386/pc/grub-setup.c (setup): Always open the root device,
27489 so that the root device can be compared with the destination
27491 When embedding the core image, if the root and destination devices
27492 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
27494 When not embedding, set ROOT_DRIVE to 0xFF.
27496 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
27498 Add support for having a grub directory in a different drive. This
27499 is still only the data handling part.
27501 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
27502 (codestart): Save %dh in GRUB_ROOT_DRIVE.
27503 (grub_root_drive): New variable.
27505 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
27506 instead of GRUB_BOOT_DRIVE to construct a device name. Set
27507 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
27510 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
27512 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
27514 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
27516 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
27517 is bogus, because PXE booting does not specify any drive
27520 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
27521 am not sure if this is really correct.
27523 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
27524 is always identical to the boot drive when booting from a CD.
27526 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
27528 (root_drive): New variable.
27529 (real_start): Unconditionally set %dh to ROOT_DRIVE.
27530 (setup_sectors): Push %dx right after popping it, because %dh will
27532 (copy_buffer): Restore %dx.
27534 2008-02-03 Robert Millan <rmh@aybabtu.com>
27536 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
27537 use `cdboot.img' for cdrom images.
27539 2008-02-03 Robert Millan <rmh@aybabtu.com>
27541 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
27542 only setup gfxterm when `font' command has succeeded.
27544 2008-02-03 Robert Millan <rmh@aybabtu.com>
27546 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
27547 (grub_rescue_cmd_multiboot_loader)
27548 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
27550 2008-02-03 Pavel Roskin <proski@gnu.org>
27552 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
27553 %edx and %esi from stack only after grub_gate_a20() is called.
27554 grub_gate_a20() clobbers %edx.
27556 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
27558 * configure.ac (AC_INIT): Bumped to 1.96.
27560 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
27561 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
27562 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
27563 video/readers/png.c.
27565 2008-02-03 Bean <bean123ch@gmail.com>
27567 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
27568 (cdboot_img_SOURCES): New variable.
27569 (cdboot_img_ASFLAGS): New variable.
27570 (cdboot_img_LDFLAGS): New variable.
27572 * boot/i386/pc/cdboot.S: New file.
27574 * disk/i386/pc/biosdisk.c (cd_start): New variable.
27575 (cd_count): Likewise.
27576 (grub_biosdisk_get_drive): Add support for cd device.
27577 (grub_biosdisk_call_hook): Likewise.
27578 (grub_biosdisk_iterate): Likewise.
27579 (grub_biosdisk_open): Likewise.
27580 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
27581 (grub_biosdisk_rw): Support reading from cd device.
27582 (GRUB_MOD_INIT): Iterate cd devices.
27584 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
27585 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
27586 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
27588 * kern/i386/pc/init.c (make_install_device): Check for cd device.
27590 2008-02-02 Robert Millan <rmh@aybabtu.com>
27592 * commands/read.c: New file.
27593 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
27594 (read_mod_SOURCES): New variable.
27595 (read_mod_CFLAGS): Likewise.
27596 (read_mod_LDFLAGS): Likewise.
27598 2008-02-02 Robert Millan <rmh@aybabtu.com>
27600 * normal/main.c (grub_normal_execute): Check for `menu->size' when
27601 determining whether menu has to be displayed.
27603 2008-02-02 Marco Gerards <marco@gnu.org>
27605 * bus/pci.c: New file.
27607 * include/grub/pci.h: Likewise.
27609 * include/grub/i386/pc/pci.h: Likewise.
27611 * commands/lspci.c: Likewise.
27613 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
27615 (pci_mod_SOURCES): New variable.
27616 (pci_mod_CFLAGS): Likewise.
27617 (pci_mod_LDFLAGS): Likewise.
27618 (lspci_mod_SOURCES): Likewise.
27619 (lspci_mod_CFLAGS): Likewise.
27620 (lspci_mod_LDFLAGS): Likewise.
27622 2008-02-02 Bean <bean123ch@gmail.com>
27624 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
27625 (grub_ufs_get_file_block): Fix indirect block calculation problem.
27627 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
27628 (grub_xfs_btree_node): New structure.
27629 (grub_xfs_btree_root): New structure.
27630 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
27631 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
27632 (GRUB_XFS_EXTENT_BLOCK): Likewise.
27633 (GRUB_XFS_EXTENT_SIZE): Likewise.
27634 (grub_xfs_read_block): Support btree format type.
27635 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
27636 Use directory block as basic unit.
27638 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
27640 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
27641 __attribute__ ((__regparm__ (1))).
27643 2008-02-01 Robert Millan <rmh@aybabtu.com>
27645 Correct a mistake in previous commit.
27647 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
27649 (normal/command.c_DEPENDENCIES): New variable.
27651 2008-02-01 Robert Millan <rmh@aybabtu.com>
27653 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
27655 (normal/command.c_DEPENDENCIES): New variable.
27656 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
27657 * conf/i386-ieee1275.rmk: Likewise.
27658 * conf/i386-linuxbios.rmk: Likewise.
27659 * conf/i386-pc.rmk: Likewise.
27660 * conf/sparc64-ieee1275.rmk: Likewise.
27661 * conf/powerpc-ieee1275.rmk: Likewise.
27662 (grub_emu_SOURCES): Add `fs/fshelp.c'.
27664 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
27666 2008-02-01 Robert Millan <rmh@aybabtu.com>
27668 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
27669 call at beginning of function.
27671 2008-01-31 Pavel Roskin <proski@gnu.org>
27673 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
27674 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
27675 (grub_mkrescue_SOURCES): Likewise.
27676 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
27678 2008-01-30 Robert Millan <rmh@aybabtu.com>
27680 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
27681 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
27682 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
27683 (grub_probe_SOURCES): ... to here.
27685 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
27686 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
27687 * conf/i386-ieee1275.rmk: Likewise.
27688 * conf/i386-linuxbios.rmk: Likewise.
27689 * conf/powerpc-ieee1275.rmk: Likewise.
27691 2008-01-30 Tristan Gingold <gingold@free.fr>
27693 * kern/rescue.c: Silently accept empty lines.
27695 2008-01-29 Bean <bean123ch@gmail.com>
27697 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
27698 (real_code_2): Code cleanup and change comment style.
27699 (move_memory): Avoid using 32-bit address mode.
27701 2008-01-29 Bean <bean123ch@gmail.com>
27703 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
27704 (png_mod_SOURCES): New variable.
27705 (png_mod_CFLAGS): Likewise.
27706 (png_mod_LDFLAGS): Likewise.
27708 * video/readers/png.c: New file.
27710 2008-01-28 Robert Millan <rmh@aybabtu.com>
27712 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
27713 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
27714 `ifndef GRUB_MOD_GAP' hack.
27715 * util/elf/grub-mkimage.c (add_segments): Likewise.
27717 2008-01-27 Robert Millan <rmh@aybabtu.com>
27719 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
27720 `GRUB_MOD_GAP' for platforms in which it's not defined.
27721 * util/elf/grub-mkimage.c (add_segments): Likewise.
27723 2008-01-27 Robert Millan <rmh@aybabtu.com>
27725 Get grub-emu to build again (including parallel builds).
27727 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
27729 (util/grub-emu.c_DEPENDENCIES): ... this, ...
27730 (normal/execute.c_DEPENDENCIES): ... this, ...
27731 (grub-emu_DEPENDENCIES): ... and this.
27733 * conf/i386-efi.rmk: Likewise.
27734 * conf/i386-linuxbios.rmk: Likewise.
27735 * conf/i386-ieee1275.rmk: Likewise.
27736 * conf/powerpc-ieee1275.rmk: Likewise.
27737 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
27739 2008-01-27 Robert Millan <rmh@aybabtu.com>
27741 * NEWS: Add a few items.
27743 2008-01-27 Robert Millan <rmh@aybabtu.com>
27745 Fix parallel builds with grub-emu. Based on earlier commit for
27746 grub-probe and grub-setup.
27748 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27749 (util/grub-emu.c_DEPENDENCIES): ... this.
27750 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27751 (util/grub-emu.c_DEPENDENCIES): ... this.
27752 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27753 (util/grub-emu.c_DEPENDENCIES): ... this.
27754 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27755 (util/grub-emu.c_DEPENDENCIES): ... this.
27756 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27757 (util/grub-emu.c_DEPENDENCIES): ... this.
27759 2008-01-27 Pavel Roskin <proski@gnu.org>
27761 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
27762 to create a gap between _end and the modules added to the image
27763 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
27764 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
27765 * util/elf/grub-mkimage.c (add_segments): Likewise.
27767 2008-01-26 Pavel Roskin <proski@gnu.org>
27769 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
27770 just return an error.
27772 2008-01-26 Bean <bean123ch@gmail.com>
27774 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
27775 (grub_reiserfs_get_item): Save offset of the next item.
27776 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
27778 2008-01-25 Robert Millan <rmh@aybabtu.com>
27780 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
27781 make all filesystem sources appear together (possibly fixing omissions
27783 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27784 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27785 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27786 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27788 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
27790 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
27791 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
27792 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
27793 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
27795 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
27796 (probe): Add a sanity check to make sure of our ability to read
27797 requested files when probing for filesystem type.
27799 * genmk.rb: Update copyright year (2007).
27801 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
27802 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
27803 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
27804 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
27805 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
27806 : Remove function prototypes.
27808 2008-01-25 Robert Millan <rmh@aybabtu.com>
27810 Revert my previous commits (based on wrong assumption of how grub_errno
27813 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
27814 * kern/file.c (grub_file_open): Likewise.
27816 2008-01-24 Pavel Roskin <proski@gnu.org>
27818 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
27819 that hang if GRUB tries to setup colors.
27820 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
27821 colors for firmwares that don't support it.
27822 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
27823 Recognize Open Hack'Ware, set flags to work around its
27826 2008-01-24 Robert Millan <rmh@aybabtu.com>
27828 * kern/file.c (grub_file_open): Do not account previous failures of
27829 unrelated functions when grub_errno is checked for.
27830 Reported by Oleg Strikov.
27832 2008-01-24 Bean <bean123ch@gmail.com>
27834 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
27835 (grub_ufs_sblock): New member volume name.
27836 (grub_ufs_find_file): Fix string copy bug.
27837 (grub_ufs_label): Implement this function properly.
27839 * fs/hfs.c (grub_hfs_cnid_type): New enum.
27840 (grub_hfs_iterate_records): Use the correct file number for extents
27841 and catalog file. Fix problem in next index calculation.
27842 (grub_hfs_find_node): Replace recursive function call with loop.
27843 (grub_hfs_iterate_dir): Replace recursive function call with loop.
27845 2008-01-23 Robert Millan <rmh@aybabtu.com>
27847 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
27848 `<grub/symbol.h>' and `<grub/multiboot.h>'.
27849 (grub_multiboot2_real_boot): New function prototype.
27851 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
27852 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
27854 * kern/i386/ieee1275/init.c (grub_os_area_addr)
27855 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
27857 2008-01-23 Robert Millan <rmh@aybabtu.com>
27859 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
27860 #ifdef'ed out grub_printf().
27862 2008-01-23 Robert Millan <rmh@aybabtu.com>
27864 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
27865 grub_dprintf calls, since they make "debug=all" mode unusable.
27866 (grub_console_checkkey): Likewise.
27868 2008-01-23 Robert Millan <rmh@aybabtu.com>
27870 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
27871 `term/i386/pc/at_keyboard.c'.
27872 (pkglib_MODULES): Add `serial.mod'.
27873 (serial_mod_SOURCES): New variable.
27874 (serial_mod_CFLAGS): Likewise.
27875 (serial_mod_LDFLAGS): Likewise.
27877 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
27878 `<grub/powerpc/ieee1275/console.h>'.
27879 (grub_keyboard_controller_init): New function prototype.
27880 (grub_console_checkkey): Likewise.
27881 (grub_console_getkey): Likewise.
27883 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
27886 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
27887 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
27889 2008-01-23 Robert Millan <rmh@aybabtu.com>
27891 * kern/i386/pc/init.c (make_install_device): When memdisk image is
27892 present, "(memdisk)/boot/grub" becomes the default prefix.
27894 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
27895 a memdisk tarball with all the modules. Add --overlay=DIR option that
27896 allows users to overlay additional files into the image.
27898 2008-01-23 Robert Millan <rmh@aybabtu.com>
27900 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
27901 and `machine/memory.h'.
27902 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
27903 (_multiboot_mod_SOURCES): New variable.
27904 (_multiboot_mod_CFLAGS): Likewise.
27905 (_multiboot_mod_LDFLAGS): Likewise.
27906 (multiboot_mod_SOURCES): Likewise.
27907 (multiboot_mod_CFLAGS): Likewise.
27908 (multiboot_mod_LDFLAGS): Likewise.
27910 * include/grub/i386/ieee1275/loader.h: New file.
27912 * include/grub/i386/ieee1275/machine.h: Likewise.
27914 * include/grub/i386/ieee1275/memory.h: Likewise.
27916 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
27917 variable declaration.
27918 (grub_os_area_size): Likewise.
27920 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
27921 (grub_lower_mem, grub_upper_mem): New variables.
27922 (grub_stop_floppy): New function (just to make
27923 grub_multiboot2_real_boot() happy).
27925 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
27926 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
27927 (grub_stop): New function.
27928 Include `"../realmode.S"' and `"../loader.S"'.
27930 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
27931 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
27933 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
27934 rely on grub_multiboot2_real_boot() for final boot.
27936 2008-01-22 Robert Millan <rmh@aybabtu.com>
27938 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
27939 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
27940 device that doesn't look like an SD card.
27941 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
27942 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
27943 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
27944 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
27947 2008-01-22 Robert Millan <rmh@aybabtu.com>
27949 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
27950 avoid claiming over our own code.
27952 2008-01-22 Bean <bean123ch@gmail.com>
27954 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
27955 (jpeg_mod_SOURCES): New variable.
27956 (jpeg_mod_CFLAGS): Likewise.
27957 (jpeg_mod_LDFLAGS): Likewise.
27959 * video/readers/jpeg.c : New file.
27961 2008-01-22 Bean <bean123ch@gmail.com>
27963 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
27964 there are no more items.
27966 2008-01-21 Robert Millan <rmh@aybabtu.com>
27968 * kern/mm.c (grub_mm_init_region): Improve debug message.
27970 2008-01-21 Robert Millan <rmh@aybabtu.com>
27972 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
27973 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
27975 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
27977 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
27978 Indicates start of upper memory.
27979 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
27980 (generate_image): Abort when image size is big enough to corrupt
27983 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
27984 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
27985 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
27986 instead of hardcoding 0xA0000.
27987 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
27988 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
27989 instead of hardcoding 0xA0000.
27991 2008-01-21 Robert Millan <rmh@aybabtu.com>
27993 * disk/memdisk.c (memdisk_size): New variable.
27994 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
27996 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
27997 image to dynamic memory.
27998 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
27999 `memdisk_size'. Free memdisk block.
28001 2008-01-21 Robert Millan <rmh@aybabtu.com>
28003 Fix detection of very small filesystems (like tar).
28005 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
28006 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
28007 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
28008 a problem with this disk).
28010 2008-01-21 Robert Millan <rmh@aybabtu.com>
28012 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
28013 on grub_biosdisk_rw_standard() error.
28015 2008-01-21 Robert Millan <rmh@aybabtu.com>
28017 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
28019 * kern/elf.c: Likewise.
28020 * kern/ieee1275/ieee1275.c: Likewise.
28021 * kern/powerpc/ieee1275/openfw.c: Likewise.
28022 * term/ieee1275/ofconsole.c: Likewise.
28024 2008-01-21 Robert Millan <rmh@aybabtu.com>
28026 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
28028 * include/grub/kernel.h (grub_arch_memdisk_addr)
28029 (grub_arch_memdisk_size): Moved from here ...
28031 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
28032 (grub_arch_memdisk_size): ... to here.
28034 2008-01-21 Robert Millan <rmh@aybabtu.com>
28036 Mostly based on bugfix from Bean.
28038 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
28039 attribute with hook() parameter.
28040 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
28042 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
28043 attribute with hook() parameter.
28044 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
28047 2008-01-21 Robert Millan <rmh@aybabtu.com>
28049 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
28050 (pkglib_MODULES): Add `memdisk.mod'.
28051 (memdisk_mod_SOURCES): New variable.
28052 (memdisk_mod_CFLAGS): Likewise.
28053 (memdisk_mod_LDFLAGS): Likewise.
28055 * disk/memdisk.c: New file.
28057 * include/grub/disk.h (grub_disk_dev_id): Add
28058 `GRUB_DISK_DEVICE_MEMDISK_ID'.
28060 * include/grub/i386/pc/kernel.h
28061 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
28062 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
28063 (grub_kernel_image_size): New variable declaration.
28064 (grub_total_module_size): Likewise.
28065 (grub_memdisk_image_size): Likewise.
28067 * include/grub/i386/pc/memory.h
28068 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
28070 * include/grub/kernel.h: Include `<grub/symbol.h>'.
28071 (grub_arch_memdisk_addr): New variable declaration.
28072 (grub_arch_memdisk_size): Likewise.
28074 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
28075 (grub_arch_memdisk_size): Likewise.
28077 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
28078 (codestart): Replace hardcoded `0x100000' with
28079 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
28081 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
28082 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
28083 not NULL, append the contents of the file it refers to, at the end of
28084 the compressed kernel image. Initialize `grub_memdisk_image_size'
28085 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
28086 (options): Add "memdisk"|'m' option.
28087 (main): Parse --memdisk|-m option, and pass user-provided path as
28088 parameter to generate_image().
28090 2008-01-20 Robert Millan <rmh@aybabtu.com>
28092 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
28093 grub_dprintf() calls from here ...
28094 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
28096 2008-01-20 Robert Millan <rmh@aybabtu.com>
28098 Fix detection of "real mode" when /options/real-mode? doesn't exist.
28100 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
28102 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
28103 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
28104 `GRUB_IEEE1275_FLAG_REAL_MODE'.
28105 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
28107 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
28108 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
28110 2008-01-19 Robert Millan <rmh@aybabtu.com>
28112 Get rid of confusing function (superseded by
28113 `grub_ieee1275_get_integer_property')
28114 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
28116 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
28118 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
28119 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
28120 in native endianness from grub_ieee1275_get_integer_property().
28122 2008-01-19 Robert Millan <rmh@aybabtu.com>
28124 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
28125 command after "shut-down", since implementations differ on which
28126 the command for halt is.
28128 2008-01-19 Robert Millan <rmh@aybabtu.com>
28130 * include/grub/i386/linuxbios/console.h: Add header protection.
28131 (grub_keyboard_controller_init): New function prototype.
28132 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
28133 (KEYBOARD_COMMAND_READ): Likewise.
28134 (KEYBOARD_COMMAND_WRITE): Likewise.
28135 (KEYBOARD_SCANCODE_SET1): Likewise.
28136 (grub_keyboard_controller_write): New function.
28137 (grub_keyboard_controller_read): Likewise.
28138 (grub_keyboard_controller_init): Likewise.
28140 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
28141 (grub_console_init): On coreboot/LinuxBIOS, call
28142 grub_keyboard_controller_init().
28144 2008-01-19 Robert Millan <rmh@aybabtu.com>
28146 PowerPC changes provided by Pavel Roskin.
28148 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
28149 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
28150 don't rely on cmain() doing it.
28151 * kern/i386/ieee1275/startup.S (_start): Store %eax in
28152 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
28154 2008-01-16 Robert Millan <rmh@aybabtu.com>
28156 * include/grub/i386/linuxbios/memory.h
28157 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
28158 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
28159 receive `table_header' as argument. Instead, probe for it in the
28160 known memory ranges where it can be present.
28161 (grub_available_iterate): Do not pass a fixed `table_header' address
28162 to grub_linuxbios_table_iterate().
28164 2008-01-15 Robert Millan <rmh@aybabtu.com>
28166 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
28167 * conf/i386-ieee1275.rmk: New file.
28168 * include/grub/i386/ieee1275/console.h: Likewise.
28169 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
28170 * include/grub/i386/ieee1275/kernel.h: Likewise.
28171 * include/grub/i386/ieee1275/time.h: Likewise.
28172 * kern/i386/ieee1275/init.c: Likewise.
28173 * kern/i386/ieee1275/startup.S: Likewise.
28175 2008-01-15 Robert Millan <rmh@aybabtu.com>
28177 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
28178 when pointers are 32-bit (but still do set it to one when they are
28181 2008-01-15 Robert Millan <rmh@aybabtu.com>
28183 * include/grub/ieee1275/ieee1275.h
28184 (grub_ieee1275_get_integer_property): New function prototype.
28186 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
28187 (grub_ieee1275_get_integer_property): New function. Wraps around
28188 grub_ieee1275_get_property() to handle endianness.
28190 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
28191 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
28193 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
28194 (grub_map): Likewise.
28195 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
28197 2008-01-15 Bean <bean123ch@gmail.com>
28199 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
28200 (grub_script_execute_cmdline): Reset grub_errno.
28202 * normal/main.c (read_config_file): Reset grub_errno.
28204 * normal/parse.y (script_init): New.
28205 (script): Move function and menuentry here.
28207 (command): Add delimiter at the end of command.
28208 (commands): Adjust to match the new command.
28209 (commandblock): Remove grub_script_lexer_record_start.
28210 (menuentry): Add grub_script_lexer_record_start, use the new commands.
28211 (if): Use the new commands.
28213 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
28215 2008-01-15 Robert Millan <rmh@aybabtu.com>
28217 * normal/menu.c (run_menu): Move timeout message from here ...
28218 (print_timeout): ... to here.
28219 (run_menu): Use print_timeout() once during initial draw to print
28220 the whole message, and again in every clock tick to update only
28221 the number of seconds.
28223 2008-01-15 Robert Millan <rmh@aybabtu.com>
28225 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
28226 actual size of `available' from grub_ieee1275_get_property(), and
28227 restrict parsing to that bound.
28229 2008-01-15 Christian Franke <franke@computer.org>
28231 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
28232 (argp_program_version): Remove variable.
28233 (argp_program_bug_address): Likewise.
28234 (options): Convert from struct argp_option to struct option.
28235 (struct arguments): Remove.
28236 (parse_opt): Remove.
28237 (usage): New function.
28238 (main): Replace struct args members by simple variables.
28239 Replace argp_parse() by getopt_long().
28240 Add switch to evaluate options.
28241 Add missing "(...)" around root_dev in prefix string.
28243 2008-01-14 Robert Millan <rmh@aybabtu.com>
28245 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
28246 for grub_ieee1275_exit(), in order to improve portability.
28248 2008-01-14 Robert Millan <rmh@aybabtu.com>
28250 * util/grub.d/10_linux.in (prefix): Define.
28251 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
28253 2008-01-13 Pavel Roskin <proski@gnu.org>
28255 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
28256 grub_errno if no errors have been detected.
28258 2008-01-12 Robert Millan <rmh@aybabtu.com>
28260 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
28261 (grub_util_get_dev_abstraction): New function prototype.
28263 * util/getroot.c: Include `<grub/util/getroot.h>'
28264 (grub_util_get_grub_dev): Move detection of abstraction type to ...
28265 (grub_util_get_dev_abstraction): ... here (new function).
28267 * util/grub-probe.c: Convert PRINT_* to an enum. Add
28268 `PRINT_ABSTRACTION'.
28269 (probe): Probe for abstraction type when requested.
28270 (main): Understand `--target=abstraction'.
28272 * util/i386/efi/grub-install.in: Add abstraction module to core
28273 image when it is found to be necessary.
28274 * util/i386/pc/grub-install.in: Likewise.
28275 * util/powerpc/ieee1275/grub-install.in: Likewise.
28277 * util/update-grub_lib.in (font_path): Return system path without
28278 converting to GRUB path.
28279 * util/update-grub.in: Convert system path returned by font_path()
28280 to a GRUB path. Use `grub-probe -t abstraction' to determine what
28281 abstraction module is needed for loading fonts (if any). Export
28282 that as `GRUB_PRELOAD_MODULES'.
28283 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
28286 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
28288 Remove some unused code from reiserfs.
28290 * fs/reiserfs.c (struct grub_reiserfs_key)
28291 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
28292 (struct grub_reiserfs_node_body): Removed.
28293 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
28295 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
28297 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
28299 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
28301 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
28303 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
28305 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
28306 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
28307 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
28309 2008-01-10 Robert Millan <rmh@aybabtu.com>
28311 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
28312 Determines if a file is garbage left by packaging systems, etc.
28313 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
28314 for processing /etc/grub.d scripts.
28315 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
28316 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
28317 as a condition for processing Linux images.
28319 2008-01-10 Pavel Roskin <proski@gnu.org>
28321 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
28322 to compile reiserfs.c on PowerPC.
28324 2008-01-10 Robert Millan <rmh@aybabtu.com>
28326 * kern/device.c (grub_device_iterate): Do not abort device iteration
28327 when one of the devices cannot be opened.
28328 * kern/disk.c (grub_disk_open): Do not account previous failures of
28329 unrelated functions when grub_errno is checked for.
28331 2008-01-08 Robert Millan <rmh@aybabtu.com>
28333 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
28334 `! grub_linux_is_bzimage', change order of address comparison to make
28335 it more intuitive, and improve "too big zImage" error message.
28337 2008-01-08 Robert Millan <rmh@aybabtu.com>
28339 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
28340 `$(update-grub_DATA)'.
28341 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
28344 2008-01-07 Robert Millan <rmh@aybabtu.com>
28346 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
28347 which instruction is modified by grub-setup during installation
28348 (since it wasn't obvious by only looking at this file).
28350 2008-01-07 Robert Millan <rmh@aybabtu.com>
28352 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
28353 listing actual TODO items.
28355 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
28357 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
28359 (grub_reiserfs_get_key_offset): Likewise.
28360 (grub_reiserfs_set_key_offset): Likewise.
28361 (grub_reiserfs_set_key_type): Likewise.
28362 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
28364 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
28365 better to remove the bitfield version completely.
28367 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
28369 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
28370 allocated from the heap, due to the fshelp implementation.
28371 (grub_reiserfs_dir): Free NODE, due to the same reason.
28373 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
28375 Mostly from Vincent Pelletier:
28377 * fs/reiserfs.c: New file.
28379 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
28380 (reiserfs_mod_SOURCES): New variable.
28381 (reiserfs_mod_CFLAGS): Likewise.
28382 (reiserfs_mod_LDFLAGS): Likewise.
28384 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
28385 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
28386 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
28389 2008-01-06 Robert Millan <rmh@aybabtu.com>
28391 * normal/color.c: Remove `<grub/env.h>'.
28393 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
28395 * include/grub/normal.h: Include <grub/env.h>.
28397 2008-01-05 Robert Millan <rmh@aybabtu.com>
28399 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
28400 usage example with `(hd0,1)'.
28401 Reported by Samuel Thibault.
28403 2008-01-05 Robert Millan <rmh@aybabtu.com>
28405 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
28406 (grub_linux_boot_zimage): Rename to ...
28407 (grub_linux_boot): ... this.
28408 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
28409 (grub_linux_boot_zimage): Conditionalize zImage copy.
28411 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
28412 (grub_linux_boot_bzimage): Remove prototype.
28413 (grub_linux_boot_zimage): Rename to ...
28414 (grub_linux_boot): ... this.
28416 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
28417 (grub_linux_boot): Remove function.
28419 2008-01-05 Robert Millan <rmh@aybabtu.com>
28421 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
28422 (grub_env_write_color_highlight): Likewise.
28423 (grub_wait_after_message): Likewise.
28425 * normal/color.c: New file.
28427 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
28428 (normal_mod_DEPENDENCIES): Likewise.
28430 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
28431 (normal_mod_DEPENDENCIES): Likewise.
28433 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
28434 (normal_mod_DEPENDENCIES): Likewise.
28436 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
28437 (normal_mod_DEPENDENCIES): Likewise.
28439 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
28440 for waiting after a message is printed.
28441 * normal/main.c (read_config_file): Likewise.
28442 (grub_normal_init): Register grub_env_write_color_normal() and
28443 grub_env_write_color_highlight() hooks. Mark `color_normal' and
28444 `color_highlight' variables as global.
28446 * normal/menu.c (grub_wait_after_message): New function.
28447 (grub_color_menu_normal): New variable. Replaces ...
28448 (GRUB_COLOR_MENU_NORMAL): ... this macro.
28449 (grub_color_menu_highlight): New variable. Replaces ...
28450 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
28451 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
28452 `GRUB_TERM_COLOR_STANDARD'.
28453 (print_message): Use `grub_setcolorstate' to reload colors. Rename
28454 `normal_code' and `highlight_code' to `old_color_normal' and
28455 `old_color_highlight', respectively.
28456 (grub_menu_init_page): Update colors when drawing the menu, based on
28457 `menu_color_normal' and `menu_color_highlight' variables.
28458 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
28459 a message is printed.
28461 2008-01-05 Robert Millan <rmh@aybabtu.com>
28463 * kern/env.c (grub_env_context_open): Propagate hooks for global
28464 variables to new context.
28466 * kern/main.c (grub_set_root_dev): Export `root' variable.
28468 2008-01-05 Robert Millan <rmh@aybabtu.com>
28470 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
28471 discs unconditionally, since udev and others have options to provide
28474 2008-01-05 Robert Millan <rmh@aybabtu.com>
28476 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
28478 2008-01-04 Christian Franke <franke@computer.org>
28480 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
28483 2008-01-03 Pavel Roskin <proski@gnu.org>
28485 * kern/i386/linuxbios/init.c: Put "void" to all function
28486 declarations with no arguments.
28487 * kern/powerpc/ieee1275/init.c: Likewise.
28488 * term/i386/pc/at_keyboard.c: Likewise.
28489 * term/i386/pc/vga_text.c: Likewise.
28490 * util/grub-mkdevicemap.c: Likewise.
28492 2008-01-02 Robert Millan <rmh@aybabtu.com>
28494 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
28495 message when loaded image is out of bounds.
28496 (grub_multiboot_load_elf64): Likewise.
28498 2008-01-02 Pavel Roskin <proski@gnu.org>
28500 * util/grub.d/10_linux.in: Try version without ".old" when
28501 looking for initrd. It's better to use initrd from the newer
28502 kernel of the same version than no initrd at all.
28504 2008-01-01 Robert Millan <rmh@aybabtu.com>
28506 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
28508 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
28510 * include/grub/video.h: Added grub_video_unmap_color and
28511 grub_video_get_active_render_target.
28512 (grub_video_adapter): Added unmap_color and get_active_render_target.
28514 * video/video.c: Added grub_video_unmap_color and
28515 grub_video_get_active_render_target.
28516 (grub_video_get_info): Changed method to accept NULL pointer as an
28517 argument to allow detection of active video adapter.
28519 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
28520 grub_video_vbe_unmap_color_int.
28521 Added grub_video_vbe_unmap_color and
28522 grub_video_vbe_get_active_render_target.
28523 (grub_video_vbe_adapter): Added unmap_color and
28524 get_active_render_target.
28526 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
28527 with grub_video_vbe_unmap_color_int.
28529 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
28530 (DEFAULT_NORMAL_COLOR): Likewise.
28531 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
28532 (DEFAULT_FG_COLOR): Removed.
28533 (DEFAULT_BG_COLOR): Likewise.
28534 (DEFAULT_CURSOR_COLOR): Changed value.
28535 (grub_virtual_screen): Added standard_color_setting,
28536 normal_color_setting, highlight_color_setting and term_color.
28537 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
28538 (bitmap_width): Added.
28539 (bitmap_height): Likewise.
28540 (bitmap): Likewise.
28541 (set_term_color): Likewise.
28542 (grub_virtual_screen_setup): Changed to use new terminal coloring
28544 (grub_gfxterm_init): Added init for bitmap.
28545 (grub_gfxterm_fini): Added destroy for bitmap.
28546 (redraw_screen_rect): Updated to use background bitmap and new
28548 (scroll_up): Added optimization for case when there is no bitmap.
28549 (grub_gfxterm_cls): Fixed to use correct background color.
28550 (grub_virtual_screen_setcolorstate): Changed to use new terminal
28552 (grub_virtual_screen_setcolor): Likewise.
28553 (grub_virtual_screen_getcolor): Added.
28554 (grub_gfxterm_background_image_cmd): Likewise.
28555 (grub_video_term): Added setcolor and getcolor.
28556 (MOD_INIT): Added registration of background_image command.
28557 (MOD_TERM): Added unregistration for background_image command.
28559 2007-12-30 Pavel Roskin <proski@gnu.org>
28561 * loader/multiboot_loader.c: Fix multiboot command
28562 unregistration. Fix all typos in the word "multiboot".
28564 2007-12-29 Pavel Roskin <proski@gnu.org>
28566 * util/grub.d/10_linux.in: Refactor search for initrd. Add
28567 support for initrd names used in Fedora.
28569 2007-12-26 Bean <bean123ch@gmail.com>
28571 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
28572 (cpio_mod_SOURCES): New variable.
28573 (cpio_mod_CFLAGS): Likewise.
28574 (cpio_mod_LDFLAGS): Likewise.
28576 * fs/cpio.c: New file.
28578 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
28580 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28582 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28584 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28586 2007-12-25 Robert Millan <rmh@aybabtu.com>
28588 * include/grub/term.h (struct grub_term): Add `getcolor' function.
28589 (grub_getcolor): New function.
28591 * kern/term.c (grub_getcolor): New function.
28592 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
28593 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
28594 (print_entry): Set normal and highlight colors to
28595 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
28596 respectively, before printing and restore them to old
28598 (grub_menu_init_page): Likewise. Fill an additional colored space
28599 that would otherwise be left blank.
28601 * term/efi/console.c (grub_console_getcolor): New function.
28602 (struct grub_console_term.getcolor): New variable.
28603 * term/i386/pc/console.c (grub_console_getcolor): New function.
28604 (struct grub_console_term.getcolor): New variable.
28605 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
28606 (struct grub_console_term.getcolor): New variable.
28608 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
28609 (struct grub_console_term.setcolor): Remove variable.
28610 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
28611 (struct grub_console_term.setcolor): Remove variable.
28612 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
28613 (struct grub_console_term.setcolor): Remove variable.
28614 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
28615 (struct grub_console_term.setcolor): Remove variable.
28617 2007-12-25 Robert Millan <rmh@aybabtu.com>
28619 * configure.ac: Search for possible unifont.hex locations, and
28620 define UNIFONT_HEX if found.
28622 * Makefile.in (UNIFONT_HEX): Define variable.
28623 (DATA): Rename to ...
28624 (PKGLIB): ... this. Update all users.
28625 (PKGDATA): New variable.
28626 (pkgdata_IMAGES): Rename to ...
28627 (pkglib_IMAGES): ... this. Update all users.
28628 (pkgdata_MODULES): Rename to ...
28629 (pkglib_MODULES): ... this. Update all users.
28630 (pkgdata_PROGRAMS): Rename to ...
28631 (pkglib_PROGRAMS): ... this. Update all users.
28632 (pkgdata_DATA): Rename to ...
28633 (pkglib_DATA): ... this. Update all users.
28634 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
28635 (unicode.pff, ascii.pff): New rules.
28636 (all-local): Add `$(PKGDATA)' dependency.
28637 (install-local): Process `$(PKGDATA)'.
28639 * util/update-grub_lib.in (font_path): Search for *.pff files in
28640 a few more locations, including `${pkgdata}'.
28642 2007-12-23 Robert Millan <rmh@aybabtu.com>
28644 Patch from Bean <bean123ch@gmail.com>:
28645 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
28648 2007-12-21 Bean <bean123ch@gmail.com>
28650 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
28651 (ntfscomp_mod_SOURCES): New variable.
28652 (ntfscomp_mod_CFLAGS): Likewise.
28653 (ntfscomp_mod_LDFLAGS): Likewise.
28655 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
28656 (grub_probe_SOURCES): Likewise.
28657 (grub_emu_SOURCES): Likewise.
28659 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
28660 (grub_emu_SOURCES): Likewise.
28662 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
28663 (grub_emu_SOURCES): Likewise.
28665 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
28666 (grub_emu_SOURCES): Likewise.
28668 * fs/ntfs.c (grub_ntfscomp_func): New variable.
28669 (read_run_list): Renamed to grub_ntfs_read_run_list.
28670 (decomp_nextvcn): Moved to ntfscomp.c.
28671 (decomp_getch): Likewise.
28672 (decomp_get16): Likewise.
28673 (decomp_block): Likewise.
28674 (read_block): Likewise.
28675 (read_data): Partially moved to ntfscomp.c.
28676 (fixup): Change unsigned to grub_uint16_t.
28677 (read_mft): Change unsigned long to grub_uint32_t.
28678 (read_attr): Likewise.
28679 (read_data): Likewise.
28680 (read_run_data): Likewise.
28681 (read_run_list): Likewise.
28682 (read_mft): Likewise.
28684 * fs/ntfscomp.c: New file.
28686 * include/grub/ntfs.h: New file.
28688 2007-12-16 Robert Millan <rmh@aybabtu.com>
28690 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
28691 IDE disk check, since Linux is known to support 20 IDE disks.
28692 Reported by Colin Watson.
28694 2007-12-15 Bean <bean123ch@gmail.com>
28696 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
28697 (lnxboot_img_SOURCES): New variable.
28698 (lnxboot_img_ASFLAGS): Likewise.
28699 (lnxboot_img_LDFLAGS): Likewise.
28701 * boot/i386/pc/lnxboot.S: New file.
28703 2007-11-24 Pavel Roskin <proski@gnu.org>
28705 * configure.ac: Test if '--build-id=none' is supported by the
28706 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
28707 objcopy to generate incorrect binary files (binutils
28708 2.17.50.0.18-1 as shipped by Fedora 8).
28709 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
28710 linking, so that build ID doesn't break the test.
28712 2007-11-24 Pavel Roskin <proski@gnu.org>
28714 * include/grub/i386/time.h: use "void" in the argument list
28715 of grub_cpu_idle().
28716 * include/grub/powerpc/time.h: Likewise.
28717 * include/grub/sparc64/time.h: Likewise.
28719 2007-11-18 Christian Franke <franke@computer.org>
28721 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
28722 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
28723 This fixes the problem that function keys did not work in grub-emu.
28725 2007-11-18 Christian Franke <franke@computer.org>
28727 * disk/host.c (grub_host_open): Remove attribute unused from
28728 name parameter. Add check for "host". This fixes the problem
28729 that grub-emu does not find partitions.
28731 2007-11-18 Christian Franke <franke@computer.org>
28733 * util/hostfs.c (is_dir): New function.
28734 (grub_hostfs_dir): Handle missing dirent.d_type case.
28735 (grub_hostfs_read): Add missing fseek().
28736 (grub_hostfs_label): Clear label pointer. This fixes a crash
28737 of grub-emu on "ls (host)".
28739 2007-11-18 Christian Franke <franke@computer.org>
28741 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
28742 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
28743 to 64 bit boundary by default.
28745 2007-11-18 Bean <bean123ch@gmail.com>
28747 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
28748 (hexdump_mod_SOURCES): New variable.
28749 (hexdump_mod_CFLAGS): Likewise.
28750 (hexdump_mod_LDFLAGS): Likewise.
28752 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28754 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28756 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28758 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28760 * include/grub/hexdump.h: New file.
28762 * commands/hexdump.c: New file.
28764 2007-11-10 Robert Millan <rmh@aybabtu.com>
28766 * commands/i386/pc/play.c (beep_off): Switch order of arguments
28767 in grub_outb() calls.
28768 (beep_on): Likewise.
28770 2007-11-10 Christian Franke <franke@computer.org>
28772 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
28773 (grub_menu_run): Likewise.
28775 2007-11-10 Robert Millan <rmh@aybabtu.com>
28777 * include/grub/i386/efi/machine.h: New file.
28778 * include/grub/i386/linuxbios/machine.h: Likewise.
28779 * include/grub/i386/pc/machine.h: Likewise.
28780 * include/grub/powerpc/ieee1275/machine.h: Likewise.
28781 * include/grub/sparc64/ieee1275/machine.h: Likewise.
28783 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
28784 (serial_hw_io_addr): New variable.
28785 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
28786 instead of `(unsigned short *) 0x400'.
28788 2007-11-10 Bean <bean123ch@gmail.com>
28790 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
28792 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
28794 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
28795 (vga_mod_SOURCES): Added.
28796 (vga_mod_CFLAGS): Likewise.
28797 (vga_mod_LDFLAGS): Likewise.
28799 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
28801 (set_map_mask): Likewise.
28802 (set_read_map): Likewise.
28803 (set_read_address): Likewise.
28804 (vga_font): Removed variable.
28805 (get_vga_glyph): Removed function.
28806 (invalidate_char): Likewise.
28807 (write_char): Changed to use grub_font_get_glyph() for font
28809 (grub_vga_putchar): Likewise.
28810 (grub_vga_getcharwidth): Likewise.
28812 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
28814 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
28816 (pxeboot_img_LDFLAGS): Likewise.
28817 (diskboot_img_LDFLAGS): Likewise.
28818 (kernel_img_LDFLAGS): Likewise.
28820 2007-11-06 Robert Millan <rmh@aybabtu.com>
28822 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
28823 in grub_outb() calls.
28824 (serial_hw_init): Likewise.
28826 2007-11-05 Robert Millan <rmh@aybabtu.com>
28828 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
28829 spaces. Skip non-regular files.
28831 2007-11-05 Robert Millan <rmh@aybabtu.com>
28833 * kern/disk.c (grub_disk_firmware_fini)
28834 (grub_disk_firmware_is_tainted): New variables.
28836 * include/grub/disk.h (grub_disk_firmware_fini)
28837 (grub_disk_firmware_is_tainted): Likewise.
28839 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
28840 (grub_disk_biosdisk_fini): ... to here.
28841 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
28842 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
28843 is set. Register grub_disk_biosdisk_fini() in
28844 `grub_disk_firmware_fini'.
28846 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
28847 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
28848 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
28849 to finish existing firmware disk interface.
28851 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
28852 (ata_mod_SOURCES): New variable.
28853 (ata_mod_CFLAGS): Likewise.
28854 (ata_mod_LDFLAGS): Likewise.
28856 2007-11-05 Robert Millan <rmh@aybabtu.com>
28858 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
28859 (grub_ata_wait): Reimplement using grub_millisleep().
28861 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
28862 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
28864 2007-11-03 Marco Gerards <marco@gnu.org>
28866 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
28867 (CRTC_ADDR_PORT): New macro.
28868 (CRTC_DATA_PORT): Likewise.
28869 (CRTC_CURSOR): Likewise.
28870 (CRTC_CURSOR_ADDR_HIGH): Likewise.
28871 (CRTC_CURSOR_ADDR_LOW): Likewise.
28872 (update_cursor): New function.
28873 (grub_console_real_putchar): Call `update_cursor'.
28874 (grub_console_gotoxy): Likewise.
28875 (grub_console_cls): Set the default color when clearing the
28877 (grub_console_setcursor): Implemented.
28879 2007-11-03 Marco Gerards <marco@gnu.org>
28881 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
28883 (grub_ata_pio_write): Likewise.
28885 (grub_atapi_identify): Wait after issuing an ATA command.
28886 (grub_atapi_packet): Likewise.
28887 (grub_ata_identify): Likewise.
28888 (grub_ata_readwrite): Likewise.
28890 2007-11-03 Marco Gerards <marco@gnu.org>
28892 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
28893 (grub_ata_pio_write): Likewise.
28894 (grub_ata_readwrite): Use `grub_error', instead of
28895 returning `grub_errno'.
28897 2007-11-03 Marco Gerards <marco@gnu.org>
28899 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
28900 grub_ata_pio_write once for every single sector, instead of for
28903 2007-10-31 Robert Millan <rmh@aybabtu.com>
28905 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
28907 * conf/i386-linuxbios.rmk: New file.
28909 * kern/i386/pc/hardware.c: Likewise.
28910 * term/i386/pc/at_keyboard.c: Likewise.
28911 * term/i386/pc/vga_text.c: Likewise.
28913 * include/grub/i386/linuxbios/boot.h: Likewise.
28914 * include/grub/i386/linuxbios/console.h: Likewise.
28915 * include/grub/i386/linuxbios/init.h: Likewise.
28916 * include/grub/i386/linuxbios/kernel.h: Likewise.
28917 * include/grub/i386/linuxbios/loader.h: Likewise.
28918 * include/grub/i386/linuxbios/memory.h: Likewise.
28919 * include/grub/i386/linuxbios/serial.h: Likewise.
28920 * include/grub/i386/linuxbios/time.h: Likewise.
28922 * kern/i386/linuxbios/init.c: Likewise.
28923 * kern/i386/linuxbios/startup.S: Likewise.
28924 * kern/i386/linuxbios/table.c: Likewise.
28926 2007-10-31 Marco Gerards <marco@gnu.org>
28928 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
28929 (ata_mod_SOURCES): New variable.
28930 (ata_mod_CFLAGS): Likewise.
28931 (ata_mod_LDFLAGS): Likewise.
28933 * disk/ata.c: New file.
28935 * include/grub/disk.h (grub_disk_dev_id): Add
28936 `GRUB_DISK_DEV_ATA_ID'.
28938 2007-10-31 Robert Millan <rmh@aybabtu.com>
28940 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
28941 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
28943 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
28944 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
28946 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
28949 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
28951 2007-10-27 Robert Millan <rmh@aybabtu.com>
28953 * include/grub/types.h (ULONG_MAX): Define macro.
28955 2007-10-22 Robert Millan <rmh@aybabtu.com>
28957 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
28959 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
28961 2007-10-22 Robert Millan <rmh@aybabtu.com>
28963 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
28964 (pkgdata_MODULES): Add `biosdisk.mod'.
28965 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
28968 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
28969 (grub_biosdisk_init): Replace with ...
28970 (GRUB_MOD_INIT(biosdisk)): ... this.
28971 (grub_biosdisk_fini): Replace with ...
28972 (GRUB_MOD_FINI(biosdisk)): ... this.
28974 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
28975 (grub_machine_init): Remove call to grub_biosdisk_init().
28976 (grub_machine_fini): Remove call to grub_machine_fini().
28978 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
28980 2007-10-22 Robert Millan <rmh@aybabtu.com>
28982 * include/grub/time.h: New file.
28983 * include/grub/i386/time.h: Likewise.
28984 * include/grub/powerpc/time.h: Likewise.
28985 * include/grub/sparc64/time.h: Likewise.
28987 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
28989 (KERNEL_MACHINE_TIME_HEADER): ... this.
28990 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
28992 (KERNEL_MACHINE_TIME_HEADER): ... this.
28993 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
28995 (KERNEL_MACHINE_TIME_HEADER): ... this.
28997 * kern/i386/efi/init.c: Include `<grub/time.h>'.
28998 (grub_millisleep): New function.
28999 * kern/i386/pc/init.c: Include `<grub/time.h>'.
29000 (grub_millisleep): New function.
29001 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
29002 Remove `grub/machine/time.h' include.
29003 (grub_millisleep): New function.
29004 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
29005 Remove `grub/machine/time.h' include.
29006 (grub_millisleep): New function.
29008 * include/grub/misc.h (grub_div_roundup): New function.
29010 * kern/misc.c: Include `<grub/time.h>'.
29011 (grub_millisleep_generic): New function.
29013 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
29015 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
29017 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
29018 `machine/time.h'. Add `time.h'.
29019 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
29021 2007-10-21 Robert Millan <rmh@aybabtu.com>
29023 * include/grub/misc.h (grub_max): New function.
29025 2007-10-21 Robert Millan <rmh@aybabtu.com>
29027 * util/misc.c (grub_util_info): Call fflush() before returning.
29029 2007-10-20 Robert Millan <rmh@aybabtu.com>
29031 * genmk.rb (Image): Copy `extra_flags' from here ...
29032 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
29034 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
29035 to `argc' and `args' arguments.
29037 2007-10-17 Robert Millan <rmh@aybabtu.com>
29039 * kern/i386/loader.S: New file.
29041 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
29042 * kern/i386/loader.S (grub_linux_prot_size)... to here.
29043 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
29044 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
29045 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
29046 * kern/i386/loader.S (grub_linux_real_addr)... to here.
29047 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
29048 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
29049 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
29050 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
29051 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
29052 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
29053 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
29054 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
29056 * kern/i386/realmode.S: New file.
29058 * kern/i386/pc/startup.S (protstack): Moved from here ...
29059 * kern/i386/realmode.S (protstack)... to here.
29060 * kern/i386/pc/startup.S (gdt): Moved from here ...
29061 * kern/i386/realmode.S (gdt)... to here.
29062 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
29063 * kern/i386/realmode.S (prot_to_real)... to here.
29065 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
29066 `kern/i386/realmode.S'.
29068 2007-10-17 Robert Millan <rmh@aybabtu.com>
29070 * include/grub/i386/loader.h: New file.
29072 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
29073 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
29074 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
29075 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
29076 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
29077 * include/grub/i386/loader.h (grub_linux_prot_size)
29078 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
29079 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
29080 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
29081 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
29083 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
29085 2007-10-15 Robert Millan <rmh@aybabtu.com>
29087 * normal/misc.c (grub_normal_print_device_info): Do not probe for
29088 filesystem when dev->disk is unset.
29089 Do probe for filesystem even when dev->disk->has_partitions is set.
29090 In case a filesystem is found, always report it.
29091 In case it isn't, if dev->disk->has_partitions is set, report that
29092 a partition table was found instead of reporting that no filesystem
29093 could be identified.
29095 2007-10-12 Robert Millan <rmh@aybabtu.com>
29097 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
29098 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
29100 * include/grub/types.h (grub_host_to_target16): New macro.
29101 (grub_host_to_target32): Likewise.
29102 (grub_host_to_target64): Likewise.
29103 (grub_target_to_host16): Likewise.
29104 (grub_target_to_host32): Likewise.
29105 (grub_target_to_host64): Likewise.
29107 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
29108 Renamed from to ...
29109 (GRUB_MOD_ALIGN): ...this. Update all users.
29111 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
29112 grub_host_to_target32.
29113 Replace grub_be_to_cpu32 with grub_target_to_host32.
29114 (load_modules): Likewise.
29115 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
29116 Replace grub_be_to_cpu32 with grub_target_to_host32.
29117 Replace grub_cpu_to_be16 with grub_host_to_target16.
29118 Replace grub_cpu_to_be32 grub_host_to_target32.
29120 2007-10-12 Robert Millan <rmh@aybabtu.com>
29122 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
29123 * util/elf/grub-mkimage.c: ... here.
29125 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
29126 `util/powerpc/ieee1275/grub-mkimage.c'.
29128 2007-10-07 Robert Millan <rmh@aybabtu.com>
29130 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
29131 and make it easier to figure out.
29132 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
29133 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
29134 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
29135 leave us with less than HEAP_MIN_SIZE total heap.
29136 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
29138 2007-10-03 Robert Millan <rmh@aybabtu.com>
29140 * include/grub/i386/io.h: New file.
29141 * commands/i386/pc/play.c (inb): Removed.
29143 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
29145 * term/i386/pc/serial.c (inb): Removed.
29147 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
29149 * term/i386/pc/vga.c (inb): Removed.
29151 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
29154 2007-10-02 Robert Millan <rmh@aybabtu.com>
29156 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
29157 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29158 Reported by Marcin Kurek.
29160 2007-09-07 Robert Millan <rmh@aybabtu.com>
29162 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
29163 SmartFirmware version updates (as released by Sven Luther), and avoid
29164 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
29165 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
29168 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
29170 From Hitoshi Ozeki:
29171 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
29172 when merging two regions.
29174 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
29176 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
29177 * normal/completion.c (grub_normal_do_completion): Likewise.
29178 Reported by Hitoshi Ozeki.
29180 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
29182 Do not use devices at boot in chainloading.
29184 * loader/i386/pc/chainloader.c (boot_drive): New variable.
29185 (boot_part_addr): Likewise.
29186 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
29187 with BOOT_DRIVE and BOOT_PART_ADDR.
29188 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
29189 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
29191 2007-08-29 Robert Millan <rmh@aybabtu.com>
29193 Patch from Simon Peter <dn.tlp@gmx.net>:
29194 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
29195 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
29196 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
29197 util/i386/pc/grub-setup.c_DEPENDENCIES.
29198 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
29199 util/grub-probe.c_DEPENDENCIES.
29200 * conf/powerpc-ieee1275.rmk: Likewise.
29202 2007-08-28 Robert Millan <rmh@aybabtu.com>
29204 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
29205 to tell grub-mkdevicemap how to name devices.
29206 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
29209 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
29210 util/i386/get_disk_name.c.
29211 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
29212 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
29213 util/ieee1275/get_disk_name.c.
29215 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
29217 * DISTLIST: Add util/i386/get_disk_name.c and
29218 util/ieee1275/get_disk_name.c.
29220 * util/grub-mkdevicemap.c: Replace device naming logic with
29221 grub_util_get_disk_name() calls.
29223 2007-08-20 Robert Millan <rmh@aybabtu.com>
29225 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
29226 (so that it works for both plural and singular quantities).
29228 2007-08-05 Robert Millan <rmh@aybabtu.com>
29230 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
29231 so that [xz] isn't taken into account when determining order.
29233 2007-08-02 Marco Gerards <marco@gnu.org>
29235 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
29236 `include/multiboot2.h', `include/grub/elfload.h',
29237 `include/multiboot.h', `include/grub/multiboot.h',
29238 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
29239 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
29240 `kern/elf.c', `loader/multiboot_loader.c',
29241 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
29242 `loader/i386/pc/multiboot2.c',
29243 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
29244 `util/i386/pc/grub-mkrescue.in'. Remove
29245 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
29246 `include/grub/i386/pc/util/biosdisk.h' and
29247 `include/grub/powerpc/ieee1275/multiboot.h'.
29249 2007-08-02 Bean <bean123ch@gmail.com>
29251 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
29252 (ntfs_mod_SOURCES): New variable.
29253 (ntfs_mod_CFLAGS): Likewise.
29254 (ntfs_mod_LDFLAGS): Likewise.
29256 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
29257 (grub_probe_SOURCES): Likewise.
29258 (grub_emu_SOURCES): Likewise.
29260 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
29261 (grub_emu_SOURCES): Likewise.
29263 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
29264 (grub_emu_SOURCES): Likewise.
29266 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
29268 * fs/ntfs.c: New file.
29270 2007-08-02 Bean <bean123ch@gmail.com>
29272 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
29274 * file.h (grub_file): Likewise.
29276 * fshelp.h (grub_fshelp_read_file): Likewise.
29278 * util/i386/pc/grub-setup.c (setup): Likewise.
29279 (save_first_sector): Likewise.
29280 (save_blocklists): Likewise.
29282 * fs/affs.c (grub_affs_read_file): Likewise.
29284 * fs/ext2.c (grub_ext2_read_file): Likewise.
29286 * fs/fat.c (grub_fat_read_data): Likewise.
29288 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
29290 * fs/hfs.c (grub_hfs_read_file): Likewise.
29292 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
29294 * fs/jfs.c (grub_jfs_read_file): Likewise.
29296 * fs/minix.c (grub_minix_read_file): Likewise.
29298 * fs/sfs.c (grub_sfs_read_file): Likewise.
29300 * fs/ufs.c (grub_ufs_read_file): Likewise.
29302 * fs/xfs.c (grub_xfs_read_file): Likewise.
29304 * command/blocklist.c (read_blocklist): Likewise.
29305 (print_blocklist): Likewise.
29307 2007-08-02 Marco Gerards <marco@gnu.org>
29309 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
29312 * disk/host.c: New file.
29314 * util/hostfs.c: Likewise.
29316 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
29317 return `GRUB_ERR_BAD_FS'.
29318 * fs/sfs.c (grub_sfs_mount): Likewise.
29319 * fs/xfs.c (grub_xfs_mount): Likewise.
29321 * include/grub/disk.h (enum grub_disk_dev_id): Add
29322 `GRUB_DISK_DEVICE_HOST_ID'.
29324 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
29326 2007-07-24 Jerone Young <jerone@gmail.com>
29328 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
29329 modules for compilation.
29330 * conf/powerpc-ieee1275.rmk: Likewise.
29332 * include/multiboot.h: Move multiboot definitions to one file. Rename
29333 many definitions to not get grub specific.
29334 * include/multiboot2.h: Create header with multiboot 2 definitions.
29335 * include/grub/multiboot.h: Header for grub specific function
29336 prototypes and definitions.
29337 * include/grub/multiboot2.h: Likewise.
29338 * include/grub/multiboot_loader.h: Likewise.
29339 * include/grub/i386/pc/multiboot.h: Removed.
29340 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
29342 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
29343 and 2 to allow for one multiboot and module commands.
29344 * loader/multiboot2.c: Add multiboot2 functionality.
29345 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
29346 and definition names.
29347 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
29349 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
29350 ieee1275 specific multiboot2 code.
29352 * kern/i386/pc/startup.S: Change headers and definition names for
29353 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
29355 2007-07-22 Robert Millan <rmh@aybabtu.com>
29357 * geninitheader.sh: Process file specified in first parameter rather
29358 than hardcoding grub_modules_init.lst.
29359 * geninit.sh: Likewise. Also, construct header name dynamically rather
29360 than hardcoding grub_modules_init.h.
29362 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
29363 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
29364 grub_probe_init.[ch] and grub_setup_init.[ch].
29366 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
29367 grub_modules_init.h with grub_emu_init.h.
29368 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
29369 grub_probe_init.[ch] files.
29370 * conf/i386-efi.rmk: Likewise.
29371 * conf/i386-pc.rmk: Likewise.
29372 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
29373 grub_setup_init.[ch] files.
29375 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
29376 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
29377 to initialize modules rather than a list of hardcoded functions.
29378 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
29379 grub_init_all() to initialize modules rather than a list of hardcoded
29382 2007-07-22 Robert Millan <rmh@aybabtu.com>
29384 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
29385 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
29387 2007-07-22 Robert Millan <rmh@aybabtu.com>
29389 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
29390 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
29391 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
29392 flag when running on SmartFirmware.
29393 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
29394 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
29397 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
29398 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
29399 rather than decreasing it.
29401 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
29402 there's not enough space to do it, fail in the same way as when it
29403 can't be done because there are no partitions.
29405 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
29406 when nvsetenv failed.
29408 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
29410 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
29411 because this rule is automatically generated.
29412 (grub-mkrescue): Removed for the same reason as above.
29414 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
29416 Migrate to GNU General Public License Version 3.
29418 * COPYING: Replaced with the plain text version of GPLv3.
29420 * config.guess: Updated from gnulib.
29421 * config.sub: Likewise.
29423 * geninit.sh: Output a GPLv3 copyright notice.
29424 * geninitheader.sh: Likewise.
29425 * genmodsrc.sh: Likewise.
29426 * gensymlist.sh.in: Likewise.
29428 * boot/i386/pc/boot.S: Upgraded to GPLv3.
29429 * boot/i386/pc/diskboot.S: Likewise.
29430 * boot/i386/pc/pxeboot.S: Likewise.
29431 * commands/blocklist.c: Likewise.
29432 * commands/boot.c: Likewise.
29433 * commands/cat.c: Likewise.
29434 * commands/cmp.c: Likewise.
29435 * commands/configfile.c: Likewise.
29436 * commands/echo.c: Likewise.
29437 * commands/help.c: Likewise.
29438 * commands/ls.c: Likewise.
29439 * commands/search.c: Likewise.
29440 * commands/terminal.c: Likewise.
29441 * commands/test.c: Likewise.
29442 * commands/videotest.c: Likewise.
29443 * commands/i386/cpuid.c: Likewise.
29444 * commands/i386/pc/halt.c: Likewise.
29445 * commands/i386/pc/play.c: Likewise.
29446 * commands/i386/pc/reboot.c: Likewise.
29447 * commands/i386/pc/vbeinfo.c: Likewise.
29448 * commands/i386/pc/vbetest.c: Likewise.
29449 * commands/ieee1275/halt.c: Likewise.
29450 * commands/ieee1275/reboot.c: Likewise.
29451 * commands/ieee1275/suspend.c: Likewise.
29452 * disk/loopback.c: Likewise.
29453 * disk/lvm.c: Likewise.
29454 * disk/raid.c: Likewise.
29455 * disk/efi/efidisk.c: Likewise.
29456 * disk/i386/pc/biosdisk.c: Likewise.
29457 * disk/ieee1275/ofdisk.c: Likewise.
29458 * font/manager.c: Likewise.
29459 * fs/affs.c: Likewise.
29460 * fs/ext2.c: Likewise.
29461 * fs/fat.c: Likewise.
29462 * fs/fshelp.c: Likewise.
29463 * fs/hfs.c: Likewise.
29464 * fs/hfsplus.c: Likewise.
29465 * fs/iso9660.c: Likewise.
29466 * fs/jfs.c: Likewise.
29467 * fs/minix.c: Likewise.
29468 * fs/sfs.c: Likewise.
29469 * fs/ufs.c: Likewise.
29470 * fs/xfs.c: Likewise.
29471 * hello/hello.c: Likewise.
29472 * include/grub/acorn_filecore.h: Likewise.
29473 * include/grub/arg.h: Likewise.
29474 * include/grub/bitmap.h: Likewise.
29475 * include/grub/boot.h: Likewise.
29476 * include/grub/cache.h: Likewise.
29477 * include/grub/device.h: Likewise.
29478 * include/grub/disk.h: Likewise.
29479 * include/grub/dl.h: Likewise.
29480 * include/grub/elfload.h: Likewise.
29481 * include/grub/env.h: Likewise.
29482 * include/grub/err.h: Likewise.
29483 * include/grub/file.h: Likewise.
29484 * include/grub/font.h: Likewise.
29485 * include/grub/fs.h: Likewise.
29486 * include/grub/fshelp.h: Likewise.
29487 * include/grub/gzio.h: Likewise.
29488 * include/grub/hfs.h: Likewise.
29489 * include/grub/kernel.h: Likewise.
29490 * include/grub/loader.h: Likewise.
29491 * include/grub/lvm.h: Likewise.
29492 * include/grub/misc.h: Likewise.
29493 * include/grub/mm.h: Likewise.
29494 * include/grub/net.h: Likewise.
29495 * include/grub/normal.h: Likewise.
29496 * include/grub/parser.h: Likewise.
29497 * include/grub/partition.h: Likewise.
29498 * include/grub/pc_partition.h: Likewise.
29499 * include/grub/raid.h: Likewise.
29500 * include/grub/rescue.h: Likewise.
29501 * include/grub/script.h: Likewise.
29502 * include/grub/setjmp.h: Likewise.
29503 * include/grub/symbol.h: Likewise.
29504 * include/grub/term.h: Likewise.
29505 * include/grub/terminfo.h: Likewise.
29506 * include/grub/tparm.h: Likewise.
29507 * include/grub/types.h: Likewise.
29508 * include/grub/video.h: Likewise.
29509 * include/grub/efi/api.h: Likewise.
29510 * include/grub/efi/chainloader.h: Likewise.
29511 * include/grub/efi/console.h: Likewise.
29512 * include/grub/efi/console_control.h: Likewise.
29513 * include/grub/efi/disk.h: Likewise.
29514 * include/grub/efi/efi.h: Likewise.
29515 * include/grub/efi/pe32.h: Likewise.
29516 * include/grub/efi/time.h: Likewise.
29517 * include/grub/i386/linux.h: Likewise.
29518 * include/grub/i386/setjmp.h: Likewise.
29519 * include/grub/i386/types.h: Likewise.
29520 * include/grub/i386/efi/kernel.h: Likewise.
29521 * include/grub/i386/efi/loader.h: Likewise.
29522 * include/grub/i386/efi/time.h: Likewise.
29523 * include/grub/i386/pc/biosdisk.h: Likewise.
29524 * include/grub/i386/pc/boot.h: Likewise.
29525 * include/grub/i386/pc/chainloader.h: Likewise.
29526 * include/grub/i386/pc/console.h: Likewise.
29527 * include/grub/i386/pc/init.h: Likewise.
29528 * include/grub/i386/pc/kernel.h: Likewise.
29529 * include/grub/i386/pc/loader.h: Likewise.
29530 * include/grub/i386/pc/memory.h: Likewise.
29531 * include/grub/i386/pc/multiboot.h: Likewise.
29532 * include/grub/i386/pc/serial.h: Likewise.
29533 * include/grub/i386/pc/time.h: Likewise.
29534 * include/grub/i386/pc/vbe.h: Likewise.
29535 * include/grub/i386/pc/vbeblit.h: Likewise.
29536 * include/grub/i386/pc/vbefill.h: Likewise.
29537 * include/grub/i386/pc/vbeutil.h: Likewise.
29538 * include/grub/i386/pc/vga.h: Likewise.
29539 * include/grub/ieee1275/ieee1275.h: Likewise.
29540 * include/grub/ieee1275/ofdisk.h: Likewise.
29541 * include/grub/powerpc/libgcc.h: Likewise.
29542 * include/grub/powerpc/setjmp.h: Likewise.
29543 * include/grub/powerpc/types.h: Likewise.
29544 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
29545 * include/grub/powerpc/ieee1275/console.h: Likewise.
29546 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
29547 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
29548 * include/grub/powerpc/ieee1275/loader.h: Likewise.
29549 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
29550 * include/grub/powerpc/ieee1275/time.h: Likewise.
29551 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
29552 * include/grub/sparc64/libgcc.h: Likewise.
29553 * include/grub/sparc64/setjmp.h: Likewise.
29554 * include/grub/sparc64/types.h: Likewise.
29555 * include/grub/sparc64/ieee1275/console.h: Likewise.
29556 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
29557 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
29558 * include/grub/sparc64/ieee1275/time.h: Likewise.
29559 * include/grub/util/biosdisk.h: Likewise.
29560 * include/grub/util/getroot.h: Likewise.
29561 * include/grub/util/lvm.h: Likewise.
29562 * include/grub/util/misc.h: Likewise.
29563 * include/grub/util/raid.h: Likewise.
29564 * include/grub/util/resolve.h: Likewise.
29565 * io/gzio.c: Likewise.
29566 * kern/device.c: Likewise.
29567 * kern/disk.c: Likewise.
29568 * kern/dl.c: Likewise.
29569 * kern/elf.c: Likewise.
29570 * kern/env.c: Likewise.
29571 * kern/err.c: Likewise.
29572 * kern/file.c: Likewise.
29573 * kern/fs.c: Likewise.
29574 * kern/loader.c: Likewise.
29575 * kern/main.c: Likewise.
29576 * kern/misc.c: Likewise.
29577 * kern/mm.c: Likewise.
29578 * kern/parser.c: Likewise.
29579 * kern/partition.c: Likewise.
29580 * kern/rescue.c: Likewise.
29581 * kern/term.c: Likewise.
29582 * kern/efi/efi.c: Likewise.
29583 * kern/efi/init.c: Likewise.
29584 * kern/efi/mm.c: Likewise.
29585 * kern/i386/dl.c: Likewise.
29586 * kern/i386/efi/init.c: Likewise.
29587 * kern/i386/efi/startup.S: Likewise.
29588 * kern/i386/pc/init.c: Likewise.
29589 * kern/i386/pc/lzo1x.S: Likewise.
29590 * kern/i386/pc/startup.S: Likewise.
29591 * kern/ieee1275/ieee1275.c: Likewise.
29592 * kern/powerpc/cache.S: Likewise.
29593 * kern/powerpc/dl.c: Likewise.
29594 * kern/powerpc/ieee1275/cmain.c: Likewise.
29595 * kern/powerpc/ieee1275/crt0.S: Likewise.
29596 * kern/powerpc/ieee1275/init.c: Likewise.
29597 * kern/powerpc/ieee1275/openfw.c: Likewise.
29598 * kern/sparc64/cache.S: Likewise.
29599 * kern/sparc64/dl.c: Likewise.
29600 * kern/sparc64/ieee1275/init.c: Likewise.
29601 * kern/sparc64/ieee1275/openfw.c: Likewise.
29602 * loader/efi/chainloader.c: Likewise.
29603 * loader/efi/chainloader_normal.c: Likewise.
29604 * loader/i386/efi/linux.c: Likewise.
29605 * loader/i386/efi/linux_normal.c: Likewise.
29606 * loader/i386/pc/chainloader.c: Likewise.
29607 * loader/i386/pc/chainloader_normal.c: Likewise.
29608 * loader/i386/pc/linux.c: Likewise.
29609 * loader/i386/pc/linux_normal.c: Likewise.
29610 * loader/i386/pc/multiboot.c: Likewise.
29611 * loader/i386/pc/multiboot_normal.c: Likewise.
29612 * loader/powerpc/ieee1275/linux.c: Likewise.
29613 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
29614 * normal/arg.c: Likewise.
29615 * normal/cmdline.c: Likewise.
29616 * normal/command.c: Likewise.
29617 * normal/completion.c: Likewise.
29618 * normal/execute.c: Likewise.
29619 * normal/function.c: Likewise.
29620 * normal/lexer.c: Likewise.
29621 * normal/main.c: Likewise.
29622 * normal/menu.c: Likewise.
29623 * normal/menu_entry.c: Likewise.
29624 * normal/misc.c: Likewise.
29625 * normal/parser.y: Likewise.
29626 * normal/script.c: Likewise.
29627 * normal/i386/setjmp.S: Likewise.
29628 * normal/powerpc/setjmp.S: Likewise.
29629 * normal/sparc64/setjmp.S: Likewise.
29630 * partmap/acorn.c: Likewise.
29631 * partmap/amiga.c: Likewise.
29632 * partmap/apple.c: Likewise.
29633 * partmap/gpt.c: Likewise.
29634 * partmap/pc.c: Likewise.
29635 * partmap/sun.c: Likewise.
29636 * term/gfxterm.c: Likewise.
29637 * term/terminfo.c: Likewise.
29638 * term/efi/console.c: Likewise.
29639 * term/i386/pc/console.c: Likewise.
29640 * term/i386/pc/serial.c: Likewise.
29641 * term/i386/pc/vesafb.c: Likewise.
29642 * term/i386/pc/vga.c: Likewise.
29643 * term/ieee1275/ofconsole.c: Likewise.
29644 * util/biosdisk.c: Likewise.
29645 * util/console.c: Likewise.
29646 * util/genmoddep.c: Likewise.
29647 * util/getroot.c: Likewise.
29648 * util/grub-emu.c: Likewise.
29649 * util/grub-mkdevicemap.c: Likewise.
29650 * util/grub-probe.c: Likewise.
29651 * util/lvm.c: Likewise.
29652 * util/misc.c: Likewise.
29653 * util/raid.c: Likewise.
29654 * util/resolve.c: Likewise.
29655 * util/update-grub.in: Likewise.
29656 * util/update-grub_lib.in: Likewise.
29657 * util/grub.d/00_header.in: Likewise.
29658 * util/grub.d/10_hurd.in: Likewise.
29659 * util/grub.d/10_linux.in: Likewise.
29660 * util/i386/efi/grub-install.in: Likewise.
29661 * util/i386/efi/grub-mkimage.c: Likewise.
29662 * util/i386/pc/grub-install.in: Likewise.
29663 * util/i386/pc/grub-mkimage.c: Likewise.
29664 * util/i386/pc/grub-mkrescue.in: Likewise.
29665 * util/i386/pc/grub-setup.c: Likewise.
29666 * util/i386/pc/misc.c: Likewise.
29667 * util/powerpc/ieee1275/grub-install.in: Likewise.
29668 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
29669 * util/powerpc/ieee1275/misc.c: Likewise.
29670 * video/bitmap.c: Likewise.
29671 * video/video.c: Likewise.
29672 * video/i386/pc/vbe.c: Likewise.
29673 * video/i386/pc/vbeblit.c: Likewise.
29674 * video/i386/pc/vbefill.c: Likewise.
29675 * video/i386/pc/vbeutil.c: Likewise.
29676 * video/readers/tga.c: Likewise.
29678 2007-07-02 Robert Millan <rmh@aybabtu.com>
29680 * conf/i386-efi.rmk: Replace obsolete reference to
29681 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
29682 with util/getroot.c.
29683 * conf/powerpc-ieee1275.rmk: Likewise.
29684 * conf/sparc64-ieee1275.rmk: Likewise.
29686 * util/grub-emu.c (main): Fix unchecked pointer handling.
29688 2007-07-02 Robert Millan <rmh@aybabtu.com>
29690 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
29691 invocation to fail, in order to support partition-less media.
29693 * util/i386/pc/grub-install.in: Likewise.
29695 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
29696 which fs or partmap modules are needed (akin to its sister scripts).
29698 Also use grub-probe to get rid of unportable /proc/mounts check.
29700 Print the same informational message that the other scripts do, before
29703 2007-06-23 Robert Millan <rmh@aybabtu.com>
29705 * util/update-grub_lib.in (font_path): New function. Determine whether
29706 a font file can be found and, if so, echo the GRUB path to it.
29708 * util/update-grub.in: Handle multiple terminals depending on user
29709 input, platform availability and font file presence. Propagate
29710 variables of our findings to /etc/grub.d/ children.
29712 * util/grub.d/00_header.in: Handle multiple terminals, based on
29713 environment setup by update-grub.
29715 2007-06-23 Robert Millan <rmh@aybabtu.com>
29717 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
29719 2007-06-21 Robert Millan <rmh@aybabtu.com>
29721 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
29722 indicate end of data section in kernel image.
29723 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
29724 GRUB_KERNEL_MACHINE_DATA_END.
29726 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
29728 * kern/i386/efi/startup.S: Likewise.
29730 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
29731 during image generation. Implement --prefix option to override this
29733 * util/i386/efi/grub-mkimage.c: Likewise.
29735 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
29736 code to make path relative to its root into a separate function.
29738 * util/i386/pc/grub-install.in: Use newly provided
29739 make_system_path_relative_to_its_root() to convert ${grubdir}, then
29740 pass the result to grub-install --prefix.
29742 2007-06-13 Robert Millan <rmh@aybabtu.com>
29744 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
29745 DEFAULT_DEVICE_MAP.
29746 * util/grub-emu.c: Use above definitions from misc.h instead of
29748 * util/grub-mkdevicemap.c: Likewise.
29749 * util/i386/pc/grub-setup.c: Likewise.
29750 * util/grub-probe.c: Likewise.
29751 (probe): Abort with grub_util_error() when either
29752 grub_guess_root_device or grub_util_get_grub_dev fails.
29754 2007-06-12 Robert Millan <rmh@aybabtu.com>
29756 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
29757 "pager" assignment.
29758 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
29760 * util/grub-probe.c (probe): Likewise for "drive_name".
29762 2007-06-11 Robert Millan <rmh@aybabtu.com>
29764 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
29765 not just the cdrom one.
29767 2007-06-11 Robert Millan <rmh@aybabtu.com>
29769 * util/i386/pc/grub-mkrescue.in: Add "set -e".
29770 Add --pkglibdir=DIR option to override pkglibdir.
29771 Mention --image-type=TYPE in help output.
29772 Fix --grub-mkimage (it was a no-op).
29773 Abort gracefully when no parameter is given.
29775 2007-06-11 Robert Millan <rmh@aybabtu.com>
29777 * util/i386/pc/grub-mkrescue.in: New file.
29778 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
29779 * Makefile.in: Handle bin_SCRIPTS.
29781 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
29783 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
29784 list of video modes.
29786 2007-06-06 Robert Millan <rmh@aybabtu.com>
29788 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
29789 file doesn't exist, or if it is in a filesystem grub can't read.
29791 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
29792 not abort if GRUB_DRIVE could not be defined. Rearrange generated
29793 header comment to fit in 80 columns when the variables are resolved.
29795 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
29796 could be identified by update-grub. Remove redundant check for
29797 unifont.pff existence (since convert_system_path_to_grub_path now
29800 2007-06-04 Robert Millan <rmh@aybabtu.com>
29802 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
29804 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
29806 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
29808 2007-06-04 Robert Millan <rmh@aybabtu.com>
29810 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
29812 * include/grub/partition.h: Declare grub_apple_partition_map_init and
29813 grub_apple_partition_map_fini.
29816 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
29817 to access >2 TiB disks).
29819 Print disk->total_sectors with %llu instead of %lu, since this
29820 variable is always 64-bit (prevents wrong disk size from being displayed
29821 on either >2 TiB disk or big-endian CPU).
29823 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
29824 into a generic case that supports all (sane) partition maps.
29826 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
29829 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
29830 and grub_apple_partition_map_fini() after that.
29832 2007-06-01 Robert Millan <rmh@aybabtu.com>
29834 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
29836 * util/grub.d/00_header.in: Only enable gfxterm when
29837 convert_system_path_to_grub_path() succeeds.
29839 2007-05-20 Robert Millan <rmh@aybabtu.com>
29841 * util/update-grub_lib.in: New file.
29842 * DISTLIST: Add update-grub_lib.in.
29843 * conf/common.rmk: Generate update-grub_lib and install it in
29845 * Makefile.in: Add install routine for $(lib_DATA).
29847 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
29848 function provided by update-grub_lib to support arbitrary paths of
29850 * util/update-grub.in: Use convert_system_path_to_grub_path() to
29851 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
29853 2007-05-19 Robert Millan <rmh@aybabtu.com>
29855 * commands/i386/cpuid.c: New module.
29856 * DISTLIST: Add it.
29857 * conf/i386-efi.rmk: Enable cpuid.mod.
29858 * conf/i386-pc.rmk: Likewise.
29860 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
29862 * kern/disk.c (grub_disk_read): Check return value of
29865 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
29867 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
29869 * disk/raid.c (grub_raid_open): Likewise.
29871 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
29873 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
29874 stack instead of on the heap.
29876 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
29877 before doing a read on it.
29879 * configure.ac: Only use -fno-stack-protector for the target
29882 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
29884 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
29885 __attribute_ ((unused)) to mode_type argument.
29887 * util/getroot.c (grub_guess_root_device): Fix #endif.
29889 * kern/misc.c (memcmp): Fix prototype.
29891 * include/grub/partition.h [GRUB_UTIL]
29892 (grub_gpt_partition_map_init): Add prototype.
29893 (grub_gpt_partition_map_fini): Likewise.
29895 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
29896 at the right place.
29898 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
29899 (grub_fat_read_data): Likewise.
29900 (grub_fat_find_dir): Likewise.
29902 * font/manager.c (find_glyph): Make table a const.
29903 (grub_font_get_glyph): Remove bitmap from if statement.
29905 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
29907 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
29908 code, first search for device in /dev/mapper, then in /dev.
29909 (grub_util_get_grub_dev): New function.
29910 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
29912 * util/grub-probe.c (probe): Remove check for RAID, call
29913 grub_util_get_grub_dev() instead of
29914 grub_util_biosdisk_get_grub_dev().
29915 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
29916 grub_util_biosdisk_get_grub_dev().
29917 * util/i386/pc/grub-setup.c (main): Likewise.
29919 2007-05-16 Robert Millan <rmh@aybabtu.com>
29921 * DISTLIST: Update for the latest changes.
29922 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
29923 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
29924 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
29925 grub/util/biosdisk.h.
29926 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
29927 grub/util/biosdisk.h.
29929 2007-05-16 Robert Millan <rmh@aybabtu.com>
29931 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
29933 2007-05-16 Robert Millan <rmh@aybabtu.com>
29935 * util/i386/efi/grub-install.in: New.
29936 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
29937 newly added grub-install.
29938 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
29940 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
29941 grub/util/biosdisk.h.
29942 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
29943 grub/util/biosdisk.h.
29945 2007-05-16 Robert Millan <rmh@aybabtu.com>
29947 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
29948 * include/grub/util/biosdisk.h: ... here.
29949 * util/i386/pc/biosdisk.c: Moved to ...
29950 * util/biosdisk.c: ... here.
29951 * util/i386/pc/getroot.c: Moved to ...
29952 * util/getroot.c: ... here.
29953 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
29954 * util/grub-mkdevicemap.c: ... here.
29955 * util/i386/pc/grub-probe.c: Moved to ...
29956 * util/grub-probe.c: ... here.
29958 2007-05-15 Robert Millan <rmh@aybabtu.com>
29960 * util/update-grub.in: Remove duplicated line in grub.cfg header
29963 2007-05-13 Robert Millan <rmh@aybabtu.com>
29965 * util/update-grub.in: Fix a few assumptions about the devices holding
29966 /, /boot and /boot/grub being the same.
29967 * util/grub.d/00_header.in: Likewise.
29968 * util/grub.d/10_hurd.in: Likewise.
29969 * util/grub.d/10_linux.in: Likewise.
29971 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
29972 patterns. Use that to define the `.old' suffix as older than `'.
29974 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
29976 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
29977 the grub.cfg header message.
29979 2007-05-11 Robert Millan <rmh@aybabtu.com>
29981 * util/update-grub.in: Create device.map if it doesn't already exist,
29982 before attempting to run grub-probe.
29983 Check for grub-probe and grub-mkdevicemap with the same code
29984 grub-install is using.
29987 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
29989 * Makefile.in: Add the datarootdir autoconf variable.
29991 2007-05-09 Robert Millan <rmh@aybabtu.com>
29993 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
29994 fail gracefully if dev->disk->partition == NULL.
29996 2007-05-07 Robert Millan <rmh@aybabtu.com>
29998 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
29999 determine partition map module.
30000 * util/i386/pc/grub-install.in: Use this feature to decide which
30001 partition module to load, instead of hardcoding pc and gpt.
30003 2007-05-07 Robert Millan <rmh@aybabtu.com>
30005 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
30006 source directory differs from build directory.
30008 2007-05-05 Robert Millan <rmh@aybabtu.com>
30010 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
30013 2007-05-05 Robert Millan <rmh@aybabtu.com>
30015 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
30017 2007-05-05 Robert Millan <rmh@aybabtu.com>
30019 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
30020 command-line arguments via ${GRUB_CMDLINE_LINUX}.
30022 2007-05-05 Robert Millan <rmh@aybabtu.com>
30024 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
30025 (grub_probe_SOURCES): Likewise.
30026 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
30027 GPT and initialize dos_part and bsd_part accordingly.
30028 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
30030 (main): Activate gpt module for use during partition identification,
30031 and deactivate it afterwards.
30032 * util/i386/pc/grub-install.in: Add gpt module to core.img.
30033 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
30034 partition identification, and deactivate it afterwards.
30036 2007-05-05 Robert Millan <rmh@aybabtu.com>
30038 * term/i386/pc/console.c (grub_console_fini): Call
30039 grub_term_set_current() before grub_term_unregister().
30041 2007-05-04 Robert Millan <rmh@aybabtu.com>
30043 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
30044 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
30045 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
30046 and update-grub_DATA.
30047 * conf/common.rmk: Build and install update-grub components.
30048 * conf/common.mk: Regenerate.
30049 * util/update-grub.in: New. Core of update-grub.
30050 * util/grub.d/00_header.in: New. Generates grub.cfg header.
30051 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
30052 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
30053 * util/grub.d/README: New. Document grub.d directory layout.
30055 2007-05-01 Robert Millan <rmh@aybabtu.com>
30057 * util/grub-emu.c: Move initialization functions
30058 grub_util_biosdisk_init() and grub_init_all() before
30059 grub_util_biosdisk_get_grub_dev(), which relies on them.
30061 2007-04-19 Robert Millan <rmh@aybabtu.com>
30063 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
30066 2007-04-18 Jerone Young <jerone@gmail.com>
30068 * kernel/elf.c: Add missing parenthesis for conditional statement
30071 2007-04-10 Jerone Young <jerone@gmail.com>
30073 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
30074 continue on and look for device node with real device name.
30076 2007-04-10 Jerone Young <jerone@gmail.com>
30078 * configure.ac: Add argument for autoconf to use transformation
30080 * Makefile.in: Add autoconf package transformation code.
30081 * util/i386/pc/grub-install.in: Likewise.
30082 * util/powerpc/ieee1275/grub-install.in: Likewise.
30084 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
30086 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
30087 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
30088 (EXT2_REVISION): Likewise.
30089 (EXT2_INODE_SIZE): Likewise.
30090 (struct grub_ext2_block_group): Added a missing member
30092 (grub_ext2_read_inode): Divide by the inode size in a superblock
30093 instead of 128 to obtain INODES_PER_BLOCK.
30094 Use the macro EXT2_INODE_SIZE instead of directly using
30095 SBLOCK->INODE_SIZE.
30097 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
30099 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
30100 superblock instead of the structure size to compute an
30101 offset. This fixes the problem that GRUB could not read a
30102 filesystem when inode size is different from 128-byte.
30104 2007-03-05 Marco Gerards <marco@gnu.org>
30106 * normal/main.c (read_config_file): When "menu" is not set, create
30107 an initial context.
30109 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
30111 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
30112 (HEAP_LIMIT): New macro.
30113 (grub_claim_heap): Claim memory up to `heaplimit'.
30115 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
30117 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
30118 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
30119 (_start): Likewise.
30120 (grub_arch_modules_addr): Return address after `_end'.
30121 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
30122 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
30123 (add_segments): Calculate `_end' from phdr size and location.
30124 (ALIGN_UP): Moved to ...
30125 * include/grub/misc.h: here.
30126 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
30128 (GRUB_IEEE1275_MODULE_BASE): Removed.
30130 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
30132 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
30135 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
30137 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
30139 (grub_elf64_load_hook_t): Likewise.
30140 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
30143 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
30145 * kern/mm.c: Update copyright.
30146 (grub_mm_debug): Correct syntax error.
30147 (grub_mm_dump_free): New function.
30148 (grub_debug_free): Call `grub_free'.
30149 * include/grub/mm.h: Update copyright.
30150 (grub_mm_dump_free): Add declaration.
30152 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
30154 * include/grub/ieee1275/ieee1275.h: Update copyright.
30155 * kern/powerpc/ieee1275/init.c: Likewise.
30156 * kern/powerpc/ieee1275/openfw.c: Likewise.
30158 * loader/powerpc/ieee1275/linux.c: Likewise.
30159 * include/grub/elfload.h: Likewise.
30160 * kern/elf.c: Likewise.
30161 (grub_elf32_load): Pass `base' and `size' parameters. Update all
30163 (grub_elf64_load): Likewise.
30164 (grub_elf32_load_segment): Move to a nested function.
30165 (grub_elf64_load_segment): Likewise.
30167 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
30169 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
30171 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
30172 (grub_heap_len): Likewise.
30173 (HEAP_SIZE): New macro.
30174 (grub_claim_heap): New function.
30175 (grub_machine_init): Don't claim heap directly. Call
30177 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
30178 (grub_available_iterate): New function.
30180 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
30182 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
30183 * configure.ac: Use it for testing the HOST and TARGET compilers.
30185 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
30187 * Makefile.in (enable_grub_emu): New variable.
30188 * configure.ac (--enable-grub-emu): New option.
30189 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
30190 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
30191 * conf/i386-pc.rmk: Likewise.
30192 * conf/powerpc-ieee1275.rmk: Likewise.
30193 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
30195 2006-12-12 Marco Gerards <marco@gnu.org>
30197 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
30199 * kern/env.c (grub_env_unset): Don't free the member `value' when
30200 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
30203 * normal/main.c (current_menu): Removed.
30204 (free_menu): Unset the `menu' environment variable.
30205 (grub_normal_menu_addentry): Make use of the environment variable
30206 `menu', instead of using the global `current_menu'. Allocate
30207 memory for the sourcecode of this entry.
30208 (read_config_file): New argument `nested', changed all callers.
30209 Only in the case of a new context, initialize a new menu. Set the
30210 `menu' environment variable.
30211 (grub_normal_execute): Don't set and unset the environment
30212 variable `menu' here anymore. Only free the menu when leaving the
30215 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
30218 2006-12-11 Marco Gerards <marco@gnu.org>
30220 * normal/menu_entry.c (run): Fix off by one bug so the last line
30221 is executed. Move the loader check to outside the loop.
30223 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
30225 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
30227 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
30229 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
30230 the number of sectors. Reported by Andrey Shuvikov
30231 <mr_hyro@yahoo.com>.
30233 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
30235 * kern/disk.c (grub_disk_read): When there is a read error, always
30236 try to read only the necessary data.
30238 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
30240 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
30242 [GRUB_UTIL] (grub_raid_fini): Likewise.
30243 [GRUB_UTIL] (grub_lvm_init): Likewise.
30244 [GRUB_UTIL] (grub_lvm_fini): Likewise.
30245 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
30246 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
30247 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
30248 and grub_raid_fini().
30250 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
30252 * include/grub/types.h (__unused): Rename to UNUSED.
30253 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
30254 (grub_elf64_size): Likewise.
30256 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
30258 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
30259 grub_error_push and grub_error_pop in the error-handling path.
30260 (grub_elf32_load_segment): Only call grub_file_read with non-zero
30263 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
30265 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
30266 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30267 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30268 (kernel_elf_SOURCES): Likewise.
30269 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
30270 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
30271 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
30272 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
30273 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
30274 (elf_mod_SOURCES): New variable.
30275 (elf_mod_CFLAGS): Likewise.
30276 (elf_mod_LDFLAGS): Likewise.
30277 * include/grub/types.h (__unused): New macro.
30278 * include/grub/elfload.h: New file.
30279 * kern/elf.c: Likewise.
30280 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
30281 (ELF32_LOADMASK): New macro.
30282 (ELF64_LOADMASK): Likewise.
30283 (vmlinux): Removed.
30284 (grub_linux_load32): New function.
30285 (grub_linux_load64): Likewise.
30286 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
30287 Use grub_elf_t instead of grub_file_t.
30289 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
30291 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
30292 `catch_result' to struct set_color_args.
30294 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
30296 * normal/menu.c: Include grub/script.h.
30297 * normal/menu_entry.c: Likewise.
30298 * include/grub/normal.h: Do not include grub/script.h.
30300 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
30302 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
30304 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
30306 * kern/disk.c (grub_disk_open): Print debug messages when opening a
30308 (grub_disk_close): Print debug messages when closing a disk.
30309 (grub_disk_read): Print debug messages when disk read fails.
30310 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
30312 * kern/partition.c: Include misc.h.
30313 (grub_partition_iterate): Print debug messages when detecting
30316 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
30318 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
30320 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
30322 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
30324 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
30325 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
30327 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
30329 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
30330 instead of sizeof(lv). Patch by Michael Guntsche.
30332 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
30334 * disk/lvm.c: Rename VGS to VG_LIST.
30335 (grub_lvm_iterate): Change VGS->LV to VG-LV.
30336 (grub_lvm_open): Likewise.
30337 Thanks to Michael Guntsche for finding this bug.
30339 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
30341 * configure.ac (AC_INIT): Bumped to 1.95.
30343 2006-10-14 Robert Millan <rmh@aybabtu.com>
30345 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
30346 with "/dev/.static/dev/md".
30348 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
30350 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
30351 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
30352 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
30353 DRIVE_NAME are always freed.
30355 * util/i386/pc/biosdisk.c (make_device_name): Add one into
30356 DOS_PART, as a DOS partition is counted from one instead of zero
30357 now. Reported by Robert Millan.
30359 2006-10-14 Robert Millan <rmh@aybabtu.com>
30361 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
30362 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
30363 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
30364 string returned by grub_guess_root_device.
30365 * util/i386/pc/grub-setup.c: Likewise.
30366 * util/i386/pc/grub-probefs.c: Likewise.
30368 * util/i386/pc/grub-probefs.c: Rename to ...
30369 * util/i386/pc/grub-probe.c: ... this.
30370 * DISTLIST: Remove grub-probefs, add grub-probe.
30371 * conf/i386-efi.rmk: Likewise.
30372 * conf/i386-pc.rmk: Likewise.
30373 * util/i386/pc/grub-install.in: Likewise.
30375 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
30376 choose which information we want to print.
30378 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
30380 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
30381 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
30382 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
30383 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
30384 video/readers/tga.c and video/i386/pc/vbeutil.c.
30386 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
30388 Added support for RAID and LVM.
30390 * disk/lvm.c: New file.
30391 * disk/raid.c: Likewise.
30392 * include/grub/lvm.h: Likewise.
30393 * include/grub/raid.h: Likewise.
30394 * include/grub/util/lvm.h: Likewise.
30395 * include/grub/util/raid.h: Likewise.
30396 * util/lvm.c: Likewise.
30397 * util/raid.c: Likewise.
30399 * include/grub/disk.h (grub_disk_dev_id): Add
30400 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
30401 (grub_disk_get_size): New prototype.
30402 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
30403 returns a partition.
30404 (grub_disk_get_size): New function.
30406 * kern/i386/pc/init.c (make_install_device): Copy the prefix
30407 verbatim if grub_install_dos_part is -2.
30409 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
30412 * util/i386/pc/grub-setup.c (setup): New argument
30413 MUST_EMBED. Force embedding of GRUB when the argument is
30414 true. Close FILE before returning.
30415 (main): Add support for RAID and LVM.
30417 * conf/common.rmk: Add RAID and LVM modules.
30418 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
30420 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
30422 * kern/misc.c (grub_strstr): New function.
30423 * include/grub/misc.h (grub_strstr): New prototype.
30425 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
30427 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
30429 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
30431 * kern/misc.c (grub_strtoull): Guess the base only if not
30434 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
30436 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
30439 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
30441 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
30443 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
30444 Remove `flags' argument. All callers changed.
30445 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
30446 (IEEE1275_IHANDLE_INVALID): New variable.
30447 (IEEE1275_CELL_INVALID): New variable.
30448 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
30449 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
30450 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
30451 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
30452 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
30453 codes from Open Firmware. All callers updated.
30454 (grub_ieee1275_next_property): Directly return Open Firmware return
30456 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
30457 Standardize error checking from `grub_ieee1275_get_property'.
30458 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
30459 `devalias' to `aliases'. Correct comments. Consolidate error paths.
30461 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
30463 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
30464 `instance_to_package_args' to `instance_to_path_args'.
30466 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
30467 `grub_ieee1275_chosen'.
30469 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
30470 `grub_ieee1275_interpret'.
30472 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
30474 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
30476 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
30478 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
30479 (__cmpdi): Likewise.
30481 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
30482 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
30485 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
30487 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
30488 to type `grub_ssize_t'.
30489 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
30491 2006-09-22 Marco Gerards <marco@gnu.org>
30493 * normal/script.c (grub_script_create_cmdmenu): Skip leading
30496 2006-09-22 Marco Gerards <marco@gnu.org>
30498 * commands/echo.c: New file.
30500 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
30502 * conf/common.rmk (echo_mod_SOURCES): New variable.
30503 (echo_mod_CFLAGS): Likewise.
30504 (echo_mod_LDFLAGS): Likewise.
30506 2006-09-22 Marco Gerards <marco@gnu.org>
30508 * normal/main.c (get_line): Malloc memory instead of using
30509 preallocated memory. Removed the arguments `cmdline' and
30510 `max_len'. Updated all callers.
30512 2006-09-22 Marco Gerards <marco@gnu.org>
30514 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
30515 (normal_mod_DEPENDENCIES): Likewise.
30517 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
30518 (normal_mod_DEPENDENCIES): Likewise.
30520 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
30522 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
30524 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
30526 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
30527 (normal_mod_DEPENDENCIES): Likewise.
30528 * conf/i386-pc.mk: Regenerate.
30529 * conf/i386-efi.mk: Likewise
30530 * conf/common.mk: Likewise.
30531 * conf/powerpc-ieee1275.mk: Likewise.
30532 * conf/sparc64-ieee1275.mk: Likewise.
30534 2006-09-22 Robert Millan <rmh@aybabtu.com>
30536 Sync with i386 version.
30537 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
30538 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
30540 2006-09-21 Robert Millan <rmh@aybabtu.com>
30542 Import from GRUB Legacy (lib/device.c):
30543 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
30544 (init_device_map) [__linux__]: Add support for I2O devices.
30546 2006-09-14 Marco Gerards <marco@gnu.org>
30548 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
30551 2006-09-14 Robert Millan <rmh@aybabtu.com>
30553 * util/i386/pc/grub-install.in: Skip menu.lst when removing
30556 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
30558 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
30559 before adding it to device.map.
30561 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
30563 * genmk.rb: Let GCC generate dependencies the first time it
30564 compiles a file; using the -MD option.
30565 * conf/common.mk: Regenerate.
30566 * conf/i386-pc.mk: Likewise.
30567 * conf/i386-efi.mk: Likewise.
30568 * conf/powerpc-ieee1275.mk: Likewise.
30569 * conf/sparc64-ieee1275.mk: Likewise.
30571 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
30573 Move the prototypes of grub_setjmp and grub_longjmp to
30574 cpu/setjmp.h, so that each architecture may specify different
30577 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
30578 (grub_longjmp): Likewise.
30579 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
30580 (grub_longjmp): Likewise.
30581 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
30582 (grub_longjmp): Likewise.
30584 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
30585 [!GRUB_UTIL] (grub_longjmp): Removed.
30587 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
30589 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
30590 "color!" method does not return any value.
30592 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
30594 * include/grub/bitmap.h: New file.
30596 * include/grub/i386/pc/vbeutil.h: Likewise.
30598 * video/bitmap.c: Likewise.
30600 * video/readers/tga.c: Likewise.
30602 * video/i386/pc/vbeutil.c: Likewise.
30604 * commands/videotest.c: Code cleanup and updated to reflect to new
30607 * term/gfxterm.c: Likewise.
30609 * video/video.c: Likewise.
30611 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
30612 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
30613 (bitmap_mod_SOURCES): New entry.
30614 (bitmap_mod_CFLAGS): Likewise.
30615 (bitmap_mod_LDFLAGS): Likewise.
30616 (tga_mod_SOURCES): Likewise.
30617 (tga_mod_CFLAGS): Likewise.
30618 (tga_mod_LDFLAGS): Likewise.
30620 * include/grub/video.h (grub_video_blit_operators): New enum type.
30621 (grub_video_render_target): Changed as forward declaration and moved
30622 actual definition to be video driver specific.
30623 (grub_video_adapter.blit_bitmap): Added blitting operator.
30624 (grub_video_adapter.blit_render_target): Likewise.
30625 (grub_video_blit_bitmap): Likewise.
30626 (grub_video_blit_render_target): Likewise.
30628 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
30629 driver specific render target definition.
30630 (grub_video_vbe_map_rgba): Added driver internal helper.
30631 (grub_video_vbe_unmap_color): Updated to use
30632 grub_video_i386_vbeblit_info.
30633 (grub_video_vbe_get_video_ptr): Likewise.
30635 * include/grub/i386/pc/vbeblit.h
30636 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
30637 grub_video_i386_vbeblit_info.
30638 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
30639 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
30640 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
30641 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
30642 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
30643 (grub_video_i386_vbeblit_index_index): Likewise.
30644 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
30645 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
30646 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
30647 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
30649 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
30652 * video/i386/pc/vbeblit.c: Updated to reflect changes on
30653 include/grub/i386/pc/vbeblit.h.
30655 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
30656 Updated to use grub_video_i386_vbeblit_info.
30657 (grub_video_i386_vbefill_R8G8B8): Likewise.
30658 (grub_video_i386_vbefill_index): Likewise.
30659 (grub_video_i386_vbefill): Added generic filler.
30661 * video/i386/pc/vbefill.c: Updated to reflect changes on
30662 include/grub/i386/pc/vbefill.h.
30664 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
30665 grub_video_i386_vbeblit_info.
30666 (grub_video_vbe_unmap_color): Likewise.
30667 (grub_video_vbe_blit_glyph): Likewise.
30668 (grub_video_vbe_scroll): Likewise.
30669 (grub_video_vbe_draw_pixel): Removed function.
30670 (grub_video_vbe_get_pixel): Likewise.
30671 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
30672 updated code to use it.
30673 (common_blitter): Added common blitter for render target and bitmap.
30674 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
30675 (grub_video_vbe_blit_render_target): Likewise.
30677 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
30679 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
30680 is in text mode if there is no console control protocol instance
30683 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
30685 * include/grub/video.h: Code cleanup.
30687 * include/grub/i386/pc/vbe.h: Likewise.
30689 * video/i386/pc/vbe.c: Likewise.
30691 * video/i386/pc/vbeblit.c: Likewise.
30693 * video/i386/pc/vbefill.c: Likewise.
30695 * video/video.c: Likewise. Also added more comments.
30697 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
30699 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
30700 (struct grub_biosdisk_dap): Likewise.
30702 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
30703 linkage settings for all functions.
30705 2006-07-12 Marco Gerards <marco@gnu.org>
30707 * configure.ac (--enable-mm-debug): Fix typo.
30709 * genkernsyms.sh.in: Use proper quoting for `CC'.
30711 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
30713 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
30714 (normal_mod_ASFLAGS): Remove "-m32".
30716 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
30718 * util/misc.c: Include config.h.
30719 [!HAVE_MEMALIGN]: Do not include malloc.h.
30720 (grub_memalign): Use posix_memalign, if present. Then, use
30721 memalign, if present. Otherwise, emit an error.
30723 * util/grub-emu.c: Do not include malloc.h.
30725 * include/grub/util/misc.h: Include unistd.h. This is required for
30726 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
30727 D. Eades III <hde@foobar-qux.org>.
30729 * configure.ac (AC_GNU_SOURCE): Added.
30730 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
30733 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
30735 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
30736 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
30738 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
30740 * include/grub/types.h (grub_host_addr_t): Rename to
30741 grub_target_addr_t.
30742 (grub_host_off_t): Rename to grub_target_off_t.
30743 (grub_host_size_t): Rename to grub_target_size_t.
30744 (grub_host_ssize_t): Rename to grub_target_ssize_t.
30745 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
30747 * include/grub/kernel.h (struct grub_module_header): Change type
30748 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
30749 (grub_module_info): Likewise.
30751 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
30753 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
30754 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
30755 Velazquez <jesus.velazquez@gmail.com>.
30757 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
30759 Count partitions from 1 instead of 0 in the string representation
30760 of partitions. Still use 0-based internally.
30762 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
30763 (sun_partition_map_iterate): Use grub_partition_t instead of
30764 struct grub_partition *. Cast DESC->START_CYLINDER to
30765 grub_uint64_t after converting the endian.
30766 (sun_partition_map_probe): Subtract 1 for PARTNUM.
30767 (sun_partition_map_get_name): Add 1 to P->INDEX.
30769 * partmap/pc.c (grub_partition_parse): Subtract 1 for
30771 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
30773 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
30774 zero instead of one.
30775 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
30776 (gpt_partition_map_get_name): Add 1 into P->INDEX.
30778 * partmap/apple.c (apple_partition_map_iterate): Change the type
30779 of POS to unsigned.
30780 (apple_partition_map_probe): Subtract 1 for PARTNUM.
30781 (apple_partition_map_get_name): Add 1 into P->INDEX.
30783 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
30784 of POS to unsigned.
30785 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
30786 calculate the offset of a partition.
30787 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
30788 (amiga_partition_map_get_name): Add 1 into P->INDEX.
30790 * partmap/acorn.c (acorn_partition_map_find): Change the type of
30791 SECTOR to grub_disk_addr_t.
30792 (acorn_partition_map_iterate): Likewise.
30793 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
30794 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
30796 (acorn_partition_map_get_name): Add 1 into P->INDEX.
30798 * kern/i386/pc/init.c (make_install_device): Add 1 into
30799 GRUB_INSTALL_DOS_PART.
30801 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
30804 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
30806 Clean up the code to support 64-bit addressing in disks and
30807 files. This change is not enough for filesystems yet.
30809 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
30810 type of "start" to grub_uint64_t.
30811 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
30812 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
30813 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
30816 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
30817 to grub_disk_addr_t.
30819 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
30822 * partmap/pc.c (pc_partition_map_iterate): Likewise.
30824 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
30827 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
30829 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
30831 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
30833 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
30834 to grub_off_t, to detect an error from grub_file_seek.
30835 (grub_multiboot_load_elf32): Likewise.
30837 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
30838 maximum unsigned long value when an overflow is detected.
30839 (grub_strtoull): New function.
30840 (grub_divmod64): Likewise.
30841 (grub_lltoa): use grub_divmod64.
30843 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
30845 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
30846 the pointer to next character. Use grub_strtoull instead of
30848 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
30849 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
30852 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
30853 return value is signed.
30854 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
30855 test if OFFSET is less than zero, as OFFSET is unsigned now.
30857 * kern/disk.c (struct grub_disk_cache): Change the type of
30858 "sector" to grub_disk_addr_t.
30859 (grub_disk_cache_get_index): Change the type of SECTOR to
30860 grub_disk_addr_t. Calculate the hash with SECTOR casted to
30861 unsigned after shifting.
30862 (grub_disk_cache_invalidate): Change the type of SECTOR to
30864 (grub_disk_cache_unlock): Likewise.
30865 (grub_disk_cache_store): Likewise.
30866 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
30867 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
30868 grub_disk_addr_t and grub_uint64_t, respectively.
30869 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
30870 body, as the value of OFFSET is tweaked by
30871 grub_disk_check_range. Change the types of START_SECTOR, LEN and
30872 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
30874 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
30875 body, as the value of OFFSET is tweaked by
30876 grub_disk_check_range. Change the types of LEN and N to
30879 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
30880 and "saved_offset" to grub_off_t.
30881 (test_header): Cast BUF to char *.
30882 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
30884 (grub_gzio_read): Change the types of OFFSET and SIZE to
30885 grub_off_t and grub_size_t, respectively.
30887 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
30889 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
30890 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
30891 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
30892 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
30893 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
30895 * include/grub/types.h (grub_off_t): Unconditionally set to
30897 (grub_disk_addr_t): Changed to grub_uint64_t.
30899 * include/grub/partition.h (struct grub_partition): Change the
30900 types of "start", "len" and "offset" to grub_disk_addr_t,
30901 grub_uint64_t and grub_disk_addr_t, respectively.
30902 (grub_partition_get_start): Return grub_disk_addr_t.
30903 (grub_partition_get_len): Return grub_uint64_t.
30905 * include/grub/misc.h (grub_strtoull): New prototype.
30906 (grub_divmod64): Likewise.
30908 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
30909 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
30910 grub_off_t, respectively.
30911 All callers and references changed.
30913 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
30914 grub_size_t in "read".
30915 All callers and references changed.
30917 * include/grub/file.h (struct grub_file): Change the types of
30918 "offset" and "size" to grub_off_t and grub_off_t,
30919 respectively. Change the type of SECTOR to grub_disk_addr_t in
30921 (grub_file_read): Change the type of LEN to grub_size_t.
30922 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
30924 (grub_file_size): Return grub_off_t.
30925 (grub_file_tell): Likewise.
30926 All callers and references changed.
30928 * include/grub/disk.h (struct grub_disk_dev): Change the types of
30929 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
30931 (struct grub_disk): Change the type of "total_sectors" to
30932 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
30934 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
30935 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
30936 (grub_disk_write): Likewise.
30937 All callers and references changed.
30939 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
30940 char * for grub_strncmp to silence gcc.
30941 (grub_iso9660_mount): Likewise.
30942 (grub_iso9660_mount): Likewise.
30943 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
30945 (grub_iso9660_iterate_dir): Likewise.
30946 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
30948 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
30949 LEN to grub_disk_addr_t and grub_size_t, respectively.
30951 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
30953 * fs/jfs.c (grub_jfs_read_file): Likewise.
30955 * fs/minix.c (grub_jfs_read_file): Likewise.
30957 * fs/sfs.c (grub_jfs_read_file): Likewise.
30959 * fs/ufs.c (grub_jfs_read_file): Likewise.
30961 * fs/xfs.c (grub_jfs_read_file): Likewise.
30963 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
30964 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
30967 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
30968 BLKNR to -1 instead of returning GRUB_ERRNO.
30969 (grub_ext2_read_file): Change the types of SECTOR and
30970 LEN to grub_disk_addr_t and grub_size_t, respectively.
30972 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
30973 LEN to grub_disk_addr_t and grub_size_t, respectively.
30975 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
30978 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
30979 string. Do not cast SECTOR explicitly.
30981 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
30982 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
30983 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
30984 grub_disk_addr_t and grub_size_t, respectively. If the sector is
30985 over 2TB and LBA mode is not supported, raise an error.
30986 (get_safe_sectors): New function.
30987 (grub_biosdisk_read): Use get_safe_sectors.
30988 (grub_biosdisk_write): Likewise.
30990 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
30991 (grub_efidisk_write): Likewise.
30993 * disk/loopback.c (delete_loopback): Cosmetic changes.
30994 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
30996 (grub_loopback_open): Likewise.
30997 (grub_loopback_read): Likewise. Also, change the type of POS to
30998 grub_off_t, and fix the usage of grub_memset.
31000 * commands/i386/pc/play.c: Include grub/machine/time.h.
31002 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
31005 * commands/configfile.c: Include grub/env.h.
31007 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
31008 GRUB_ERRNO directly instead. Change the type of POS to
31009 grub_off_t. Follow the coding standard.
31011 * commands/blocklist.c: Include grub/partition.h.
31012 (grub_cmd_blocklist): Return an error if the underlying device is
31013 not a disk. Take the starting sector of a partition into account,
31014 if a partition is used.
31016 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
31018 (lba_mode): Support 64-bit addresses.
31019 (chs_mode): Likewise.
31020 (copy_buffer): Adapted to the new offsets of a length field and a
31022 (blocklist_default_start): Allocate 64-bit space.
31024 * boot/i386/pc/boot.S (force_lba): Removed.
31025 (boot_drive): Moved to under KERNEL_SECTOR.
31026 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
31028 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
31030 (lba_mode): Refactored to support a 64-bit address. More size
31032 (setup_sectors): Likewise.
31034 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
31036 * DISTLIST: Added include/grub/i386/linux.h. Removed
31037 include/grub/i386/pc/linux.h
31039 * configure.ac (AC_INIT): Bumped to 1.94.
31041 * config.guess: Updated from gnulib.
31042 * config.sub: Likewise.
31043 * install-sh: Likewise.
31044 * mkinstalldirs: Likewise.
31046 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
31048 * conf/common.rmk (grub_modules_init.lst): Depended on
31049 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
31052 * genmk.rb (PModule::rule): Reverted the previous change.
31054 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
31056 * conf/common.rmk (grub_modules_init.lst): Depends on
31057 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
31058 that the target does not exist before producing.
31059 (grub_modules_init.h): Remove the target before generating.
31060 (grub_emu_init.c): Likewise.
31062 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
31064 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
31066 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
31067 for the target-specific tests. Make sure that we also have the
31068 up-to-date target variables for those tests.
31070 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
31072 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
31073 (PModule::rule): Likewise.
31075 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
31077 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
31078 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
31079 target-specific flags should be prefixed.
31080 (PModule::rule): Likewise.
31082 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
31084 * configure.ac (CMP): Check if cmp is available explicitly.
31086 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
31088 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
31089 (target_cpu): New variable.
31090 (pkglibdir): Use target_cpu instead of host_cpu.
31092 * util/i386/pc/grub-install.in (host_cpu): Removed.
31093 (target_cpu): New variable.
31094 (pkglibdir): Use target_cpu instead of host_cpu.
31096 * util/genmoddep.c: Removed.
31098 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
31099 instead of GRUB_HOST_SIZEOF_VOID_P.
31100 * kern/dl.c: Likewise.
31102 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
31104 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
31105 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
31106 (GRUB_TARGET_SIZEOF_LONG): ... this.
31107 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
31108 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
31109 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
31111 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
31112 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
31113 (GRUB_TARGET_SIZEOF_LONG): ... this.
31114 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
31115 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
31116 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
31118 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
31119 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
31120 (GRUB_TARGET_SIZEOF_LONG): ... this.
31121 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
31122 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
31124 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
31125 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
31126 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
31127 instead of GRUB_HOST_SIZEOF_LONG.
31128 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
31129 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
31130 GRUB_CPU_WORDS_BIGENDIAN.
31131 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
31132 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
31135 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
31136 (genmoddep_SOURCES): Likewise.
31137 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
31138 (genmoddep_SOURCES): Likewise.
31139 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
31140 (genmoddep_SOURCES): Likewise.
31141 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
31143 (genmoddep_SOURCES): Likewise.
31145 * genmoddep.awk: New file.
31147 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
31148 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
31149 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
31150 (PModule::rule): Likewise.
31151 (Program::rule): Likewise.
31152 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
31153 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
31156 * configure.ac: Rewritten intensively to use host and target
31157 instead of build and host, respectively.
31159 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
31160 (host_cpu): Removed.
31161 (target_cpu): New variable.
31162 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
31163 (BUILD_CC): Removed.
31164 (BUILD_CFLAGS): Likewise.
31165 (BUILD_CPPFLAGS): Likewise.
31166 (TARGET_CC): New variable.
31167 (TARGET_CFLAGS): Likewise.
31168 (TARGET_CPPFLAGS): Likewise.
31169 (TARGET_LDFLAGS): Likewise.
31171 (include): Use target_cpu instead of host_cpu.
31172 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
31174 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
31176 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
31178 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
31179 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
31180 field 'false' to 'exec_on_false'.
31181 (grub_script_create_cmdif): Renamed argument names to reflect above
31184 * normal/execute.c (grub_script_execute_cmdif): Likewise.
31186 * normal/script.c (grub_script_create_cmdif): Likewise.
31188 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
31190 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
31192 (grub_hfsplus_btree_recptr): Likewise.
31193 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
31194 FILEBLOCK both to pass a block number and store next block
31196 (grub_hfsplus_read_block): Rewritten heavily to support an extent
31197 overflow file correctly. Specify errors appropriately, because
31198 fshelp expects that GRUB_ERRNO is set when fails. Reuse
31199 grub_hfsplus_btree_recptr to get the pointer to a found key.
31200 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
31203 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
31205 (_linux_mod_SOURCES): New variable.
31206 (_linux_mod_CFLAGS): Likewise.
31207 (_linux_mod_LDFLAGS): Likewise.
31208 (linux_mod_SOURCES): Likewise.
31209 (linux_mod_CFLAGS): Likewise.
31210 (linux_mod_LDFLAGS): Likewise.
31212 * DISTLIST: Added loader/i386/efi/linux.c,
31213 loader/i386/efi/linux_normal.c and
31214 include/grub/i386/efi/loader.h.
31216 * loader/i386/efi/linux.c: New file.
31217 * loader/i386/efi/linux_normal.c: Likewise.
31218 * include/grub/i386/efi/loader.h: Likewise.
31220 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
31222 * commands/blocklist.c: New file.
31224 * DISTLIST: Added commands/blocklist.c.
31226 * term/efi/console.c (grub_console_highlight_color): Use a lighter
31227 color for the background, and a darker color for the foreground.
31228 (grub_console_checkkey): Return READ_KEY.
31229 (grub_console_cls): Set the background to
31230 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
31232 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
31234 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
31235 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
31237 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
31240 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
31241 BG. The spec is wrong again.
31243 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
31245 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
31247 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31248 commands/blocklist.c.
31249 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31251 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
31252 (blocklist_mod_SOURCES): New variable.
31253 (blocklist_mod_CFLAGS): Likewise.
31254 (blocklist_mod_LDFLAGS): Likewise.
31256 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
31258 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
31260 (lba_mode): Use %eax more intensively to reduce the code size.
31262 2006-05-20 Marco Gerards <marco@gnu.org>
31264 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
31266 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
31268 (script): Accept leading newlines.
31269 (newlines): New rule to describe 0 or more newlines.
31270 (commands): Accept `command' with trailing newline. Fixed the
31271 order in which arguments were passed to `grub_script_add_cmd'.
31272 Accept commands separated by newlines.
31273 (function): Changed to accept newlines.
31274 (menuentry) Rewritten.
31276 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
31277 front of the list, instead of to the end.
31279 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
31281 * util/i386/pc/grub-install.in (bindir): New variable.
31282 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
31283 Shaver <lbgwjl@gmail.com>.
31285 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
31287 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
31288 grub/machine/linux.h
31289 * loader/i386/pc/linux.c: Likewise.
31291 * include/grub/i386/pc/linux.h: Moved to ...
31292 * include/grub/i386/linux.h: ... here.
31294 * include/grub/i386/linux.h (struct linux_kernel_params): New
31297 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
31299 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
31301 (grub_video_vbe_blit_glyph): Likewise.
31302 (grub_video_vbe_blit_bitmap): Likewise.
31303 (grub_video_vbe_blit_render_target): Likewise.
31305 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
31307 * configure.ac (--with-platform): Properly quote the square
31310 2006-05-08 Marco Gerards <marco@gnu.org>
31312 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
31314 (kernel_elf_HEADERS): ...to this. Updated all users.
31315 (grubof_symlist.c): Renamed from this...
31316 (kernel_elf_symlist.c): ...to this. Updated all users.
31317 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
31318 (grubof_SOURCES): Renamed from this...
31319 (kernel_elf_SOURCES): ...to this.
31320 (grubof_HEADERS): Renamed from this...
31321 (kernel_elf_HEADERS): ...to this.
31322 (grubof_CFLAGS): Renamed from this...
31323 (kernel_elf_CFLAGS): ...to this.
31324 (grubof_ASFLAGS): Renamed from this...
31325 (kernel_elf_ASFLAGS): ...to this.
31326 (grubof_LDFLAGS): Renamed from this...
31327 (kernel_elf_LDFLAGS): ...to this.
31329 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
31331 (kernel_elf_HEADERS): ...to this. Updated all users.
31332 (grubof_symlist.c): Renamed from this...
31333 (kernel_elf_symlist.c): ...to this. Updated all users.
31334 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
31335 (grubof_SOURCES): Renamed from this...
31336 (kernel_elf_SOURCES): ...to this.
31337 (grubof_HEADERS): Renamed from this...
31338 (kernel_elf_HEADERS): ...to this.
31339 (grubof_CFLAGS): Renamed from this...
31340 (kernel_elf_CFLAGS): ...to this.
31341 (grubof_ASFLAGS): Renamed from this...
31342 (kernel_elf_ASFLAGS): ...to this.
31343 (grubof_LDFLAGS): Renamed from this...
31344 (kernel_elf_LDFLAGS): ...to this.
31346 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
31347 `kernel.elf' instead of `grubof'.
31349 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
31351 Add --with-platform to configure. Use pkglibdir instead of
31352 pkgdatadir. This is reported by Roger Leigh.
31354 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
31355 (host_vendor): Likewise.
31356 (host_os): Likewise.
31357 (pkgdatadir): Likewise.
31358 (platform): New variable.
31359 (pkglibdir): Likewise.
31360 Use PKGLIBDIR instead of PKGDATADIR.
31362 * util/i386/pc/grub-install.in (datadir): Removed.
31363 (host_vendor): Likewise.
31364 (host_os): Likewise.
31365 (pkgdatadir): Likewise.
31366 (platform): New variable.
31367 (pkglibdir): Likewise.
31368 Use PKGLIBDIR instead of PKGDATADIR.
31370 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
31371 instead of GRUB_DATADIR.
31373 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31375 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31378 * configure.ac (--with-platform): New option.
31379 Use PLATFORM instead of HOST_VENDOR to specify a platform.
31381 * Makefile.in: Include a makefile based on PLATFORM instead of
31383 (pkgdatadir): Not appended by the machine type.
31384 (pkglibdir): Appended by the machine type.
31385 (host_vendor): Removed.
31386 (platform): New variable.
31387 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
31388 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
31389 (uninstall): Likewise.
31391 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
31393 Use the environment context in the menu. Remove the commands
31394 "default" and "timeout", and use variables instead.
31396 * normal/menu.c: Include grub/env.h.
31397 (print_entry): Cast TITLE to silence gcc.
31398 (get_timeout): New function.
31399 (set_timeout): Likewise.
31400 (get_entry_number): Likewise.
31401 (run_menu): Use a default entry, a fallback entry and a timeout
31402 in the environment variables "default", "fallback" and
31403 "timeout". Also, tweak the default entry if it is not within the
31404 current menu entries.
31405 (grub_menu_run): Use a fallback entry in the environment variable
31408 * normal/main.c (read_config_file): Do not initialize
31409 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
31411 (grub_normal_execute): Use a data slot to store the menu.
31413 * include/grub/normal.h (struct grub_menu): Removed default_entry,
31414 fallback_entry and timeout.
31415 (struct grub_menu_list): Removed.
31416 (grub_menu_list_t): Likewise.
31417 (struct grub_context): Likewise.
31418 (grub_context_t): Likewise.
31419 (grub_context_get): Likewise.
31420 (grub_context_get_current_menu): Likewise.
31421 (grub_context_push_menu): Likewise.
31422 (grub_context_pop_menu): Likewise.
31423 (grub_default_init): Likewise.
31424 (grub_default_fini): Likewise.
31425 (grub_timeout_init): Likewise.
31426 (grub_timeout_fini): Likewise.
31428 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
31430 (normal_mod_SOURCES): Removed normal/context.c.
31432 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
31433 commands/default.c, commands/timeout.c and normal/context.c.
31434 (normal_mod_SOURCES): Removed normal/context.c.
31436 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
31437 commands/timeout.c and normal/context.c.
31438 (normal_mod_SOURCES): Removed normal/context.c.
31440 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
31441 commands/default.c, commands/timeout.c and normal/context.c.
31442 (normal_mod_SOURCES): Removed normal/context.c.
31444 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
31446 (default_mod_SOURCES): Removed.
31447 (default_mod_CFLAGS): Likewise.
31448 (default_mod_LDFLAGS): Likewise.
31449 (timeout_mod_SOURCES): Removed.
31450 (timeout_mod_CFLAGS): Likewise.
31451 (timeout_mod_LDFLAGS): Likewise.
31453 * DISTLIST: Removed commands/default.c, commands/timeout.c and
31456 * commands/default.c: Removed.
31457 * commands/timeout.c: Likewise.
31458 * normal/context.c: Likewise.
31460 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
31462 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
31464 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
31466 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
31467 "next" to "prev" for readability.
31468 (struct grub_env_sorted_var): New struct.
31469 (grub_env_context): Renamed to ...
31470 (initial_context): ... this.
31471 (grub_env_var_context): Renamed to ...
31472 (current_context): ... this.
31473 (grub_env_find): Look only at CURRENT_CONTEXT.
31474 (grub_env_context_open): Rewritten to copy exported variables from
31476 (grub_env_context_close): Rewritten according to the new
31477 scheme. Also, add an assertion to prevent the initial context from
31479 (grub_env_insert): Removed the code for the sorted list.
31480 (grub_env_remove): Likewise.
31481 (grub_env_export): Simply mark the variable with
31482 GRUB_ENV_VAR_GLOBAL.
31483 (grub_env_set): A cosmetic change for naming consistency.
31484 (grub_env_get): Likewise.
31485 (grub_env_unset): Likewise.
31486 (grub_env_iterate): Rewritten to sort variables within this
31488 (grub_register_variable_hook): Fixed for naming consistency. Call
31489 grub_env_find again, only if NAME is not found at the first time.
31490 (mangle_data_slot_name): New function.
31491 (grub_env_set_data_slot): Likewise.
31492 (grub_env_get_data_slot): Likewise.
31493 (grub_env_unset_data_slot): Likewise.
31495 * include/grub/env.h (grub_env_var_type): New enum.
31496 (GRUB_ENV_VAR_LOCAL): New constant.
31497 (GRUB_ENV_VAR_GLOBAL): Likewise.
31498 (GRUB_ENV_VAR_DATA): Likewise.
31499 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
31501 (grub_env_set): Replace VAR with NAME for consistency.
31502 (grub_register_variable_hook): Likewise.
31503 (grub_env_export): Specify the name of the argument.
31504 (grub_env_set_data_slot): New prototype.
31505 (grub_env_get_data_slot): Likewise.
31506 (grub_env_unset_data_slot): Likewise.
31508 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
31510 Extend the loader so that GRUB can accept a loader which comes
31511 back to GRUB when a loaded image exits. Also, this change adds
31512 support for a chainloader on EFI.
31514 * term/efi/console.c: Include grub/misc.h.
31515 (grub_console_checkkey): Display a scan code on the top for
31516 debugging. This will be removed once the EFI port gets stable.
31517 Correct the scan code mapping.
31519 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
31520 allocate memory from larger regions, in order to reduce the number
31521 of allocated regions. Otherwise, the MacOSX loader panics.
31522 (filter_memory_map): Avoid less than 1MB for compatibility with
31524 (add_memory_regions): Allocate from the tail of a region, if
31525 possible, to avoid allocating a region near to 1MB, for the MacOSX
31528 * kern/efi/init.c (grub_efi_set_prefix): Specify
31529 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
31531 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
31532 argument IMAGE_HANDLE and specify it to get a loaded image.
31533 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
31534 grub_efi_get_loaded_image.
31535 (grub_efi_get_filename): Divide the length by the size of
31537 (grub_efi_get_device_path): New function.
31538 (grub_efi_print_device_path): Print End Device Path nodes. Divide
31539 the length by the size of grub_efi_char16_t for a file path device
31542 * kern/loader.c (grub_loader_noreturn): New variable.
31543 (grub_loader_set): Accept a new argument NORETURN. Set
31544 GRUB_LOADER_NORETURN to NORETURN.
31545 All callers changed.
31546 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
31549 * include/grub/efi/efi.h (grub_efi_get_device_path): New
31551 (grub_efi_get_loaded_image): Take an argument to specify an image
31554 * include/grub/loader.h (grub_loader_set): Added one more argument
31557 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
31558 instead of grub_efi_open_protocol.
31559 (grub_efidisk_get_device_name): Likewise.
31560 (grub_efidisk_close): Print a newline.
31561 (grub_efidisk_get_device_handle): Fixed to use
31562 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
31563 GRUB_EFI_DEVICE_PATH_TYPE.
31565 * disk/efi/efidisk.c (device_path_guid): Moved to ...
31566 * kern/efi/efi.c (device_path_guid): ... here.
31568 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
31570 (kernel_mod_HEADERS): Added efi/disk.h.
31571 (_chain_mod_SOURCES): New variable.
31572 (_chain_mod_CFLAGS): Likewise.
31573 (_chain_mod_LDFLAGS): Likewise.
31574 (chain_mod_SOURCES): Likewise.
31575 (chain_mod_CFLAGS): Likewise.
31576 (chain_mod_LDFLAGS): Likewise.
31578 * DISTLIST: Added include/grub/efi/chainloader.h,
31579 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
31581 * include/grub/efi/chainloader.h: New file.
31582 * loader/efi/chainloader.c: Likewise.
31583 * loader/efi/chainloader_normal.c: Likewise.
31585 2006-04-30 Marco Gerards <marco@gnu.org>
31587 * commands/configfile.c (grub_cmd_source): New function.
31588 (GRUB_MOD_INIT): Register the commands `source' and `.'.
31589 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
31591 2006-04-30 Marco Gerards <marco@gnu.org>
31593 * normal/execute.c (grub_script_execute_cmd): Change the return
31594 type to `grub_err_t'. Correctly return the error.
31595 (grub_script_execute_cmdline): In case a command line is not a
31596 command or a function, try to interpret it as an assignment.
31598 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
31600 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
31601 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
31602 skip a node whose name is obviously invalid as UTF-16,
31603 i.e. contains a NUL character. Stop the iteration when the last
31604 directory entry is found. Instead of using the return value of
31605 grub_hfsplus_btree_iterate_node, store the value in RET and use
31606 it, because the iterator can be stopped by the last directory
31609 2006-04-30 Marco Gerards <marco@gnu.org>
31611 * include/grub/env.h (grub_env_export): New prototype. Reported
31612 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
31614 2006-04-30 Marco Gerards <marco@gnu.org>
31616 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
31617 size of the extents in a catalog file record.
31619 2006-04-29 Marco Gerards <marco@gnu.org>
31621 * commands/configfile.c (grub_cmd_configfile): Execute the
31622 configfile within its own context.
31624 * include/grub/env.h (grub_env_context_open): New prototype.
31625 (grub_env_context_close): Likewise.
31627 * kern/env.c (grub_env): Removed.
31628 (grub_env_sorted): Likewise.
31629 (grub_env_context): New variable.
31630 (grub_env_var_context): Likewise.
31631 (grub_env_find): Search both the active context and the global
31633 (grub_env_context_open): New function.
31634 (grub_env_context_close): Likewise.
31635 (grub_env_insert): Likewise.
31636 (grub_env_remove): Likewise.
31637 (grub_env_export): Likewise.
31638 (grub_env_set): Changed to use helper functions to avoid code
31640 (grub_env_iterate): Rewritten so both the current context and the
31641 global context are being used.
31643 * normal/command.c (export_command): New function.
31644 (grub_command_init): Register the `export' function.
31646 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
31648 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
31649 explicitly to suppress gcc's warnings.
31650 * fs/fat.c (grub_fat_find_dir): Likewise.
31651 (grub_fat_label): Likewise.
31652 * fs/xfs.c (grub_xfs_read_inode): Likewise.
31653 (grub_xfs_mount): Likewise.
31654 (grub_xfs_label): Likewise.
31655 * fs/affs.c (grub_affs_mount): Likewise.
31656 (grub_affs_label): Likewise.
31657 (grub_affs_iterate_dir): Likewise.
31658 * fs/sfs.c (grub_sfs_mount): Likewise.
31659 (grub_sfs_iterate_dir): Likewise.
31660 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
31661 * fs/hfs.c (grub_hfs_mount): Likewise.
31662 (grub_hfs_cmp_catkeys): Likewise.
31663 (grub_hfs_find_dir): Likewise.
31664 (grub_hfs_dir): Likewise.
31665 (grub_hfs_label): Likewise.
31666 * fs/jfs.c (grub_jfs_mount): Likewise.
31667 (grub_jfs_opendir): Likewise.
31668 (grub_jfs_getent): Likewise.
31669 (grub_jfs_lookup_symlink): Likewise.
31670 (grub_jfs_label): Likewise.
31671 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
31672 (grub_hfsplus_iterate_dir): Likewise.
31673 (grub_hfsplus_btree_iterate_node): Made static.
31675 * util/grub-emu.c (prefix): New variable.
31676 (grub_machine_set_prefix): New function.
31677 (main): Do not set the environment variable "prefix" here. Only
31678 set PREFIX, which is used later by grub_machine_set_prefix.
31680 * include/grub/video.h: Do not include grub/symbol.h.
31681 (grub_video_register): Not exported. This symbol is not defined in
31683 (grub_video_unregister): Likewise.
31684 (grub_video_iterate): Likewise.
31685 (grub_video_setup): Likewise.
31686 (grub_video_restore): Likewise.
31687 (grub_video_get_info): Likewise.
31688 (grub_video_get_blit_format): Likewise.
31689 (grub_video_set_palette): Likewise.
31690 (grub_video_get_palette): Likewise.
31691 (grub_video_set_viewport): Likewise.
31692 (grub_video_get_viewport): Likewise.
31693 (grub_video_map_color): Likewise.
31694 (grub_video_map_rgb): Likewise.
31695 (grub_video_map_rgba): Likewise.
31696 (grub_video_fill_rect): Likewise.
31697 (grub_video_blit_glyph): Likewise.
31698 (grub_video_blit_bitmap): Likewise.
31699 (grub_video_blit_render_target): Likewise.
31700 (grub_video_scroll): Likewise.
31701 (grub_video_swap_buffers): Likewise.
31702 (grub_video_create_render_target): Likewise.
31703 (grub_video_delete_render_target): Likewise.
31704 (grub_video_set_active_render_target): Likewise.
31706 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
31708 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
31710 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
31711 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31712 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31713 instead of $(srcdir)/genkernsyms.sh.
31715 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
31716 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31717 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31718 instead of $(srcdir)/genkernsyms.sh.
31720 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
31721 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31722 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31723 instead of $(srcdir)/genkernsyms.sh.
31725 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
31726 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31727 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31728 instead of $(srcdir)/genkernsyms.sh.
31730 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
31733 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
31735 (gensymlist.sh): New target.
31736 (genkernsyms.sh): Likewise.
31738 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
31739 genkernsyms.sh.in and gensymlist.sh.in.
31741 * genkernsyms.sh: Removed.
31742 * gensymlist.sh: Likewise.
31744 * genkernsyms.sh.in: New file.
31745 * gensymlist.sh.in: Likewise.
31747 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
31749 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
31750 clobber "prefix", since we may have already set it manually.
31752 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
31754 * kern/misc.c (abort): New alias for grub_abort.
31756 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
31758 A new machine-specific function "grub_machine_set_prefix" is
31759 defined. This is called after loading modules, so that a prefix
31760 initialization can use modules. Also, this change adds an
31761 intensive debugging feature for the memory manager via the
31762 configure option "--enable-mm-debug".
31764 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
31767 * kern/sparc64/ieee1275/init.c (abort): Removed.
31768 (grub_stop): Likewise.
31769 (grub_exit): New function.
31770 (grub_set_prefix): Renamed to ...
31771 (grub_machine_set_prefix): ... this.
31772 (grub_machine_init): Do not call grub_set_prefix.
31774 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
31775 (grub_machine_set_prefix): ... this.
31776 (grub_machine_init): Do not call grub_set_prefix.
31778 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
31779 (grub_machine_init): Do not set the prefix here.
31781 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
31783 * kern/efi/init.c: Include grub/mm.h.
31784 (grub_efi_set_prefix): New function.
31786 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
31787 (grub_efi_get_filename): New function.
31788 (grub_print_device_path): Renamed to ...
31789 (grub_efi_print_device_path): ... this.
31791 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
31792 [MM_DEBUG] (grub_realloc): Likewise.
31793 [MM_DEBUG] (grub_free): Likewise.
31794 [MM_DEBUG] (grub_memalign): Likewise.
31795 [MM_DEBUG] (grub_mm_debug): New variable.
31796 [MM_DEBUG] (grub_debug_malloc): New function.
31797 [MM_DEBUG] (grub_debug_free): New function.
31798 [MM_DEBUG] (grub_debug_realloc): New function.
31799 [MM_DEBUG] (grub_debug_memalign): New function.
31801 * kern/misc.c (grub_abort): Print a newline to distinguish
31804 * kern/main.c (grub_main): Call grub_machine_set_prefix and
31805 grub_set_root_dev after loading modules. This is necessary when
31806 setting a prefix depends on modules.
31808 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
31809 (grub_efi_print_device_path): ... this.
31810 (grub_efi_get_filename): New prototype.
31811 (grub_efi_set_prefix): Likewise.
31813 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
31815 (grub_efidisk_get_device_handle): New prototype.
31816 (grub_efidisk_get_device_name): Likewise.
31818 * include/grub/mm.h: Include config.h.
31819 (MM_DEBUG): Removed.
31820 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
31821 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
31822 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
31823 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
31824 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
31825 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
31826 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
31827 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
31828 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
31830 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
31832 * disk/efi/efidisk.c: Include grub/partition.h.
31833 (iterate_child_devices): New function.
31834 (add_device): First, compare only last device path nodes, so that
31835 devices are sorted by the types.
31836 (grub_efidisk_get_device_handle): New function.
31837 (grub_efidisk_get_device_name): Likewise.
31839 * configure.ac (--enable-mm-debug): New option to enable the
31840 memory manager debugging feature. This makes the binary much
31841 bigger, so is disabled by default.
31843 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
31845 Use grub_abort instead of grub_stop, and grub_exit must be
31846 define in each architecture now. Also, this change adds support
31849 * util/i386/pc/grub-probefs.c: Include grub/term.h.
31850 (grub_getkey): New function.
31851 (grub_term_get_current): Likewise.
31853 * util/i386/pc/grub-setup.c: Include grub/term.h.
31854 (grub_getkey): New function.
31855 (grub_term_get_current): Likewise.
31857 * util/misc.c (grub_stop): Renamed to ...
31858 (grub_exit): ... this.
31860 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
31861 (grub_exit): ... this.
31862 (grub_machine_init): Use grub_abort instead of abort.
31863 (grub_stop): Removed.
31865 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
31868 * kern/i386/pc/startup.S (grub_exit): New function.
31869 (cold_reboot): New label.
31871 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
31872 (grub_efi_init): Call grub_efidisk_init.
31873 (grub_efi_fini): Call grub_efidisk_fini.
31875 * kern/efi/efi.c: Include grub/mm.h.
31876 (grub_efi_console_control_guid): Renamed to ...
31877 (console_control_guid): ... this.
31878 (grub_efi_loaded_image_guid): Renamed to ...
31879 (loaded_image_guid): ... this.
31880 (grub_efi_locate_handle): New function.
31881 (grub_efi_open_protocol): Likewise.
31882 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
31883 GRUB_EFI_CONSOLE_CONTROL_GUID.
31884 (grub_efi_exit): Removed.
31885 (grub_stop): Likewise.
31886 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
31887 (grub_exit): New function.
31888 (grub_print_device_path): Likewise.
31890 * kern/rescue.c (grub_rescue_cmd_exit): New function.
31891 (grub_enter_rescue_mode): Register "exit".
31893 * kern/misc.c (grub_real_dprintf): A cosmetic change.
31894 (grub_abort): New function.
31896 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
31898 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
31900 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
31902 * include/grub/efi/efi.h (grub_efi_exit): Removed.
31903 (grub_print_device_path): New prototype.
31904 (grub_efi_locate_handle): Likewise.
31905 (grub_efi_open_protocol): Likewise.
31907 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
31908 * disk/efi/efidisk.c: Likewise.
31910 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
31912 * include/grub/efi/console_control.h
31913 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
31915 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
31916 last 8 bytes as an array.
31917 (GRUB_EFI_DISK_IO_GUID): New macro.
31918 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
31919 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
31920 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
31922 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
31923 (struct grub_efi_device_path): Rename the member "sub_type" to
31925 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
31926 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
31927 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
31928 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
31929 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
31930 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
31931 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
31932 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
31933 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
31934 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
31935 (struct grub_efi_pci_device_path): New structure.
31936 (grub_efi_pci_device_path_t): New type.
31937 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
31938 (struct grub_efi_pccard_device_path): New structure.
31939 (grub_efi_pccard_device_path_t): New type.
31940 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
31941 (struct grub_efi_memory_mapped_device_path): New structure.
31942 (grub_efi_memory_mapped_device_path_t): New type.
31943 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
31944 (struct grub_efi_vendor_device_path): New structure.
31945 (grub_efi_vendor_device_path_t): New type.
31946 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
31947 (struct grub_efi_controller_device_path): New structure.
31948 (grub_efi_controller_device_path_t): New type.
31949 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
31950 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
31951 (struct grub_efi_acpi_device_path): New structure.
31952 (grub_efi_acpi_device_path_t): New type.
31953 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
31954 (struct grub_efi_expanded_acpi_device_path): New structure.
31955 (grub_efi_expanded_acpi_device_path_t): New type.
31956 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
31957 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
31958 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
31959 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
31960 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
31961 (struct grub_efi_atapi_device_path): New structure.
31962 (grub_efi_atapi_device_path_t): New type.
31963 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
31964 (struct grub_efi_fibre_channel_device_path): New structure.
31965 (grub_efi_fibre_channel_device_path_t): New type.
31966 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
31967 (struct grub_efi_1394_device_path): New structure.
31968 (grub_efi_1394_device_path_t): New type.
31969 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
31970 (struct grub_efi_usb_device_path): New structure.
31971 (grub_efi_usb_device_path_t): New type.
31972 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
31973 (struct grub_efi_usb_class_device_path): New structure.
31974 (grub_efi_usb_class_device_path_t): New type.
31975 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
31976 (struct grub_efi_i2o_device_path): New structure.
31977 (grub_efi_i2o_device_path_t): New type.
31978 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
31979 (struct grub_efi_mac_address_device_path): New structure.
31980 (grub_efi_mac_address_device_path_t): New type.
31981 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
31982 (struct grub_efi_ipv4_device_path): New structure.
31983 (grub_efi_ipv4_device_path_t): New type.
31984 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
31985 (struct grub_efi_ipv6_device_path): New structure.
31986 (grub_efi_ipv6_device_path_t): New type.
31987 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
31988 (struct grub_efi_infiniband_device_path): New structure.
31989 (grub_efi_infiniband_device_path_t): New type.
31990 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
31991 (struct grub_efi_uart_device_path): New structure.
31992 (grub_efi_uart_device_path_t): New type.
31993 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
31994 (struct grub_efi_vendor_messaging_device_path): New structure.
31995 (grub_efi_vendor_messaging_device_path_t): New type.
31996 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
31997 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
31998 (struct grub_efi_hard_drive_device_path): New structure.
31999 (grub_efi_hard_drive_device_path_t): New type.
32000 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
32001 (struct grub_efi_cdrom_device_path): New structure.
32002 (grub_efi_cdrom_device_path_t): New type.
32003 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
32004 (struct grub_efi_vendor_media_device_path): New structure.
32005 (grub_efi_vendor_media_device_path_t): New type.
32006 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
32007 (struct grub_efi_file_path_device_path): New structure.
32008 (grub_efi_file_path_device_path_t): New type.
32009 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
32010 (struct grub_efi_protocol_device_path): New structure.
32011 (grub_efi_protocol_device_path_t): New type.
32012 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
32013 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
32014 (struct grub_efi_bios_device_path): New structure.
32015 (grub_efi_bios_device_path_t): New type.
32016 (struct grub_efi_disk_io): New structure.
32017 (grub_efi_disk_io_t): New type.
32018 (struct grub_efi_block_io_media): New structure.
32019 (grub_efi_block_io_media_t): New type.
32020 (struct grub_efi_block_io): New structure.
32021 (grub_efi_block_io_t): New type.
32023 * include/grub/misc.h (grub_stop): Removed.
32024 (grub_exit): New prototype.
32025 (grub_abort): Likewise.
32027 * include/grub/disk.h (enum grub_disk_dev_id): Added
32028 GRUB_DISK_DEVICE_EFIDISK_ID.
32030 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
32031 disk/efi/efidisk.c.
32032 (kernel_syms.lst): Remove the target if an error occurs.
32034 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
32036 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
32037 as it was simply too buggy.
32039 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
32041 * kern/misc.c (grub_lltoa): New function.
32042 (grub_vsprintf): Added support for the long long suffix,
32045 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
32047 * Makefile.in (LDFLAGS): Add variable.
32048 (LD): Remove variable.
32049 * configure.ac: Add -m32 to LDFLAGS.
32050 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
32051 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
32052 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
32053 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
32054 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
32056 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
32057 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
32058 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
32060 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
32062 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
32063 length for unknown glyph.
32065 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
32067 Add support for pre-loaded modules into the EFI port.
32069 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
32070 completely. Accept one more argument DIR. The caller has changed.
32072 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
32074 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
32075 (grub_efi_loaded_image_guid): New variable.
32076 (grub_efi_get_loaded_image): New function.
32077 (grub_arch_modules_addr): Likewise.
32079 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
32082 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
32083 (struct grub_efi_loaded_image): New structure.
32084 (grub_efi_loaded_image_t): New type.
32086 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
32088 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
32089 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
32090 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
32092 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
32094 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
32096 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
32098 * DISTLIST: Added include/grub/efi/console.h,
32099 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
32100 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
32102 * include/grub/efi/console.h: New file.
32103 * include/grub/efi/time.h: Likewise.
32104 * include/grub/i386/efi/kernel.h: Likewise.
32105 * kern/efi/init.c: Likewise.
32106 * kern/efi/mm.c: Likewise.
32107 * term/efi/console.c: Likewise.
32109 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
32110 (grub_stop): Removed.
32111 (grub_get_rtc): Likewise.
32112 (grub_machine_init): Simply call grub_efi_init.
32113 (grub_machine_fini): Call grub_efi_fini.
32115 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
32116 (grub_efi_output_string): Removed.
32117 (grub_efi_stall): New function.
32118 (grub_stop): Likewise.
32119 (grub_get_rtc): Likewise.
32121 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
32122 (grub_efi_stall): New prototype.
32123 (grub_efi_allocate_pages): Likewise.
32124 (grub_efi_free_pages): Likewise.
32125 (grub_efi_get_memory_map): Likewise.
32126 (grub_efi_mm_init): Likewise.
32127 (grub_efi_mm_fini): Likewise.
32128 (grub_efi_init): Likewise.
32129 (grub_efi_fini): Likewise.
32131 * include/grub/i386/efi/time.h: Do not include
32132 grub/symbol.h. Include grub/efi/time.h.
32133 (GRUB_TICKS_PER_SECOND): Removed.
32134 (grub_get_rtc): Likewise.
32136 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
32137 Added padding. The EFI spec is buggy.
32138 (GRUB_EFI_BLACK): New macro.
32139 (GRUB_EFI_BLUE): Likewise.
32140 (GRUB_EFI_GREEN): Likewise.
32141 (GRUB_EFI_CYAN): Likewise.
32142 (GRUB_EFI_RED): Likewise.
32143 (GRUB_EFI_MAGENTA): Likewise.
32144 (GRUB_EFI_BROWN): Likewise.
32145 (GRUB_EFI_LIGHTGRAY): Likewise.
32146 (GRUB_EFI_BRIGHT): Likewise.
32147 (GRUB_EFI_DARKGRAY): Likewise.
32148 (GRUB_EFI_LIGHTBLUE): Likewise.
32149 (GRUB_EFI_LIGHTGREEN): Likewise.
32150 (GRUB_EFI_LIGHTCYAN): Likewise.
32151 (GRUB_EFI_LIGHTRED): Likewise.
32152 (GRUB_EFI_LIGHTMAGENTA): Likewise.
32153 (GRUB_EFI_YELLOW): Likewise.
32154 (GRUB_EFI_WHITE): Likewise.
32155 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
32156 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
32157 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
32158 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
32159 (GRUB_EFI_BACKGROUND_RED): Likewise.
32160 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
32161 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
32162 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
32163 (GRUB_EFI_TEXT_ATTR): Likewise.
32165 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
32166 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
32167 (kernel_mod_HEADERS): Added efi/time.h.
32169 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
32171 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
32172 include/grub/efi/api.h, include/grub/efi/console_control.h,
32173 include/grub/efi/efi.h, include/grub/efi/pe32.h,
32174 include/grub/i386/efi/time.h, kern/efi/efi.c,
32175 kern/i386/efi/init.c, kern/i386/efi/startup.S,
32176 and util/i386/efi/grub-mkimage.c.
32178 * Makefile.in (RMKFILES): Added i386-efi.rmk.
32180 * genmk.rb (PModule#rule): Do not export symbols if
32181 #{prefix}_EXPORTS is set to "no".
32183 * conf/i386-efi.mk: New file.
32184 * conf/i386-efi.rmk: Likewise.
32185 * include/grub/efi/api.h: Likewise.
32186 * include/grub/efi/console_control.h: Likewise.
32187 * include/grub/efi/efi.h: Likewise.
32188 * include/grub/efi/pe32.h: Likewise.
32189 * include/grub/i386/efi/time.h: Likewise.
32190 * kern/efi/efi.c: Likewise.
32191 * kern/i386/efi/init.c: Likewise.
32192 * kern/i386/efi/startup.S: Likewise.
32193 * util/i386/efi/grub-mkimage.c: Likewise.
32195 2006-04-17 Marco Gerards <marco@gnu.org>
32197 * include/grub/script.h: Include <grub/parser.h> and
32198 "grub_script.tab.h".
32199 (struct grub_lexer_param): New struct.
32200 (struct grub_parser_param): Likewise.
32201 (grub_script_create_arglist): Pass the state in an argument.
32202 (grub_script_add_arglist): Likewise.
32203 (grub_script_create_cmdline): Likewise.
32204 (grub_script_create_cmdblock): Likewise.
32205 (grub_script_create_cmdif): Likewise.
32206 (grub_script_create_cmdmenu): Likewise.
32207 (grub_script_add_cmd): Likewise.
32208 (grub_script_arg_add): Likewise.
32209 (grub_script_lexer_ref): Likewise.
32210 (grub_script_lexer_deref): Likewise.
32211 (grub_script_lexer_record_start): Likewise.
32212 (grub_script_lexer_record_stop): Likewise.
32213 (grub_script_mem_record): Likewise.
32214 (grub_script_mem_record_stop): Likewise.
32215 (grub_script_malloc): Likewise.
32216 (grub_script_yylex): Likewise.
32217 (grub_script_yyparse): Likewise.
32218 (grub_script_yyerror): Likewise.
32219 (grub_script_yylex): Likewise.
32220 (grub_script_lexer_init): Return the state.
32222 * normal/lexer.c (grub_script_lexer_state): Removed variable.
32223 (grub_script_lexer_done): Likewise.
32224 (grub_script_lexer_getline): Likewise.
32225 (grub_script_lexer_refs): Likewise.
32226 (script): Likewise.
32227 (newscript): Likewise.
32228 (record): Likewise.
32229 (recording): Likewise.
32230 (recordpos): Likewise.
32231 (recordlen): Likewise.
32232 (grub_script_lexer_init): Return the state instead of setting
32234 (grub_script_lexer_ref): Use the newly added argument for state
32235 instead of globals.
32236 (grub_script_lexer_deref): Likewise.
32237 (grub_script_lexer_record_start): Likewise.
32238 (grub_script_lexer_record_stop): Likewise.
32239 (recordchar): Likewise.
32240 (nextchar): Likewise.
32241 (grub_script_yylex2): Likewise.
32242 (grub_script_yylex): Likewise.
32243 (grub_script_yyerror): Likewise.
32245 * normal/parser.y (func_mem): Removed variable.
32246 (menu_entry): Likewise.
32248 (%lex-param): New parser option.
32249 (%parse-param): Likewise.
32250 (script): Always return the AST.
32251 (argument): Pass the state around.
32252 (arguments): Likewise.
32253 (grubcmd): Likewise.
32254 (commands): Likewise.
32255 (function): Likewise.
32256 (menuentry): Likewise.
32257 (if_statement): Likewise.
32260 * normal/script.c (grub_script_memused): Removed variable.
32261 (grub_script_parsed): Likewise.
32262 (grub_script_malloc): Added a state argument. Use that instead of
32264 (grub_script_mem_record): Likewise.
32265 (grub_script_mem_record_stop): Likewise.
32266 (grub_script_arg_add): Likewise.
32267 (grub_script_add_arglist): Likewise.
32268 (grub_script_create_cmdline): Likewise.
32269 (grub_script_create_cmdif): Likewise.
32270 (grub_script_create_cmdmenu): Likewise.
32271 (grub_script_add_cmd): Likewise.
32272 (grub_script_parse): Setup the state before calling the parser.
32274 2006-04-16 Marco Gerards <marco@gnu.org>
32276 * normal/command.c (grub_command_init): Remove the title command.
32278 * normal/lexer.c (grub_script_yylex): Renamed from this...
32279 (grub_script_yylex2): ... to this.
32280 (grub_script_yylex): New function. Temporary
32281 introduced to filter some tokens.
32282 (grub_script_yyerror): Print a newline.
32284 * normal/main.c (read_config_file): Output information about the
32285 lines that contain errors. Wait for a key after all lines have
32286 been processed. Don't return an empty menu.
32288 * normal/parser.y (func_mem): Don't initialize.
32289 (menu_entry): Likewise.
32290 (err): New variable.
32291 (script): Don't return anything when an error was encountered.
32292 (ws, returns): Removed rules.
32293 (argument): Disabled concatenated variable support.
32294 (arguments): Remove explicit separators.
32295 (grubcmd): Likewise.
32296 (function): Likewise.
32297 (menuentry): Likewise.
32299 (commands): Likewise. Add error handling.
32301 * normal/script.c (grub_script_create_cmdline): If
32302 `grub_script_parsed' is 0, assume the parser encountered an error.
32304 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
32306 * configure.ac: Add support for EFI. Fix the typo
32307 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
32309 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
32311 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
32312 foreign multibyte characters should be shown correctly.
32314 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
32316 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
32318 (read_config_file): Made it to close file before returning.
32320 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
32322 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
32323 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
32324 video/i386/pc/vbefill.c.
32326 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
32327 video/i386/pc/vbefill.c.
32329 * include/grub/video.h (grub_video_blit_format): New enum.
32330 (grub_video_mode_info): Added new member blit_format.
32331 (grub_video_get_blit_format): New function prototype.
32333 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
32334 function prototype.
32335 (grub_video_vbe_map_rgb): Likewise.
32336 (grub_video_vbe_unmap_color): Likewise.
32338 * include/grub/i386/pc/vbeblit.h: New file.
32340 * include/grub/i386/pc/vbefill.h: New file.
32342 * video/video.c (grub_video_get_blit_format): New function.
32343 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
32344 (grub_video_vbe_map_rgb): Likewise.
32345 (grub_video_vbe_unmap_color): Likewise.
32347 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
32349 (grub_video_vbe_blit_render_target): Changed to use more optimized
32351 (grub_video_vbe_setup): Added detection for optimized settings.
32352 (grub_video_vbe_create_render_target): Likewise.
32354 * video/i386/pc/vbeblit.c: New file.
32356 * video/i386/pc/vbefill.c: New file.
32358 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
32360 * font/manager.c (grub_font_get_glyph): Removed font fixup from
32363 * util/unifont2pff.rb: ... and moved it to here. Improved argument
32364 parsing to support both hex and dec ranges. If filename was missing
32365 show usage information.
32367 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
32369 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
32370 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
32372 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
32373 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
32374 (video_mod_SOURCES): Added.
32375 (video_mod_CFLAGS): Likewise.
32376 (video_mod_LDFLAGS): Likewise.
32377 (gfxterm_mod_SOURCES): Likewise.
32378 (gfxterm_mod_CFLAGS): Likewise.
32379 (gfxterm_mod_LDFLAGS): Likewise.
32380 (videotest_mod_SOURCES): Likewise.
32381 (videotest_mod_CFLAGS): Likewise.
32382 (videotest_mod_LDFLAGS): Likewise.
32383 (vesafb_mod_SOURCES): Removed.
32384 (vesafb_mod_CFLAGS): Likewise.
32385 (vesafb_mod_LDFLAGS): Likewise.
32386 (vga_mod_SOURCES): Likewise.
32387 (vga_mod_CFLAGS): Likewise.
32388 (vga_mod_LDFLAGS): Likewise.
32390 * commands/videotest.c: New file.
32392 * font/manager.c (fill_with_default_glyph): Modified to use
32394 (grub_font_get_glyph): Likewise.
32395 (fontmanager): Renamed from this...
32396 (font_manager): ... to this.
32398 * include/grub/font.h (grub_font_glyph): Added new structure.
32399 (grub_font_get_glyph): Modified to use grub_font_glyph.
32401 * include/grub/misc.h (grub_abs): Added as inline function.
32403 * include/grub/video.h: New file.
32405 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
32406 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
32407 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
32408 (grub_vbe_get_controller_info): Renamed from this...
32409 (grub_vbe_bios_get_controller_info): ... to this.
32410 (grub_vbe_get_mode_info): Renamed from this...
32411 (grub_vbe_bios_get_mode_info): ... to this.
32412 (grub_vbe_set_mode): Renamed from this...
32413 (grub_vbe_bios_set_mode): ... to this.
32414 (grub_vbe_get_mode): Renamed from this...
32415 (grub_vbe_bios_get_mode): ... to this.
32416 (grub_vbe_set_memory_window): Renamed from this...
32417 (grub_vbe_bios_set_memory_window): ... to this.
32418 (grub_vbe_get_memory_window): Renamed from this...
32419 (grub_vbe_bios_get_memory_window): ... to this.
32420 (grub_vbe_set_scanline_length): Renamed from this...
32421 (grub_vbe_set_scanline_length): ... to this.
32422 (grub_vbe_get_scanline_length): Renamed from this...
32423 (grub_vbe_bios_get_scanline_length): ... to this.
32424 (grub_vbe_set_display_start): Renamed from this...
32425 (grub_vbe_bios_set_display_start): ... to this.
32426 (grub_vbe_get_display_start): Renamed from this...
32427 (grub_vbe_bios_get_display_start): ... to this.
32428 (grub_vbe_set_palette_data): Renamed from this...
32429 (grub_vbe_bios_set_palette_data): ... to this.
32430 (grub_vbe_set_pixel_rgb): Removed.
32431 (grub_vbe_set_pixel_index): Likewise.
32433 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
32435 (grub_vbe_bios_get_controller_info): ... to this.
32436 (grub_vbe_get_mode_info): Renamed from this...
32437 (grub_vbe_bios_get_mode_info): ... to this.
32438 (grub_vbe_set_mode): Renamed from this...
32439 (grub_vbe_bios_set_mode): ... to this.
32440 (grub_vbe_get_mode): Renamed from this...
32441 (grub_vbe_bios_get_mode): ... to this.
32442 (grub_vbe_set_memory_window): Renamed from this...
32443 (grub_vbe_bios_set_memory_window): ... to this.
32444 (grub_vbe_get_memory_window): Renamed from this...
32445 (grub_vbe_bios_get_memory_window): ... to this.
32446 (grub_vbe_set_scanline_length): Renamed from this...
32447 (grub_vbe_set_scanline_length): ... to this.
32448 (grub_vbe_get_scanline_length): Renamed from this...
32449 (grub_vbe_bios_get_scanline_length): ... to this.
32450 (grub_vbe_set_display_start): Renamed from this...
32451 (grub_vbe_bios_set_display_start): ... to this.
32452 (grub_vbe_get_display_start): Renamed from this...
32453 (grub_vbe_bios_get_display_start): ... to this.
32454 (grub_vbe_set_palette_data): Renamed from this...
32455 (grub_vbe_bios_set_palette_data): ... to this.
32456 (grub_vbe_bios_get_controller_info): Fixed problem with registers
32457 getting corrupted after calling it. Added more pushes and pops.
32458 (grub_vbe_bios_set_mode): Likewise.
32459 (grub_vbe_bios_get_mode): Likewise.
32460 (grub_vbe_bios_get_memory_window): Likewise.
32461 (grub_vbe_bios_set_scanline_length): Likewise.
32462 (grub_vbe_bios_get_scanline_length): Likewise.
32463 (grub_vbe_bios_get_display_start): Likewise.
32464 (grub_vbe_bios_set_palette_data): Likewise.
32466 * normal/cmdline.c (cl_set_pos): Refresh the screen.
32467 (cl_insert): Likewise.
32468 (cl_delete): Likewise.
32470 * term/gfxterm.c: New file.
32472 * term/i386/pc/vesafb.c: Removed file.
32474 * video/video.c: New file.
32476 * video/i386/pc/vbe.c (real2pm): Added new function.
32477 (grub_video_vbe_draw_pixel): Likewise.
32478 (grub_video_vbe_get_video_ptr): Likewise.
32479 (grub_video_vbe_get_pixel): Likewise
32480 (grub_video_vbe_init): Likewise.
32481 (grub_video_vbe_fini): Likewise.
32482 (grub_video_vbe_setup): Likewise.
32483 (grub_video_vbe_get_info): Likewise.
32484 (grub_video_vbe_set_palette): Likewise.
32485 (grub_video_vbe_get_palette): Likewise.
32486 (grub_video_vbe_set_viewport): Likewise.
32487 (grub_video_vbe_get_viewport): Likewise.
32488 (grub_video_vbe_map_color): Likewise.
32489 (grub_video_vbe_map_rgb): Likewise.
32490 (grub_video_vbe_map_rgba): Likewise.
32491 (grub_video_vbe_unmap_color): Likewise.
32492 (grub_video_vbe_fill_rect): Likewise.
32493 (grub_video_vbe_blit_glyph): Likewise.
32494 (grub_video_vbe_blit_bitmap): Likewise.
32495 (grub_video_vbe_blit_render_target): Likewise.
32496 (grub_video_vbe_scroll): Likewise.
32497 (grub_video_vbe_swap_buffers): Likewise.
32498 (grub_video_vbe_create_render_target): Likewise.
32499 (grub_video_vbe_delete_render_target): Likewise.
32500 (grub_video_vbe_set_active_render_target): Likewise.
32501 (grub_vbe_set_pixel_rgb): Remove function.
32502 (grub_vbe_set_pixel_index): Likewise.
32503 (index_color_mode): Remove static variable.
32504 (active_mode): Likewise.
32505 (framebuffer): Likewise.
32506 (bytes_per_scan_line): Likewise.
32507 (grub_video_vbe_adapter): Added new static variable.
32508 (framebuffer): Likewise.
32509 (render_target): Likewise.
32510 (initial_mode): Likewise.
32511 (mode_in_use): Likewise.
32512 (mode_list): Likewise.
32514 2006-03-10 Marco Gerards <marco@gnu.org>
32516 * configure.ac (AC_INIT): Bumped to 1.93.
32518 * DISTLIST: Added `include/grub/hfs.h'.
32520 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
32522 * boot/i386/pc/boot.S (general_error): Before looping, try INT
32523 18H, which might help the BIOS falling back to next boot media.
32525 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
32527 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
32528 Poe Chen <poe.poechen@gmail.com>.
32530 2006-01-17 Marco Gerards <marco@gnu.org>
32532 * include/grub/normal.h: Include <grub/script.h>.
32533 (grub_command_list): Removed struct.
32534 (grub_command_list_t): Removed type.
32535 (grub_menu_entry): Remove members `num' and `command_list'. Add
32536 members `commands' and `sourcecode'.
32537 * include/grub/script.h: Add inclusion guards.
32538 (grub_script_cmd_menuentry): New struct.
32539 (grub_script_execute_menuentry): New prototype.
32540 (grub_script_lexer_record_start): Likewise.
32541 (grub_script_lexer_record_stop): Likewise.
32542 * normal/execute.c (grub_script_execute_menuentry): New function.
32543 * normal/lexer.c (record, recording, recordpos, recordlen): New
32545 (grub_script_lexer_record_start): New function.
32546 (grub_script_lexer_record_stop): Likewise.
32547 (recordchar): Likewise.
32548 (nextchar): Likewise.
32549 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
32550 2048 as the buffer size. Add the tokens `menuentry' and `@'.
32551 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
32552 (current_menu): New variable.
32553 (free_menu): Mainly rewritten.
32554 (grub_normal_menu_addentry): New function.
32555 (read_config_file): Rewritten.
32556 * normal/menu.c (run_menu_entry): Mainly rewritten.
32557 * normal/menu_entry.c (make_screen): Rewritten the code to insert
32559 (run): Mainly rewritten.
32560 * normal/parser.y (menu_entry): New variable.
32561 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
32562 (menuentry): New rule.
32563 (command): Add `menuentry'.
32564 (if_statement): Allow additional returns before `fi'.
32565 * normal/script.c (grub_script_create_cmdmenu): New function.
32567 2006-01-03 Marco Gerards <marco@gnu.org>
32569 * INSTALL: GNU Bison is required.
32570 * configure.ac: Rewritten the test to detect Bison.
32571 * Makefile.in (YACC): New variable. Reported by Xun Sun
32572 <xun.sun.cn@gmail.com>.
32574 2006-01-03 Marco Gerards <marco@gnu.org>
32576 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
32577 the HFS+ filesystem to filesystem blocks.
32578 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
32579 GCC warning is silenced.
32581 2006-01-03 Marco Gerards <marco@gnu.org>
32583 * partmap/apple.c (apple_partition_map_iterate): Convert the data
32584 read from disk from big endian to host byte order.
32586 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
32588 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
32590 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
32591 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
32592 embedded HFS+ filesystem.
32593 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
32594 (grub_hfs_sblock): Move from here...
32595 * include/grub/hfs.h: To here... New file.
32596 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
32598 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
32600 (grub_hfsplus_volheader): Change type of member `magic' to
32602 (grub_hfsplus_data): Add new member `embedded_offset'.
32603 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
32605 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
32606 Calculate the offset.
32608 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32610 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
32612 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
32614 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32616 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
32617 ENV->NAME is NULL after allocating ENV->VALUE.
32619 2005-12-25 Marco Gerards <marco@gnu.org>
32621 * kern/env.c (grub_env_set): Rewritten the error handling code.
32623 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32625 * geninit.sh: Made more robust, and more portable.
32627 2005-12-25 Marco Gerards <marco@gnu.org>
32629 Add support for Apple HFS+ filesystems.
32631 * fs/hfsplus.c: New file.
32633 * DISTLIST: Added `fs/hfsplus.c'.
32635 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
32636 (hfsplus_mod_SOURCES): New variable.
32637 (hfsplus_mod_CFLAGS): Likewise.
32638 (hfsplus_mod_LDFLAGS): Likewise.
32639 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
32640 (grub_setup_SOURCES): Likewise.
32641 (grub_mkdevicemap_SOURCES): Likewise.
32642 (grub_emu_SOURCES): Likewise.
32643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32645 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
32647 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
32649 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32651 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
32652 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
32653 include/grub/parser.h, include/grub/script.h, kern/parser.c,
32654 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
32655 normal/lexer.c, normal/parser.y, normal/script.c, and
32657 Removed kern/sparc64/cache.c.
32659 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
32660 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
32663 * configure.ac (AC_INIT): Bumped to 1.92.
32665 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
32667 * kern/err.c (grub_error_push): Added new function to support error
32669 (grub_error_pop): Likewise.
32670 (grub_error_stack_items): New local variable to support error stacks.
32671 (grub_error_stack_pos): Likewise.
32672 (grub_error_stack_assert): Likewise.
32673 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
32675 (grub_print_error): Added support to print errors from error stack.
32677 * include/grub/err.h (grub_error_push): Added function prototype.
32678 (grub_error_pop): Likewise.
32680 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
32682 * configure.ac: Accept `powerpc64' as host_cpu.
32683 (amd64): Rename to `biarch32'.
32685 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
32686 non-cacheline-aligned addresses.
32688 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
32689 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
32690 if `size' is non-zero.
32692 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
32694 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
32695 and `cd' to make sure the filename is not prefixed with a
32697 (pkgdata_MODULES): Add `gpt.mod'.
32698 (gpt_mod_SOURCES): New variable.
32699 (gpt_mod_CFLAGS): Likewise.
32700 (gpt_mod_LDFLAGS): Likewise.
32702 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
32704 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
32707 * partmap/gpt.c: New file.
32709 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
32710 GPT partition map is detected.
32712 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
32714 * commands/i386/pc/play.c: New file.
32715 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
32716 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
32719 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
32721 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
32722 ((unused))' to silence gcc warning.
32724 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
32726 * configure.ac: Correct `AC_PROG_YACC' test.
32728 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32730 * util/powerpc/ieee1275/grub-install.in: Run the mount point
32731 check before installing files.
32733 2005-11-22 Mike Small <smallm@panix.com>
32735 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
32736 number regex so multidigit numbers are recognized correctly.
32738 2005-11-22 Mike Small <smallm@panix.com>
32740 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
32741 debugging message before attempting to claim memory.
32742 (grub_rescue_cmd_initrd): Add a claim debugging message and try
32743 multiple addresses in case of failure.
32745 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32747 * term/tparm.c (get_space): Remove empty `if' statement.
32749 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
32751 * kern/parser.c (check_varstate): Rename `state' to 's'.
32753 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32755 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
32756 variable definitions to the beginning of each function. Sort stack
32758 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
32759 `buf' argument to `char *'.
32761 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32763 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
32764 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
32765 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
32766 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
32767 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
32768 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
32769 configfile.mod, search.mod, gzio.mod and test.mod.
32770 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
32771 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
32772 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
32773 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
32774 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
32775 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
32776 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
32777 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
32778 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
32779 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
32780 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32781 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32782 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
32783 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
32784 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
32785 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
32786 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32787 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
32788 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
32789 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
32790 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
32791 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
32792 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
32794 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
32796 (pkgdata_MODULES): Add test.mod.
32798 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32800 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
32801 appending to variables with "+=".
32802 (PModule): Use full pathname to generate *.lst filenames.
32804 * Makefile.in: Fixed list rules moved from genmk.rb.
32805 (.DELETE_ON_ERROR): New special target.
32806 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
32808 * conf/i386-pc.rmk: Include conf/common.mk.
32809 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
32810 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
32811 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
32812 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
32813 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
32814 configfile.mod, search.mod, gzio.mod and test.mod.
32815 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
32816 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
32817 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
32818 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
32819 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
32820 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
32821 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
32822 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
32823 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
32824 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
32825 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32826 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32827 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
32828 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
32829 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
32830 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
32831 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32832 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
32833 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
32834 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
32835 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
32836 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
32837 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
32839 * conf/common.rmk: ... to here. New file.
32841 * conf/common.mk: New file.
32843 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
32845 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
32846 (grub_script.tab.c): ... here.
32848 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
32849 (grub_script.tab.c): ... here.
32851 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
32852 (grub_script.tab.c): ... here.
32854 * normal/command.c (grub_command_find): Fixed a memory leak of
32855 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
32857 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32859 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
32860 "@" which marks the start of a comment on ARM.
32861 (VARIABLE): Likewise.
32863 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32865 Add support for Linux/ADFS partition tables.
32867 * partmap/acorn.c: New file.
32869 * include/grub/acorn_filecore.h: Likewise.
32871 * DISTLIST: Added `partmap/acorn.c' and
32872 `include/grub/acorn_filecore.h'.
32874 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32876 (pkgdata_MODULES): Add `acorn.mod'.
32877 (acorn_mod_SOURCES): New variable.
32878 (acorn_mod_CFLAGS): Likewise.
32880 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
32882 (pkgdata_MODULES): Add `acorn.mod'.
32883 (acorn_mod_SOURCES): New variable.
32884 (acorn_mod_CFLAGS): Likewise.
32886 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
32887 (pkgdata_MODULES): Add `acorn.mod'.
32888 (acorn_mod_SOURCES): New variable.
32889 (acorn_mod_CFLAGS): Likewise.
32890 (acorn_mod_LDFLAGS): Likewise.
32892 * include/types.h (grub_disk_addr_t): New typedef.
32894 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
32896 * geninit.sh: New file.
32898 * geninitheader.sh: Likewise.
32900 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
32901 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
32902 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
32903 * commands/configfile.c (grub_configfile_init)
32904 (grub_configfile_fini): Likewise.
32905 * commands/default.c (grub_default_init, grub_default_fini):
32907 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
32908 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
32909 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
32910 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
32912 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
32913 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
32915 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
32916 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
32918 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
32920 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
32922 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
32923 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
32924 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
32925 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
32926 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
32927 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
32928 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
32929 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
32930 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
32931 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
32932 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
32933 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
32934 * partmap/amiga.c (grub_amiga_partition_map_init)
32935 (grub_amiga_partition_map_fini): Likewise.
32936 * partmap/apple.c (grub_apple_partition_map_init)
32937 (grub_apple_partition_map_fini): Likewise.
32938 * partmap/pc.c (grub_pc_partition_map_init)
32939 (grub_pc_partition_map_fini): Likewise.
32940 * partmap/sun.c (grub_sun_partition_map_init,
32941 grub_sun_partition_map_fini): Likewise.
32942 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
32945 * util/grub-emu.c: Include <grub_modules_init.h>.
32946 (main): Don't initialize and de-initialize any modules directly,
32947 use `grub_init_all' and `grub_fini_all' instead.
32949 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
32950 `grub_vesafb_mod_init'.
32951 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
32953 * term/i386/pc/vga.c (grub_vga_init): Renamed to
32954 `grub_vga_mod_init'. Updated all users.
32955 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
32957 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
32958 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
32961 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
32962 Generate a function to initialize the module in utilities.
32963 Updated all callers.
32964 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
32965 initialize the module in utilities. Updated all callers.
32967 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
32969 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
32970 escape sequence and a literal ^L to clear the screen.
32972 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
32973 when returning from Open Firmware.
32975 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
32977 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
32978 (grub_ofconsole_height): Likewise.
32979 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
32980 manually insert a '\n'.
32981 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
32982 `grub_ofconsole_height'. Return early if these are already set.
32984 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
32986 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
32987 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
32988 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
32989 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
32990 and `normal/script.c'.
32991 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32992 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32993 (test_mod_SOURCES): New variable.
32994 (test_mod_CFLAGS): Likewise.
32995 (test_mod_LDFLAGS): Likewise.
32996 (pkgdata_MODULES): Add `test.mod'.
32997 (grub_script.tab.c): New rule.
32998 (grub_script.tab.h): Likewise.
33000 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
33002 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
33003 `commands/test.c', `normal/execute.c', `normal/lexer.c',
33004 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
33005 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
33006 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
33007 (test_mod_SOURCES): New variable.
33008 (test_mod_CFLAGS): Likewise.
33009 (pkgdata_MODULES): Add `test.mod'.
33010 (grub_script.tab.c): New rule.
33011 (grub_script.tab.h): Likewise.
33013 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
33015 Add initial scripting support.
33017 * commands/test.c: New file.
33018 * include/grub/script.h: Likewise.
33019 * normal/execute.c: Likewise.
33020 * normal/function.c: Likewise.
33021 * normal/lexer.c: Likewise.
33022 * normal/parser.y: Likewise.
33023 * normal/script.c: Likewise.
33025 * configure.ac: Add `AC_PROG_YACC' test.
33027 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
33028 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
33029 `normal/function.c' and `normal/script.c'.
33030 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
33031 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
33032 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
33034 (pkgdata_MODULES): Add `test.mod'.
33035 (grub_script.tab.c): New rule.
33036 (grub_script.tab.h): Likewise.
33038 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
33040 * include/grub/normal.h (grub_test_init): New prototype.
33041 (grub_test_fini): Likewise.
33043 * normal/command.c: Include <grub/script.h>.
33044 (grub_command_execute): Rewritten.
33046 * util/grub-emu.c (main): Call `grub_test_init' and
33049 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
33051 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
33053 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
33054 there are no pending characters.
33056 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
33058 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
33059 `grub_strndup' to drop device arguments. Replace unnecessary
33060 `grub_strndup' with `grub_strdup'.
33062 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
33064 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
33065 `debug' environment variable has been set.
33067 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
33069 * Makefile.in (install-local): Use $(DATA).
33070 (uninstall): Likewise.
33071 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
33072 (sbin_UTILITIES): ... to here.
33073 (sbin_SCRIPTS): New variable.
33074 (grub_install_SOURCES): New variable.
33075 * util/powerpc/ieee1275/grub-install.in: New file.
33076 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
33078 (add_segments): Call `grub_util_get_path'.
33080 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
33082 From Timothy Baldwin:
33083 * commands/ls.c (grub_ls_list_files): Close FILE with
33085 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
33087 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
33089 * include/grub/parser.h: New file.
33091 * kern/parser.c: Likewise.
33093 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
33094 (grub_setup_SOURCES): Likewise.
33095 (grub_probefs_SOURCES): Likewise.
33096 (grub_emu_SOURCES): Likewise.
33097 (kernel_img_HEADERS): Add `parser.h'.
33099 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
33100 (grub_emu_SOURCES): Add `kern/parser.c'.
33101 (grubof_SOURCES): Likewise.
33103 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
33104 (grubof_SOURCES): Add `kern/parser.c'.
33106 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
33108 * kern/misc.c (grub_split_cmdline): Removed function.
33110 * kern/rescue.c: Include <grub/parser.h>.
33111 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
33112 of `grub_split_cmdline'.
33114 * normal/command.c: Include <grub/parser.h>.
33115 (grub_command_execute): Use `grub_parser_split_cmdline' instead
33116 of `grub_split_cmdline'.
33118 * normal/completion.c: Include <grub/parser.h>.
33119 (cmdline_state): New variable.
33120 (iterate_dir): End the filename with a quote depending on the
33121 command line state.
33122 (get_state): new function.
33123 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
33124 split the arguments and determine the current argument. When the
33125 argument string is not quoted, escape all spaces.
33127 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
33129 * normal/sparc64/setjmp.S: New file.
33131 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
33133 * include/grub/sparc64/libgcc.h: New file.
33134 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
33135 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
33136 normal/sparc64/setjmp.c.
33138 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
33140 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
33141 * kern/sparc64/cache.S: New file.
33142 * kern/sparc64/cache.c: Removed.
33143 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
33144 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
33146 (COMMON_LDFLAGS): Add -melf64_sparc.
33147 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
33148 (grubof_SOURCES): Use cache.S instead of cache.c.
33149 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
33150 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
33151 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
33153 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
33154 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
33155 (linux_mod_CFLAGS): Commented out.
33156 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
33157 out because module isn't built.
33158 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
33159 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
33160 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
33161 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
33162 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
33163 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
33164 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
33165 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
33166 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
33167 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
33168 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
33169 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
33170 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
33171 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
33173 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
33175 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
33176 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
33177 longer, because HFS should not be used on PC.
33179 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
33181 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
33182 consistently within the loop.
33184 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
33186 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
33187 directory can not be read.
33189 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
33191 * configure.ac (AC_INIT): Increase the version number to 1.91.
33193 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
33194 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
33195 term/i386/pc/serial.c.
33197 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
33199 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
33200 file size must be permitted.
33202 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
33203 between %ah and %al.
33205 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
33207 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
33209 Call the hook with a NUL-terminated filename.
33210 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
33213 * kern/term.c (cursor_state): New variable.
33214 (grub_term_set_current): Reset the cursor state on a new
33216 (grub_setcursor): Rewritten to use CURSOR_STATE.
33217 (grub_getcursor): New function.
33219 * include/grub/term.h (grub_getcursor): New prototype.
33221 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
33222 integers on ARM. Reported by Timothy Baldwin
33223 <T.E.Baldwin99@members.leeds.ac.uk>.
33225 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
33227 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
33229 (grub_sfs_dir): Likewise.
33231 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
33233 Add support for the SFS filesystem.
33235 * fs/sfs.c: New file.
33237 * DISTLIST: Added `fs/sfs.c'.
33239 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
33240 (grub_probefs_SOURCES): Likewise.
33241 (grub_emu_SOURCES): Likewise.
33242 (pkgdata_MODULES): Add `sfs.mod'.
33243 (sfs_mod_SOURCES): New variable.
33244 (sfs_mod_CFLAGS): Likewise.
33245 (sfs_mod_LDFLAGS): Likewise.
33247 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
33248 (pkgdata_MODULES): Add `sfs.mod'.
33249 (sfs_mod_SOURCES): New variable.
33250 (sfs_mod_CFLAGS): Likewise.
33252 * util/grub-emu.c (main): Call `grub_sfs_init' and
33255 * include/grub/fs.h (grub_sfs_init): New prototype.
33256 (grub_sfs_fini): Likewise.
33258 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
33260 Add support for the AFFS filesystem.
33262 * fs/affs.c: New file.
33264 * DISTLIST: Added `fs/affs.c'.
33266 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
33267 (grub_probefs_SOURCES): Likewise.
33268 (grub_emu_SOURCES): Likewise.
33269 (pkgdata_MODULES): Add `affs.mod'.
33270 (affs_mod_SOURCES): New variable.
33271 (affs_mod_CFLAGS): Likewise.
33272 (affs_mod_LDFLAGS): Likewise.
33274 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
33275 (pkgdata_MODULES): Add `affs.mod'.
33276 (affs_mod_SOURCES): New variable.
33277 (affs_mod_CFLAGS): Likewise.
33279 * util/grub-emu.c (main): Call `grub_affs_init' and
33282 * include/grub/fs.h (grub_affs_init): New prototype.
33283 (grub_affs_fini): Likewise.
33285 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
33287 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
33289 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
33291 * configure.ac: Accept `x86_64' as host_cpu. In that case add
33294 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
33297 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
33298 (COMMON_LDFLAGS): New variable.
33299 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
33300 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
33301 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
33302 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
33303 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
33304 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
33305 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
33306 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
33307 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
33308 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
33309 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
33310 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
33311 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
33312 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
33313 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
33315 (normal_mod_ASFLAGS): Add `-m32'.
33317 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
33318 (grub_host_size_t, grub_host_ssize_t): New types.
33319 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
33320 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
33321 `GRUB_HOST_SIZEOF_VOID_P'.
33323 * include/grub/kernel.h (struct grub_module_header): Type of
33324 member offset changed to `grub_host_off_t'. Type of member size
33325 changed to `grub_host_size_t'.
33326 (struct grub_module_info): Type of member offset changed to
33327 `grub_host_off_t'. Type of member size changed to
33328 `grub_host_size_t'.
33330 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
33332 Make GRUB's kernel compliant to Multiboot Specification.
33334 * kern/i386/pc/startup.S (multiboot_header): New label.
33335 (multiboot_entry): Likewise.
33336 (multiboot_trampoline): Likewise.
33338 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
33339 Increased to 0x4A0.
33341 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
33342 put parentheses after a question mark.
33343 [!GRUB_UTIL] (my_mod): New variable.
33345 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
33347 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
33349 Adds support for the XFS filesystem. Btrees are not supported
33352 * fs/xfs.c: New file.
33354 * DISTLIST: Added `fs/xfs.c'.
33356 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
33357 (grub_probefs_SOURCES): Likewise.
33358 (grub_emu_SOURCES): Likewise.
33359 (pkgdata_MODULES): Add `xfs.mod'.
33360 (xfs_mod_SOURCES): New variable.
33361 (xfs_mod_CFLAGS): Likewise.
33363 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
33364 (pkgdata_MODULES): Add `xfs.mod'.
33365 (xfs_mod_SOURCES): New variable.
33366 (xfs_mod_CFLAGS): Likewise.
33368 * util/grub-emu.c (main): Call `grub_xfs_init' and
33371 * include/grub/fs.h (grub_xfs_init): New prototype.
33372 (grub_xfs_fini): Likewise.
33375 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
33377 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
33378 color modes, allow greater than 16 colors to be configured as
33381 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
33383 * normal/completion.c (complete_arguments): Add the qualifier
33384 const into OPTIONS.
33386 From Omniflux <omniflux+lists@omniflux.com>:
33387 * include/grub/terminfo.h: New file.
33388 * include/grub/tparm.h: Likewise.
33389 * include/grub/i386/pc/serial.h: Likewise.
33390 * term/terminfo.c: Likewise.
33391 * term/tparm.c: Likewise.
33392 * term/i386/pc/serial.c: Likewise.
33393 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
33395 (terminfo_mod_SOURCES): New variable.
33396 (terminfo_mod_CFLAGS): Likewise.
33397 (serial_mod_SOURCES): Likewise.
33398 (serial_mod_CFLAGS): Likewise.
33400 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
33402 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
33403 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
33404 and kern/powerpc/ieee1275/cmain.c, respectively.
33406 * boot/powerpc/ieee1275/crt0.S: Moved to ...
33407 * kern/powerpc/ieee1275/crt0.S: ... here.
33409 * boot/powerpc/ieee1275/cmain.c: Moved to ...
33410 * kern/powerpc/ieee1275/cmain.c: ... here.
33412 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
33413 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
33414 instead of boot/powerpc/ieee1275/crt0.S and
33415 boot/powerpc/ieee1275/cmain.c, respectively.
33417 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
33418 sectors. It was not used anyway.
33420 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
33422 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
33423 `unused parameter' warning.
33425 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
33427 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
33429 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
33432 2005-08-28 Marco Gerards <metgerards@student.han.nl>
33434 * include/grub/normal.h (enum grub_completion_type): Added
33435 `GRUB_COMPLETION_TYPE_ARGUMENT'.
33437 * normal/cmdline.c (print_completion): Handle
33438 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
33439 * normal/menu_entry.c (store_completion): Likewise.
33441 * normal/completion.c (complete_arguments): New function.
33442 (grub_normal_do_completion): Call `complete_arguments' when the
33443 current words start with a dash.
33445 2005-08-27 Marco Gerards <metgerards@student.han.nl>
33447 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
33448 `gzio.mod' instead of `io.mod').
33450 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
33452 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
33453 (DISTDIRS): Added io and video.
33454 Rewrite the search routine to make an output consistently.
33456 * DISTLIST: Added conf/sparc64-ieee1275.mk,
33457 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
33458 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
33459 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
33460 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
33461 util/powerpc/ieee1275/misc.c.
33463 * include/grub/gzio.h: New file.
33464 * io/gzio.c: Likewise.
33466 * kern/file.c (grub_file_close): Call grub_device_close only if
33467 FILE->DEVICE is not NULL.
33469 * include/grub/mm.h [!NULL] (NULL): New macro.
33471 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
33473 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
33474 (pkgdata_MODULES): Added gzio.mod.
33475 (gzio_mod_SOURCES): New variable.
33476 (gzio_mod_CFLAGS): Likewise.
33478 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
33479 (pkgdata_MODULES): Added gzio.mod.
33480 (gzio_mod_SOURCES): New variable.
33481 (gzio_mod_CFLAGS): Likewise.
33483 * commands/cat.c: Include grub/gzio.h.
33484 (grub_cmd_cat): Use grub_gzfile_open instead of
33487 * commands/cmp.c: Include grub/gzio.h.
33488 (grub_cmd_cmp): Use grub_gzfile_open instead of
33491 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
33492 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
33494 (grub_rescue_cmd_module): Likewise.
33496 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
33498 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
33499 kern/sparc64/ieee1275/init.c because it contains _start.
33500 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
33502 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
33504 * configure.ac: Add support for sparc64 host with ieee1275
33506 * configure: Generated from configure.ac.
33507 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
33509 (grub_ofdisk_read): Likewise.
33510 (grub_ofdisk_open): Use %p to print pointer values, and cast the
33511 pointers as (void *) to remove a warning.
33512 (grub_ofdisk_close): Likewise.
33513 (grub_ofdisk_read): Likewise.
33514 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
33515 returns, so make it return void to remove a warning.
33516 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
33517 Corresponding prototype change.
33518 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
33519 values, and cast the pointers as (void *) to remove a warning.
33520 (grub_mm_dump): Likewise.
33521 * conf/sparc64-ieee1275.mk: New file.
33522 * conf/sparc64-ieee1275.rmk: Likewise.
33523 * include/grub/sparc64/setjmp.h: Likewise.
33524 * include/grub/sparc64/types.h: Likewise.
33525 * include/grub/sparc64/ieee1275/console.h: Likewise.
33526 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
33527 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33528 * include/grub/sparc64/ieee1275/time.h: Likewise.
33529 * kern/sparc64/cache.c: Likewise.
33530 * kern/sparc64/dl.c: Likewise.
33531 * kern/sparc64/ieee1275/init.c: Likewise.
33532 * kern/sparc64/ieee1275/openfw.c: Likewise.
33534 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
33536 * util/console.c (grub_ncurses_putchar): If C is greater than
33537 0x7f, set C to a question mark.
33538 (grub_ncurses_getcharwidth): New function.
33539 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
33542 * normal/menu.c (print_entry): Made aware of Unicode. First,
33543 convert TITLE to UCS-4, and predict the cursor position by
33546 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
33548 * kern/misc.c (grub_utf16_to_utf8): Likewise.
33550 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
33552 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
33553 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
33556 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
33557 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
33558 grub_strcpy and grub_strlen. Take it into account that a space
33559 character is inserted as a delimiter.
33561 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
33563 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
33564 invalid magic in the error.
33566 * commands/search.c: New file.
33568 * util/grub-emu.c (main): Call grub_search_init and
33571 * kern/rescue.c (grub_rescue_print_disks): Removed.
33572 (grub_rescue_print_devices): New function.
33573 (grub_rescue_cmd_ls): Use grub_device_iterate with
33574 grub_rescue_print_devices instead of grub_disk_dev_iterate with
33575 grub_rescue_print_disks.
33577 * kern/partition.c (grub_partition_iterate): Return the result of
33578 PARTMAP->ITERATE instead of GRUB_ERRNO.
33580 * kern/device.c: Include grub/partition.h.
33581 (grub_device_iterate): New function.
33583 * include/grub/partition.h (grub_partition_iterate): Return int
33584 instead of grub_err_t.
33586 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
33588 [GRUB_UTIL] (grub_search_fini): Likewise.
33590 * include/grub/device.h (grub_device_iterate): New prototype.
33592 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
33594 (pkgdata_MODULES): Added search.mod.
33595 (search_mod_SOURCES): New variable.
33596 (search_mod_CFLAGS): Likewise.
33598 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
33599 (pkgdata_MODULES): Added search.mod.
33600 (search_mod_SOURCES): New variable.
33601 (search_mod_CFLAGS): Likewise.
33603 * commands/ls.c (grub_ls_list_disks): Renamed to ...
33604 (grub_ls_list_devices): ... this, and use grub_device_iterate.
33605 All callers changed.
33607 * DISTLIST: Added commands/search.c.
33609 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
33611 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
33613 (grub_getcharwidth): New function.
33615 * kern/misc.c (grub_utf8_to_ucs4): New function.
33617 * include/grub/term.h (struct grub_term): Added a new member
33619 (grub_getcharwidth): New prototype.
33621 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
33623 * term/i386/pc/console.c (map_char): New function. Segregated from
33624 grub_console_putchar.
33625 (grub_console_putchar): Use map_char.
33626 (grub_console_getcharwidth): New function.
33627 (grub_console_term): Specified grub_console_getcharwidth as
33630 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
33631 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
33633 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
33635 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
33636 on grub_strtoul completely.
33637 (write_char): Declare local variables in the beginning of the
33639 (grub_vesafb_getcharwidth): New function.
33640 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
33643 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
33645 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
33646 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
33647 commands/i386/pc/vbetest.c.
33649 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
33650 call grub_vbe_get_controller_info again, because the returned
33651 information is volatile.
33652 (grub_vbe_set_video_mode): Mostly rewritten.
33653 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
33654 grub_vbe_status_t correctly.
33655 (grub_vbe_get_video_mode_info): Likewise.
33656 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
33657 several if statements.
33659 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
33660 * commands/i386/pc/vbeinfo.c: ... this.
33662 * commands/i386/pc/vbe_test.c: Renamed to ...
33663 * commands/i386/pc/vbetest.c: ... this.
33665 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
33667 (grub_cmd_vbeinfo): ... this. Save video modes before
33668 iterating. Skip a video mode, if it is not available, not enough
33669 information is given or it is monochrome. Show the memory
33670 model. Leave the interpretation of MODEVAR to grub_strtoul
33672 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
33673 (GRUB_MOD_FINI): Likewise.
33675 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
33676 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
33677 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
33678 duplicated grub_env_get. Leave the interpretation of MODEVAR to
33679 grub_strtoul completely.
33680 (real2pm): Removed.
33681 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
33682 (GRUB_MOD_FINI): Likewise.
33684 * normal/misc.c: Include grub/mm.h.
33686 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
33687 vbe_list_modes with vbetest.mod and vbeinfo.mod.
33688 (vbe_list_modes_mod_SOURCES): Removed.
33689 (vbe_list_modes_mod_CFLAGS): Likewise.
33690 (vbe_test_mod_SOURCES): Likewise.
33691 (vbe_test_mod_CFLAGS): Likewise.
33692 (vbeinfo_mod_SOURCES): New variable.
33693 (vbeinfo_mod_CFLAGS): Likewise.
33694 (vbetest_mod_SOURCES): Likewise.
33695 (vbetest_mod_CFLAGS): Likewise.
33697 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
33699 * normal/misc.c: New file.
33701 * DISTLIST: Added normal/misc.c.
33703 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
33704 DISK to HOOK. Call HOOK with DISK.
33705 * partmap/apple.c (apple_partition_map_iterate): Likewise.
33706 * partmap/pc.c (pc_partition_map_iterate): Likewise.
33707 * partmap/sun.c (sun_partition_map_iterate): Likewise.
33709 * normal/menu_entry.c (struct screen): Added a new member
33710 "completion_shown".
33711 (completion_buffer): New global variable.
33712 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
33713 (store_completion): New function.
33714 (complete): Likewise.
33715 (clear_completions): Likewise.
33716 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
33717 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
33718 a tab, call complete.
33720 * normal/completion.c (disk_dev): Removed.
33721 (print_simple_completion): Likewise.
33722 (print_partition_completion): Likewise.
33723 (print_func): New global variable.
33724 (add_completion): Do not take the arguments WHAT or PRINT any
33725 longer. Added a new argument TYPE. Instead of printing directly,
33726 call PRINT_FUNC if not NULL.
33727 All callers changed.
33728 (complete_device): Use a local variable DEV instead of
33729 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
33730 (grub_normal_do_completion): Take a new argument HOOK. Do not
33731 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
33732 empty string, return NULL instead.
33733 All callers changed.
33735 * normal/cmdline.c (print_completion): New function.
33737 * kern/partition.c (grub_partition_iterate): Add an argument DISK
33739 All callers changed.
33741 * kern/disk.c (grub_print_partinfo): Removed.
33743 * include/grub/partition.h (struct grub_partition_map): Add a new
33744 argument DISK into HOOK of ITERATE.
33745 (grub_partition_iterate): Add a new argument DISK to HOOK.
33747 * include/grub/normal.h (enum grub_completion_type): New enum.
33748 (grub_completion_type_t): New type.
33749 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
33750 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
33751 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
33752 (GRUB_COMPLETION_TYPE_FILE): Likewise.
33753 (grub_normal_do_completion): Added a new argument HOOK.
33754 (grub_normal_print_device_info): New prototype.
33756 * include/grub/disk.h (grub_print_partinfo): Removed.
33758 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
33759 (normal_mod_SOURCES): Likewise.
33760 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33761 (normal_mod_SOURCES): Likewise.
33763 * commands/ls.c (grub_ls_list_disks): Use
33764 grub_normal_print_device_info instead of grub_print_partinfo. Free
33766 (grub_ls_list_files): Use grub_normal_print_device_info instead of
33767 duplicating the code.
33769 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
33771 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
33772 follow GCS more precisely.
33773 * commands/i386/pc/vbe_test.c: Likewise.
33774 * include/grub/i386/pc/vbe.h: Likewise.
33775 * term/i386/pc/vesafb.c: Likewise.
33776 * video/i386/pc/vbe.c: Likewise.
33778 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
33780 * DISTLIST: Added term/i386/pc/vesafb.c
33781 DISTLIST: Added video/i386/pc/vbe.c
33782 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
33783 DISTLIST: Added commands/i386/pc/vbe_test.c.
33784 * commands/i386/pc/vbe_list_modes.c: New file.
33785 * commands/i386/pc/vbe_test.c: Likewise.
33786 * term/i386/pc/vesafb.c: Likewise.
33787 * video/i386/pc/vbe.c: Likewise.
33788 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
33789 (grub_vbe_probe) Added prototype.
33790 (grub_vbe_set_video_mode) Likewise.
33791 (grub_vbe_get_video_mode) Likewise.
33792 (grub_vbe_get_video_mode_info) Likewise.
33793 (grub_vbe_set_pixel_rgb) Likewise.
33794 (grub_vbe_set_pixel_index) Likewise.
33795 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
33796 (pkgdata_MODULES): Added vesafb.mod.
33797 (pkgdata_MODULES): Added vbe_list_modes.mod.
33798 (pkgdata_MODULES): Added vbe_test.mod.
33799 (vbe_mod_SOURCES): Added.
33800 (vbe_mod_CFLAGS): Likewise.
33801 (vesafb_mod_SOURCES): Likewise.
33802 (vesafb_mod_CFLAGS): Likewise.
33803 (vbe_list_modes_mod_SOURCES): Likewise.
33804 (vbe_list_modes_mod_CFLAGS): Likewise.
33805 (vbe_test_mod_SOURCES): Likewise.
33806 (vbe_test_mod_CFLAGS): Likewise.
33808 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
33810 * normal/command.c (grub_command_execute): If INTERACTIVE is
33811 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
33812 CMDLINE. Disable the pager if INTERACTIVE is true.
33813 All callers are changed.
33815 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
33816 before reading a config file.
33817 * normal/main.c (read_config_file): Even if a command is not
33818 found, register it if it is within an entry.
33820 * util/grub-emu.c: Include sys/types.h and unistd.h.
33821 (options): Added --hold.
33822 (struct arguments): Added a new member "hold".
33823 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
33825 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
33826 cleared by a debugger, if it is not zero.
33828 * include/grub/normal.h (grub_command_execute): Add an argument
33831 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
33833 * DISTLIST: Added include/grub/i386/pc/vbe.h.
33835 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
33837 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
33838 program with another one, because the old one didn't detect a bug
33839 in gcc-3.4. Always use regparm 2, because the new test is still
33840 not enough for gcc-4.0. Someone must investigate a simple test
33841 case which detects a bug in gcc-4.0.
33843 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
33845 * DISTLIST: Added normal/completion.c.
33847 * normal/completion.c: New file.
33849 * term/i386/pc/console.c (grub_console_getwh): New function.
33850 (grub_console_term): Assign grub_console_getwh to getwh.
33852 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
33853 function is defined in normal/completion.c as
33854 grub_normal_do_completion.
33855 (grub_cmdline_get): Use grub_normal_do_completion instead of
33858 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
33859 returns non-zero, otherwise return 0.
33860 (grub_partition_iterate): First, probe the partition map. Then,
33861 call ITERATE only for this partition map.
33863 * kern/misc.c (grub_strncmp): Rewritten.
33865 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
33866 returns non-zero. Otherwise return 0.
33868 * include/grub/partition.h (grub_partition_map_iterate): Return
33869 int instead of void.
33871 * include/grub/normal.h (grub_normal_do_completion): New prototype.
33873 * include/grub/misc.h (grub_strncmp): Change the type of N to
33876 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
33879 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
33880 unsigned explicitly before comparing it with I.
33882 * kern/main.c (grub_env_write_root): Add the attribute unused into
33885 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
33886 normal/completion.c.
33887 (normal_mod_SOURCES): Likewise.
33888 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33889 (normal_mod_SOURCES): Likewise.
33891 * normal/command.c (grub_iterate_commands): If ITERATE returns
33892 non-zero, return one immediately.
33894 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
33896 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
33897 * kern/i386/pc/startup.S: Updated Global Descriptor table's
33899 (grub_vbe_get_controller_info): New function.
33900 (grub_vbe_get_mode_info): Likewise.
33901 (grub_vbe_set_mode): Likewise.
33902 (grub_vbe_get_mode): Likewise.
33903 (grub_vbe_set_memory_window): Likewise.
33904 (grub_vbe_get_memory_window): Likewise.
33905 (grub_vbe_set_scanline_length): Likewise.
33906 (grub_vbe_get_scanline_length): Likewise.
33907 (grub_vbe_set_display_start): Likewise.
33908 (grub_vbe_get_display_start): Likewise.
33909 (grub_vbe_set_palette_data): Likewise.
33910 * include/grub/i386/pc/vbe.h: New file.
33912 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33914 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
33915 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
33916 * DISTLIST: Likewise.
33917 * kern/ieee1275/of.c: Moved to ...
33918 * kern/ieee1275/ieee1275.c: ... here.
33920 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33922 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
33923 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
33924 Pass 0 as `end' parameter to grub_strtoul().
33926 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33928 * include/grub/powerpc/ieee1275/console.h: Do not include
33929 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
33931 (grub_console_cur_color): Remove i386-specific prototype.
33932 (grub_console_real_putchar): Likewise.
33933 (grub_console_checkkey): Likewise.
33934 (grub_console_getkey): Likewise.
33935 (grub_console_getxy): Likewise.
33936 (grub_console_gotoxy): Likewise.
33937 (grub_console_cls): Likewise.
33938 (grub_console_setcursor): Likewise.
33939 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
33940 Include <grub/machine/console.h>.
33941 * term/ieee1275/ofconsole.c: Likewise.
33943 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
33945 * Makefile.in (LIBLZO): New variable.
33947 * configure.ac: Check for LZO version 2.
33949 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
33950 lzo/lzo1x.h instead of lzo1x.h.
33952 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
33955 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
33956 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
33958 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
33959 copying the data from PARTITION to P.
33961 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33963 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
33964 negative, unload the module.
33966 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
33967 map is "pc_partition_map" but not "pc".
33968 (usage): Fix the description. The options are --boot-image and
33969 --core-image but not --boot-file or --core-file.
33970 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
33971 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
33974 * util/i386/pc/grub-install.in: Do not specify --boot-file or
33975 --core-file. Specify INSTALL_DEVICE as an argument.
33977 * util/console.c: Include config.h.
33978 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
33979 [HAVE_NCURSES_H]: Include ncurses.h.
33980 [HAVE_CURSES_H]: Include curses.h.
33981 [!A_NORMAL] (A_NORMAL): Defined as zero.
33982 [!A_STANDOUT] (A_STANDOUT): Likewise.
33984 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
33986 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
33988 * configure.ac: Check for curses libraries and headers.
33990 * Makefile.in (LIBCURSES): New variable.
33992 * genmk.rb (Script::rule): Set the executable bits.
33994 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
33995 name of the PC partition map is "pc_partition_map" but not "pc".
33997 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33999 * util/i386/pc/grub-install.in (grub_probefs): New variable.
34000 (modules): Likewise.
34001 (usage): Added descriptions for --modules and --grub-probefs.
34002 Handle --modules and --grub-probefs. Save the arguments in MODULES
34003 and GRUB_PROBEFS, respectively.
34004 Auto-detect a filesystem module against GRUBDIR. If the result is
34005 empty and modules are not specified explicitly, abort the
34006 installation. Add the result to MODULES.
34008 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
34009 disk/powerpc/ieee1275/ofdisk.c,
34010 include/grub/powerpc/ieee1275/init.h and
34011 term/powerpc/ieee1275/ofconsole.c.
34012 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
34013 term/ieee1275/ofconsole.c.
34015 * include/grub/powerpc/ieee1275/console.h: Resurrected.
34017 * COPYING: Upgraded to the latest version. Only the address of the
34018 FSF office has changed.
34020 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
34022 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
34023 kern/ieee1275.c with kern/ieee1275/of.c.
34025 * kern/ieee1275.c: Moved to ...
34026 * kern/ieee1275/of.c: ... here.
34028 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
34030 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
34033 * config.guess: Updated to the latest version from gnulib.
34034 * config.sub: Likewise.
34035 * install.sh: Likewise.
34036 * mkinstalldirs: Likewise.
34038 * include/grub/console.h: Removed. This file is arch-specific. Do
34039 not put this in include/grub.
34041 * include/grub/i386/pc/console.h: Resurrected.
34043 * util/console.c: Include grub/machine/console.h instead of
34045 * util/grub-emu.c: Likewise.
34047 2005-08-04 Marco Gerards <metgerards@student.han.nl>
34049 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
34052 From Vincent Pelletier <subdino2004@yahoo.fr>
34053 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
34054 Redefined to use grub_getwh.
34055 (grub_term): New member named getwh.
34056 (grub_getwh): New prototype.
34057 * kern/term.c (grub_getwh): New function.
34058 * term/i386/pc/console.c (grub_console_getwh): New function.
34059 (grub_console_term): New member `getwh'.
34060 * term/i386/pc/vga.c (grub_vga_getwh): New function.
34061 (grub_vga_term): New member `getwh'.
34062 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
34064 (grub_ofconsole_getw): New function.
34065 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
34066 (grub_ofconsole_term): New field named getwh and new initial
34069 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
34071 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
34072 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
34073 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
34074 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
34075 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
34076 of <grub/machine/ieee1275.h>.
34077 * commands/ieee1275/reboot.c: Likewise.
34078 * boot/powerpc/ieee1275/ieee1275.c: Move ...
34079 * kern/ieee1275.c: ... to here. All users updated. Change all
34080 parameter structs to use new type `grub_ieee1275_cell_t'.
34081 * term/powerpc/ieee1275/ofconsole.c: Move ...
34082 * term/ieee1275/ofconsole.c: ... to here. All users updated.
34083 * disk/powerpc/ieee1275/ofdisk.c: Move ...
34084 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
34085 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
34087 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
34088 Remove unused prototypes. All users updated.
34089 * include/grub/powerpc/ieee1275/console.h: Removed.
34090 * include/grub/powerpc/ieee1275/ieee1275.h: Define
34091 `grub_ieee1275_cell_t'.
34092 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
34093 Cast comparisons with -1 to the correct type.
34094 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
34095 type to match `grub_ieee1275_entry_fn'.
34097 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
34099 * DISTLIST: Added util/i386/pc/grub-probefs.c.
34101 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
34102 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
34104 (grub_probefs_SOURCES): New variable.
34106 * util/i386/pc/grub-probefs.c: New file.
34108 * util/i386/pc/grub-setup.c (main): Call
34109 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
34110 grub_hfs_init and grub_jfs_init to initialize the system. Call
34111 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
34112 grub_pc_partition_map_fini to finish the system.
34114 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
34116 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
34118 (grub_multiboot_load_elf32): Likewise.
34119 (grub_multiboot_is_elf64): Likewise.
34120 (grub_multiboot_load_elf64): Likewise.
34121 (grub_multiboot_load_elf): Likewise.
34122 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
34123 an ELF32 or ELF64 file.
34124 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
34126 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
34127 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
34128 NULL before calling FS->LABEL.
34129 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
34130 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
34131 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
34132 before calling FS->LABEL.
34134 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
34136 * util/i386/pc/grub-install.in (datadir): New variable.
34138 (pkgdatadir): New variable.
34139 (pkglibdir): Removed.
34141 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
34143 * DISTLIST: Added util/i386/pc/grub-install.in.
34145 * util/i386/pc/grub-install.in: New file.
34147 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
34148 (grub_install_SOURCES): Likewise.
34150 * genmk.rb: Added support for scripts.
34151 (Script): New class.
34152 (scripts): New variable.
34154 * Makefile.in (install-local): Install sbin_SCRIPTS by
34156 (uninstall): Remove sbin_SCRIPTS.
34158 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
34159 device, try to get a GRUB device by
34160 grub_util_biosdisk_get_grub_dev.
34163 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
34164 description for --device-map.
34166 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
34168 Change the semantics of variable hooks. They now return strings
34169 instead of error values.
34171 * util/i386/pc/grub-setup.c: Include grub/env.h.
34172 (setup): Use grub_device_set_root instead of grub_env_set.
34174 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
34175 grub_env_get instead of grub_device_set_root and
34176 grub_device_get_root, respectively.
34178 * kern/main.c (grub_env_write_root): New function.
34179 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
34180 grub_env_set instead of grub_device_set_root.
34182 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
34184 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
34185 rather than calling ENV->WRITE_HOOK afterwards.
34186 (grub_env_get): Return the result of ENV->READ_HOOK rather than
34187 passing a pointer of a pointer.
34188 (grub_register_variable_hook): Change the types of "read_hook" and
34189 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
34191 Allocate the default empty string on the heap, because this string
34192 may be freed later.
34194 * kern/device.c: Include grub/env.h.
34195 (grub_device_set_root): Removed.
34196 (grub_device_get_root): Likewise.
34197 (grub_device_open): Use grub_env_get instead of
34198 grub_device_get_root.
34200 * include/grub/env.h (grub_env_read_hook_t): New type.
34201 (grub_env_write_hook_t): Likewise.
34202 (grub_env_var): Change the types of "read_hook" and "write_hook"
34203 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
34204 (grub_register_variable_hook): Likewise.
34206 * include/grub/device.h (grub_device_set_root): Removed.
34207 (grub_device_set_root): Likewise.
34209 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
34210 make sure that DIRNAME terminates with '/', so that
34211 grub_fat_find_dir will fail if PATH is not a directory.
34213 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
34215 Use the qualifier auto for print_files and print_files_long.
34216 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
34218 Put a newline only if there is no error.
34219 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
34222 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
34224 * kern/partition.c (grub_partition_probe): Initialize PART to
34225 NULL. Otherwise, when no partition map is registered, this returns
34228 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
34230 * partmap/apple.c (apple_partition_map_iterate): Check if POS
34231 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
34234 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
34236 * commands/ls.c (grub_ls_list_disks): Print the filesystem
34237 information on each device, if it does not have partitions. Print
34238 "Device" instead of "Disk", because this function is not specific
34241 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
34242 static to ensure that it is put on the memory rather than a
34245 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
34247 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
34248 (grub_cat_init): Likewise.
34249 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
34250 (options): Likewise.
34251 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
34252 (grub_configfile_init): Likewise.
34253 * font/manager.c (GRUB_MOD_INIT): Likewise.
34254 * commands/help.c (GRUB_MOD_INIT): Likewise.
34255 (grub_help_init): Likewise.
34256 * normal/command.c (grub_command_init): Likewise.
34257 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
34258 * disk/loopback.c (grub_loop_init): Likewise.
34259 (GRUB_MOD_INIT): Likewise.
34260 * commands/ls.c (grub_ls_init): Likewise.
34261 (GRUB_MOD_INIT): Likewise.
34262 (options): Likewise.
34263 * commands/boot.c (grub_boot_init): Likewise.
34264 (GRUB_MOD_INIT): Likewise.
34265 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
34266 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
34267 (GRUB_MOD_INIT): Likewise.
34268 * commands/cmp.c (grub_cmp_init): Likewise.
34269 (GRUB_MOD_INIT): Likewise.
34271 * normal/arg.c: Use <> instead of "" to include header files.
34272 (SHORT_ARG_HELP): New macro.
34273 (SHORT_ARG_USAGE): Likewise.
34274 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
34275 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
34277 (find_short): Check if C is 'h' or 'u' explicitly.
34278 (grub_arg_show_help): Use space characters instead of tabs. Treat
34279 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
34280 are shown with --help and --usage only if they are not used for
34281 the command itself.
34282 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
34285 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
34286 const into "longarg". Change the type of "shortarg" to int.
34288 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
34290 * boot/i386/pc/boot.S (boot_drive_check): New label.
34292 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
34295 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
34296 which do not pass a boot drive correctly. Copied from GRUB Legacy.
34298 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
34300 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
34301 When turning off Gate A20, skip the check and return immediately,
34302 because this is not fatal usually.
34304 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
34306 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
34307 be 0x7C00 instead of 0x8000.
34309 * boot/i386/pc/pxeboot.S: Rewritten.
34311 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
34313 (gate_a20_check_state): Read a byte from 0x108000. Invert the
34316 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
34318 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
34319 robustness. This routine now supports a BIOS call and System
34320 Control Port A to modify the gate A20.
34322 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
34323 Increased to 0x440.
34325 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
34327 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
34328 device path and resulting ihandle.
34329 (grub_ofdisk_close): dprintf the ihandle being closed.
34330 (grub_ofdisk_read): dprintf function parameters.
34331 * kern/mm.c (grub_mm_init_region): Likewise.
34332 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
34333 (grub_linux_boot): dprintf the Linux entry point, initrd address and
34334 size, and boot arguments.
34335 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
34336 before loading into memory.
34337 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
34338 before loading into memory.
34340 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
34342 * kern/mm.c: Added much documentation.
34343 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
34344 8, set to 5 instead of 8.
34346 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
34348 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
34350 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
34351 (grub_mkdevicemap_SOURCES): New variable.
34353 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
34354 lib/device.c of GRUB Legacy.
34356 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
34358 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
34359 instead of PATH is NULL.
34361 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
34363 * commands/cmp.c (BUFFER_SIZE): New macro.
34364 (grub_cmd_cmp): Close the right file at the right time. Compare
34365 only data just read. Don't report files of different size as
34366 identical. Dynamically allocate buffers. Move variable
34367 declarations at the beginning of function.
34369 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
34371 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
34374 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
34376 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
34377 when backspace is pressed at beginning of line.
34379 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
34381 * DISTLIST: Added genfslist.sh.
34383 * normal/main.c (fs_module_list): New variable.
34384 (autoload_fs_module): New function.
34385 (read_fs_list): Likewise.
34386 (grub_normal_execute): Call read_fs_list.
34388 * kern/fs.c (grub_fs_autoload_hook): New variable.
34389 (grub_fs_probe): Added support for auto-loading.
34391 * include/grub/normal.h (struct grub_fs_module_list): New struct.
34392 (grub_fs_module_list_t): New type.
34394 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
34395 (grub_fs_autoload_hook): New prototype.
34397 * genfslist.sh: New file.
34399 * genmk.rb: Added a rule to generate a filesystem list.
34401 2005-06-30 Marco Gerards <metgerards@student.han.nl>
34403 * configure.ac: Fix the test for cross-compiling.
34405 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
34406 define GRUB_UTIL anymore.
34408 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
34409 so this function works on other systems than just big endian.
34410 (load_modules): Likewise.
34411 (add_segments): Likewise.
34413 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
34415 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
34416 contains `l' modifier, get a long from va_arg().
34418 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
34420 * kern/mm.c (grub_free): If the next free block which is being
34421 merged is the first free block, set the first block to the block
34423 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
34425 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
34427 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
34428 `grub_ieee1275_chosen'.
34430 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
34432 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
34433 (grub_ieee1275_chosen): New variable.
34434 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
34436 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
34437 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
34438 Rename first argument to `phandle' for consistency.
34439 (grub_ieee1275_get_property_length): Likewise.
34440 (grub_ieee1275_next_property): Likewise. Change type of first argument
34441 to grub_ieee1275_phandle_t.
34442 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
34443 Move export next to declaration.
34444 (grub_ieee1275_chosen): New variable.
34445 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
34446 Correct cosmetic typo.
34447 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
34448 `grub_ieee1275_chosen'.
34449 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
34450 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
34451 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
34452 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
34453 `grub_ieee1275_chosen'.
34455 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
34457 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
34459 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
34460 /chosen/bootargs as "variable=value" pairs.
34462 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
34464 * include/grub/misc.h (grub_dprintf): New macro.
34465 (grub_real_dprintf): New prototype.
34466 (grub_strword): Likewise.
34467 (grub_iswordseparator): Likewise.
34468 * kern/misc.c (grub_real_dprintf): New function.
34469 (grub_strword): Likewise.
34470 (grub_iswordseparator): Likewise.
34472 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
34474 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
34475 (roundup): Remove macro.
34476 (grub_ieee1275_flags): Make static.
34477 (grub_ieee1275_realmode): Remove.
34478 (grub_ieee1275_test_flag): New function.
34479 (grub_ieee1275_set_flag): Likewise.
34480 (find_options): Rename to `grub_ieee1275_find_options'; update
34481 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
34482 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
34483 (cmain): New prototype.
34484 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
34485 `grub_ieee1275_flags' directly.
34486 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
34487 machine/biosdisk.h.
34488 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
34489 Don't include grub/machine/init.h.
34490 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
34491 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
34493 (grub_ieee1275_realmode): Likewise.
34494 (grub_ieee1275_flag): New enum.
34495 (grub_ieee1275_test_flag): New prototype.
34496 (grub_ieee1275_set_flag): New prototype.
34497 * include/grub/powerpc/ieee1275/init.h: Remove file.
34498 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
34499 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
34500 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
34501 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
34503 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
34504 `grub_ieee1275_test_flag'.
34505 (grub_ieee1275_encode_devname): Likewise.
34507 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
34509 * include/grub/powerpc/ieee1275/ieee1275.h
34510 (grub_ieee1275_encode_devname): New prototype.
34511 (grub_ieee1275_get_filename): Likewise.
34512 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
34514 (grub_set_prefix): Likewise.
34515 (grub_machine_init): Call grub_set_prefix.
34516 * kern/powerpc/ieee1275/openfw.c: Fix typos.
34517 (grub_parse_type): New enum.
34518 (grub_ieee1275_get_devargs): New function.
34519 (grub_ieee1275_get_devname): Likewise.
34520 (grub_ieee1275_parse_args): Likewise.
34521 (grub_ieee1275_get_filename): Likewise.
34522 (grub_ieee1275_encode_devname): Likewise.
34524 2005-03-30 Marco Gerards <metgerards@student.han.nl>
34526 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
34527 `grub_loader_unset'.
34529 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
34531 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
34532 instead of grub_ieee1275_interpret.
34533 (grub_halt_init): New function.
34534 (grub_halt_fini): Likewise.
34535 (GRUB_MOD_INIT): Correct message grammar.
34536 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
34537 instead of grub_ieee1275_interpret.
34538 (grub_reboot_init): New function.
34539 (grub_reboot_fini): Likewise.
34540 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
34541 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
34542 util/i386/pc/misc.c with commands/ieee1275/halt.c,
34543 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
34544 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
34546 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
34548 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
34550 (grub_halt): Likewise.
34551 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
34552 (cmain): Remove __attribute__((unused)).
34553 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
34554 (grub_heap_len): Likewise.
34555 (grub_machine_fini): New function.
34556 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
34557 (grub_halt): Likewise.
34558 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
34560 * util/powerpc/ieee1275/misc.c: New file.
34562 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
34564 * DISTLIST: New file.
34565 * gendistlist.sh: Likewise.
34567 * Makefile.in (COMMON_DISTFILES): Removed.
34568 (BOOT_DISTFILES): Likewise.
34569 (CONF_DISTFILES): Likewise.
34570 (DISK_DISTFILES): Likewise.
34571 (FS_DISTFILES): Likewise.
34572 (INCLUDE_DISTFILES): Likewise.
34573 (KERN_DISTFILES): Likewise.
34574 (LOADER_DISTFILES): Likewise.
34575 (TERM_DISTFILES): Likewise.
34576 (UTIL_DISTFILES): Likewise.
34577 (DISTFILES): Likewise.
34578 (uninstall): Uninstall files in $(pkgdata_DATA).
34579 (DISTLIST): New target.
34580 (distdir): Use the contents of the file DISTLIST to get a list of
34583 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
34585 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
34586 descriptor. This is ported from GRUB Legacy.
34588 * gencmdlist.sh: Added an extra semicolon to make it work with
34589 old sed versions. Reported by Robert Bihlmeyer
34590 <robbe@orcus.priv.at>.
34592 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
34594 Automatic loading of commands is supported.
34596 * normal/main.c (read_command_list): New function.
34597 (grub_normal_execute): Call read_command_list.
34599 * normal/command.c (grub_register_command): Return zero or CMD.
34600 Allocate CMD->NAME from the heap.
34601 Initialize CMD->MODULE_NAME to zero.
34602 Find the same name as well. If the same command is found and it is
34603 a dummy command, overwrite members. If it is not a dummy command,
34605 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
34606 (grub_command_find): If a dummy command is found, load a module
34607 and retry to find a command only once.
34609 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
34610 make sure that each command is loaded.
34612 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
34614 (struct grub_command): Remove const from the member `name'.
34615 Add a new member `module_name'.
34616 (grub_register_command): Return grub_command_t.
34618 * commands/help.c (grub_cmd_help): Call grub_command_find to make
34619 sure that each command is loaded.
34621 * genmk.rb (PModule::rule): Specify a module name without the
34622 suffix ".mod" to gencmdlist.sh.
34624 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
34626 * gencmdlist.sh: New file.
34628 * genmk.rb (PModule::rule): Generate a rule for a command list.
34630 Generate command.lst from $(COMMANDFILES).
34632 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
34633 (DATA): Added $(pkgdata_DATA).
34634 (install-local): Install files in $(pkgdata_DATA).
34636 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
34638 * term/i386/pc/vga.c (debug_command): Removed.
34639 (GRUB_MOD_INIT): Do not register the command "debug".
34641 From Hollis Blanchard:
34642 * commands/configfile.c: New file.
34643 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34644 commands/configfile.c.
34645 (pkgdata_MODULES): Added configfile.mod.
34646 (configfile_mod_SOURCES): New variable.
34647 (configfile_mod_CFLAGS): Likewise.
34648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
34649 commands/configfile.c.
34650 (pkgdata_MODULES): Added configfile.mod.
34651 (configfile_mod_SOURCES): New variable.
34652 (configfile_mod_CFLAGS): Likewise.
34653 * util/grub-emu.c (main): Call grub_configfile_init and
34654 grub_configfile_fini.
34655 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
34657 [GRUB_UTIL] (grub_configfile_fini): Likewise.
34659 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
34661 * normal/arg.c (grub_arg_show_help): Do not show the bug report
34664 * commands/help.c (grub_cmd_help): Do not print newlines after
34665 the last command in print_command_help.
34667 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
34669 * commands/default.h: New file.
34670 * commands/timeout.h: Likewise.
34671 * normal/context.c: Likewise.
34673 * util/misc.c: Do not include sys/times.h.
34674 Include sys/time.h and grub/machine/time.h.
34675 (grub_get_rtc): Rewritten with gettimeofday.
34677 * util/grub-emu.c (main): Call grub_default_init and
34678 grub_timeout_init before grub_normal_init, and call
34679 grub_timeout_fini and grub_default_fini after grub_main.
34681 * util/console.c (grub_ncurses_checkkey): Return the read
34684 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
34687 * normal/main.c (read_config_file): Push MENU. If this fails,
34688 print an error and wait for a user input.
34689 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
34690 If a menu is empty or an error occurs, pop MENU.
34691 (grub_normal_execute): Pop and free MENU after grub_menu_run
34694 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
34696 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
34698 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
34700 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
34702 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
34705 * include/grub/normal.h (struct grub_menu_list): New struct.
34706 (grub_menu_list_t): New type.
34707 (struct grub_context): New struct.
34708 (grub_context_t): New type.
34709 (grub_register_command): Got rid of EXPORT_FUNC.
34710 (grub_unregister_command): Likewise.
34711 (grub_context_get): New prototype.
34712 (grub_context_get_current_menu): Likewise.
34713 (grub_context_push_menu): Likewise.
34714 (grub_context_pop_menu): Likewise.
34715 [GRUB_UTIL] (grub_default_init): Likewise.
34716 [GRUB_UTIL] (grub_default_fini): Likewise.
34717 [GRUB_UTIL] (grub_timeout_init): Likewise.
34718 [GRUB_UTIL] (grub_timeout_fini): Likewise.
34720 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
34721 commands/timeout.c and normal/context.c.
34722 (pkgdata_MODULES): Added default.mod and timeout.mod.
34723 (normal_mod_SOURCES): Added normal/context.c.
34724 (default_mod_SOURCES): New variable.
34725 (default_mod_CFLAGS): Likewise.
34726 (timeout_mod_SOURCES): Likewise.
34727 (timeout_mod_CFLAGS): Likewise.
34728 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
34730 (pkgdata_MODULES): Added default.mod and timeout.mod.
34731 (normal_mod_SOURCES): Added normal/context.c.
34732 (default_mod_SOURCES): New variable.
34733 (default_mod_CFLAGS): Likewise.
34734 (timeout_mod_SOURCES): Likewise.
34735 (timeout_mod_CFLAGS): Likewise.
34737 * Makefile.in (all-local): Added $(MKFILES).
34739 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
34741 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
34742 (grub_emu_SOURCES): Likewise.
34743 (pkgdata_MODULES): Add `sun.mod'.
34744 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
34745 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34747 (pkgdata_MODULES): Add `sun.mod'.
34748 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
34749 * include/grub/partition.h (grub_sun_partition_map_init): New
34751 (grub_sun_partition_map_fini): Likewise.
34752 * partmap/sun.c: New file.
34753 * util/grub-emu.c (main): Initialize and de-initialize the sun
34754 partitionmap support.
34756 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
34758 This implements an Emacs-like menu entry editor.
34760 * normal/menu_entry.c: New file.
34762 * util/console.c (grub_ncurses_putchar): Translate some Unicode
34763 characters to ASCII.
34764 (saved_char): New variable.
34765 (grub_ncurses_checkkey): Rewritten completely.
34766 (grub_ncurses_getkey): Likewise.
34767 (grub_ncurses_init): Call raw instead of cbreak.
34769 * normal/menu.c (print_entry): Do not put a space.
34770 (init_page): Renamed to ...
34771 (grub_menu_init_page): ... this. All callers changed.
34772 (edit_menu_entry): Removed.
34773 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
34775 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
34777 * kern/misc.c (grub_vprintf): Call grub_refresh.
34779 * normal/menu.c (DISP_LEFT): Renamed to ...
34780 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
34781 * normal/menu.c (DISP_UP): Renamed to ...
34782 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
34783 * normal/menu.c (DISP_RIGHT): Renamed to ...
34784 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
34785 * normal/menu.c (DISP_DOWN): Renamed to ...
34786 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
34787 * normal/menu.c (DISP_HLINE): Renamed to ...
34788 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
34789 * normal/menu.c (DISP_VLINE): Renamed to ...
34790 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
34791 * normal/menu.c (DISP_UL): Renamed to ...
34792 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
34793 * normal/menu.c (DISP_UR): Renamed to ...
34794 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
34795 * normal/menu.c (DISP_LL): Renamed to ...
34796 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
34797 * normal/menu.c (DISP_LR): Renamed to ...
34798 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
34799 * normal/menu.c (TERM_WIDTH): Renamed to ...
34800 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
34801 * normal/menu.c (TERM_HEIGHT): Renamed to ...
34802 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
34803 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
34804 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
34805 * normal/menu.c (TERM_MARGIN): Renamed to ...
34806 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
34807 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
34808 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
34809 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
34810 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
34811 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
34812 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
34813 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
34814 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
34815 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
34816 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
34817 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
34818 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
34819 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
34820 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
34821 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
34822 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
34823 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
34824 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
34825 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
34826 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
34827 All callers changed.
34829 * include/grub/normal.h: New prototype.
34831 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34832 normal/menu_entry.c.
34833 (normal_mod_SOURCES): Likewise.
34834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34835 (normal_mod_SOURCES): Likewise.
34837 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
34839 * include/grub/normal.h (grub_halt_init): New prototype.
34840 (grub_halt_fini): Likewise.
34841 (grub_reboot_init): Likewise.
34842 (grub_reboot_fini): Likewise.
34844 * util/grub-emu.c: Include signal.h.
34845 (main_env): New global variable.
34846 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
34848 (grub_machine_fini): New function.
34849 (main): Call grub_halt_init and grub_reboot_init before
34850 grub_main, and grub_reboot_fini and grub_halt_fini after it.
34851 Call setjmp with MAIN_ENV to go back afterwards.
34852 Call grub_machine_fini right before return.
34854 * include/grub/util/misc.h: Include setjmp.h.
34855 (main_env): New prototype.
34857 * include/grub/kernel.h (grub_machine_fini): New prototype.
34858 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
34859 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
34861 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
34862 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
34863 * term/i386/pc/console.c (grub_console_fini): Likewise.
34865 * util/i386/pc/misc.c: New file.
34867 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34868 util/i386/pc/misc.c, commands/i386/pc/halt.c and
34869 commands/i386/pc/reboot.c.
34871 2005-02-14 Guillem Jover <guillem@hadrons.org>
34873 * include/grub/dl.h (grub_dl_check_header): New prototype.
34874 (grub_arch_dl_check_header): Change return type to grub_err_t,
34875 remove size parameter and export function. Update all callers.
34876 * kern/dl.c (grub_dl_check_header): New function.
34877 (grub_dl_load_core): Use `grub_dl_check_header' instead of
34878 `grub_arch_dl_check_header'. Check ELF type. Check if sections
34879 are inside the core.
34880 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
34881 independent ELF header checks.
34882 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
34883 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
34884 `grub_dl_check_header' instead of explicit checks. Check for the
34886 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
34887 `grub_dl_check_header' instead of explicit checks. Remove arch
34888 specific ELF header checks.
34890 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
34893 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
34895 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
34896 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
34898 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
34900 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
34901 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
34902 (part_map_iterate): Clear `grub_errno' and return 0 if
34903 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
34904 * partmap/amiga.c (amiga_partition_map_iterate): Return
34905 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
34906 * partmap/apple.c (apple_partition_map_iterate): Likewise.
34908 2005-02-01 Guillem Jover <guillem@hadrons.org>
34910 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
34913 2005-01-31 Marco Gerards <metgerards@student.han.nl>
34915 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
34917 (grub_rescue_cmd_linux): New prototype.
34918 (grub_rescue_cmd_initrd): Likewise.
34919 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
34921 (grub_linux_release_mem): Release the memory for the initrd.
34922 (grub_load_linux): Renamed from this...
34923 (grub_rescue_cmd_linux): ...To this. Changed all callers.
34924 Changed `entry' not to be static. Loop over memory regions to
34925 find another one when the default fails.
34926 (grub_rescue_cmd_initrd): New function.
34927 (grub_linux_init): Remove function.
34928 (grub_linux_fini): Likewise.
34929 (GRUB_MOD_INIT): Register `initrd'.
34930 (GRUB_MOD_FINI): Unregister `initrd'.
34931 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
34933 (grub_linux_normal_fini): Likewise.
34934 (GRUB_MOD_INIT): Register `initrd'.
34935 (GRUB_MOD_FINI): Unregister `initrd'.
34937 2005-01-31 Marco Gerards <metgerards@student.han.nl>
34939 * commands/help.c: New file.
34940 * normal/arg.c (show_help): Renamed to...
34941 (grub_arg_show_help): ... this.
34942 * commands/i386/pc/halt.c: New file.
34943 * commands/i386/pc/reboot.c: Likewise.
34944 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
34945 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
34946 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
34947 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
34949 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34951 (pkgdata_MODULES): Add `help.mod'.
34952 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
34953 * grub/i386/pc/init.h (grub_reboot): New prototype.
34954 (grub_halt): Likewise.
34955 * include/grub/normal.h (grub_arg_show_help): New prototype.
34956 (grub_help_init): Likewise.
34957 (grub_help_fini): Likewise.
34958 * util/grub-emu.c (main): Initialize and deinitialize the help
34961 * normal/cmdline.c (grub_cmdline_get): Doc fix.
34963 * normal/command.c (grub_command_init): Fixed the description of
34964 the `set' and `unset' commands.
34966 2005-01-31 Marco Gerards <metgerards@student.han.nl>
34968 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
34970 * commands/ieee1275/halt.c: New file.
34971 * commands/ieee1275/reboot.c: Likewise.
34972 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
34973 `__attribute__ ((unused))'. Some GCS related fixed.
34974 (grub_suspend_init) [GRUB_UTIL]: Function removed.
34975 (grub_suspend_fini): Likewise.
34976 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
34978 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
34979 (halt_mod_CFLAGS): New variables.
34980 * include/grub/powerpc/ieee1275/ieee1275.h
34981 (grub_ieee1275_interpret): New prototype.
34983 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
34985 * include/grub/misc.h (memmove): New prototype.
34986 (memcpy): Likewise.
34988 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
34990 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
34991 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
34993 2005-01-22 Marco Gerards <metgerards@student.han.nl>
34995 * kern/misc.c (grub_strndup): Function rewritten.
34997 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
34999 * normal/menu.c (TERM_WIDTH): Macro redefined.
35000 (TERM_TOP_BORDER_Y): Likewise.
35001 (draw_border): Replaced while-loop by a for-loop. Make the number
35002 of lines consistent with the number of lines displayed in
35003 print_entries. Added a margin below the rectangle.
35004 (print_entry): Make the entry fit in the rectangle.
35005 (print_entries): Display the scroll arrows next to the right
35008 2005-01-21 Marco Gerards <metgerards@student.han.nl>
35010 * fs/minix.c (grub_minix_find_file): Reserve more space for
35011 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
35012 `grub_strncpy' to copy `path' into it.
35014 2005-01-21 Marco Gerards <metgerards@student.han.nl>
35016 Add the loopback device, a device via which files can be accessed
35019 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
35020 (pkgdata_MODULES): Add loopback.mod.
35021 (loopback_mod_SOURCES): New variable.
35022 (loopback_mod_CFLAGS): Likewise.
35023 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
35025 (pkgdata_MODULES): Add loopback.mod.
35026 (loopback_mod_SOURCES): New variable.
35027 (loopback_mod_CFLAGS): Likewise.
35028 * disk/loopback.c: new file.
35029 * include/grub/normal.h (grub_loop_init): New prototype.
35030 (grub_loop_fini): New prototype.
35031 * util/grub-emu.c (main): Initialize and de-initialize loopback
35033 * include/grub/disk.h (grub_disk_dev_id): Add
35034 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
35036 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
35038 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
35040 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
35041 (suspend_mod_SOURCES): New variable.
35042 (suspend_mod_CFLAGS): Likewise.
35043 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
35045 * commands/ieee1275/suspend.c: New file.
35047 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
35049 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
35050 ((unused))' to `__attribute__ ((used))'.
35051 (GRUB_MOD_FINI): Likewise.
35052 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
35053 * genmk.rb (PModule): Assign space to common symbols when linking
35056 2005-01-20 Marco Gerards <metgerards@student.han.nl>
35058 * include/grub/mm.h (grub_mm_init_region): Change the type of the
35059 `unsigned' arguments to `grub_size_t'.
35060 (grub_malloc): Likewise.
35061 (grub_realloc): Likewise.
35062 (grub_memalign): Likewise.
35063 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
35064 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
35065 * util/misc.c (grub_malloc): Likewise.
35066 (grub_realloc): Likewise.
35067 * kern/mm.c (get_header_from_pointer): Change the casts to
35068 `unsigned' into a cast to `grub_size_t'.
35070 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
35071 point to `currnode' when `currnode' is changed.
35073 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
35074 Schottelius <nico-linux@schottelius.org>.
35076 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
35078 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
35079 (note_path): Remove variable.
35080 (GRUB_IEEE1275_NOTE_NAME): New macro.
35081 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
35082 (grub_ieee1275_note_hdr): New structure.
35083 (grub_ieee1275_note_desc): Likewise.
35084 (grub_ieee1275_note): Likewise.
35085 (load_note): Remove `dir' argument. All callers updated. Remove
35086 `note_img' and `path'. Do not load a file from `note_path'.
35087 Initialize a struct grub_ieee1275_note and write that to `out'.
35088 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
35090 2005-01-05 Marco Gerards <metgerards@student.han.nl>
35092 * util/misc.c (grub_util_read_image): Revert last change. It
35093 called `grub_util_read_at', which seeks from the beginning of the
35096 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
35098 * TODO: Add note about endianness in grub-mkimage.
35099 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
35101 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
35102 (grub_mkimage_SOURCES): New target.
35103 * include/grub/kernel.h (grub_start_addr): Remove variable.
35104 (grub_end_addr): Likewise.
35105 (grub_total_module_size): Likewise.
35106 (grub_kernel_image_size): Likewise.
35107 (GRUB_MODULE_MAGIC): New constant.
35108 (grub_module_info): New structure.
35109 (grub_arch_modules_addr): New prototype.
35110 (grub_get_end_addr): Remove prototype.
35111 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
35112 * include/grub/powerpc/ieee1275/kernel.h: New file.
35113 * include/grub/util/misc.h (grub_util_get_fp_size): New
35115 (grub_util_read_at): Likewise.
35116 (grub_util_write_image_at): Likewise.
35117 * kern/main.c (grub_get_end_addr): Remove function.
35118 (grub_load_modules): Call grub_arch_modules_addr instead of using
35119 grub_end_addr. Look for a grub_module_info struct in memory. Use
35120 the grub_module_info fields instead of calling grub_get_end_addr
35121 as loop conditions. Move grub_add_unused_region code here.
35122 (grub_add_unused_region): Remove function.
35123 * kern/i386/pc/init.c: Include grub/cache.h.
35124 (grub_machine_init): Remove call to grub_get_end_addr. Remove
35125 one call to add_mem_region.
35126 (grub_arch_modules_addr): New function.
35127 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
35128 (grub_total_module_size): Likewise.
35129 Include grub/machine/kernel.h.
35130 (grub_arch_modules_addr): New function.
35131 * util/grub-emu.c (grub_end_addr): Remove variable.
35132 (grub_total_module_size): Likewise.
35133 (grub_arch_modules_addr): New function.
35134 * util/misc.c: Include unistd.h.
35135 (grub_util_get_fp_size): New function.
35136 (grub_util_read_at): Likewise.
35137 (grub_util_write_image_at): Likewise.
35138 (grub_util_read_image): Call grub_util_read_at.
35139 (grub_util_write_image): Call grub_util_write_image_at.
35140 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
35141 additional memory in kernel_img for a struct grub_module_info.
35142 Fill in that grub_module_info.
35143 * util/powerpc/ieee1275/grub-mkimage.c: New file.
35145 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
35147 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
35149 * include/grub/powerpc/ieee1275/ieee1275.h
35150 (grub_ieee1275_milliseconds): New prototype.
35151 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
35153 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
35154 grub_ieee1275_milliseconds.
35156 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
35158 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
35160 (find_options): New function.
35161 (cmain): Call find_options.
35162 * include/grub/powerpc/ieee1275/ieee1275.h
35163 (grub_ieee1275_realmode): New extern variable.
35164 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
35165 grub_map if grub_ieee1275_realmode is false.
35167 2004-12-29 Marco Gerards <metgerards@student.han.nl>
35169 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
35170 lines are inserted and make it work like readline. Reported by
35171 Vincent Pelletier <subdino2004@yahoo.fr>.
35173 2004-12-28 Marco Gerards <metgerards@student.han.nl>
35175 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
35177 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
35178 `kern/powerpc/cache.S'.
35180 2004-12-27 Marco Gerards <metgerards@student.han.nl>
35182 * genmk.rb: Handle the `Program' class in the main loop. Written
35183 by Johan Rydberg <jrydberg@gnu.org>.
35184 (Program): New class.
35185 (programs): New variable.
35186 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
35187 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
35188 instead of "grub/kernel.h". Include <grub/machine/init.h>.
35189 (help_arch): Function removed.
35190 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
35191 `powerpc/libgcc.h' and `loader.h'.
35192 (pkgdata_PROGRAMS): New variable.
35193 (sbin_UTILITIES): Variable removed.
35194 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
35195 (grubof_SOURCES): Variable re-defined so it only includes the
35196 core functionality.
35197 (grubof_CFLAGS): Remove `-DGRUBOF'.
35198 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
35199 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
35200 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
35201 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
35202 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
35203 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
35204 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
35205 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
35206 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
35207 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
35208 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
35209 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
35210 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
35211 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
35212 (pc_mod_CFLAGS): New variables.
35213 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
35214 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
35215 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
35216 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
35218 * include/grub/i386/pc/init.h (grub_os_area_addr)
35219 (rub_os_area_size): ... to here.
35220 * include/grub/powerpc/ieee1275/ieee1275.h
35221 (grub_ieee1275_entry_fn): Export symbol.
35222 * include/grub/powerpc/ieee1275/init.h: New file.
35223 * include/grub/powerpc/libgcc.h: Likewise.
35224 * include/grub/cache.h: Likewise.
35225 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
35226 <hollis@penguinppc.org>.
35227 * kern/dl.c: Include <grub/cache.h>.
35228 (grub_dl_flush_cache): New function.
35229 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
35231 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
35232 (grub_console_init): Removed prototypes.
35233 (grub_machine_init): Don't initialize the modules anymore.
35234 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
35236 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
35237 Macro undef removed.
35238 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
35239 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
35240 relocation `R_PPC_REL32'. Return an error when the relocation is
35242 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
35243 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
35244 * util/misc.c (grub_arch_sync_caches): Likewise.
35246 2004-12-19 Marco Gerards <metgerards@student.han.nl>
35248 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
35249 `symlist.c', add `grubof_symlist.c'.
35250 (symlist.c): Variable removed.
35251 (grubof_HEADERS): Variable added.
35252 (grubof_symlist.c): New target.
35253 (kernel_syms.lst): Use `grubof_HEADERS' instead of
35254 `kernel_img_HEADERS'.
35255 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
35256 * kern/powerpc/dl.c: New file.
35257 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
35259 (grub_arch_dl_relocate_symbols): Likewise.
35260 (grub_register_exported_symbols): Likewise.
35262 2004-12-13 Marco Gerards <metgerards@student.han.nl>
35264 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
35265 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
35266 to fail instead. Reported by Vincent Pelletier
35267 <subdino2004@yahoo.fr>.
35269 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
35270 it is not allocated. Reported by Vincent Pelletier
35271 <subdino2004@yahoo.fr>.
35273 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
35274 output so the output looks better.
35276 2004-12-04 Marco Gerards <metgerards@student.han.nl>
35278 Modulize the partition map support and add support for the amiga
35281 * commands/ls.c: Include <grub/partition.h> instead of
35282 <grub/machine/partition.h>.
35283 * kern/disk.c: Likewise.
35284 * kern/rescue.c: Likewise.
35285 * loader/i386/pc/chainloader.c: Likewise.
35286 * normal/cmdline.c: Likewise.
35287 * kern/powerpc/ieee1275/init.c: Likewise.
35288 (grub_machine_init): Call `grub_pc_partition_map_init',
35289 `grub_amiga_partition_map_init' and
35290 `grub_apple_partition_map_init'.
35291 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
35292 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
35293 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
35294 `partition.h' and `pc_partition.h'.
35295 (grub_setup_SOURCES): Remove
35296 `disk/i386/pc/partition.c'. Add `kern/partition.c',
35297 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
35298 (grub_emu_SOURCES): Likewise.
35299 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
35300 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
35301 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
35302 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
35303 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
35304 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
35305 (grubof_SOURCES): Likewise.
35306 * disk/i386/pc/partition.c: File removed.
35307 * disk/powerpc/ieee1275/partition.c: Likewise.
35308 * include/grub/powerpc/ieee1275/partition.h: Likewise.
35309 * include/grub/i386/pc/partition.h: Likewise.
35310 * kern/partition.c: New file.
35311 * partmap/amiga.c: Likewise.
35312 * partmap/apple.c: Likewise.
35313 * partmap/pc.c: Likewise.
35314 * include/grub/partition.h: Likewise..
35315 * include/grub/pc_partition.h: Likewise.
35316 * util/grub-emu.c: Include <grub/partition.h> instead of
35317 <grub/machine/partition.h>.
35318 (main): Call `grub_pc_partition_map_init',
35319 `grub_amiga_partition_map_init' and
35320 `grub_apple_partition_map_init' and deinitialize afterwards.
35321 * util/i386/pc/biosdisk.c: Include `#include
35322 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
35323 `<grub/machine/partition.h>'.
35324 * util/i386/pc/grub-setup.c: Likewise.
35325 * util/i386/pc/biosdisk.c: Likewise.
35326 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
35327 partition information in case of a PC partition.
35328 * util/i386/pc/grub-setup.c: Include `#include
35329 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
35330 `<grub/machine/partition.h>'.
35331 (setup): Only access the PC specific partition information in case
35334 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
35336 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
35337 (grub_longjmp): Likewise.
35338 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
35340 * normal/powerpc/setjmp.S: New file.
35341 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
35342 `normal/powerpc/setjmp.S'.
35343 (grubof_CFLAGS): Add `-DGRUBOF'.
35344 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
35345 [GRUB_UTIL && !GRUBOF].
35347 2004-11-16 Marco Gerards <metgerards@student.han.nl>
35349 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
35350 property named `name'. Correctly handle the error returned by
35351 `grub_ieee1275_finddevice' if a device can not be opened.
35353 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
35355 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
35356 `actual' for negativity.
35357 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
35360 2004-11-01 Marco Gerards <metgerards@student.han.nl>
35362 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
35363 (PAGE_OFFSET): New macro.
35364 (CRTC_ADDR_PORT): Likewise.
35365 (CRTC_DATA_PORT): Likewise.
35366 (START_ADDR_HIGH_REGISTER): Likewise.
35367 (START_ADDR_LOW_REGISTER): Likewise.
35368 (GRAPHICS_ADDR_PORT): Likewise.
35369 (GRAPHICS_DATA_PORT): Likewise.
35370 (READ_MAP_REGISTER): Likewise.
35371 (INPUT_STATUS1_REGISTER): Likewise.
35372 (INPUT_STATUS1_VERTR_BIT): Likewise.
35373 (page): New variable.
35374 (wait_vretrace): New function.
35375 (set_read_map): Likewise.
35376 (set_start_address): Likewise.
35377 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
35379 (check_vga_mem): Take the page into account.
35380 (write_char): Likewise.
35381 (write_cursor): Likewise.
35382 (scroll_up): Likewise. Copy the page to the page that is not
35383 shown and switch between both pages.
35384 (grub_vga_putchar): Fix off by one error.
35385 (grub_vga_cls): Wait for the vertical retrace. Take the page into
35388 2004-11-01 Marco Gerards <metgerards@student.han.nl>
35390 Add support for iso9660 (including rockridge).
35392 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
35393 (iso9660_mod_SOURCES): New variable.
35394 (iso9660_mod_CFLAGS): Likewise.
35395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
35396 * include/grub/fs.h (grub_iso9660_init): New prototype.
35397 * util/grub-emu.c (main): Call `grub_iso9660_init'.
35398 * fs/iso9660.c: New file.
35400 * include/grub/misc.h (grub_strncat): New prototype.
35401 * kern/misc.c (grub_strncat): New function.
35403 * fs/hfs.c (grub_hfs_mount): Translate the error
35404 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
35405 * fs/jfs.c (grub_jfs_mount): Likewise.
35406 * fs/ufs.c (grub_ufs_mount): Likewise.
35408 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
35410 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
35411 which initialized BAT registers.
35412 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
35413 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
35415 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
35416 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
35418 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
35419 (grub_mapclaim): Likewise.
35420 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
35421 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
35424 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
35426 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
35427 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
35428 -ffreestanding and -msoft-float.
35430 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
35432 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
35433 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
35434 set in grub_ieee1275_flags.
35436 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
35438 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
35440 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
35441 grub_console_init first.
35442 Change the memory range used for grub_ieee1275_claim and
35443 grub_mm_init_region.
35444 Print an error message if the claim fails.
35445 Include <grub/misc.h>.
35447 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
35449 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
35450 Call grub_children_iterate for device nodes of type `scsi',
35452 (grub_ofdisk_open): Remove manual device alias resolution.
35453 Fix memory leak when device cannot be opened.
35454 * include/grub/powerpc/ieee1275/ieee1275.h
35455 (grub_children_iterate): New prototype.
35456 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
35458 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
35459 Return -1 if args.size was -1.
35461 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
35463 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
35464 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
35465 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
35466 Open Firmware's memory for it; claim memory from _start to _end.
35467 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
35468 (_end): New extern.
35469 (_start): Zero BSS from __bss_start to _end.
35470 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
35472 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
35474 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
35476 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
35477 -1 if args.base was -1.
35479 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
35481 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
35482 escape sequence instead of a literal ^L. Also call
35483 grub_ofconsole_gotoxy.
35485 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
35487 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
35488 void * arguments to grub_addr_t. All callers updated. Also make
35489 the `result' argument optional.
35490 (grub_ieee1275_release): change void * arguments to grub_addr_t.
35491 All callers updated.
35493 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
35495 * commands/ls.c (grub_ls_list_files): Use the string following the
35496 initial ')', if present, as the filesystem path.
35497 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
35499 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
35501 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
35503 Make the source code of the menu interface more readable.
35505 * normal/menu.c: Include grub/mm.h.
35506 (TERM_WIDTH): New macro.
35507 (TERM_HEIGHT): Likewise.
35508 (TERM_INFO_HEIGHT): Likewise.
35509 (TERM_MARGIN): Likewise.
35510 (TERM_SCROLL_WIDTH): Likewise.
35511 (TERM_TOP_BORDER_Y): Likewise.
35512 (TERM_LEFT_BORDER_X): Likewise.
35513 (TERM_BORDER_WIDTH): Likewise.
35514 (TERM_MESSAGE_HEIGHT): Likewise.
35515 (TERM_BORDER_HEIGHT): Likewise.
35516 (TERM_NUM_ENTRIES): Likewise.
35517 (TERM_FIRST_ENTRY_Y): Likewise.
35518 (TERM_ENTRY_WIDTH): Likewise.
35519 (TERM_CURSOR_X): Likewise.
35520 (draw_border): Use macros instead of magic numbers.
35521 (print_entry): Likewise.
35522 (print_entries): Likewise.
35523 (run_menu): Likewise. Also, handle the key 'e'.
35524 (run_menu_entry): Ignore empty command lines.
35525 (print_message): Added a new argument EDIT. If EDIT is true,
35526 print a different message.
35527 (init_page): Likewise.
35528 (edit_menu_entry): New function. Not implemented yet.
35530 2004-09-17 Marco Gerards <metgerards@student.han.nl>
35532 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
35533 can be loaded from normal mode.
35535 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
35537 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
35538 (multiboot_mod_CFLAGS): New variables.
35539 * loader/i386/pc/linux_normal.c: New file.
35540 * loader/i386/pc/multiboot_normal.c: Likewise.
35542 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
35543 attribute `unused'.
35545 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
35546 `fdiro' to read the mode information from instead of `diro'.
35548 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
35549 looking up a symlink.
35551 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
35553 * normal/command.c (grub_command_execute): Don't parse the
35554 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
35555 flags of the command.
35557 * normal/menu.c (grub_menu_run): Fix typo.
35559 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
35561 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
35563 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
35564 `y + 1' instead of `y - 1'.
35566 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
35568 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
35570 From Hollis Blanchard <hollis@penguinppc.org>:
35571 * kern/misc.c (memmove): New alias for grub_memmove.
35572 (memcmp): New alias for grub_memcmp.
35573 (memset): New alias for grub_memset.
35574 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
35575 Change "int handle" to "grub_ieee1275_phandle_t handle".
35576 * include/grub/powerpc/ieee1275/ieee1275.h
35577 (grub_ieee1275_get_property): Likewise.
35579 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
35581 Added normal mode command `chainloader' as module chain.mod, which
35582 depends on normal.mod and _chain.mod.
35584 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
35585 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
35586 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
35588 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
35589 but arguments parsing moved to ...
35590 (grub_chainloader_cmd): ... here. New function.
35591 * include/grub/i386/pc/chainloader.h: New file.
35592 * loader/i386/pc/chainloader_normal.c: Likewise.
35594 2004-09-11 Marco Gerards <metgerards@student.han.nl>
35596 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
35597 (grub_mkimage_LDFLAGS): Likewise.
35598 (grub_emu_SOURCES): Likewise.
35599 (kernel_img_HEADERS): Added fshelp.h.
35600 * fs/ext2.c: Include <grub/fshelp.h>.
35601 (FILETYPE_REG): New macro.
35602 (FILETYPE_INO_REG): Likewise.
35603 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
35605 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
35607 (grub_fshelp_node): New struct.
35608 (grub_ext2_data): Added member `diropen'. Changed member `inode'
35610 (grub_ext2_get_file_block): Removed function.
35611 (grub_ext2_read_block): New function.
35612 (grub_ext2_read_file): Replaced parameter `data' by `node'.
35613 This function was written.
35614 (grub_ext2_mount): Read the root inode. Create a diropen struct.
35615 (grub_ext2_find_file): Removed function.
35616 (grub_ext2_read_symlink): New function.
35617 (grub_ext2_iterate_dir): Likewise.
35618 (grub_ext2_open): Rewritten.
35619 (grub_ext2_dir): Rewritten.
35620 * include/grub/fshelp.h: New file.
35621 * fs/fshelp.c: Likewise.
35623 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
35625 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
35626 (print_message): Add a missing newline.
35627 (run_menu): Added timeout support.
35628 (run_menu_entry): New local function.
35629 (grub_menu_run): Added support for booting.
35631 * kern/loader.c (grub_loader_is_loaded): New function.
35633 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
35634 (grub_get_rtc): Exported.
35636 * include/grub/i386/pc/time.h: Include grub/symbol.h.
35637 (grub_get_rtc): Exported.
35639 * include/grub/normal.h (struct grub_command_list): Remove
35640 constant from the member `command'.
35642 * include/grub/loader.h (grub_loader_is_loaded): Declared.
35644 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
35646 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
35648 2004-08-28 Marco Gerards <metgerards@student.han.nl>
35650 Add support for the JFS filesystem.
35652 * fs/jfs.c: New file.
35653 * include/grub/fs.h (grub_jfs_init): New prototype.
35654 (grub_jfs_fini): New prototype.
35655 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
35656 (grub_emu_SOURCES): Likewise.
35657 (pkgdata_MODULES): Add jfs.mod.
35658 (jfs_mod_SOURCES): New variable.
35659 (jfs_mod_CFLAGS): Likewise.
35660 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
35661 (grubof_SOURCES): Likewise.
35662 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
35664 * fs/fat.c (grub_fat_find_dir): Convert the filename little
35665 endian to the host endian.
35666 (grub_fat_utf16_to_utf8): Move function from there...
35667 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
35668 the endianness of the source string anymore.
35669 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
35671 2004-08-24 Marco Gerards <metgerards@student.han.nl>
35673 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
35674 (grub_boot_fini) [GRUB_UTIL]: Likewise.
35675 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
35676 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
35678 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
35679 (grub_hfs_iterate_dir): Make the function static. Add prototypes
35680 for `node_found' and `it_dir'.
35681 (grub_hfs_dir): Add prototype for `dir_hook'.
35683 * fs/minix.c (grub_minix_get_file_block): Add prototype for
35684 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
35685 and `indir32' to silence a gcc warning.
35687 * include/grub/fs.h (grub_hfs_init): New prototype.
35688 (grub_hfs_fini): Likewise.
35691 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
35693 Each disk device has its own id now. This is useful to make use
35694 of multiple disk devices.
35696 * include/grub/disk.h (grub_disk_dev_id): New enum.
35697 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
35698 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
35700 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
35701 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
35703 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
35704 GRUB_DISK_DEVICE_OFDISK_ID as an id.
35706 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
35707 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
35709 * include/grub/disk.h (struct grub_disk_dev): Added a new member
35710 "id" which is used by the cache manager.
35712 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
35715 2004-08-18 Marco Gerards <metgerards@student.han.nl>
35717 * fs/hfs.c: New file.
35718 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
35719 (grub_emu_SOURCES): Likewise.
35720 (pkgdata_MODULES): Add hfs.mod.
35721 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
35722 (grubof_SOURCES): Likewise.
35723 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
35725 * include/grub/misc.h (grub_strncasecmp): Add prototype.
35726 * kern/misc.c (grub_strncasecmp): Add function.
35728 2004-08-14 Marco Gerards <metgerards@student.han.nl>
35730 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
35733 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
35734 (grub_ext2_dir): In case the directory entry type is unknown, read
35737 2004-08-02 Peter Bruin <pjbruin@dds.nl>
35739 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
35740 grub_load_linux instead of grub_rescue_cmd_linux as second
35741 argument of grub_rescue_register_command.
35743 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
35745 2004-07-27 Marco Gerards <metgerards@student.han.nl>
35747 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
35749 * commands/boot.c: Remove the check for `GRUB_UTIL'.
35750 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
35751 `loader/powerpc/ieee1275/linux.c',
35752 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
35753 * include/grub/powerpc/ieee1275/ieee1275.h
35754 (grub_ieee1275_release): New prototype.
35755 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
35756 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
35757 normal, boot, linux and linux_normal.
35758 * loader/powerpc/ieee1275/linux.c: New file.
35759 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35761 2004-07-12 Marco Gerards <metgerards@student.han.nl>
35763 * normal/arg.c (grub_arg_parse): Correct error handling after
35764 reallocating the argumentlist (check if `argl' is not null instead
35765 of checking if `args' is not null).
35766 * kern/mm.c (grub_realloc): Return the same pointer when using the
35767 same region, instead of returning the header address.
35769 2004-07-11 Marco Gerards <metgerards@student.han.nl>
35771 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
35772 one block instead of two when looking for the initial partition.
35773 (grub_partition_probe): Initialize the local variable `p' with 0.
35774 Use base 10 for the grub_strtoul call.
35775 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
35776 need for one local variable.
35777 (grub_strtoul): Don't add the new value to `num', instead of that
35780 2004-07-11 Marco Gerards <metgerards@student.han.nl>
35782 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
35783 (pxeboot_img_SOURCES): New variable.
35784 (pxeboot_img_ASFLAGS): Likewise.
35785 (pxeboot_img_LDFLAGS): Likewise.
35786 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
35787 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
35788 <lode_leroy@hotmail.com>.
35790 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35792 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
35793 there was no input.
35795 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35797 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
35798 the history buffer logic.
35800 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35802 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
35803 (FILETYPE_INO_SYMLINK): New macros.
35804 (grub_ext2_find_file): Check if the node is a directory using the
35805 inode stat information instead of using the filetype in the
35806 dirent. Exclude the first character of an absolute symlink.
35807 (grub_ext2_dir): Mask out the filetype part of the mode member of
35810 2004-05-24 Marco Gerards <metgerards@student.han.nl>
35812 Add support for UFS version 1 and 2. Add support for the minix
35813 filesystem version 1 and 2, both the variants with 14 and 30 long
35816 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
35818 (grub_emu_SOURCES): Likewise.
35819 (pkgdata_MODULES): Add ufs.mod and minix.mod.
35820 (ufs_mod_SOURCES): New variable.
35821 (ufs_mod_CFLAGS): Likewise.
35822 (minix_mod_SOURCES): Likewise.
35823 (minix_mod_CFLAGS): Likewise.
35824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
35826 (grubof_SOURCES): Likewise.
35827 * fs/ufs.c: New file.
35828 * fs/minix.c: New file.
35829 * include/grub/fs.h (grub_ufs_init): New prototype.
35830 (grub_ufs_fini): Likewise.
35831 (grub_minix_init): Likewise.
35832 (grub_minix_fini): Likewise.
35833 * util/grub-emu.c (main): Initialize and deinitialize UFS and
35836 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
35838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
35839 commands/ls.c, commands/terminal.c, commands/boot.c,
35840 commands/cmp.c and commands/cat.c.
35841 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
35843 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
35846 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35848 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
35849 and grub_, respectively. Because the conversion is trivial and
35850 mechanical, I omit the details here. Please refer to the CVS
35851 if you need more information.
35853 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35855 * include/pupa: Renamed to ...
35856 * include/grub: ... this.
35857 * util/i386/pc/pupa-mkimage.c: Renamed to ...
35858 * util/i386/pc/grub-mkimage.c: ... this.
35859 * util/i386/pc/pupa-setup.c: Renamed to ...
35860 * util/i386/pc/grub-setup.c: ... this.
35861 * util/pupa-emu.c: Renamed to ...
35862 * util/grub-emu.c: ... this.
35864 2004-03-29 Marco Gerards <metgerards@student.han.nl>
35866 Add support for the newworld apple macintosh (PPC). This has been
35867 tested on the powerbook 2000 only. It only adds support for
35868 generic ieee1275 functions, console and disk support. This should
35869 be easy to port to other architectures with support for Open
35872 * configure.ac: Accept the powerpc as host_cpu. In the case of
35873 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
35874 specific tests are only executed while building for the i386.
35875 Inverse test for crosscompile.
35876 * genmk.rb (Utility): Allow assembler files.
35877 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
35878 * conf/powerpc-ieee1275.rmk: New file.
35879 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
35880 * disk/powerpc/ieee1275/partition.c: Likewise.
35881 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
35882 * include/pupa/powerpc/ieee1275/console.h: Likewise.
35883 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
35884 * include/pupa/powerpc/ieee1275/time.h: Likewise.
35885 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
35886 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
35887 * include/pupa/powerpc/ieee1275/loader.h
35888 * include/pupa/powerpc/setjmp.h: Likewise.
35889 * include/pupa/powerpc/types.h: Likewise.
35890 * kern/powerpc/ieee1275/init.c: Likewise.
35891 * kern/powerpc/ieee1275/openfw.c: Likewise.
35892 * term/powerpc/ieee1275/ofconsole.c: Likewise.
35894 These files were written by Johan Rydberg
35895 (jrydberg@night.trouble.net) and I only modified them slightly.
35897 * boot/powerpc/ieee1275/cmain.c: New file.
35898 * boot/powerpc/ieee1275/crt0.S: Likewise.
35899 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
35900 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
35902 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
35904 * Makefile.in: Update copyright.
35905 * genmodsrc.sh: Likewise.
35906 * gensymlist.sh: Likewise.
35907 * term/i386/pc/vga.c: Indent correctly.
35909 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
35910 bugreporting address.
35911 * util/i386/pc/pupa-setup.c (usage): Likewise,
35912 (main): Call pupa_ext2_init and pupa_ext2_fini.
35914 * fs/fat.c (log2): Renamed to ...
35915 (fat_log2): ... this.
35916 All callers changed.
35917 * kern/misc.c (memcpy): Alias to pupa_memmove.
35918 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
35920 * util/console.c (pupa_ncurses_fini): Return 0.
35922 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
35923 Move fail label here.
35924 [__GNU__]: Don't warn when using stat.
35925 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
35926 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
35927 long int. Use strtol instead of strtoul.
35929 2004-03-14 Marco Gerards <metgerards@student.han.nl>
35931 * commands/boot.c: New file.
35932 * commands/cat.c: Likewise.
35933 * commands/cmp.c: Likewise.
35934 * commands/ls.c: Likewise.
35935 * commands/terminal.c: Likewise.
35936 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
35937 (pupa_register_command): Changed interface to match the new
35939 (pupa_command_execute): Changed (almost rewritten) so it uses
35940 pupa_split_command. Added support for setting variables using the
35942 (rescue_command): Changed to work with the new argument parser.
35943 (terminal_command): Moved from here to commands/terminal.c.
35944 (set_command): New function.
35945 (unset_command): New function.
35946 (insmod_command): New function.
35947 (rmmod_command): New function.
35948 (lsmod_command): New function.
35949 (pupa_command_init): Don't initialize the command terminal
35950 anymore. Initialize the commands set, unset, insmod, rmmod and
35952 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
35953 (kernel_img_HEADERS): Add arg.h and env.h.
35954 (pupa_mkimage_LDFLAGS): Add kern/env.c.
35955 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
35956 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
35958 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
35960 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
35961 (boot_mod_SOURCES): New variable.
35962 (terminal_mod_SOURCES): Likewise.
35963 (ls_mod_SOURCES): Likewise.
35964 (cmp_mod_SOURCES): Likewise.
35965 (cat_mod_SOURCES): Likewise.
35967 * normal/arg.c: New file.
35968 * kern/env.c: Likewise.
35969 * include/pupa/arg.h: Likewise.
35970 * include/pupa/env.h: Likewise.
35971 * font/manager.c (font_command): Changed to match argument parsing
35973 (PUPA_MOD_INIT): Likewise.
35974 * hello/hello.c (pupa_cmd_hello): Likewise.
35975 (PUPA_MOD_INIT): Likewise.
35976 * include/pupa/disk.h: Include <pupa/device.h>.
35977 (pupa_print_partinfo): New prototype.
35978 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
35979 (pupa_dl_get_prefix): Likewise.
35980 * include/pupa/misc.h: Include <pupa/err.h>.
35981 (pupa_isgraph): New prototype.
35982 (pupa_isdigit): Likewise.
35983 (pupa_split_cmdline): Likewise.
35984 * include/pupa/normal.h: Include <pupa/arg.h>.
35985 (pupa_command): Changed the prototype of the member `func' to
35986 match the argument parsing interface. Added member `options'.
35987 (pupa_register_command): Updated to match function.
35988 (pupa_arg_parse): New prototype.
35989 (pupa_hello_init) [PUPA_UTIL]: New prototype.
35990 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
35991 (pupa_ls_init) [PUPA_UTIL]: Likewise.
35992 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
35993 (pupa_cat_init) [PUPA_UTIL]: Likewise.
35994 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
35995 (pupa_boot_init) [PUPA_UTIL]: Likewise.
35996 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
35997 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
35998 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
35999 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
36000 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
36001 * kern/disk.c: Include <pupa/file.h>.
36002 (pupa_print_partinfo): New function.
36003 * kern/dl.c: Include <pupa/env.h>.
36004 (pupa_dl_dir): Variable removed.
36005 (pupa_dl_load): Use the environment variable `prefix' instead of
36006 the variable pupa_dl_dir.
36007 (pupa_dl_set_prefix): Function removed.
36008 (pupa_dl_get_prefix): Likewise.
36009 * kern/i386/pc/init.c: Include <pupa/env.h>.
36010 (pupa_machine_init): Use the environment variable `prefix' instead of
36011 using pupa_dl_set_prefix to set the prefix.
36012 * kern/main.c: Include <pupa/env.h>.
36013 (pupa_set_root_dev): Use the environment variable `prefix' instead of
36014 using pupa_dl_get_prefix to get the prefix.
36015 * kern/misc.c: Include <pupa/env.h>.
36016 (pupa_isdigit): New function.
36017 (pupa_isgraph): Likewise.
36018 (pupa_ftoa): Likewise.
36019 (pupa_vsprintf): Added support for printing values of the type
36020 `double'. Make it possible to format variable output when using
36021 formatting like `%1.2%f'.
36022 (pupa_split_cmdline): New function.
36023 * kern/rescue.c: Include <pupa/env.h>.
36024 (next_word): Removed function.
36025 (pupa_rescue_cmd_prefix): Likewise.
36026 (pupa_rescue_cmd_set): New function.
36027 (pupa_rescue_cmd_unset): New function.
36028 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
36029 split the command line instead of splitting it here. Added
36030 support for setting variables using the syntax `foo=bar'. Don't
36031 initialize the prefix command anymore. Initialized the set and
36033 * normal/cmdline.c: Include <pupa/env.h>.
36034 (pupa_tab_complete): Added prototypes for print_simple_completion,
36035 print_partition_completion, add_completion, iterate_commands,
36036 iterate_dev, iterate_part and iterate_dir. Moved code to print
36037 partition information from here to kern/disk.c.
36038 (pupa_cmdline_run): Don't check if the function exists anymore.
36039 * normal/main.c: Include <pupa/env.h>.
36040 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
36041 instead of using pupa_dl_get_prefix to get the prefix.
36042 * term/i386/pc/vga.c: Include <pupa/arg.h>.
36043 (check_vga_mem): Cast pointers to `void *' to silence a gcc
36045 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
36046 (pupa_vga_setcolor): Declare unused variables with `__attribute__
36047 ((unused))' to silence a gcc warning.
36048 (pupa_vga_setcolor): Likewise.
36049 (debug_command): Changed to match argument parsing
36051 * util/pupa-emu.c: Include <pupa/env.h>.
36052 (options): Added 0's for unused fields to silence a gcc warning.
36054 (main): Use the environment variable `prefix' instead of using
36055 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
36056 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
36059 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
36060 * util/misc.c: Include <malloc.h>.
36061 (pupa_malloc): Rewritten so errors are correctly reported.
36062 (pupa_realloc): Likewise.
36063 (pupa_memalign): Likewise.
36064 (pupa_mm_init_region): Declare unused variables with
36065 `__attribute__ ((unused))' to silence a gcc warning.
36066 * normal/i386/setjmp.S: Remove tab at the end of the file to
36067 silence a gcc warning.
36068 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
36069 variables with `__attribute__ ((unused))' to silence a gcc
36071 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
36072 local variable i unsigned to silence a gcc warning.
36074 * kern/term.c: Include <pupa/misc.h>.
36075 (pupa_more_lines): New variable.
36076 (pupa_more): Likewise.
36077 (pupa_putcode): When the pager is active pause at the end of every
36079 (pupa_set_more): New function.
36080 * include/pupa/term.h (pupa_set_more): New prototype.
36083 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
36085 Now this project is GRUB 2 rather than PUPA. The location of
36086 the CVS repository was moved to GRUB's.
36088 * configure.ac: Use bug-grub as the reporting address.
36089 Use GRUB instead of PUPA.
36090 Change the version number to 1.90.
36092 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
36094 * genkernsyms.sh: Updated copyright information.
36095 * genmk.rb: Likewise.
36096 * genmodsrc.sh: Likewise.
36097 * gensymlist.sh: Likewise.
36098 * boot/i386/pc/boot.S: Likewise.
36099 * boot/i386/pc/diskboot.S: Likewise.
36100 * disk/i386/pc/biosdisk.c: Likewise.
36101 * disk/i386/pc/partition.c: Likewise.
36102 * font/manager.c: Likewise.
36103 * fs/ext2.c: Likewise.
36104 * fs/fat.c: Likewise.
36105 * include/pupa/boot.h: Likewise.
36106 * include/pupa/device.h: Likewise.
36107 * include/pupa/disk.h: Likewise.
36108 * include/pupa/dl.h: Likewise.
36109 * include/pupa/elf.h: Likewise.
36110 * include/pupa/err.h: Likewise.
36111 * include/pupa/file.h: Likewise.
36112 * include/pupa/font.h: Likewise.
36113 * include/pupa/fs.h: Likewise.
36114 * include/pupa/kernel.h: Likewise.
36115 * include/pupa/loader.h: Likewise.
36116 * include/pupa/misc.h: Likewise.
36117 * include/pupa/mm.h: Likewise.
36118 * include/pupa/net.h: Likewise.
36119 * include/pupa/normal.h: Likewise.
36120 * include/pupa/rescue.h: Likewise.
36121 * include/pupa/setjmp.h: Likewise.
36122 * include/pupa/symbol.h: Likewise.
36123 * include/pupa/term.h: Likewise.
36124 * include/pupa/types.h: Likewise.
36125 * include/pupa/i386/setjmp.h: Likewise.
36126 * include/pupa/i386/types.h: Likewise.
36127 * include/pupa/i386/pc/biosdisk.h: Likewise.
36128 * include/pupa/i386/pc/boot.h: Likewise.
36129 * include/pupa/i386/pc/console.h: Likewise.
36130 * include/pupa/i386/pc/init.h: Likewise.
36131 * include/pupa/i386/pc/kernel.h: Likewise.
36132 * include/pupa/i386/pc/linux.h: Likewise.
36133 * include/pupa/i386/pc/loader.h: Likewise.
36134 * include/pupa/i386/pc/memory.h: Likewise.
36135 * include/pupa/i386/pc/multiboot.h: Likewise.
36136 * include/pupa/i386/pc/partition.h: Likewise.
36137 * include/pupa/i386/pc/time.h: Likewise.
36138 * include/pupa/i386/pc/vga.h: Likewise.
36139 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
36140 * include/pupa/util/getroot.h: Likewise.
36141 * include/pupa/util/misc.h: Likewise.
36142 * include/pupa/util/resolve.h: Likewise.
36143 * kern/device.c: Likewise.
36144 * kern/disk.c: Likewise.
36145 * kern/dl.c: Likewise.
36146 * kern/err.c: Likewise.
36147 * kern/file.c: Likewise.
36148 * kern/fs.c: Likewise.
36149 * kern/loader.c: Likewise.
36150 * kern/main.c: Likewise.
36151 * kern/misc.c: Likewise.
36152 * kern/mm.c: Likewise.
36153 * kern/rescue.c: Likewise.
36154 * kern/term.c: Likewise.
36155 * kern/i386/dl.c: Likewise.
36156 * kern/i386/pc/init.c: Likewise.
36157 * kern/i386/pc/lzo1x.S: Likewise.
36158 * kern/i386/pc/startup.S: Likewise.
36159 * loader/i386/pc/chainloader.c: Likewise.
36160 * loader/i386/pc/linux.c: Likewise.
36161 * loader/i386/pc/multiboot.c: Likewise.
36162 * normal/cmdline.c: Likewise.
36163 * normal/command.c: Likewise.
36164 * normal/main.c: Likewise.
36165 * normal/menu.c: Likewise.
36166 * normal/i386/setjmp.S: Likewise.
36167 * term/i386/pc/console.c: Likewise.
36168 * term/i386/pc/vga.c: Likewise.
36169 * util/console.c: Likewise.
36170 * util/genmoddep.c: Likewise.
36171 * util/misc.c: Likewise.
36172 * util/pupa-emu.c: Likewise.
36173 * util/resolve.c: Likewise.
36174 * util/unifont2pff.rb: Likewise.
36175 * util/i386/pc/biosdisk.c: Likewise.
36176 * util/i386/pc/getroot.c: Likewise.
36177 * util/i386/pc/pupa-mkimage.c: Likewise.
36178 * util/i386/pc/pupa-setup.c: Likewise.
36180 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
36182 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
36183 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
36184 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
36185 reading and reset it after reading.
36186 (pupa_ext2_close): Return PUPA_ERR_NONE.
36188 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
36190 (struct linux_kernel_header): Add kernel_version and
36192 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
36193 pupa_file_read succeeds.
36194 (pupa_rescue_cmd_initrd): Implement.
36196 2003-12-03 Marco Gerards <metgerards@student.han.nl>
36198 * fs/ext2.c (pupa_ext2_label): New function.
36199 (pupa_ext2_fs): Added label.
36200 * fs/fat.c (pupa_fat_label): New function.
36201 (pupa_fat_fs): Added label.
36202 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
36204 * kern/misc.c (pupa_strndup): New function.
36205 * include/pupa/misc.h (pupa_strndup): New prototype.
36207 * include/pupa/normal.h: Include <pupa/err.h>.
36208 (pupa_set_history): New prototype.
36209 (pupa_iterate_commands): New prototype.
36210 * normal/cmdline.c: Include <pupa/machine/partition.h>,
36211 <pupa/disk.h>, <pupa/file.h>.
36212 (hist_size): New variable.
36213 (hist_lines): Likewise.
36214 (hist_end): Likewise.
36215 (hist_used): Likewise.
36216 (pupa_set_history): New function.
36217 (pupa_history_get): Likewise.
36218 (pupa_history_add): Likewise.
36219 (pupa_history_replace): Likewise.
36220 (pupa_tab_complete): Likewise.
36221 (pupa_cmdline_run): Added tab completion and history buffer. Tab
36222 completion shows partitionnames while completing partitions, this
36223 feature was suggested by Jeff Bailey.
36224 * normal/command.c (pupa_iterate_commands): New function.
36225 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
36226 (pupa_normal_init): Initialize history buffer.
36227 (PUPA_MOD_INIT): Likewise.
36228 (pupa_normal_fini): Free the history buffer.
36229 (PUPA_MOD_FINI): Likewise.
36231 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
36234 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
36235 * configure.ac [i386]: Check for regparam bug.
36236 (NESTED_FUNC_ATTR) [! i386]: Defined.
36238 2003-11-17 Marco Gerards <metgerards@student.han.nl>
36240 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
36241 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
36242 (pupa_emu_SOURCES): New variable.
36243 (pupa_emu_LDFLAGS): Likewise.
36244 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
36245 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
36246 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
36247 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
36248 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
36249 (pupa_jmp_buf): New typedef.
36250 (pupa_setjmp) [PUPA_UTIL]: New macro.
36251 (pupa_longjmp) [PUPA_UTIL]: Likewise.
36252 * include/pupa/term.h (struct pupa_term): New member `refresh'.
36253 (pupa_refresh): New prototype.
36254 * include/pupa/util/getroot.h: New file.
36255 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
36257 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
36258 (pupa_rescue_cmd_cat): Likewise.
36259 (pupa_rescue_cmd_ls): Likewise.
36260 (pupa_rescue_cmd_testload): Likewise.
36261 (pupa_rescue_cmd_lsmod): Likewise.
36262 * normal/cmdline.c (pupa_cmdline_get): Likewise.
36263 * normal/menu.c (run_menu): Likewise.
36264 * kern/term.c (pupa_cls): Likewise.
36265 (pupa_refresh): New function.
36266 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
36267 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
36268 * util/console.c: New file.
36270 * util/i386/pc/getroot.c: New file.
36271 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
36272 (pupa_putchar): New function.
36273 (pupa_refresh): Likewise.
36274 (xgetcwd): Function moved to ...
36275 (strip_extra_slashes): Likewise.
36276 (get_prefix): Likewise.
36277 * util/i386/pc/getroot.c: ... here.
36278 (find_root_device): Function moved and renamed to...
36279 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
36280 Changed all callers.
36281 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
36283 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
36284 Changed all callers.
36285 * util/misc.c (pupa_memalign): New function.
36286 (pupa_mm_init_region): Likewise.
36287 (pupa_register_exported_symbols): Likewise.
36288 (pupa_putchar): Function removed.
36289 * util/pupa-emu.c: New file.
36291 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
36293 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
36294 (_multiboot_mod_SOURCES): New variable.
36295 (_multiboot_mod_CFLAGS): Likewise.
36296 * loader/i386/pc/multiboot.c: New file.
36297 * include/pupa/i386/pc/multiboot.h: Likewise.
36298 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
36299 (pupa_multiboot_real_boot): New function.
36300 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
36301 (pupa_multiboot_real_boot): New prototype.
36302 (pupa_rescue_cmd_multiboot): Likewise
36303 (pupa_rescue_cmd_module): Likewise.
36305 * kern/loader.c (pupa_loader_set): Continue when
36306 pupa_loader_unload_func() fails.
36307 (pupa_loader_unset): New function.
36308 * include/pupa/loader.h (pupa_loader_unset): New prototype.
36310 * kern/misc.c (pupa_stpcpy): New function.
36311 * include/pupa/misc.h (pupa_stpcpy): New prototype.
36313 2003-11-12 Marco Gerards <metgerards@student.han.nl>
36315 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
36316 for available extensions.
36318 * include/pupa/i386/pc/time.h: New file.
36319 * kern/disk.c: Include <pupa/machine/time.h>.
36320 (PUPA_CACHE_TIMEOUT): New macro.
36321 (pupa_last_time): New variable.
36322 (pupa_disk_open): Flush the cache when there was a timeout.
36323 (pupa_disk_close): Reset the timer.
36324 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
36326 * util/misc.c: Include <sys/times.h>
36327 (pupa_get_rtc): New function.
36329 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
36331 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
36333 (pupa_ext2_get_file_block): Use blocks member.
36335 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
36336 first block. Return -1 instead of pupa_errno on error.
36338 2003-10-27 Marco Gerards <metgerards@student.han.nl>
36340 * README: In the pupa-mkimage example use _chain instead of chain
36341 and ext2 instead of fat.
36342 * TODO: Replace ext2fs with jfs as an example. Add an item for
36343 adding journal playback for ext2fs.
36344 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
36345 (pkgdata_MODULES): Added ext2.mod.
36346 (ext2_mod_SOURCES): New variable.
36347 (ext2_mod_CFLAGS): Likewise.
36348 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
36349 * include/pupa/misc.h (pupa_strncpy): New prototype.
36350 (pupa_strcat): Likewise.
36351 (pupa_strncmp): Likewise.
36352 * kern/misc.c (pupa_strcat): Enable function.
36353 (pupa_strncpy): New function.
36354 (pupa_strncmp): Likewise.
36355 * fs/ext2.c: New file.
36357 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
36358 when the read failed before retrying.
36359 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
36360 (_FILE_OFFSET_BITS): Likewise.
36361 * configure.ac: Added AC_SYS_LARGEFILE.
36363 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
36365 * genmk.rb (PModule#rule): Make sure to get only symbol names
36366 from the output of nm.
36367 Reported by Robert Millan <rmh.grub@aybabtu.com>.
36369 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
36371 I forgot to check in these changes for a long time. This adds
36372 incomplete support for VGA console, and this is still very
36373 buggy. Also, a lot of consideration is required for I18N,
36374 UNICODE, and VGA font issues. Therefore, assume that this is
36375 such that "better than nothing".
36377 * font/manager.c: New file.
36378 * include/pupa/font.h: Likewise.
36379 * include/pupa/i386/pc/vga.h: Likewise.
36380 * term/i386/pc/vga.c: Likewise.
36381 * util/unifont2pff.rb: Likewise.
36383 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
36384 (pkgdata_MODULES): Added vga.mod and font.mod.
36385 (vga_mod_SOURCES): New variables.
36386 (vga_mod_CFLAGS): Likewise.
36387 (font_mod_SOURCES): Likewise.
36388 (font_mod_CFLAGS): Likewise.
36390 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
36392 * include/pupa/term.h: Include pupa/err.h.
36393 (struct pupa_term): Added init and fini.
36394 Changed the argument of putchar to pupa_uint32_t.
36396 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
36397 (pupa_console_real_putchar): New prototype.
36398 (pupa_console_putchar): Removed.
36399 (pupa_console_checkkey): Exported.
36400 (pupa_console_getkey): Likewise.
36402 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
36405 * kern/term.c (pupa_term_set_current): Rewritten.
36406 (pupa_putchar): Likewise.
36407 (pupa_putcode): New function.
36409 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
36410 (pupa_console_real_putchar): ... this.
36411 (pupa_vga_set_mode): New function.
36412 (pupa_vga_get_font): Likewise.
36414 * normal/command.c: Include pupa/term.h.
36415 (terminal_command): New function.
36416 (pupa_command_init): Register the command "terminal".
36418 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
36419 (DISP_UP): Likewise.
36420 (DISP_RIGHT): Likewise.
36421 (DISP_DOWN): Likewise.
36422 (DISP_HLINE): Likewise.
36423 (DISP_VLINE): Likewise.
36424 (DISP_UL): Likewise.
36425 (DISP_UR): Likewise.
36426 (DISP_LL): Likewise.
36427 (DISP_LR): Likewise.
36429 * term/i386/pc/console.c (pupa_console_putchar): New function.
36431 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
36433 * util/resolve.c (pupa_util_resolve_dependencies): BUG
36434 FIX. Reverse the path_list.
36436 * include/pupa/normal.h: Export pupa_register_command and
36437 pupa_unregister_command.
36439 * hello/hello.c (pupa_cmd_hello): New module.
36440 * conf/i386-pc.rmk: Added hello.mod.
36442 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
36444 * kern/i386/pc/lzo1x.S: New file.
36446 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
36447 (compress_kernel): New variable.
36448 (generate_image): Heavily modified to support compressing a
36449 large part of the core image.
36451 * util/misc.c (pupa_util_read_image): Fix a file descriptor
36453 (pupa_util_load_image): New function.
36455 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
36456 (pupa_compressed_size): New variable.
36457 (codestart): Enable Gate A20 here.
36458 Decompress the compressed part of the core image.
36459 Rearrange the code to put functions and variables which are
36460 required for initialization in the non-compressed part.
36463 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
36466 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
36468 * include/pupa/i386/pc/kernel.h
36469 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
36470 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
36471 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
36472 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
36473 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
36475 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
36477 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
36478 (Utility#rule): Likewise.
36480 * configure.ac: Check if LZO is available.
36482 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
36484 * include/pupa/normal.h: New file.
36485 * include/pupa/setjmp.h: Likewise.
36486 * include/pupa/i386/setjmp.h: Likewise.
36487 * normal/cmdline.c: Likewise.
36488 * normal/command.c: Likewise.
36489 * normal/main.c: Likewise.
36490 * normal/menu.c: Likewise.
36491 * normal/i386/setjmp.S: Likewise.
36493 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
36494 (pupa_rescue_cmd_initrd): Likewise.
36496 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
36499 * kern/i386/pc/startup.S (translation_table): New variable.
36500 (translate_keycode): New function.
36501 (pupa_console_getkey): Call translate_keycode.
36503 * kern/rescue.c (attempt_normal_mode): New function.
36504 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
36505 it failed, print a message.
36507 * kern/mm.c (pupa_real_malloc): Print more information when a
36508 free magic is broken.
36509 (pupa_free): If the first free header is not free actually, set
36512 * kern/main.c (pupa_load_normal_mode): Just load the module
36514 (pupa_main): Don't print the message
36515 "Entering into rescue mode..." here.
36517 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
36519 (pupa_rescue_cmd_initrd): Likewise.
36520 (pupa_rescue_cmd_initrd): Likewise.
36522 * include/pupa/symbol.h (FUNCTION): Specify the type.
36523 (VARIABLE): Likewise.
36525 * include/pupa/err.h (pupa_err_t): Added
36526 PUPA_ERR_UNKNOWN_COMMAND.
36528 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
36529 (pupa_dl_get_prefix): Likewise.
36531 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
36532 Added _chain.mod and _linux.mod instead of chain.mod and
36534 (chain_mod_SOURCES): Renamed to ...
36535 (_chain_mod_SOURCES): ... this.
36536 (chain_mod_CFLAGS): Renamed to ...
36537 (_chain_mod_CFLAGS): ... this.
36538 (linux_mod_SOURCES): Renamed to ...
36539 (_linux_mod_SOURCES): ... this.
36540 (linux_mod_CFLAGS): Renamed to ...
36541 (_linux_mod_CFLAGS): ... this.
36542 (normal_mod_SOURCES): New variable.
36543 (normal_mod_CFLAGS): Likewise.
36544 (normal_mod_ASFLAGS): Likewise.
36546 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
36548 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
36551 * kern/dl.c (pupa_dl_ref): Refer depending modules
36553 (pupa_dl_unref): Unrefer depending modules recursively.
36554 Don't call pupa_dl_unload implicitly, because PUPA can crash if
36555 a module is unloaded before one depending on that module is
36557 (pupa_dl_unload): Unload depending modules explicitly,
36560 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
36562 * include/pupa/i386/pc/linux.h: New file.
36563 * loader/i386/pc/linux.c: Likewise.
36565 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
36567 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
36568 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
36569 of PUPA_CHAINLOADER_BOOT_SECTOR.
36571 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
36572 (pupa_linux_prot_size): New variable.
36573 (pupa_linux_tmp_addr): Likewise.
36574 (pupa_linux_real_addr): Likewise.
36575 (pupa_linux_boot_zimage): New function.
36576 (pupa_linux_boot_bzimage): Likewise.
36578 * kern/i386/pc/init.c (struct mem_region): New structure.
36579 (MAX_REGIONS): New macro.
36580 (mem_regions): New variable.
36581 (num_regions): Likewise.
36582 (pupa_os_area_addr): Likewise.
36583 (pupa_os_area_size): Likewise.
36584 (pupa_lower_mem): Likewise.
36585 (pupa_upper_mem): Likewise.
36586 (add_mem_region): New function.
36587 (compact_mem_regions): Likewise.
36588 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
36589 the size of the conventional memory and that of so-called upper
36590 memory (before the first memory hole).
36591 Instead of adding each found region to free memory, use
36592 add_mem_region and add them after removing overlaps.
36593 Also, add only 1/4 of the upper memory to free memory. The rest
36594 is used for loading OS images. Maybe this is ad hoc, but this
36595 makes it much easier to relocate OS images when booting.
36597 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
36598 (pupa_enter_rescue_mode): Don't register initrd and module.
36600 * kern/mm.c: Include pupa/dl.h.
36602 * kern/main.c: Include pupa/file.h and pupa/device.h.
36604 * kern/loader.c (pupa_loader_load_module_func): Removed.
36605 (pupa_loader_load_module): Likewise.
36607 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
36610 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
36611 (pupa_linux_tmp_addr): Likewise.
36612 (pupa_linux_real_addr): Likewise.
36613 (pupa_linux_boot_zimage): Likewise.
36614 (pupa_linux_boot_bzimage): Likewise.
36616 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
36617 (pupa_upper_mem): Likewise.
36618 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
36619 module is too dangerous.
36621 * include/pupa/loader.h (pupa_os_area_addr): Declared.
36622 (pupa_os_area_size): Likewise.
36623 (pupa_loader_set): Remove the first argument. Loader doesn't
36624 manage modules or initrd any longer.
36625 (pupa_loader_load_module): Removed.
36627 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
36628 (linux_mod_SOURCES): New variable.
36629 (linux_mod_CFLAGS): Likewise.
36631 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
36633 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
36634 the length of a blocklist correctly.
36636 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
36637 Use ioctl only if the OS file is a block device.
36638 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
36639 not very useful for normal files.
36641 * kern/main.c (pupa_set_root_dev): New function.
36642 (pupa_load_normal_mode): Likewise.
36643 (pupa_main): Call those above.
36645 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
36648 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
36650 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
36652 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
36653 (setup): Configure the installed partition information and the
36656 * loader/i386/pc/chainloader.c (my_mod): New variable.
36657 (pupa_chainloader_unload): New function.
36658 (pupa_rescue_cmd_chainloader): Refer itself.
36659 (PUPA_MOD_INIT): Save its own module in MY_MOD.
36661 * kern/i386/pc/startup.S (install_partition): Removed.
36662 (version_string): Likewise.
36663 (config_file): Likewise.
36664 (pupa_install_dos_part): New variable.
36665 (pupa_install_bsd_part): Likewise.
36666 (pupa_prefix): Likewise.
36667 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
36669 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
36671 (make_install_device): New function.
36672 (pupa_machine_init): Set the dl prefix.
36674 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
36675 (buf): Renamed to ...
36676 (linebuf): ... this.
36677 (pupa_rescue_cmd_prefix): New function.
36678 (pupa_rescue_cmd_insmod): Likewise.
36679 (pupa_rescue_cmd_rmmod): Likewise.
36680 (pupa_rescue_cmd_lsmod): Likewise.
36681 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
36684 * kern/mm.c (pupa_memalign): If failed even after invalidating
36685 disk caches, unload unneeded modules and retry.
36687 * kern/misc.c (pupa_memmove): New function.
36688 (pupa_memcpy): Removed.
36689 (pupa_strcpy): New function.
36690 (pupa_itoa): Made static.
36692 * kern/dl.c (pupa_dl_iterate): New function.
36693 (pupa_dl_ref): Likewise.
36694 (pupa_dl_unref): Likewise.
36695 (pupa_dl_unload): Return if succeeded or not.
36696 (pupa_dl_unload_unneeded): New function.
36697 (pupa_dl_unload_all): Likewise.
36698 (pupa_dl_init): Renamed to ...
36699 (pupa_dl_set_prefix): ... this.
36700 (pupa_dl_get_prefix): New function.
36702 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
36703 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
36704 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
36705 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
36706 (pupa_install_dos_part): Declared.
36707 (pupa_install_bsd_part): Likewise.
36708 (pupa_prefix): Likewise.
36709 (pupa_boot_drive): Likewise.
36711 * include/pupa/types.h: Fix a typo.
36713 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
36715 (pupa_memmove): Declared.
36716 (pupa_strcpy): Likewise.
36718 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
36719 pupa_mod_init takes one argument, its own module.
36720 (pupa_dl_unload_unneeded): Declared.
36721 (pupa_dl_unload_all): Likewise.
36722 (pupa_dl_ref): Likewise.
36723 (pupa_dl_unref): Likewise.
36724 (pupa_dl_iterate): Likewise.
36725 (pupa_dl_init): Renamed to ...
36726 (pupa_dl_set_prefix): ... this.
36727 (pupa_dl_get_prefix): Declared.
36729 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
36730 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
36732 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
36733 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
36735 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
36736 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
36738 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
36740 * util/i386/pc/pupa-setup.c (setup): Define the internal
36741 function find_first_partition_start at the top level, because GCC
36742 3.0.x cannot compile internal functions in deeper scopes
36744 (find_root_device): Use lstat instead of stat.
36745 Don't follow symbolic links.
36746 Fix the path-constructing code.
36748 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
36749 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
36750 by a BLKGETSIZE ioctl first, because block devices don't fill
36751 the member st_mode of the structure stat on Linux.
36752 [__linux__] (linux_find_partition): Use a temporary buffer
36753 REAL_DEV for the working space. Copy it to DEV before returning.
36754 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
36755 buffer cache consistent.
36756 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
36757 strncmp. The previous value was merely wrong.
36758 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
36760 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
36761 FAT size is 12. The previous value was merely wrong.
36763 * kern/main.c (pupa_main): Don't split the starting message from
36766 * kern/term.c (pupa_putchar): Put CR after LF instead of before
36767 LF, because BIOS goes crazy about character attributes in this
36770 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
36772 * include/i386/pc/util/biosdisk.h: New file.
36773 * util/i386/pc/biosdisk.c: Likewise.
36774 * util/i386/pc/pupa-setup.c: Likewise.
36776 * Makefile.in (INCLUDE_DISTFILES): Added
36777 include/pupa/i386/pc/util/biosdisk.h.
36778 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
36779 directory util/i386/pc.
36780 (install-local): Added a rule for sbin_UTILITIES.
36781 (uninstall): Likewise.
36783 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
36785 * util/misc.c (xrealloc): New function.
36786 (pupa_malloc): Likewise.
36787 (pupa_free): Likewise.
36788 (pupa_realloc): Likewise.
36789 (pupa_stop): Likewise.
36790 (pupa_putchar): Likewise.
36792 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
36794 * include/pupa/util/misc.h (xrealloc): Declared.
36796 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
36798 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
36799 (PUPA_BOOT_MACHINE_BPB_END): ... this.
36801 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
36802 [PUPA_UTIL] (pupa_fat_fini): Likewise.
36804 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
36805 way should be implemented.
36806 [PUPA_UTIL] (pupa_fat_fini): Likewise.
36808 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
36809 the size of NAME for safety.
36810 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
36813 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
36814 (pupa_setup_SOURCES): Likewise.
36816 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
36818 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
36820 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
36821 bunch of pushl's from pusha, because this destroys the return
36824 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
36826 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
36827 This means that any missing prototypes could be fatal. Also, you
36828 must take care when writing assembly code. See the comments at
36829 the beginning of startup.S, for more details.
36831 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
36832 compilation mechanism.
36833 (pupa_chainloader_real_boot): Likewise.
36834 (pupa_biosdisk_rw_int13_extensions): Likewise.
36835 (pupa_biosdisk_rw_standard): Likewise.
36836 (pupa_biosdisk_check_int13_extensions): Likewise.
36837 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
36838 (pupa_biosdisk_get_diskinfo_standard): Likewise.
36839 (pupa_get_memsize): Likewise.
36840 (pupa_get_mmap_entry): Likewise.
36841 (pupa_console_putchar): Likewise.
36842 (pupa_console_setcursor): Likewise.
36843 (pupa_getrtsecs): Use pushl instead of push.
36845 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
36846 memory instead of the stack for a mmap entry, because some
36847 BIOSes may ignore the maximum size and overflow.
36849 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
36851 * genmk.rb (PModule#rule): Compile automatically generated
36852 sources with module-specific CFLAGS as well as other sources.
36854 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36856 * configure.ac: Check ld.
36857 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
36858 respectively, before checking endianness and sizes.
36860 * Makefile.in (LD): New variable.
36862 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36864 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
36866 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36868 * Changelog: New file.