1 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
4 an error and not a fatal on unrecognised relocation types.
6 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9 Issue error rather than printf on unknown arguments.
11 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
18 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
21 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
23 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
24 leftover debug printf.
26 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
28 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
30 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
32 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
35 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
37 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
39 2011-11-10 Shea Levy <slevy@tieronedesign.com>
41 Allow all modules to perform serial IO
43 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
44 * include/grub/serial.h (grub_serial_port_configure): New inline
46 (grub_serial_port_fetch): Likewise.
47 (grub_serial_port_put): Likewise.
48 (grub_serial_port_fini): Likewise.
49 (grub_serial_find): New proto.
51 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
53 Put symlink at the end of the node and fix a potential
56 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
57 Make symlink into an array.
58 (set_rockridge): Set have_symlink and alloc_dirents.
59 (grub_iso9660_read_symlink): Use new layout.
60 (grub_iso9660_iterate_dir): Fix memory corruption.
62 (grub_iso9660_dir): Set have_symlink.
63 (grub_iso9660_open): Likewise.
65 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
69 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
70 (version_test_gt): Likewise.
71 (version_find_latest): Likewise.
72 (gettext_printf): Likewise.
73 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
75 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
77 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
79 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
81 Fix ZFS memory and resource leaks.
83 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
86 (fill_vdev_info): New parameter inserted. All users updated.
87 (check_pool_label): Likewise.
88 (scan_disk): Likewise.
89 (scan_devices): Close non-inserted disks.
90 (fzap_iterate): Free l.
91 (unmount_device): Free children descripto memory.
93 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
95 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
96 argument (access out of bounds).
98 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
100 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
103 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
105 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
108 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
110 Fix several memory leaks.
112 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
113 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
114 (grub_cpio_dir): Likewise.
115 * grub-core/fs/fat.c (grub_fat_label): Likewise.
116 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
117 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
118 (grub_romfs_label): Likewise.
119 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
120 (squash_unmount): New function.
121 (grub_squash_dir): Fix memory leak.
122 (grub_squash_open): Likewise.
123 (grub_squash_read): Likewise.
124 (grub_squash_mtime): Likewise.
125 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
126 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
127 * util/grub-fstest.c (fstest): Likewise.
129 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
131 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
132 avoid accessing beyond the array.
134 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
136 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
138 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
142 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
143 (GRUB_AFFS_FLAG_FFS): Removed.
144 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
145 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
146 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
147 (grub_fshelp_node): Make block 32-bit.
148 Add block_cache and last_block_cache.
149 (grub_affs_read_block): Fill and use block cache.
150 (grub_affs_read_file): Removed.
151 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
153 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
155 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
157 (grub_affs_close): Free block cache.
158 (grub_affs_read): Use grub_fshelp_read_file directly.
160 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
162 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
165 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
167 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
169 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
172 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
174 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
176 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
177 byteswap when needed.
179 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
181 Fix FreeBSD compilation.
183 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
184 to avoid circular dependency.
185 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
186 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
187 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
189 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
191 Fix ZFS crypto error types.
193 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
194 (grub_gcm_decrypt): Likewise.
195 (grub_zfs_load_key_real): Fix error code type. Handle possible error
198 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
202 * Makefile.util.def (10_illumos): New script.
203 * configure.ac: Set COND_HOST_ILLUMOS.
204 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
205 Support Illumos calls.
206 (find_partition_start) [__sun__]: Likewise.
207 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
208 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
209 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
210 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
212 * util/grub-probe.c (probe) [__sun__]: Do character check.
213 * util/grub.d/10_illumos.in: New file.
215 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
217 Support escaped commas in hostdisk.
219 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
220 (find_grub_drive): Use unescape_cmp.
221 (make_device_name): Escape commas.
223 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
225 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
227 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
229 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
232 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
234 Support trampoline jumps on powerpc.
236 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
238 (grub_dl_load_segments): Set mod->sz.
239 (grub_dl_flush_cache): Flush whole space occupied by module, not just
241 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
243 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
245 (trampoline): New struct.
246 (trampoline_template): New const.
247 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
248 * include/grub/dl.h (grub_dl): Add sz element.
249 [__powerpc__]: Follow __ia64__.
250 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
251 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
252 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
253 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
255 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
259 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
260 * grub-core/Makefile.core.def (zfscrypt): New module.
261 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
262 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
263 it. All users updated.
264 (grub_zfs_decrypt): New var.
265 (grub_zfs_load_key): Likewise.
266 (zio_checksum_functions): Add SHA256+MAC.
267 (zio_checksum_verify): Handle incomplete comparison due to MAC.
268 (zio_read): Handle encrypted blocks.
269 (zap_verify): Remove incorrect check.
270 (fzap_iterate): Handle non-standard fzap.
271 (zap_iterate): Likewise.
272 (zap_iterate_u64): New function.
273 (dnode_get_fullpath): Load keys.
274 * grub-core/fs/zfs/zfscrypt.c: New file.
275 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
276 (grub_crypto_ecb_encrypt): Make input const.
277 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
278 (grub_crypto_ecb_encrypt): Make input const.
279 (GRUB_CIPHER_AES): New macro.
280 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
281 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
282 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
283 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
284 prefix. All users updated.
285 (grub_zfs_add_key): New proto.
286 (grub_zfs_decrypt): Likewise.
287 (grub_zfs_load_key): Likewise.
288 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
289 * util/grub-fstest.c (options): Add -K option.
290 (argp_parser): Likewise.
292 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
294 Support zle compression on ZFS.
296 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
297 (decomp_table): Add zle.
298 * include/grub/zfs/zio.h (zio_compress): Add zle.
300 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
302 Support BtrFS embedding.
304 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
305 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
306 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
307 * util/grub-setup.c (setup): Use fs embedding if available.
308 Add additional sanity check.
310 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
312 * util/grub-install.in: Fix condition for config_opt.
314 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
316 Support third redundancy strip on raidz3.
318 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
319 Return error on singularity. All users updated.
320 (read_device): Don't stop on 3rd failure on raidz3.
322 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
324 Support case-insensitive ZFS subvolumes.
326 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
328 (zap_hash): Likewise.
329 (name_cmp): New function.
330 (zap_leaf_array_equal): New parameter case_insensitive.
332 (zap_leaf_lookup): Likewise.
333 (fzap_lookup): Likewise.
334 (zap_lookup): Likewise.
335 (dnode_get_path): New parameter case_insensitive. Retrieve case
336 sensitiviness of a volume. All users updated.
337 (dnode_get_fullpath): New parameter case_insensitive.
339 (grub_zfs_dir): Set info.case_insensitiveness.
341 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
343 Support second redundancy strip on raidz(2,3).
345 * grub-core/fs/zfs/zfs.c (powx): New array.
346 (powx_inv): Likewise.
348 (xor_out): New function.
350 (recovery): Likewise.
351 (read_device): Use second redundancy strip.
353 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
355 Use a power of generator representation of GF(256) multiplication group
356 to save space time and complexity.
358 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
359 (raid6_table2): Likewise.
361 (powx_inv): Likewise.
363 (grub_raid_block_mul): Replace with ...
364 (grub_raid_block_mulx): ...this.
365 (grub_raid6_init_table): Rewritten.
366 (grub_raid6_recover): Use power of generator representation.
368 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
370 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
371 for the right device.
373 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
375 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
376 expected by grub-mkimage and it's more clear since there is no implicit
379 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
381 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
383 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
385 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
387 * util/grub-mkrescue.in: Fix handling xorriso option.
389 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
391 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
394 2011-11-03 crocket <crockabiscuit@gmail.com>
396 * util/grub.d/10_linux.in: Add Slackware initrd naming.
398 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
400 XZ CRC64 and SHA256 support.
402 * Makefile.util.def (libgrubmods): Add crc64.c.
403 * grub-core/Makefile.core.def (crc64): New module.
404 * grub-core/lib/crc64.c: New file.
405 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
406 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
408 (MAX_HASH_SIZE): New define.
409 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
410 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
411 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
412 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
413 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
414 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
415 Handle non-crc32 hashes.
416 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
417 (dec_stream_header): Handle non-crc32 hashes.
418 (dec_stream_footer): Likewise.
419 (dec_block_header): Likewise.
420 (dec_main): Likewise.
421 (xz_dec_init): Likewise.
422 (xz_dec_reset): Likewise.
423 (xz_dec_end): Likewise.
424 * util/import_gcry.py: Add CRC64 line.
426 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
428 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
431 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
433 Make reiserfs label retrieval similar to other *_label functions.
435 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
436 (REISERFS_MAX_LABEL_LENGTH): Removed.
437 (REISERFS_LABEL_OFFSET): Likewise.
438 (grub_reiserfs_label): Rewritten.
440 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
442 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
445 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
447 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
449 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
451 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
452 drive failure on both raidz and raidz2.
454 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
456 Fix RAIDZ(2) for >= 5 devices.
458 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
459 asize argument. All users updated.
461 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
465 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
466 (fill_vdev_info_real): Set ashift.
467 (read_device): Rewrite RAIDZ part based on reverse engineering.
469 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
471 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
472 don't report potentially unavialiable fields in debug output.
473 (find_path): Fix double-free and memory leak.
475 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
479 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
480 (grub_ufs_fs): Always set .label.
482 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
486 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
487 (grub_ufs_data): New field log2_blksz.
488 (grub_ufs_read_file): Use shifts.
489 (grub_ufs_mount): Check block size and logarithm it.
491 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
493 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
496 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
498 Handle symlinks and long names on tar and cpio.
500 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
501 (ATTR_FILE): Likewise.
502 (ATTR_DIR): Likewise.
503 (ATTR_LNK): Likewise.
504 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
505 (grub_cpio_find_file): Fill mode, handle linkname field as well as
507 (grub_cpio_mount): Zero-fill data.
508 (handle_symlink): New function.
509 (grub_cpio_dir): Handle symlinks.
510 (grub_cpio_open): Likewise.
511 (grub_cpio_close) [MODE_USTAR]: Free linkname.
513 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
515 Fix iso9660 filename limitations and fix memory leaks.
517 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
518 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
520 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
522 Fix JFS file name length limitations.
524 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
525 (grub_jfs_diropen): Fix maximum filename length.
526 (grub_jfs_getent): Fix filename length.
527 (grub_jfs_lookup_symlink): Fix size checks.
529 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
531 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
534 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
536 Leverage BFS implementation to read AFS.
538 * Makefile.util.def (libgrubmods): Add afs.c.
539 * grub-core/Makefile.core.def (afs): New module
540 * grub-core/fs/afs.c: New file.
541 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
543 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
545 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
547 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
549 * grub-core/fs/bfs.c: Run indent.
551 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
553 BFS implementation based on the specification.
555 * grub-core/fs/bfs.c: New file.
556 * Makefile.util.def (libgrubmods): Add bfs.c.
557 * grub-core/Makefile.core.def (bfs): New module.
559 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
561 * util/grub-fstest.c (cmd_cp): Clarify error message.
564 2011-10-30 Yves Blusseau <blusseau@zetam.org>
566 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
569 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
571 Remove afs and befs because of copyright problem.
573 * grub-core/fs/afs.c: Removed.
574 * grub-core/fs/afs_be.c: Removed.
575 * grub-core/fs/befs.c: Removed.
576 * grub-core/fs/befs_be.c: Removed.
577 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
578 * grub-core/Makefile.core.def (afs): Removed.
583 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
585 Prefer rockridge over Joliet.
587 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
589 (set_rockridge): ... here.
590 (grub_iso9660_mount): Check rockridge on the primary label when
591 discovering. Ignore Joliet if Rockridge is present.
593 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
595 Use shifts in nilfs2.
597 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
598 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
599 (grub_nilfs2_palloc_entries_per_group): Replace with ...
600 (grub_nilfs2_log_palloc_entries_per_group): ... this.
601 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
602 (grub_nilfs2_entries_per_block): Replaced with ...
603 (grub_nilfs2_log_entries_per_block_log): ... this.
604 (grub_nilfs2_blocks_per_group): Replaced with ...
605 (grub_nilfs2_blocks_per_group_log): ... this.
606 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
607 (grub_nilfs2_blocks_per_desc_block_log): ... this.
608 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
609 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
610 (grub_nilfs2_palloc_entry_offset): Replaced ...
611 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
612 (grub_nilfs2_dat_translate): Use shifts.
613 (grub_nilfs2_read_inode): Likewise.
614 (GRUB_MOD_INIT): Ensure that logs are correct.
616 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
618 Use shifts in minix filesystem.
620 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
621 (GRUB_MINIX_ZONE2SECT): Likewise.
622 (grub_minix_data): Replace block_size with log_block_size.
623 (grub_minix_read_file): Use shifts.
624 (grub_minix_mount): Check block size and take a logarithm.
626 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
628 Use shifts in squash4.
630 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
631 (squash_mount): Check block size and take logarithm.
632 (direct_read): Use shifts.
634 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
636 Correct befs block counting logic.
638 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
639 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
640 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
641 (grub_afs_read_inode): Use block_shift.
642 (RANGE_SHIFT): New definition.
643 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
644 unexpected conditions, use shifts and appropriate types.
645 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
647 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
649 * grub-core/disk/raid.c (scan_devices): Check partition.
650 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
652 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
654 Support BFS (befs) UUID.
656 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
657 (grub_afs_small_data_element_header): New struct.
658 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
659 (grub_afs_read_attribute) [MODE_BFS]: New function.
660 (grub_afs_iterate_dir): Allocate for complete inode.
661 (grub_afs_mount): Likewise.
662 (grub_afs_uuid) [MODE_BFS]: New function.
663 (grub_afs_fs) [MODE_BFS]: Add .uuid.
665 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
667 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
668 (zfs_unmount): Fix memory leak.
670 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
672 Support NTFS reparse points.
674 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
675 (symlink_descriptor): New struct.
676 (grub_ntfs_read_symlink): New function.
677 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
678 (grub_ntfs_open): Likewise.
680 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
682 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
684 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
686 fstest xnu_uuid subcommand.
688 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
689 grub-core/commands/xnu_uuid.c.
690 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
691 (fstest): Handle xnu_uuid.
692 (options): Document xnu_uuid.
693 (argp_parser): Parse xnu_uuid.
695 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
697 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
698 -l argument. Add newline at the end if printing.
699 (GRUB_MOD_INIT): Document -l.
701 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
703 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
705 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
707 ZFS multi-device and version 33 support.
709 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
710 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
711 (grub_zfs_data): Add multidev-ice-related fields.
712 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
713 (dva_get_offset): Make dva const.
714 (zfs_fetch_nvlist): New function.
715 (fill_vdev_info_real): Likewise.
716 (fill_vdev_info): Likewise.
717 (check_pool_label): Likewise.
718 (scan_disk): Likewise.
719 (scan_devices): Likewise.
720 (read_device): Likewise.
721 (read_dva): Likewise.
722 (zio_read_gang): Use read_dva.
723 (zio_read_data): Likewise.
724 (zap_leaf_lookup): Add missing endian conversion.
725 (zap_verify): Add missing endian conversion. All users updated.
726 (fzap_lookup): Likewise.
727 (fzap_iterate): Likewise.
728 (dnode_get_path): Handle SA bonus.
729 (nvlist_find_value): Make input const. All users updated.
730 (unmount_device): New function.
731 (zfs_unmount): Use unmount_device.
732 (zfs_mount): Use scan_disk.
733 (zfs_mtime): New function.
734 (grub_zfs_open): Handle system attributes.
735 (fill_fs_info): Likewise.
736 (grub_zfs_dir): Likewise.
737 (grub_zfs_fs): Add mtime.
738 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
739 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
740 (SA_MTIME_OFFSET): Likewise.
741 (SA_SYMLINK_OFFSET): Likewise.
742 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
743 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
744 (fstest): Support zfsinfo.
745 (argp_parser): Likewise.
747 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
749 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
752 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
756 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
757 sharing the same block. Iterate over correct number of indices.
758 (dnode_get_path): Handle symlinks correctly.
760 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
762 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
764 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
768 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
769 (grub_hfsplus_btree_search): Fix types.
770 (grub_hfsplus_label): Implement.
772 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
774 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
776 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
778 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
780 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
782 Fix symlink handling on iso9660.
784 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
786 (grub_iso9660_susp_iterate): Accept zero-size iterate.
787 (grub_iso9660_read_symlink): Moved most of code ...
788 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
790 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
792 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
793 Use union to avoid breaking strict-aliasing rules.
795 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
797 Support multi-extent iso files.
799 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
801 (grub_fshelp_node): Revamp. All users updated.
803 (read_node): New function.
804 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
806 (grub_iso9660_mount): Don't attempt to read sua when there is none.
807 (get_node_size): New function.
808 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
810 Fix memory leak on . and ..
811 (grub_iso9660_read): Use read_node.
812 (grub_iso9660_close): Free node.
814 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
816 Fix tar 4G limit and handle paths containing dot.
818 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
819 (canonicalize): New function.
820 (grub_cpio_find_file): Use canonicalize. Store offs in
822 (grub_cpio_dir): Use grub_disk_addr_t.
823 (grub_cpio_open): Likewise.
825 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
827 Fix handling of uncompressed blocks on squashfs and break 4G limit.
829 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
831 (grub_squash_inode): Add long_file and block_size.
832 (grub_squash_cache_inode): New struct.
833 (grub_squash_dirent): Make types into enum.
834 (SQUASH_TYPE_LONG_REGULAR): New type.
835 (grub_squash_frag_desc): Add field size.
836 (SQUASH_BLOCK_FLAGS): New enum.
837 (grub_squash_data): Use grub_squash_cache_inode.
838 (grub_fshelp_node): Make ino_chunk 64-bit.
839 (read_chunk): Minor argument change. All users updated.
840 (squash_mount): Use correct le_to_cpu.
841 (grub_squash_open): Handle LONG_REGULAR.
842 (direct_read): New function.
843 (grub_squash_read_data): Handle blocks correctly.
845 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
847 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
849 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
851 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
853 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
857 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
859 (uberblock_verify): Likewise.
860 (dmu_read): Likewise.
861 (grub_zfs_read): Likewise. Remove invalid cast.
863 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
865 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
866 (grub_jfs_blkno): Fix incorrect shift.
867 (grub_jfs_read_file): Use more appropriate types.
869 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
871 Support triple indirect on minix2 and minix3.
873 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
874 Declare triple_indir_zone.
875 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
878 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
882 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
883 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
884 Rename ctime to mtime. All users updated.
885 (grub_minix_get_file_block): Fix types and double indirect computations.
887 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
889 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
890 if no label is found.
891 (grub_fat_iterate_dir): Fix file size type.
892 (grub_fat_iterate_dir): Likewise.
894 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
896 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
898 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
899 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
901 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
903 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
905 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
907 * util/import_gcry.py: Accept space between # and include.
909 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
911 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
913 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
915 Fine grainely disable warnings on lexer. Remove Wno-error on it.
917 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
918 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
920 * grub-core/script/yylex.l: Add fine-grained #pragma.
922 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
924 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
926 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
928 (memset) [GRUB_UTIL]: Likewise.
929 (memcmp) [GRUB_UTIL]: Likewise.
931 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
933 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
934 inline function rather than a define.
936 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
938 * util/grub-setup.c: Add missing include.
940 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
942 * util/ieee1275/grub-ofpathname.c: Add missing include.
944 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
946 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
947 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
950 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
952 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
955 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
957 * util/grub-install.in: Add datarootdir as per automake manual
959 * util/grub-mknetdir.in: Likewise.
961 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
963 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
965 * util/grub.d/10_kfreebsd.in: Likewise.
966 * util/grub.d/10_linux.in: Likewise.
967 * util/grub.d/10_netbsd.in: Likewise.
968 * util/grub.d/10_windows.in: Likewise.
969 * util/grub.d/20_linux_xen.in: Likewise.
971 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
973 Remove redundant grub_kernel_image_size.
975 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
977 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
978 the small code. It moves it only by few bytes but simplifies the code.
979 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
981 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
982 (grub_kernel_image_size): Removed.
983 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
984 (grub_kernel_image_size): Removed.
985 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
986 compiled with Apple toolchain.
987 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
988 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
989 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
990 (grub_total_module_size): Likewise.
991 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
993 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
994 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
995 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
996 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
997 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
998 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
999 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
1000 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
1002 (grub_total_module_size): Removed.
1003 * util/grub-mkimage.c (image_target_desc): Remove image_size.
1004 (image_targets): Likewise.
1005 Set .compressed_size to no field on sparc.
1006 (generate_image): Remove kernel_image_size handling.
1008 2011-10-19 Szymon Janc <szymon@janc.net.pl>
1010 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
1011 NULL pointer dereference.
1013 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1015 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
1016 done with a dedicated section.
1018 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
1019 Ensure the correct position of boot_path.
1020 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
1021 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
1023 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
1024 * include/grub/boot.h: Removed. All references removed.
1025 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
1027 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
1029 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1031 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
1034 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1036 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
1038 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1040 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1041 Don't add the bogus brackets.
1043 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1047 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
1048 * grub-core/Makefile.core.def (exfat): New module.
1049 * grub-core/fs/exfat.c: New file.
1050 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
1051 (GRUB_FAT_ATTR_*): Make into an enum.
1052 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
1053 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
1054 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
1055 (GRUB_FAT_MAXFILE): Removed.
1056 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
1057 (grub_current_fat_bpb_t): New type.
1058 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
1059 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
1060 (grub_fat_dir_node_t): New type.
1061 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
1062 (fat_log2) [MODE_EXFAT]: Removed.
1063 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
1064 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
1065 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
1066 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
1067 (grub_fat_label) [MODE_EXFAT]: New function.
1068 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
1069 reserved_first_sector to 0.
1071 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1073 Move grub_reboot out of the kernel.
1075 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
1076 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
1077 * grub-core/lib/efi/reboot.c: ... here.
1078 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
1079 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
1080 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
1081 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
1082 * grub-core/lib/i386/reboot_trampoline.S: ... here.
1083 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
1084 * grub-core/lib/ieee1275/reboot.c: ... here.
1085 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
1086 * grub-core/lib/mips/arc/reboot.c: ... here.
1087 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
1088 * grub-core/lib/mips/loongson/reboot.c: ...here.
1089 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
1090 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
1091 * include/grub/emu/misc.h (grub_reboot): New function declaration.
1092 * include/grub/i386/reboot.h: New file.
1093 * include/grub/mips/loongson/ec.h: Fix includes.
1094 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
1095 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
1096 * grub-core/lib/i386/reboot.c: New file.
1098 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1100 Make grub_prefix into module to fix the arbitrary limit and save
1103 * grub-core/kern/emu/main.c (grub_prefix): Removed.
1104 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
1105 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
1106 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
1107 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
1108 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
1109 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
1110 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
1111 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
1112 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
1113 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
1114 * include/grub/ia64/efi/kernel.h: Removed.
1115 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
1116 (grub_prefix): Removed.
1117 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
1118 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
1119 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
1120 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
1121 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
1122 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
1123 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
1124 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
1125 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
1126 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
1127 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
1128 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
1129 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
1130 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
1131 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
1132 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
1133 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
1134 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
1135 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
1136 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
1137 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
1138 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
1139 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
1140 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
1141 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
1142 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
1143 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
1144 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
1145 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
1147 * util/grub-mkimage.c (image_target_desc): Removed prefix and
1149 (image_targets): Likewise.
1150 (generate_image): Put prefix as a module.
1152 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1154 Replace grub_module_iterate with FOR_MODULES.
1156 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
1157 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
1158 (grub_efi_modules_addr): ...this.
1159 * grub-core/kern/efi/init.c (grub_modbase): New variable.
1160 (grub_efi_init): Set grub_modbase.
1161 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
1162 (grub_modbase): New variable.
1163 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
1164 (grub_modbase): New variable.
1165 (grub_machine_init): Set grub_modbase.
1166 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
1167 (grub_modbase): New variable.
1168 (grub_machine_init): Set grub_modbase.
1169 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
1170 (grub_modbase): New variable.
1171 (grub_machine_init): Set grub_modbase.
1172 * grub-core/kern/main.c (grub_module_iterate): Remove.
1173 (grub_modules_get_end): Use grub_modbase.
1174 (grub_load_modules): Use FOR_MODULES.
1175 (grub_load_config): Likewise.
1176 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
1177 (grub_modbase): New variable.
1178 (grub_machine_init): Set grub_modbase.
1179 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
1180 (grub_modbase): New variable.
1181 (grub_machine_init): Set grub_modbase.
1182 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
1184 (grub_modbase): New variable.
1185 (grub_machine_init): Set grub_modbase.
1186 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
1187 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
1188 (grub_module_iterate): Likewise.
1189 (grub_modbase): New variable declaration.
1190 (FOR_MODULES): New macro.
1192 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1194 * configure.ac: Check for __ctzdi2 and __ctzsi2.
1195 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
1197 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1199 Fix few obvious type discrepancies.
1201 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
1202 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
1203 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
1205 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
1206 and connected types.
1207 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
1209 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
1210 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
1211 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
1212 and connected types.
1214 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1216 Fix python 3.x incompatibilities.
1218 * gentpl.py: Put brackets around print strings.
1219 * util/import_gcry.py: Open explicitly as utf-8.
1220 Use in instead of has_key.
1222 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1224 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
1225 (GRUB_XFS_INO_AGBITS): Make into inline function.
1226 (GRUB_XFS_INO_INOINAG): Likewise.
1227 (GRUB_XFS_INO_AG): Likewise.
1228 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
1229 (GRUB_XFS_EXTENT_OFFSET): Likewise.
1230 (GRUB_XFS_EXTENT_BLOCK): Likewise.
1231 (GRUB_XFS_EXTENT_SIZE): Likewise.
1232 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
1233 (GRUB_XFS_NEXT_DIRENT): Likewise.
1234 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
1235 (grub_xfs_read_file): Fix offset type.
1237 2011-10-15 Robert Millan <rmh@gnu.org>
1239 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
1241 2011-10-15 Robert Millan <rmh@gnu.org>
1243 Fix build problem on FreeBSD and GNU/kFreeBSD.
1245 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
1247 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1249 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
1251 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
1253 (grub_hfsplus_btree_recoffset): Likewise.
1254 (grub_hfsplus_btree_recptr): Likewise.
1255 (grub_hfsplus_find_block): Likewise.
1256 (grub_hfsplus_btree_search): Likewise.
1257 (grub_hfsplus_read_block): Likewise.
1258 (grub_hfsplus_read_file): Likewise.
1259 (grub_hfsplus_mount): Likewise.
1260 (grub_hfsplus_btree_iterate_node): Likewise.
1261 (grub_hfsplus_btree_search): Likewise.
1262 (grub_hfsplus_iterate_dir): Likewise.
1263 (grub_hfsplus_read): A small code simplification.
1265 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1267 * grub-core/kern/emu/hostdisk.c
1268 (convert_system_partition_to_system_disk): Don't assume that children
1269 of mapper nodes are mapper nodes.
1271 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1273 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
1274 * include/grub/misc.h (grub_isxdigit): New function.
1275 * grub-core/video/colors.c (my_isxdigit): Removed. All users
1276 switched to grub_isxdigit.
1277 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
1278 number starting with a letter.
1280 2011-10-09 Robert Millan <rmh@gnu.org>
1282 LVM support for FreeBSD and GNU/kFreeBSD.
1284 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
1286 (LVM_DEV_MAPPER_STRING): Move from here ...
1287 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
1288 * util/getroot.c: Include `<grub/util/lvm.h>'.
1289 (grub_util_get_dev_abstraction): Enable
1290 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
1291 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
1292 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
1293 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
1295 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
1297 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
1298 when LVM abstraction is required for ${GRUB_DEVICE}.
1300 2011-10-06 Szymon Janc <szymon@janc.net.pl>
1302 Add support for LZO compression in GRUB:
1303 - import of minilzo library,
1304 - LZO decompression for btrfs,
1305 - lzop files decompression.
1307 * grub-core/io/lzopio.c: New file.
1308 * grub-core/lib/adler32.c: Likewise.
1309 * grub-core/lib/minilzo/lzoconf.h: Likewise.
1310 * grub-core/lib/minilzo/lzodefs.h: Likewise.
1311 * grub-core/lib/minilzo/minilzo.c: Likewise.
1312 * grub-core/lib/minilzo/minilzo.h: Likewise.
1313 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
1314 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
1315 grub-core/lib/minilzo/minilzo.c to common.
1316 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
1318 * grub-core/Makefile.core.def (btrfs): Likewise.
1319 * grub-core/Makefile.core.def (lzopio): New module.
1320 (adler32): Likewise.
1321 * grub-core/fs/btrfs.c: Include minilzo.h.
1322 (GRUB_BTRFS_COMPRESSION_LZO): New define.
1323 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
1324 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
1325 (grub_btrfs_lzo_decompress): New function.
1326 (grub_btrfs_extent_read): Add support for LZO compression type.
1327 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
1328 (GRUB_USHRT_MAX): Likewise.
1329 (GRUB_UINT_MAX): Likewise.
1330 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
1331 (UINT_MAX): Likewise.
1332 (CHAR_BIT): Likewise.
1333 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
1334 grub-core/lib/posix_wrap/limits.h
1335 (UCHAR_MAX): Likewise.
1336 * include/grub/file.h (grub_file_filter_id): New compression filter
1337 GRUB_FILE_FILTER_LZOPIO.
1338 * include/grub/file.h (grub_file_filter_id): Set
1339 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
1340 * include/grub/types.h (grub_get_unaligned16): New function.
1341 (grub_get_unaligned32): Likewise.
1342 (grub_get_unaligned64): Likewise.
1343 * util/import_gcry.py (cryptolist): Add adler32.
1345 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
1347 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
1348 in perspective decreases the complexity of build system and fixes
1349 compilation right now.
1351 2011-10-01 Ales Nesrsta <starous@volny.cz>
1353 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
1354 (fixed problem related to using UHCI with coreboot).
1356 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
1358 * gentpl.py: Use Autogen macros so that the output template file
1359 (Makefile.tpl) size is reduced.
1361 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
1363 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
1366 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
1368 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
1369 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
1371 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
1373 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
1376 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
1378 Remove extra declaration of sleep for mingw32.
1380 * util/misc.c (sleep) [__MINGW32__]: Removed.
1381 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
1383 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1385 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
1387 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
1389 (NETBSD_BTINFO_BOOTWEDGE): New definition.
1390 (grub_netbsd_btinfo_bootwedge): New struct.
1391 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
1393 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
1395 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
1397 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
1400 2011-09-28 Andreas Born <futur.andy@googlemail.com>
1402 Fix incorrect identifiers in bash-completion.
1404 * util/bash-completion.d/grub-completion.bash.in
1405 (_grub_mkpasswd-pbkdf2): Rename to ...
1406 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
1407 (_grub_script-check): Rename to ...
1408 (_grub_script_check): ... this. All users updated.
1410 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1412 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
1413 Return 0 if disk isn't biosdisk.
1415 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
1417 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
1419 * Makefile.util.def (grub-fstest): Likewise.
1421 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
1423 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
1424 Get sector size from disk label.
1426 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
1428 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
1429 */README* as well as README*.
1430 Reported by: Axel Beckert.
1432 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1434 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
1435 case of less than 256 MiB of RAM.
1437 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1439 * grub-core/commands/wildcard.c (make_regex): Handle @.
1441 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1443 * util/grub-install.in: Move cryptodisk logic to appropriate place.
1445 2011-08-21 Szymon Janc <szymon@janc.net.pl>
1447 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
1448 AC_LANG_CONFTEST macros.
1450 2011-08-20 Szymon Janc <szymon@janc.net.pl>
1452 Add grub-fstest option to uncompress data for commands.
1454 * util/grub-fstest.c (uncompress): New var.
1455 (options): New option -u.
1457 2011-08-20 Szymon Janc <szymon@janc.net.pl>
1459 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
1460 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
1462 2011-08-20 Szymon Janc <szymon@janc.net.pl>
1464 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
1465 file type was not recognized correctly (not gzip or corrupted).
1467 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1469 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
1470 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
1472 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1474 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
1476 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
1477 video_radeon_fuloong2e.
1478 * grub-core/video/radeon_fuloong2e.c: New file.
1479 * include/grub/video.h (grub_video_id_t): Add new ID
1480 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
1482 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1484 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
1486 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
1487 that PRID matches the detected subplatform and reset the subplatform
1490 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1492 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
1494 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1496 Fix PCI iterating on functions >= 4.
1498 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
1499 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
1501 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
1502 (grub_pci_read): Fix bitmask.
1503 (grub_pci_read_word): Likewise.
1504 (grub_pci_read_byte): Likewise.
1505 (grub_pci_write): Likewise.
1506 (grub_pci_write_word): Likewise.
1507 (grub_pci_write_byte): Likewise.
1509 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1511 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
1512 can still be specified in TARGET_CFLAGS)
1514 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
1516 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
1518 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
1519 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
1520 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
1521 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
1522 (FULOONG): Rename to ...
1523 (FULOONG2F): ... this. All users updated.
1524 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
1525 (machtype_fuloong2f_str): ... this.
1526 (machtype_fuloong2e_str): New string.
1527 Check for machtype_fuloong2e_str.
1528 * grub-core/loader/mips/linux.c (loongson_machtypes)
1529 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
1530 * grub-core/term/serial.c (loongson_defserial)
1531 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
1532 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
1534 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
1536 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
1537 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
1538 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
1539 to IMAGE_FULOONG2F_FLASH. All users updated.
1540 (image_targets): Rename images.
1541 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
1543 2011-08-19 Szymon Janc <szymon@janc.net.pl>
1545 Make enable of disk cache statistics code configurable.
1547 * configure.ac: --enable-cache-stats added.
1548 * config.h.in (DISK_CACHE_STATS): New define.
1549 * grub-core/Makefile.core.def (cacheinfo): New command.
1550 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
1551 * grub-core/commands/cacheinfo.c: New file.
1552 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
1553 moved to cacheinfo.c.
1554 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
1556 * include/grub/disk.h: Likewise.
1558 2011-08-19 Szymon Janc <szymon@janc.net.pl>
1560 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
1561 * grub-core/Makefile.am: Likewise.
1563 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1565 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
1568 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1570 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
1572 (grub_jfs_lookup_symlink): Use correct starting inode.
1574 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1576 * util/grub-setup.c (main): Add missing gcry initialisation.
1578 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1580 Don't accept text modes on EFI when booting Linux.
1582 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
1583 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
1585 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
1586 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
1588 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
1589 use of "/path/.." as in grub-install for EFI as well as handling
1591 Fixes Debian bug #637768.
1593 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
1595 * util/grub-probe.c: Remove duplicate #include.
1597 2011-08-10 Robert Millan <rmh@gnu.org>
1599 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
1601 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
1603 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
1604 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
1606 2011-08-03 Robert Millan <rmh@gnu.org>
1608 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
1610 Reported by: Zachary Bedell
1612 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
1614 * configure.ac: The Loongson port requires grub-mkfont due to its
1615 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
1618 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
1620 * util/grub-install.in: Don't source grub-mkconfig_lib until after
1621 processing arguments (otherwise help2man fails when GRUB has not yet
1624 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1626 New script grub-mkstandalone.
1628 * Makefile.util.def (grub-mkstandalone): New script.
1629 * docs/man/grub-mkstandalone.h2m: New file.
1630 * util/grub-mkstandalone.in: Likewise.
1632 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1634 Support ATA disks with 4K sectors.
1636 * include/grub/ata.h (grub_ata): New member log_sector_size.
1637 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
1638 (grub_ata_identify): Read sector size.
1639 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
1641 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1643 * util/grub-install.in: Don't use uhci outside of x86.
1645 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1647 * util/grub-mkrescue.in: Add missing quotes.
1649 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1651 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
1654 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1656 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
1658 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1660 * include/grub/video.h: add missing EXPORT_FUND on
1661 grub_video_edid_checksum and grub_video_edid_preferred_mode.
1663 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1665 * include/grub/mips/kernel.h: Fix define conflict.
1667 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1669 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
1672 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
1674 Preferred resolution detection for VBE.
1676 * grub-core/video/video.c (grub_video_edid_checksum): New function.
1677 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
1678 the Flat Panel extension, in line with the X.org VESA driver.
1679 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
1681 (grub_vbe_bios_get_ddc_capabilities): Likewise.
1682 (grub_vbe_bios_read_edid): Likewise.
1683 (grub_vbe_get_preferred_mode): Likewise.
1684 (grub_video_vbe_setup): When the mode is "auto", try to get the
1685 preferred mode from VBE, and use the largest mode that is no larger
1686 than the preferred mode (some BIOSes expose a preferred mode that is
1687 not in their mode list!). If this fails, fall back to 640x480 as a
1688 safe conservative choice.
1689 (grub_video_vbe_get_edid): New function.
1690 (grub_video_vbe_adapter): Add get_edid.
1691 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
1692 (struct grub_video_adapter): Add get_edid.
1693 (grub_video_edid_checksum): Add prototype.
1694 (grub_video_edid_preferred_mode): Likewise.
1695 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
1698 * grub-core/commands/videoinfo.c (print_edid): New function.
1699 (grub_cmd_videoinfo): Print EDID if available.
1701 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
1702 is more appropriate on a wider range of platforms than 640x480.
1703 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
1706 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1708 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
1710 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1712 * po/POTFILES.in: Regenerate.
1714 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1716 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
1717 incorrect memory usage.
1719 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
1721 * util/grub-install.in: Source grub-mkconfig_lib.
1723 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
1725 Remove getroot.c from core on emu platform.
1727 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
1729 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
1731 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
1732 * util/getroot.c (get_win32_path): ... here.
1733 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
1734 * util/getroot.c (fini_libzfs): ... here.
1735 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
1736 * util/getroot.c (grub_get_libzfs_handle): ... here.
1737 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
1739 * util/getroot.c (grub_find_zpool_from_dir): ... here.
1740 * grub-core/kern/emu/misc.c
1741 (grub_make_system_path_relative_to_its_root): Moved from here...
1742 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
1743 * grub-core/kern/emu/getroot.c: Moved from here ...
1744 * util/getroot.c: ... here. All users updated.
1745 * grub-core/kern/emu/raid.c: Moved from here ...
1746 * util/raid.c: ... here. All users updated.
1748 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
1750 * po/POTFILES.in: Regenerate.
1752 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1754 Fix compilation on GNU/Linux.
1756 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
1758 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
1759 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
1760 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
1762 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1763 2011-07-07 Michael Gorven <michael@gorven.za.net>
1764 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
1766 LUKS and GELI support.
1768 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
1769 grub-core/disk/luks.c, grub-core/disk/geli.c,
1770 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
1771 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
1772 grub-core/lib/arg.c.
1773 (libgrubmods.a): Remove gcrypts cflags and cppflags.
1774 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
1775 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
1776 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
1777 (grub-bin2h): Add libgcry.a.
1778 (grub-mkimage): Likewise.
1779 (grub-mkrelpath): Likewise.
1780 (grub-script-check): Likewise.
1781 (grub-editenv): Likewise.
1782 (grub-mkpasswd-pbkdf2): Likewise.
1783 (grub-pe2elf): Likewise.
1784 (grub-fstest): Likewise.
1785 (grub-mkfont): Likewise.
1786 (grub-mkdevicemap): Likewise.
1787 (grub-probe): Likewise.
1788 (grub-ofpath): Likewise.
1789 (grub-mklayout): Likewise.
1790 (example_unit_test): Likewise.
1791 (grub-menulst2cfg): Likewise.
1792 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
1793 * grub-core/Makefile.core.def (cryptodisk): New module.
1796 * grub-core/disk/AFSplitter.c: New file.
1797 * grub-core/disk/cryptodisk.c: Likewise.
1798 * grub-core/disk/geli.c: Likewise.
1799 * grub-core/disk/luks.c: Likewise.
1800 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
1802 (grub_util_get_dm_abstraction): New function.
1803 (grub_util_follow_gpart_up): Likewise.
1804 (grub_util_get_geom_abstraction): Likewise.
1805 (grub_util_get_dev_abstraction): Use new functions.
1806 (grub_util_pull_device): Pull GELI and LUKS.
1807 (grub_util_get_grub_dev): Handle LUKS and GELI.
1808 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
1809 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
1810 (follow_geom_up): Removed.
1811 (grub_util_fd_seek): New function.
1812 (open_device): Use grub_util_fd_seek.
1813 (nread): Rename to ..
1814 (grub_util_fd_read): ... this. All users updated.
1815 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
1816 (grub_crypto_cbc_decrypt): Likewise.
1817 (grub_crypto_hmac_write): Likewise.
1818 (grub_crypto_hmac_buffer): Likewise.
1819 (grub_password_get): Extend to util.
1820 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
1822 (gcry_md_spec) [GRUB_UTIL]: Likewise.
1823 * include/grub/cryptodisk.h: New file.
1824 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
1825 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
1827 (grub_util_follow_gpart_up): New proto.
1828 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
1829 (grub_util_fd_read): Likewise.
1830 (grub_cryptodisk_cheat_mount): Likewise.
1831 (grub_util_cryptodisk_print_uuid): Likewise.
1832 (grub_util_get_fd_sectors): Likewise.
1833 * util/grub-fstest.c (mount_crypt): New var.
1834 (fstest): Mount crypto if requested.
1835 (options): New option -C.
1836 (argp_parser): Parse -C.
1837 (main): Init and fini gcry.
1838 * util/grub-install.in: Support cryptodisk install.
1839 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
1840 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
1842 (prepare_grub_to_access_device): Likewise.
1843 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
1844 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
1845 (probe_cryptodisk_uuid): New function.
1846 (probe_abstraction): Likewise.
1847 (probe): Use new functions.
1848 * util/import_gcry.py: Create Makefile.utilgcry.def.
1851 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1853 Lazy device scanning.
1855 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
1856 (grub-setup): Remove util/raid.c.
1857 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
1858 * grub-core/disk/lvm.c (scan_depth): New variable.
1859 (grub_lvm_iterate): Rescan if necessary.
1860 (find_lv): New function based on grub_lvm_open.
1861 (grub_lvm_open): Use find_lv. Rescan on error.
1862 (is_node_readable): New function.
1863 (is_lv_readable): Likewise.
1864 (grub_lvm_scan_device): Skip already found disks.
1865 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
1866 Stop if searched device is found and readable.
1867 * grub-core/disk/raid.c (inscnt): New variable.
1868 (scan_depth): Likewise.
1869 (scan_devices): New function based on grub_raid_register. Abort if
1870 looked for device is found.
1871 (grub_raid_iterate): Rescan if needed.
1872 (find_array): NEw function based on -grub_raid_open.
1873 (grub_raid_open): Use find_array and rescan.
1874 (insert_array): Set became_readable_at.
1875 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
1876 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
1878 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
1879 (grub_util_pull_device): New function.
1880 (grub_util_get_grub_dev): Call grub_util_pull_device.
1881 * util/raid.c: Moved to ..
1882 * grub-core/kern/emu/raid.c: ... here.
1883 (grub_util_raid_getmembers): New parameter "bootable".
1884 All users updated. Support 1.x.
1885 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
1887 * include/grub/disk.h (grub_disk_pull_t): New enum.
1888 (grub_disk_dev): Change iterate prototype.
1890 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
1892 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
1893 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
1894 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
1895 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
1897 * include/grub/util/raid.h: Removed.
1899 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
1901 * po/POTFILES.in: Regenerate.
1903 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
1905 Unify sparc init with other ieee1275.
1907 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
1908 instead of kern/sparc64/ieee1275/init.c.
1909 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
1910 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
1911 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
1912 grub/machine/kernel.h.
1913 (grub_ieee1275_original_stack) [__sparc__]: New variable.
1914 (grub_claim_heap) [__sparc__]: Use sparc version.
1915 (grub_machine_init): Moved args parsing to
1916 (grub_parse_cmdline): ...this.
1917 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
1918 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
1920 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
1922 Move BOOTP to separate file.
1924 * grub-core/Makefile.core.def (net): Add net/bootp.c.
1925 * grub-core/net/net.c: Move all BOOTP functions to
1926 * grub-core/net/bootp.c: ... here.
1928 Use frame interface on PXE.
1930 * grub-core/Makefile.core.def (pxecmd): Removed.
1931 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
1932 * grub-core/commands/i386/pc/pxecmd.c: Removed.
1933 * grub-core/i386/pc/pxe.c: Moved from here ...
1934 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
1935 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
1936 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
1938 EFI network support.
1940 * grub-core/Makefile.core.def (efinet): New module.
1941 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
1943 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
1945 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
1946 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
1947 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
1948 * grub-core/net/drivers/efi/efinet.c: New file.
1949 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
1950 (grub_efi_net_config): New extern var.
1952 Various cleanups and bugfixes.
1954 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
1956 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
1957 disk declared as partition.
1958 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
1960 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
1961 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
1962 (grub_debug_zalloc): Likewise.
1963 (grub_debug_realloc): Likewise.
1964 (grub_debug_memalign): Likewise.
1965 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
1966 Check that target is IPv4.
1967 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
1968 local-mac-address as fallback.
1969 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
1971 * grub-core/net/ip.c (ipchksum): Rename to ...
1972 (grub_net_ip_chksum): ... this. All users updated.
1973 (grub_net_recv_ip_packets): Special handling for DHCP.
1974 * util/grub-mkimage.c (generate_image): Zero-out aout header.
1976 Unify prefix handling
1978 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
1979 (grub_machine_get_bootlocation): ... this.
1980 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
1981 (grub_machine_get_bootlocation): ... this.
1982 (grub_prefix): New variable.
1984 (root_dev): New variable.
1986 (main): Use new variables.
1987 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
1989 (grub_machine_get_bootlocation): ... this.
1990 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
1991 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
1992 (grub_machine_get_bootlocation): ... this.
1993 (grub_machine_set_prefix): Removed.
1994 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
1995 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
1997 (grub_machine_get_bootlocation): ... this.
1998 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
1999 (grub_set_prefix_and_root): ... this. All users updated.
2000 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
2002 (grub_machine_get_bootlocation): ... this.
2003 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
2004 (grub_machine_get_bootlocation): New proto.
2005 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
2007 Less intrusive and more reliable seek on network implementation.
2009 * grub-core/kern/file.c (grub_file_net_seek): Removed.
2010 (grub_file_seek): Don't call grub_file_net_seek.
2011 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
2012 (grub_net_fs_read_real): .. this.
2013 (grub_net_seek_real): Use net->offset.
2014 (grub_net_fs_read): Seek if necessary.
2016 Unify IEEE1275 netwotk config with the other platforms.
2018 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
2020 (grub_machine_get_bootlocation): Support network.
2021 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
2022 Support type and device parsing.
2023 (grub_ieee1275_get_device_type): New function.
2024 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
2026 (grub_ieee1275_net_config_real): ... this.
2027 (grub_ofnet_probecards): Removed.
2028 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
2029 * include/grub/ieee1275/ofnet.h: Removed.
2030 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
2032 (grub_ieee1275_get_device_type): New function.
2034 Unify network device closing across platforms and make more robust.
2036 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
2038 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
2040 * grub-core/net/net.c (grub_net_network_level_interface_register):
2042 (grub_net_card_unregister): Close all interfaces.
2043 (receive_packets): Don't poll if no iterfaces are registered.
2045 (grub_net_fini_hw): New function.
2046 (grub_net_restore_hw): Likewise.
2047 (fini_hnd): New variable.
2048 (GRUB_MOD_INIT): Register preboot hook.
2049 (GRUB_MOD_FINI): Run and unregister preboot hook.
2051 Poll network cards when idle.
2053 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
2054 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
2055 * grub-core/net/net.c (receive_packets): Save last poll time.
2056 (grub_net_poll_cards_idle_real): New function.
2057 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
2058 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
2059 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
2061 Rename ofnet interfaces.
2063 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
2064 (grub_ofnet_findcards): Use ofnet_%s names.
2066 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
2068 Cleanup socket opening.
2070 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
2071 (grub_net_fs_close): Likewise.
2072 (grub_net_fs_read_real): Use eof member.
2073 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
2074 (+grub_net_udp_close): New inline function.
2076 * include/grub/net/tftp.h: Moved to the top of ...
2077 * grub-core/net/tftp.c: ... here.
2078 * include/grub/net/ip.h: Moved mostly to the top of ...
2079 * grub-core/net/ip.c: ... here.
2080 * include/grub/net/ethernet.h: Moved mostly to the top of ...
2081 * grub-core/net/ethernet.c: ... here.
2083 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
2085 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
2088 * include/grub/net/ip.h (ipv4_ini): Removed.
2089 (ipv4_fini): Likewise.
2091 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
2092 (grub_net_send_ip_packets): Likewise.
2094 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
2096 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
2097 grub_read_cmos prototype.
2099 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
2101 VGA text support in qemu-mips
2103 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
2104 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
2105 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
2107 * grub-core/kern/i386/qemu/init.c: Renamed to ...
2108 * grub-core/kern/vga_init.c: ... this.
2109 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
2110 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
2111 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
2113 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
2114 GRUB_MACHINE_PCI_IO_BASE.
2116 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
2118 MIPS qemu flash support.
2120 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
2122 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
2123 (grub_machine_init): Probe memory if its size isn't known.
2124 * util/grub-mkimage.c (image_targets): Add flash targets.
2125 (generate_image): Handle flash targets.
2127 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
2129 MIPS qemu at_keyboard support.
2131 * gentpl.py (videoinkernel): Add qemu-mips.
2132 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
2133 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
2134 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
2136 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
2137 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
2138 * grub-core/term/serial.c (grub_serial_register)
2139 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
2141 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
2143 CMOS support on sparc.
2145 * gentpl.py (cmos): Add powerpc and sparc.
2146 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
2148 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
2149 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
2150 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
2151 grub_set_datetime_cmos.
2152 * grub-core/lib/ieee1275/cmos.c: New file.
2153 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
2154 (find_rtc): Set no_ieee1275_rtc on error.
2155 (grub_get_datetime): Call grub_get_datetime_cmos on error.
2156 (grub_set_datetime): Call grub_set_datetime_cmos on error.
2157 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
2158 fail. Move value to argument. All users updated
2159 (grub_cmos_write): Likewise.
2160 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
2161 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
2162 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
2163 grub_get_datetime_cmos and grub_set_datetime_cmos.
2165 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
2167 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
2168 sourcing grub-mkconfig_lib.
2169 * util/update-grub_lib.in: Likewise.
2170 * util/grub.d/00_header.in: Likewise.
2171 * util/grub.d/10_hurd.in: Likewise.
2172 * util/grub.d/10_kfreebsd.in: Likewise.
2173 * util/grub.d/10_linux.in: Likewise.
2174 * util/grub.d/10_netbsd.in: Likewise.
2175 * util/grub.d/10_windows.in: Likewise.
2176 * util/grub.d/20_linux_xen.in: Likewise.
2177 * util/grub.d/30_os-prober.in: Likewise.
2179 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
2181 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
2182 default_bg_color rather than black.
2183 (grub_gfxterm_fullscreen): Likewise.
2184 (grub_gfxterm_background_color_cmd): Save new background color in
2187 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2189 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
2191 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2193 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
2196 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2198 Chainloading on coreboot support.
2200 * grub-core/Makefile.core.def (chain): Add coreboot.
2201 * grub-core/loader/i386/coreboot/chainloader.c: New file.
2203 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2205 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
2208 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2210 Implement time command.
2212 * grub-core/Makefile.core.def (time): New module.
2213 * grub-core/commands/time.c: New file.
2214 * grub-core/script/parser.y: Remove "time" keyword.
2215 * grub-core/script/yylex.l: Likewise.
2217 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2219 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
2221 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2223 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
2224 when handling leftovers.
2226 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2228 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
2229 so that help2man doesn't fail.
2231 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2233 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
2234 type in pointers on sparc64.
2235 (get_card_packet): Likewise.
2237 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
2239 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
2241 (grub_cmd_videoinfo): Fetch current video mode.
2243 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2245 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
2246 because of underlying system restrictions.
2248 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2250 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
2253 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2255 Coreboot video support.
2257 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
2259 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
2260 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
2262 * grub-core/kern/i386/int.S: ... here.
2263 * grub-core/video/i386/pc/vbe.c: Updated includes.
2264 * grub-core/video/i386/pc/vga.c: Likewise.
2265 * include/grub/i386/coreboot/memory.h
2266 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
2267 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
2268 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
2269 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
2271 * include/grub/i386/pc/vga.h: Removed. All users updated.
2273 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2275 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
2276 definitions for dprintf.
2277 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
2279 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2281 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
2283 (get_card_packet): Likewise.
2285 2011-06-26 Yves Blusseau <blusseau@zetam.org>
2287 Display the path of the file when file is not found
2289 * grub-core/fs/fat.c: Display the filename when file is not found.
2290 * grub-core/fs/fshelp.c: Likewise.
2291 * grub-core/fs/hfs.c: Likewise.
2292 * grub-core/fs/jfs.c: Likewise.
2293 * grub-core/fs/minix.c: Likewise.
2294 * grub-core/fs/ufs.c: Likewise.
2295 * grub-core/fs/btrfs.c: Likewise.
2296 * grub-core/commands/i386/pc/play.c: Likewise.
2298 2011-06-26 Szymon Janc <szymon@janc.net.pl>
2300 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
2301 pointer checks before calling grub_free().
2302 * grub-core/commands/wildcard.c (match_devices): Likewise.
2303 * grub-core/commands/wildcard.c (match_files): Likewise.
2304 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
2305 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
2306 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
2307 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
2308 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
2309 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
2310 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
2311 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
2312 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
2314 2011-06-25 Patrick <p55@mailinator.com>
2316 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
2318 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2320 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
2321 (grub_pxe_send): Likewise.
2322 (GRUB_MOD_INIT): Fix types.
2324 2011-06-24 Szymon Janc <szymon@janc.net.pl>
2326 * grub-core/io/xzio.c: Fix code style issues
2328 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2329 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
2331 Network infrastructure.
2332 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
2334 * include/grub/net/arp.h: New file.
2335 * include/grub/net/device.h: Likewise.
2336 * include/grub/net/ethernet.h: Likewise.
2337 * include/grub/net/ip.h: Likewise.
2338 * include/grub/net/netbuff.h: Likewise.
2339 * include/grub/net/tftp.h: Likewise.
2340 * include/grub/net/udp.h: Likewise.
2341 * include/grub/ieee1275/ofnet.h: Likewise.
2342 * include/grub/emu/export.h: Likewise.
2343 * include/grub/net.h: Likewise.
2344 * grub-core/net/arp.c: Likewise.
2345 * grub-core/net/ethernet.c: Likewise.
2346 * grub-core/net/ip.c: Likewise.
2347 * grub-core/net/udp.c: Likewise.
2348 * grub-core/net/tftp.c: Likewise.
2349 * grub-core/net/netbuff.c: Likewise.
2350 * grub-core/net/net.c: Likewise.
2351 * grub-core/net/drivers/emu/emunet.c: Likewise.
2352 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
2353 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
2355 * grub-core/Makefile.core.def (net): New module.
2359 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
2361 * grub-core/kern/device.c (grub_net_open) : New variable.
2362 (grub_device_open): Handle network device.
2363 (grub_device_close): Likewise.
2364 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
2365 (grub_grubnet_fini): Likewise.
2366 (grub_file_seek): Seek in network device.
2367 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
2368 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
2370 (grub_machine_fini): Call grub_grubnet_fini.
2371 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
2373 (grub_ieee1275_get_aliasdevname): New function.
2374 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
2375 Add unofficial Solaris network info.
2376 (grub_multiboot_make_mbi): Likewise.
2377 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
2378 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
2379 * include/grub/device.h (grub_fs): Removed.
2380 * include/grub/err.h (grub_err_t): Add network-related values.
2381 * include/grub/i386/pc/pxe.h: Removed bootp parts.
2382 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
2383 (grub_ieee1275_get_aliasdevname): New proto.
2384 * include/grub/net.h: Rewritten.
2386 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2388 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
2391 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2393 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
2394 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
2395 it truncates the output.
2396 Reported by: Ximin Luo.
2398 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2400 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
2402 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2404 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
2405 partmap before abstraction.
2407 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
2409 * util/grub-mkconfig_lib.in: Add missing quotes.
2411 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2413 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
2414 old method if mountinfo would return /dev/root and /dev/root doesn't
2417 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2421 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
2422 (decomp_table): Add zlib entries.
2423 (zio_read): USe 8 bits for compression function rather than 3.
2424 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
2426 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2428 * grub-core/disk/ahci.c: Add missing license statements.
2429 * grub-core/fs/romfs.c: Likewise.
2430 * grub-core/lib/ia64/setjmp.S: Likewise.
2431 * grub-core/loader/i386/pc/freedos.c: Likewise.
2432 * grub-core/loader/ia64/efi/linux.c: Likewise.
2433 * grub-core/video/colors.c: Likewise.
2434 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
2436 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2440 * grub-core/Makefile.core.def (ata_pthru): Removed.
2443 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
2445 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
2447 (grub_hdparm_do_check_powermode_cmd): Likewise.
2448 (grub_hdparm_do_smart_cmd): Likewise.
2449 (grub_hdparm_set_val_cmd): Likewise.
2450 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
2451 * grub-core/disk/ahci.c: New file.
2452 * grub-core/disk/ata.c: Factor out the low-level part into ...
2453 * grub-core/disk/pata.c: ... here.
2454 * grub-core/disk/ata_pthru.c: Contents moved to ...
2455 * grub-core/disk/pata.c: ... here.
2456 * grub-core/disk/scsi.c (grub_scsi_names): New array.
2457 (grub_scsi_iterate): Use grub_scsi_names.
2458 (grub_scsi_open): Likewise.
2459 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
2460 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
2461 (grub_ata_regs_t): New struct.
2462 (grub_disk_ata_pass_through_parms): Likewise.
2463 (grub_ata_device): Renamed to ...
2464 (grub_ata): ... this.
2465 (grub_ata_dev): New struct.
2466 Removed all low-level inline functions.
2467 * include/grub/scsi.h: Add PATA and AHCI subsystems.
2468 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
2469 iterate hooks and open. All users updated.
2470 * util/grub-install.in: Handle AHCI disk module.
2472 2011-06-23 Szymon Janc <szymon@janc.net.pl>
2474 Add support for DRI and RSTn markers in JPEG files.
2476 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
2477 (JPEG_MARKER_RST0): Likewise.
2478 (JPEG_MARKER_RST1): Likewise.
2479 (JPEG_MARKER_RST2): Likewise.
2480 (JPEG_MARKER_RST3): Likewise.
2481 (JPEG_MARKER_RST4): Likewise.
2482 (JPEG_MARKER_RST5): Likewise.
2483 (JPEG_MARKER_RST6): Likewise.
2484 (JPEG_MARKER_RST7): Likewise.
2485 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
2486 (grub_jpeg_decode_dri): New function.
2487 (grub_jpeg_decode_sos): Move image data related part into
2488 grub_jpeg_decode_data function.
2489 (grub_jpeg_decode_data): New function.
2490 (grub_jpeg_reset): New function.
2491 (grub_jpeg_decode_jpeg): Handle new markers.
2493 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2495 * util/ieee1275/ofpath.c (check_sas): Close fd.
2496 (main): Free of_path.
2497 Reported by: David Volgyes <dvolgyes>.
2499 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2501 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
2502 Reported by: David Volgyes <dvolgyes>.
2504 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2506 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
2508 Reported by: David Volgyes <dvolgyes>.
2510 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2512 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
2514 Reported by: David Volgyes <dvolgyes>.
2516 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2518 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
2519 Prevent memory leak.
2521 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2523 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
2525 Reported by: David Volgyes <dvolgyes>.
2527 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2529 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
2530 to continue if allocation is failed.
2532 Reported by: David Volgyes <dvolgyes>.
2534 2011-06-23 David Volgyes <dvolgyes>
2536 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
2539 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2541 Fix spurious warning.
2543 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
2544 (acorn_partition_map_find): Use .bin member.
2546 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2548 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
2549 /dev/root as a valid device.
2551 2011-06-23 Jim Meyering <meyering@redhat.com>
2553 Avoid NULL deref in grub_device_open.
2555 * grub-core/kern/device.c (grub_device_open): Don't dereference
2556 a NULL pointer upon failed grub_env_get.
2558 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2560 Support non-512B sectors and agglomerate reads.
2562 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
2563 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
2564 (disk_io_guid): Removed.
2565 (make_devices): Locate solely by BlockIO.
2566 (grub_efidisk_open): Fill log_sector_size and total_sectors.
2567 (grub_efidisk_read): Use read_blocks.
2568 (grub_efidisk_write): Use write_blocks.
2569 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
2571 (get_safe_sectors): Handle non-512B sectors.
2572 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
2574 (grub_biosdisk_write): Handle non-512B sectors.
2575 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
2576 (grub_scsi_read): Remove special non-512B block handling (now handled
2578 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
2579 and do sanity checks.
2580 (grub_disk_adjust_range): Handle non-512B sectors.
2581 (transform_sector): New function.
2582 (grub_disk_read_small): Likewise.
2583 (grub_disk_read): Rewritten.
2584 (grub_disk_write): Handle non-512B sectors.
2585 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
2587 (open_device): Use log_sector_size.
2588 (grub_util_biosdisk_read): Likewise.
2589 (grub_util_biosdisk_write): Likewise.
2590 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
2592 (pc_partition_map_embed): Likewise.
2593 * include/grub/disk.h (grub_disk): New field log_sector_size.
2594 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
2595 (GRUB_DISK_CACHE_BITS): Increased to 6.
2596 * util/grub-fstest.c (fstest): New command testload.
2597 (argp_parser): Likewise.
2599 2011-06-16 Robert Millan <rmh@gnu.org>
2601 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
2602 `ata' driver on kernel of FreeBSD 9.
2604 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
2605 (get_ataraid_disk_name): New functions.
2606 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
2607 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
2608 get_ataraid_disk_name() and get_ada_disk_name().
2610 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
2612 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
2615 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
2617 * docs/grub.texi (Obtaining and Building GRUB): Substitute
2618 `ftp.gnu.org' for `alpha.gnu.org'.
2620 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
2622 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
2623 partitions under /dev/disk/by-id/.
2625 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
2627 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
2628 after ten consecutive open failures. Scanning all the way up to
2629 10000 is excessive and can cause serious performance problems in
2630 some configurations.
2631 Fixes Ubuntu bug #787461.
2633 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2635 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
2638 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
2639 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2641 Don't stat devices unless we have to.
2643 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
2645 (grub_guess_root_device): Use already known os_dev if possible.
2646 * grub-core/kern/emu/hostdisk.c
2647 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
2648 if device is known to be a dm one.
2650 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
2652 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
2653 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
2654 Reported by: Pawel Tecza.
2656 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
2658 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
2659 (lsefisystab): Likewise.
2661 (lsefimmap): Likewise.
2662 (hdparm): Enable on qemu-mips.
2663 (setjmp): Add ia64 nodist.
2664 (serial): Simplify tags.
2666 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2668 * Makefile.util.def (grub-ofpathname): Install manual page.
2670 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2672 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
2674 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2676 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
2678 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2680 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
2683 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2685 Use full 64-bit division.
2687 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
2688 (grub_divmod64): ... this.
2689 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
2692 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2694 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
2697 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2699 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
2700 to avoid accidents when debugging with 'sh -x'.
2701 * grub-core/gensyminfo.sh.in: Likewise.
2702 * tests/example_scripted_test.in: Likewise.
2703 * tests/grub_cmd_regexp.in: Likewise.
2704 * tests/grub_script_blanklines.in: Likewise.
2705 * tests/grub_script_dollar.in: Likewise.
2706 * tests/grub_script_expansion.in: Likewise.
2707 * tests/grub_script_final_semicolon.in: Likewise.
2708 * tests/partmap_test.in: Likewise.
2709 * tests/util/grub-shell-tester.in: Likewise.
2710 * tests/util/grub-shell.in: Likewise.
2712 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2714 Move gfxmenu color handling to video, so that gfxterm can use it
2717 * grub-core/gfxmenu/named_colors.c: Move to ...
2718 * grub-core/video/colors.c: ... here. Rename
2719 grub_gui_get_named_color to grub_video_get_named_color.
2720 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
2721 * grub-core/video/colors.c (my_isxdigit): ... here.
2722 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
2724 * grub-core/video/colors.c (parse_hex_color_component): ... here.
2725 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
2727 * grub-core/video/colors.c (grub_video_parse_color): ... here.
2729 * include/grub/gui.h (grub_gui_color_t): Move to ...
2730 * include/grub/video.h (grub_video_rgba_color_t): ... here.
2731 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
2732 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
2733 * include/grub/gui.h (grub_gui_map_color): Move to ...
2734 * include/grub/video.h (grub_video_map_rgba_color): ... here.
2735 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
2737 * include/grub/video.h (grub_video_get_named_color): ... here.
2738 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
2739 * include/grub/video.h (grub_video_parse_color): ... here.
2741 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
2743 (gfxmenu): Remove gfxmenu/named_colors.c.
2744 (video) [videomodules]: Add video/colors.c.
2746 Add a background_color command.
2748 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
2750 (GRUB_MOD_INIT): Register background_color command.
2751 (GRUB_MOD_FINI): Unregister background_color command.
2752 (redraw_screen_rect): Allow blend/replace of text layer to be
2753 controlled independently from whether there is a background bitmap.
2754 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
2757 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2759 Patch BPB in ntldr and chainloader --bpb.
2761 * grub-core/fs/fat.c: Include grub/fat.h.
2762 (grub_fat_bpb): Moved to ...
2763 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
2764 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
2766 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
2768 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
2770 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
2772 (grub_chainloader_cmd): Patch BPB if --bpb is given.
2773 (GRUB_MOD_INIT): Show --bpb.
2774 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
2775 * grub-core/normal/main.c (features): New variable.
2776 (GRUB_MOD_INIT): Set feature_* variables.
2777 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
2779 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
2781 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2783 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
2786 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2788 FreeDOS direct loading support.
2790 * docs/grub.texi (Supported OS): Add FreeDOS.
2791 * grub-core/Makefile.core.def (freedos): New module.
2792 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
2794 (grub_relocator16_boot): Handle %ebx.
2795 * grub-core/lib/i386/relocator16.S: Likewise.
2796 * grub-core/loader/i386/pc/freedos.c: New file.
2798 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2800 Long Linux command line support.
2802 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
2803 (maximal_cmdline_size): New variable.
2804 (allocate_pages): Use maximal_cmdline_size.
2805 (grub_cmd_linux): Set and use maximal_cmdline_size.
2806 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
2807 (allocate_pages): Use maximal_cmdline_size.
2808 (grub_cmd_linux): Set and use maximal_cmdline_size.
2809 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
2810 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
2813 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2814 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
2816 Improve devmapper support
2818 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
2819 (grub_util_is_lvm): New function.
2820 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
2821 than lvm if not dmraid.
2822 Handle mapped md nodes.
2823 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
2824 (grub_util_device_is_mapped): ... this. Make always available. All users
2826 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
2827 (convert_system_partition_to_system_disk): Handle lvm, mpath and
2829 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
2831 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2833 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
2835 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
2836 * grub-core/modinfo.sh.in: New file.
2837 * grub-core/Makefile.core.def (modinfo.sh): New script.
2838 * util/grub-mknetdir.in: Use modinfo.sh.
2839 * util/grub-mkrescue.in: Likewise.
2841 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2843 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
2844 Fix potential usage of Elf32 instead of Elf64 when compiling on
2845 32-bit architecture. Add endianness macros while on it.
2847 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2849 Use mipsel- rather than mips- in directories involving mipsel ports to
2850 allow both endiannesses coexist.
2852 * configure.ac: proparate target_cpu=mipsel rather than resetting to
2853 mips. All conditions adjusted.
2854 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
2856 * util/grub-install.in: Adjust conditions to take renaming into account.
2857 * util/grub-mkimage.c (image_targets): Likewise. New target
2858 mips-qemu_mips-elf for bigendian mips.
2860 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2862 Avoid unnecessary copying on MIPS.
2864 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
2865 early if src == dest.
2866 * util/grub-mkimage.c (generate_image): Arange for src == dest if
2867 compression is none.
2869 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2871 Reduce memory footprint on SGI by putting modules before the kernel
2872 as opposed to after.
2874 * grub-core/Makefile.core.def (kernel): Increase linking address.
2875 (none_decompress): Likewise.
2876 (xz_decompress): Likewise.
2877 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
2879 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
2881 (grub_arch_modules_addr): New function.
2882 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
2883 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
2884 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
2886 * grub-core/kern/mips/startup.S (total_size): Rename to ...
2887 (grub_total_modules_size): ... this. Make global.
2888 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
2889 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
2891 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
2892 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
2893 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
2894 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
2895 * util/grub-mkimage.c (image_target_desc): New flag
2896 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
2897 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
2898 (generate_image): Handle images with modules before kernel.
2900 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2902 Prevent potential loss of memory map by overwrite on qemu-mips.
2904 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
2905 Save ram size in $s4.
2906 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
2907 All users changed to grub_arch_memsize.
2908 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
2910 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
2911 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
2912 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
2915 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2917 * .bzrignore: Remove grub-dumpbios.
2919 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2921 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
2922 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
2923 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
2924 existing options which append).
2925 * docs/grub.texi (Simple configuration): Document new options.
2926 Reported by: Ian Jackson. Fixes Debian bug #617538.
2928 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2930 * util/grub-fstest.c (cmd_cat): New function.
2931 (fstest): Handle CMD_CAT.
2933 (argp_parser): Handle cat.
2935 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
2937 * Makefile.util.def (grub-bin2h): Don't install.
2938 * docs/man/grub-bin2h.h2m: Remove.
2940 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2942 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
2945 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2947 Reenable qemu-mips port.
2949 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
2950 Fix small arc bug while on it.
2951 * gentpl.py: Handle qemu_mips.
2952 * grub-core/Makefile.am: Likewise.
2953 * grub-core/Makefile.core.def: Likewise.
2954 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
2955 inappropriate includes.
2956 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
2957 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
2958 * grub-core/kern/main.c (grub_modules_get_end)
2959 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
2960 * grub-core/kern/mips/qemu-mips: Moved to ..
2961 * grub-core/kern/mips/qemu_mips: ... this.
2962 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
2963 (grub_machine_init): Call terminfo_init and serial_init.
2964 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
2965 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
2967 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
2969 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
2970 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
2971 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2972 * include/grub/mips/qemu_mips/cmos.h: New file.
2973 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
2974 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
2976 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
2977 Use correct mips-style address.
2978 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
2979 (GRUB_TICKS_PER_SECOND): Removed.
2980 (grub_get_rtc): Likewise.
2981 (grub_cpu_idle): Likewise.
2982 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
2984 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
2985 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
2986 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
2987 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
2988 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
2989 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
2990 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
2991 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
2993 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2997 * Makefile.util.def (libgrubmods.a): Add dvh.c.
2998 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
3000 * configure.ac: New target mips-arc.
3001 * gentpl.py: Likewise.
3002 * grub-core/Makefile.am: Likewise.
3003 * grub-core/Makefile.core.def: Likewise.
3004 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
3005 (none_decompress): Likewise.
3006 (lsdev): New module.
3007 (datetime): Use lib/arc/datetime.c on ARC.
3008 (part_dvh): New module.
3009 * grub-core/commands/arc/lsdev.c: New file.
3010 * grub-core/disk/arc/arcdisk.c: Likewise.
3011 * grub-core/kern/mips/arc/init.c: Likewise.
3012 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
3014 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
3016 (grub_arch_dl_relocate_symbols): Likewise.
3017 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
3018 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
3019 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
3021 * grub-core/lib/arc/datetime.c: New file.
3022 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
3023 pci.h on non-loongson.
3024 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
3025 (grub_linux_boot): Set unused registers to 0.
3026 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
3027 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
3028 * grub-core/mmap/mips/uppermem.c: ...here.
3029 * grub-core/partmap/dvh.c: New file.
3030 * grub-core/term/arc/console.c: Likewise.
3031 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
3032 (grub_terminfo_set_current): Add terminal "arc".
3033 (grub_terminfo_readkey): Support ARC sequences.
3034 * include/grub/arc/arc.h: New file.
3035 * include/grub/arc/console.h: Likewise.
3036 * include/grub/disk.h (grub_disk_dev_id): Add
3037 GRUB_DISK_DEVICE_ARCDISK_ID.
3038 * include/grub/mips/arc/kernel.h: New file.
3039 * include/grub/mips/arc/memory.h: Likewise.
3040 * include/grub/mips/arc/time.h: Likewise.
3041 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
3042 * include/grub/mips/kernel.h (grub_halt): ... here.
3043 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
3045 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
3046 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
3047 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
3048 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
3050 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
3052 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
3053 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
3054 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
3055 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
3056 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
3057 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
3058 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
3059 (grub_phys_addr_t): Moved from here ...
3060 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
3061 (grub_vtop): Moved from here ...
3062 * include/grub/mips/memory.h (grub_vtop): ... here.
3063 (grub_map_memory): Moved from here ...
3064 * include/grub/mips/memory.h (grub_map_memory): ... here.
3065 (grub_unmap_memory): Moved from here ...
3066 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
3067 (grub_machine_mmap_iterate): Moved from here ...
3068 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
3069 (grub_mmap_get_lower): Moved from here ...
3070 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
3071 (grub_mmap_get_upper): Moved from here ...
3072 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
3073 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
3075 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
3076 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
3078 * include/grub/mips/time.h (grub_get_rtc): ... here.
3079 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
3081 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
3082 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
3084 * include/grub/mips/time.h (grub_cpu_idle): ... here.
3085 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
3087 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
3088 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
3089 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
3090 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
3091 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
3092 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
3093 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
3094 (GRUB_MACHINE_LINK_ADDR): Likewise.
3095 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
3097 * util/grub-install.in: Run dvhtool on ARC.
3098 * util/grub-mkimage.c (image_targets): Add mips-arc.
3099 (generate_image): Handle ECOFF output for mips-arc.
3101 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
3103 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
3106 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
3108 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
3109 after enabling port.
3111 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
3113 Skip incorrect USB devices.
3115 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
3117 * include/grub/usb.h (grub_usb_err_t): New enum value
3118 GRUB_USB_ERR_BADDEVICE.
3120 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
3122 Fuloong video init support.
3124 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
3126 (grub_vga_read_arx): New function.
3127 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
3129 (framebuffer): New members io, mmioptr and mmiobase.
3130 (read_sis_cmd): New function.
3131 (write_sis_cmd): Likewise.
3132 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
3133 rather than 640x400.
3134 * grub-core/video/sis315_init.c: New file.
3136 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3138 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
3140 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
3141 to grub_dl_register_symbol.
3143 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3145 Fix compilation errors.
3147 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
3149 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
3150 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
3151 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
3152 to loongson machines.
3154 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3156 Several FS mtime support.
3158 * grub-core/fs/affs.c (grub_affs_time): New struct.
3159 (grub_affs_file): New field mtime.
3160 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
3161 type. Removed 'size'. New field 'di'. All users updated.
3162 (grub_affs_mount): Simplify checsum checking.
3163 (grub_affs_iterate_dir): New helper grub_affs_create_node.
3164 (grub_affs_dir): Handle mtime.
3165 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
3166 (grub_cpio_dir): Likewise.
3167 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
3168 (grub_hfs_filerec): New field mtime.
3169 (grub_hfs_dir): Handle mtime.
3170 (grub_hfs_mtime): New function.
3171 (grub_hfs_fs): Register grub_hfs_mtime.
3172 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
3173 (grub_iso9660_dir): New field mtime.
3174 (grub_fshelp_node): New field dirent.
3175 (iso9660_to_unixtime): New function.
3176 (iso9660_to_unixtime2): Likewise.
3177 (grub_iso9660_read_symlink): Use node->dirent.
3178 (grub_iso9660_iterate_dir): Likewise.
3179 (grub_iso9660_dir): Set mtime.
3180 (grub_iso9660_mtime): New function.
3181 (grub_iso9660_fs): Register grub_iso9660_mtime.
3182 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
3183 (grub_jfs_inode): New fields atime, ctime and mtime.
3184 (grub_jfs_dir): Set mtime.
3185 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
3186 * grub-core/fs/ntfs.c (list_file): Set mtime.
3187 (grub_ntfs_dir): Likewise.
3188 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
3189 (grub_reiserfs_iterate_dir): Set mtime.
3190 (grub_reiserfs_dir): Likewise.
3191 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
3192 (grub_fshelp_node): Likewise.
3193 (grub_sfs_iterate_dir): Set mtime.
3194 (grub_sfs_dir): Likewise.
3195 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
3196 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
3197 (grub_xfs_inode): New fields atime, mtime, ctime.
3198 (grub_xfs_dir): Set mtime.
3199 * include/grub/datetime.h (grub_datetime2unixtime): New function.
3200 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
3201 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
3203 Support UDF symlinks.
3205 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
3206 (grub_ufs_read_symlink): New function. All users updated.
3208 Check amiga partmap checksum.
3210 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
3211 (grub_amiga_partition): Likewise.
3212 (amiga_partition_map_checksum): New function.
3213 (amiga_partition_map_iterate): Check checksum.
3215 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3219 * Makefile.util.def (libgrubmods.a): Add romfs.
3220 * grub-core/Makefile.core.def (romfs): New module.
3221 * grub-core/fs/romfs.c: New file.
3223 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3225 Squashfs v4 support.
3227 * Makefile.util.def (libgrubmods.a): Add squash4.
3228 * grub-core/Makefile.core.def (squash4): New module.
3229 * grub-core/fs/squash4.c: New file.
3230 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
3231 disk_input_start, disk_input.
3232 (get_byte): Handle disk_input.
3233 (grub_zlib_disk_read): New function.
3234 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
3236 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3237 2011-05-15 Feiran Zheng <famcool@gmail.com>
3239 * Makefile.util.def (libgrubmods.a): Add minix3.
3240 * grub-core/Makefile.core.def (minix3): New module.
3241 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
3242 (GRUB_MINIX_BSIZE): Removed.
3243 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
3244 (grub_minix_ino_t): New type.
3245 (grub_minix_le_to_cpu_ino): New macro.
3246 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
3247 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
3248 (grub_minix_data): New field block_size.
3249 (grub_minix_read_file): Handle 64-bit correctly.
3250 * grub-core/fs/minix3.c: New file.
3252 2011-05-15 Tristan Gingold <gingold@free.fr>
3253 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
3254 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3258 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
3259 * configure.ac: Add ia64-efi target.
3260 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
3261 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
3262 * gentpl.py: Add ia64_efi platform.
3263 Rename x86_efi to efi and Add ia64-efi. All users updated.
3264 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
3265 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
3266 Remove kern/generic/rtc_get_time_ms.c on EFI.
3267 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
3268 kern/ia64/dl_helper.c on ia64-efi.
3269 Add kern/emu/cache.c on emu.
3270 (linux): Use on loader/ia64/efi/linux.c on ia64.
3271 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
3272 whether symbol is a function.
3273 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
3274 (grub_symbol): New field 'isfunc'.
3275 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
3276 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
3277 (grub_dl_load_segments): Place all sections into the same region.
3278 [__ia64__]: Create trampolines and got.
3279 [GRUB_MACHINE_EMU]: Call mprotect.
3280 (grub_dl_resolve_symbols): Resolve symbol type as well.
3281 [__ia64__]: Create function descriptors.
3282 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
3283 (grub_rtc_get_time_ms): ... this. Expressions simplified.
3284 (grub_get_rtc): New function.
3285 * grub-core/kern/emu/cache.c [__ia64__]: New file.
3286 * grub-core/kern/emu/cache.S: Renamed to ...
3287 * grub-core/kern/emu/cache_s.S: ... this.
3288 [__ia64__]: Add a nop.
3289 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
3290 [__ia64__]: New function.
3291 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
3292 * grub-core/kern/ia64/dl.c: New file.
3293 * grub-core/kern/ia64/dl_helper.c: Likewise.
3294 * grub-core/kern/ia64/efi/init.c: New file.
3295 * grub-core/kern/ia64/efi/startup.S: Likewise.
3296 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
3297 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
3298 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
3299 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
3300 * grub-core/loader/ia64/efi/linux.c: New file.
3301 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
3302 (GRUB_MOD_DEP): Likewise.
3303 (grub_dl) [__ia64__]: New fields got and tramp.
3304 (grub_dl): New field 'base'.
3305 (grub_dl_register_symbol): New argument isfunc. All users updated.
3306 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
3307 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
3308 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
3309 (grub_ia64_dl_get_tramp_got_size): New proto.
3310 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
3311 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
3312 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
3313 * include/grub/efi/api.h: Skip call wrappers on ia64.
3314 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
3315 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
3316 * include/grub/elf.h (ELF_ST_INFO): New definition.
3317 * include/grub/ia64/efi/kernel.h: New file.
3318 * include/grub/ia64/efi/memory.h: Likewise.
3319 * include/grub/ia64/efi/time.h: Likewise.
3320 * include/grub/ia64/kernel.h: Likewise.
3321 * include/grub/ia64/setjmp.h: Likewise (from glibc).
3322 * include/grub/ia64/time.h: New file.
3323 * include/grub/ia64/types.h: Likewise.
3324 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
3325 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
3327 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
3328 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
3329 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
3330 * util/grub-mkimage.c (image_target_desc): New field pe_target.
3332 (EFI64_HEADER_SIZE): New definition. All users updated.
3333 (image_targets): Add ia64-efi.
3334 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
3335 jumpers_addr. All users updated.
3336 Create function descriptors.
3337 (count_funcs): New function.
3338 (unaligned_uint32): New struct.
3339 (MASK20): New definition.
3341 (MASKF21): Likewise.
3342 (add_value_to_slot_20b): New function.
3343 (add_value_to_slot_21_real): Likewise.
3344 (add_value_to_slot_21): Likewise.
3345 (ia64_kernel_trampoline): New struct.
3346 (nopm): New variable.
3348 (make_trampoline): New function.
3349 (relocate_addresses): Handle ia64.
3350 (make_reloc_section): Likewise.
3351 (load_image): Likewise.
3353 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3355 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
3356 warning. Move variables before code while on it.
3358 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3362 * configure.ac: Rename yeeloong platform to loongson. All users updated.
3363 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
3364 * grub-core/boot/mips/loongson/fuloong.S: New file.
3365 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
3366 Explicitly init CS5536.
3367 [FULOONG]: Don't use serial until CS5536 is available.
3368 Set GPIO based on dumps.
3369 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
3370 [FULOONG]: Handle GPIO and memory controller differences.
3371 Parse machine type in $a2.
3372 * grub-core/boot/mips/startup_raw.S: Determine and save the
3374 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
3375 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
3376 init on architecture type.
3377 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
3378 SIS315E. Don't init at_keyboard on fuloong.
3379 (grub_halt): Support Fuloong.
3380 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
3381 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
3382 (loongson_machtypes): New array.
3383 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
3385 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
3386 config. All users updated. Handle CS5536 serial.
3387 * grub-core/term/serial.c (grub_serial_register): Conditionalise
3388 default port on machine type. Register serial as inactive.
3389 * grub-core/video/sis315pro.c: New file.
3390 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
3392 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
3393 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
3394 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
3395 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
3396 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
3397 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
3399 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
3400 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
3402 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
3403 (grub_arch_machine): New extern var.
3404 * include/grub/mips/loongson/serial.h
3405 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
3406 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
3407 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
3408 (GRUB_MACHINE_SERIAL_PORT0): ... this.
3409 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
3410 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
3411 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
3412 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
3413 * include/grub/term.h (grub_term_register_input_inactive): New inline
3415 (grub_term_register_output_inactive): Likewise.
3416 * include/grub/video.h (grub_video_driver_id): New value
3417 GRUB_VIDEO_DRIVER_SIS315PRO.
3418 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
3419 New field "names". All users updated.
3420 New field value IMAGE_FULOONG_FLASH.
3421 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
3423 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
3425 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
3426 and add some clarification.
3428 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3430 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
3431 platforms if kernel is compressed.
3433 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3435 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
3436 unused modules since currently referrence counter isn't reliable and
3437 there isn't much memory to recover there anyway.
3439 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3441 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
3442 rather than resetting it to allow modules to reference themselves
3445 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3447 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
3448 counter on dependencies since grub_dl_unref already handles this.
3450 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3452 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
3453 on error if not already done.
3455 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3457 Fix few potential memory misusage.
3459 * grub-core/font/font.c (load_font_index): Don't free char_index to
3461 (grub_font_load): Zero-fill font at alloc for safety.
3462 Close file on error.
3463 (free_font): Free bmp_idx.
3465 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3467 * docs/grub.texi (Installation): Fix several outdated claims.
3469 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3471 Handle module_license on windows.
3473 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
3475 (insert_string): Make argument const char * instead of char *.
3476 (write_section_data): Handle long section names.
3477 Handle module_license.
3479 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3481 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
3482 handle class-free menuentries.
3483 (grub_normal_add_menu_entry): Add a check to be sure.
3485 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3487 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
3490 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3492 * configure.ac: Bump version to 1.99.
3494 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3496 Give ATA device a bit more time on first try in order to allow disks
3499 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
3500 if dev->present is 1. Reset dev->present on failure.
3501 (grub_ata_device_initialize): Set dev->present to 1.
3502 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
3503 (grub_ata_device): New member 'present'.
3505 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3507 * util/grub-mkimage.c (generate_image): Update hash.
3509 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3511 Flush caches on DMA memory.
3513 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
3514 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
3515 (grub_dma_free): Likewise.
3516 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
3518 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3520 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
3521 to avoid asm treating ld and sd as macros.
3523 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3525 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
3528 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3530 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
3531 grub_decompress_core since later would fail if grub_decompress_core
3534 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3536 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
3537 R_MIPS_JALR since it's used by newer compiler.
3539 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3541 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
3543 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3545 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
3546 file_path to 0 for surety.
3547 (grub_chainloader_boot): Set exit_data to NULL.
3548 Unset the loader once done.
3549 (grub_cmd_chainloader): Fix confusing error message if file is empty.
3551 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3553 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
3554 unknown key into a dprintf.
3556 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3558 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
3559 on first non-existant partition.
3561 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3563 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
3565 Reported by: Mark Korenberg.
3567 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3569 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
3572 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3574 * util/grub-mkimage.c (main): Explicitely flush and sync the output
3575 before closing to ensure that it will be readable by grub-setup.
3577 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3579 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
3580 (devpath_1): Use MAKE_PIWG_PATH.
3581 (devpath_2): Likewise.
3582 (devpath_3): Likewise.
3583 (devpath_4): Likewise.
3584 (devpath_5): Likewise.
3585 (devpath_6): Likewise.
3587 The appleldr.mod was checked that to be binary identical to previous
3590 2011-05-05 Zach <mikezackles>
3592 Support 2010 Macbooks.
3594 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
3595 (devs): Add devpath_6.
3597 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3599 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
3600 /dev/random. /dev/urandom is good enough for our purposes (salting).
3602 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3604 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
3606 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3608 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
3611 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3613 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
3614 and not 0 on failure.
3616 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
3618 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
3619 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
3620 disk; otherwise grub_fs_probe will not fall back to the next
3622 (grub_pxefs_open): Likewise, for consistency.
3623 Reported and tested by: Ezekiel Grave.
3625 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
3627 * tests/partmap_test.in: Don't hardcode path to parted.
3628 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
3630 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
3632 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
3633 of `ls' to find out which devices are available.
3635 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3637 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
3638 than source address for efi mmap buffer.
3640 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3642 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
3643 wrong action on non-detecting the magic.
3645 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3647 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
3648 already supplied by another part of the module (fixes compilation on
3651 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3653 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
3654 match the one used by mdadm.
3656 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3658 * po/README: Add instructions for creating po/LINGUAS.
3660 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3662 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
3665 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
3666 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
3667 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
3668 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
3669 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
3670 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
3671 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
3672 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
3673 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
3674 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
3675 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
3676 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
3677 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
3678 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
3679 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
3680 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
3681 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
3682 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
3683 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
3684 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
3685 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
3686 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
3688 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3690 * grub-core/kern/emu/getroot.c
3691 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
3692 test that was incorrectly reintroduced in r3214.
3693 Reported by: Ian Dall. Fixes Savannah bug #33133.
3695 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
3697 Fix stack pointer handling in 16-bit relocator.
3699 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
3700 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
3701 Fixes Ubuntu bug #683904.
3703 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3705 * configure.ac: Bump version to 1.99~rc2.
3707 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3709 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
3710 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
3711 * grub-core/lib/x86_64/setjmp.S: Likewise.
3712 * grub-core/lib/mips/setjmp.S: Likewise.
3713 * grub-core/lib/powerpc/setjmp.S: Likewise.
3714 * grub-core/lib/sparc64/setjmp.S: Likewise.
3716 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3718 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
3719 * grub-core/lib/efi/datetime.c: Likewise.
3721 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3723 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
3725 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
3726 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
3727 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
3729 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3731 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
3733 (grub_gfxterm_term_init): Likewise.
3735 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3737 Take into account the decorations the computing menu entry width.
3739 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
3740 (grub_gfxmenu_create_box): Register get_border_width.
3741 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
3743 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
3746 2011-04-18 Endres Puschner <code@e7p.de>
3748 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
3749 Don't skip first class.
3751 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3753 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
3755 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
3757 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3759 Complete 64-bit division support.
3761 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
3762 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
3763 * include/grub/misc.h (grub_divmod64): Rename to ...
3764 (grub_divmod64_full): ... this.
3765 (grub_divmod64): New inline function.
3767 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3769 * util/grub-mkimage.c (generate_image): Add forgotten comma.
3771 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3773 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
3774 performing the necessary test.
3776 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3778 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
3779 (kfreebsd.elf): Likewise.
3780 (pc-chainloader.elf): Likewise.
3781 (ntldr.elf): Likewise.
3783 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3785 Identify RAID by its UUID rather than (guessed) name.
3787 * grub-core/disk/raid.c (ascii2hex): New function.
3788 (grub_raid_open): Accept mduuid/%s specification.
3789 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
3790 (get_mdadm_uuid): ... this.
3791 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
3793 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
3795 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
3798 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
3800 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
3802 * util/grub.d/20_linux_xen.in: Likewise.
3804 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
3806 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
3807 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
3809 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
3810 Build a list of relevant visible mounts using the mnt_id and
3811 parent_mnt_id fields, and then scan that list at the end.
3813 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
3815 * docs/grub.texi (normal): New section.
3816 (normal_exit): New section.
3817 (Embedded configuration): Add reference to normal.
3818 (GRUB only offers a rescue shell): Likewise.
3819 * docs/grub-dev.texi (Error Handling): Fix typo.
3821 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
3823 * NEWS: Drop obsolete entry about probe-only btrfs support.
3825 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
3827 * util/import_gcry.py: Fix typo.
3829 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3831 * NEWS: Add btrfs support.
3833 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3834 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
3836 BtrFS support. Written by me (Vladimir) with important bugfixes and
3837 even more important testing by Colin.
3839 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
3840 * grub-core/Makefile.core.def (btrfs): Add crc.c.
3841 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
3842 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
3843 mem_input_off and mem_input. All users updated to accept in-RAM input.
3844 (gzio_seek): New function.
3845 (test_zlib_header): Likewise.
3846 (grub_gzio_read): Likewise.
3847 (grub_zlib_decompress): Likewise.
3848 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
3849 Accept partial and non-virtual mounts.
3850 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
3851 avoid receiving /dev/dm-X as device.
3852 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
3853 Handle bind and partial mounts.
3854 * grub-core/lib/crc.c: New file.
3855 * include/grub/deflate.h: Likewise.
3856 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
3858 * include/grub/lib/crc.h: New file.
3860 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3862 Implement automatic module license checking according to new GNU
3865 * grub-core/kern/dl.c (grub_dl_check_license): New function.
3866 (grub_dl_load_core): Use grub_dl_check_license.
3867 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
3868 (GRUB_MOD_LICENSE): Likewise.
3869 (GRUB_MOD_DUAL_LICENSE): Likewise.
3870 All modules updated.
3872 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
3874 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
3875 reserved_first_sector to 1. btrfs reserves plenty of space for boot
3877 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
3879 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3881 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
3883 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3885 * util/grub-fstest.c (read_file): Report GRUB error if file opening
3888 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3890 * grub-core/kern/file.c (grub_file_open): Don't take into account the
3891 parenthesis in the middle of the filename.
3893 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3895 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
3896 rather than trying to put initrd way too high.
3897 Reported by: Ryan Lortie <desrt@desrt.ca>
3899 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3901 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
3902 improperly removed string.
3904 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3906 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
3908 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
3909 (open_device) Likewise.
3910 (grub_util_biosdisk_close): Likewise.
3911 Reported by: Mark Korenberg.
3913 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
3915 * util/grub-mkconfig_lib.in: Add missing quotes.
3917 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
3919 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
3922 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3924 Dynamically count the number of lines for the lower banner.
3926 * grub-core/normal/menu_entry.c (per_term_screen): New member
3928 (print_down): Use num_entries.
3929 (update_screen): Likewise.
3930 (grub_menu_entry_run): Set num_entries.
3931 * grub-core/normal/menu_text.c (menu_viewer_data): New member
3933 (grub_print_message_indented): Move real part to ...
3934 (grub_print_message_indented_real): ... here. Additional argument
3936 (draw_border): Additional argument num_entries.
3937 (print_message): Additional argument dry_run.
3938 (print_entries): Receive menu viewer data.
3939 (grub_menu_init_page): New argment num_entries.
3940 (menu_text_set_chosen_entry): Use num_entries.
3941 (grub_menu_try_text): Likewise.
3942 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
3944 (grub_ucs4_count_lines): New function.
3945 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
3946 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
3947 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
3948 (grub_term_border_height): Likewise.
3949 (grub_term_num_entries): Likewise.
3951 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3953 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
3954 Remove now unused string.
3956 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
3958 * docs/grub-dev.texi (Finding your way around): Update for 1.99
3960 (Getting started): GRUB is developed in Bazaar now, not Subversion.
3962 (Comment): Fix typo.
3963 (Getting started): General copy-editing.
3964 (Typical Development Experience): Likewise.
3965 (Error Handling): Likewise.
3966 (Video API): Likewise.
3968 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
3970 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
3973 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3975 * util/grub-mkimage.c (main): Handle special naming of yeeloong
3978 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
3980 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
3981 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
3984 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3986 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
3987 grub_strcpy since the lines aren't necessarily 0-terminated.
3989 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3991 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
3994 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3996 * grub-core/commands/probe.c (options): Argument to set isn't optional.
3997 (GRUB_MOD_INIT): DEVICE isn't optional.
3999 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4001 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
4002 word on new line if it's too long anyway. Fixes a hang.
4004 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4006 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
4008 * util/grub-setup.c (main): Reuse md device name if available.
4009 * util/raid.c (grub_util_raid_getmembers): Receive device name and
4010 not GRUB name as argument.
4011 Based on patch by: Florian Wagner <fwagner>.
4013 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4015 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
4016 Place mbi on low memory for better compatibility.
4018 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4020 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
4022 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4023 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
4025 * autogen.sh: Ensure that collate and ctype locale is C.
4026 * conf/Makefile.common: Likewise.
4028 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4030 * grub-core/normal/menu.c: Add missing include.
4032 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4034 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
4036 2011-04-08 Martin Zuther <mzuther@mzuther.de>
4038 * util/grub-mkconfig.in: Ignore emacsen backup.
4040 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4042 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
4044 (grub_util_biosdisk_close): Likewise.
4046 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4048 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
4049 const attribute and use grub_isdigit.
4051 2011-04-06 Andrey <dev_null@ukr.net>
4053 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
4056 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4058 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
4059 useful grub_dprintf's.
4061 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4063 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
4065 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4067 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
4069 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4071 Output errors if theme loading failed.
4073 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
4074 grub_gfxterm_fullscreen on error paths to ...
4075 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
4076 theme loading error.
4078 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4080 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
4081 space for older compilers.
4082 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
4084 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4086 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
4087 and report them as not RAID members since they are useless for GRUB.
4088 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
4090 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
4092 Increase LVM implementation robustness in order not to crash on
4093 configurations like pvmove. Previously code assumed that in some places
4094 only lvs or only pvs are used whereas it seems that they are used
4097 * grub-core/disk/lvm.c (read_node): New function.
4098 (read_lv): Use read_node.
4099 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
4100 Match volumes only at the end when all lvs are found. Take both
4101 pvs (first) and lvs (second) into account.
4102 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
4103 mirror_* into node_*. All users updated.
4104 (grub_lvm_stripe): Merge this ...
4105 (grub_lvm_mirror): ... and this ...
4106 (grub_lvm_node): ... into this. All users updated.
4108 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
4110 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
4111 of function to allow further scanning for LVMs.
4113 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
4115 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
4116 on failed seek as it breaks open fd reusage.
4118 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
4120 * util/grub-install.in: Add a recommendation to use --recheck before
4123 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
4125 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
4128 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
4130 GRUB developper manual based on existing Internals section and
4131 contributions by the various authors with active copyright assignment.
4133 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
4134 * docs/font_char_metrics.png: New file.
4135 * docs/font_char_metrics.txt: Likewise.
4136 * docs/grub-dev.texi: Likewise.
4137 * docs/grub.texi (Internals): Move from here ...
4138 * docs/grub-dev.texi: ... here.
4140 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
4142 Store the loopback device as data on loopback grub_disk structures,
4143 rather than the file it points to. This fixes use of freed memory
4144 if an existing loopback device is replaced.
4146 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
4147 disk->data, not dev->file.
4148 (grub_loopback_read): Adjust file assignment to match.
4149 Fixes Ubuntu bug #742967.
4151 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
4153 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
4154 when replacing an existing device.
4156 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4158 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
4161 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
4163 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
4164 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
4165 (grub_jfs_read_inode): Likewise.
4166 (grub_jfs_opendir): Likewise. Remove now useless casts.
4167 (grub_jfs_getent): Likewise.
4168 Make ino a grub_uint32_t rather than int.
4169 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
4170 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
4171 division and module with bit operations.
4172 (grub_jfs_find_file): Make ino a grub_uint32_t.
4173 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
4175 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
4177 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
4178 warning. (This was in fact always initialised before use, but GCC
4179 wasn't smart enough to prove that.)
4180 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
4182 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4184 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
4186 (efi_wrap_1): Likewise.
4187 (efi_wrap_2): Likewise.
4188 (efi_wrap_3): Likewise.
4189 (efi_wrap_4): Likewise.
4190 (efi_wrap_5): Likewise.
4191 (efi_wrap_6): Likewise.
4192 (efi_wrap_10): Likewise.
4193 Based on information by: Red Hat/Peter Jones.
4195 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
4197 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
4198 set-but-not-used variable.
4200 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
4202 * docs/grub.texi (Simple configuration): Be more explicit about
4203 GRUB_DEFAULT, and add an example.
4204 Reported by: Leslie Rhorer.
4206 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4208 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
4211 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
4213 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
4214 * util/grub.d/20_linux_xen.in: Likewise.
4216 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4218 * util/grub.d/10_linux.in: Try alternative config filenames where
4219 we parse config file.
4220 * util/grub.d/20_linux_xen.in: Likewise.
4222 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
4224 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
4225 * util/grub.d/20_linux_xen.in: Likewise.
4227 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4229 * grub-core/disk/raid.c (insert_array): Add few potentially
4230 useful grub_util_info.
4231 (grub_raid_register): Likewise.
4233 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4235 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
4236 Preserve partition number in mdadm code path.
4238 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4240 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
4241 few potentially useful grub_util_info.
4243 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4245 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
4247 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4249 * docs/grub.texi (default): Use @example rather than nested
4250 itemized lists to avoid breaking gendocs.
4252 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4254 * docs/grub.texi (Future): Update.
4256 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4258 * docs/grub.texi (Environment): New chapter.
4259 (Changes from GRUB Legacy): Link to "Environment block" section for
4260 details of limitations.
4261 (Simple configuration): Likewise. Link to documentation of gfxmode
4262 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
4264 (Shell-like scripting): Note that normal variables are stored in the
4266 (gettext): Link to documentation of lang and locale_dir.
4267 (list_env): New section.
4268 (load_env): New section.
4269 (save_env): New section.
4271 (Reporting bugs): Fix typo.
4273 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4275 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
4278 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
4280 * grub-core/term/at_keyboard.c (set_scancodes)
4281 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
4283 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4285 * docs/grub.texi (Menu-specific commands): Remove some semantics
4286 that were true in GRUB Legacy but not in GRUB 2.
4287 (submenu): New section.
4288 (false): New section.
4289 (read): New section.
4290 (true): New section.
4292 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4294 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
4296 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
4298 * docs/grub.texi (Simple configuration): Explain some of the
4299 current limitations of grub-mkconfig.
4300 Reported by: Leslie Rhorer.
4302 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4304 Old macs search for boot.efi rather than for bootia32.efi.
4306 * util/grub-install.in: Copy bootia32.efi to boot.efi.
4307 * util/grub-mkrescue.in: Likewise.
4308 Suggested by: Peter Jones.
4310 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4312 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
4314 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4316 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
4317 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
4318 (grub_lvm_mirror): New struct.
4319 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
4320 (grub_lvm_iterate): Iterate only visible volumes.
4321 (grub_lvm_read): Factor out to ..
4322 (read_lv): ... this. Support mirrors.
4323 (grub_lvm_read): New wrapper function.
4324 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
4325 stripped or mirrored.
4327 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4329 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
4331 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
4333 * docs/grub.texi (loopback): New section.
4335 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
4337 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
4340 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
4342 * docs/grub.texi (BIOS installation): New section, partly based on
4343 previous text in other sections.
4344 (Installing GRUB using grub-install): Replace BIOS discussion with a
4348 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4350 * grub-core/kern/emu/hostdisk.c (find_partition_start)
4351 [HAVE_DIOCGDINFO]: Add safety checks.
4353 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4355 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
4356 per default compiled in kernel and prior to 8.0 isn't shipped at all.
4358 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
4360 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
4361 real_sb->size is zero (e.g. RAID-0), get the disk size from
4362 real_sb->data_size instead.
4363 Fixes Ubuntu bug #743136.
4365 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4367 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
4368 printf clauses for printing size and start.
4370 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4372 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
4373 Reported and tested by: Timothy Nikkel.
4375 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4377 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
4378 (dirty_region_add_real): ... this.
4379 (dirty_region_add): Don't discard margin refresh when performing
4382 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4384 * grub-core/lib/relocator.c (allocate_regstart)
4385 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
4386 terminals are capabple of malloc-free operation.
4387 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
4388 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
4390 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
4392 * util/grub-setup.c: Copy the partition table zone if floppy support
4393 is disabled, even if no partition table is found.
4395 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
4396 during POST if an invalid partition table is contained in the PBR
4397 of the active partition when GRUB is installed to a partition.
4399 2011-03-28 Colin Watson <cjwatson@debian.org>
4401 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
4404 2011-03-28 Colin Watson <cjwatson@debian.org>
4406 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
4407 to be specific about what kind of RAID device we're scanning for.
4409 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
4411 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
4412 return freed string.
4414 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4416 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
4418 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4420 Use libgeom on FreeBSD to detect partitions.
4422 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
4423 (grub-mkrelpath): Likewise.
4424 (grub-script-check): Likewise.
4425 (grub-editenv): Likewise.
4426 (grub-mkpasswd-pbkdf2): Likewise.
4427 (grub-fstest): Likewise.
4428 (grub-mkfont): Likewise.
4429 (grub-mkdevicemap): Likewise.
4430 (grub-probe): Likewise.
4431 (grub-setup): Likewise.
4432 (grub-ofpathname): Likewise.
4433 (grub-mklayout): Likewise.
4434 (example_unit_test): Likewise.
4435 (grub-menulst2cfg): Likewise.
4436 * grub-core/Makefile.core.def (grub-emu): Likewise.
4437 (grub-emu-lite): Likewise.
4438 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
4439 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
4440 define HAVE_DIOCGDINFO.
4441 (follow_geom_up) [FreeBSD]: New function.
4442 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
4443 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
4444 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
4445 unconditionally of HAVE_DIOCGDINFO.
4447 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4449 Fix FreeBSD compilation problem.
4451 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
4452 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
4454 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
4456 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
4457 Switch back to page zero before loading a kernel, since some kernel
4458 drivers expect that.
4459 Thanks to: Felix Kuehling.
4461 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4463 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
4464 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
4465 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
4467 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4469 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
4470 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
4472 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4474 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
4475 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
4478 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4480 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
4481 for modules headers when counting the needed allocation size.
4483 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4485 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
4486 if no ASCII character is found to prevent crash.
4488 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
4490 * grub-core/video/bitmap.c (match_extension): Ignore case.
4492 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4494 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
4496 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4498 * grub-core/script/parser.y: Declare "time" as valid argument.
4500 2011-03-23 Peter Jones <pjones@redhat.com>
4502 Fix incorrect assert failure reporting.
4504 * grub-core/tests/example_functional_test.c (example_test): Add
4506 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
4507 (failure_start): ...this. Check that malloc succeeded.
4508 Don't call xvasprintf. Return failure struct.
4509 (failure_append_vtext): New function.
4510 (failure_append_text): Likewise.
4511 (add_failure): Likewise.
4512 (grub_test_assert_helper): Likewise.
4513 * include/grub/test.h (grub_test_assert_helper): New declaration.
4514 (grub_test_assert): Macro rewritten.
4516 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4518 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
4520 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4522 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
4524 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4526 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
4527 into GRUB-style one.
4529 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4531 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
4532 error and not grub_errno.
4533 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
4535 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4537 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
4538 GRUB_USB_SPEED_NONE in case of failure and not the error code.
4540 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4542 * grub-core/efiemu/i386/pc/cfgtables.c
4543 (grub_machine_efiemu_init_tables): Make declaration a prototype.
4544 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
4545 (grub_xnu_unlock): Likewise.
4546 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
4548 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4550 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
4551 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
4552 * grub-core/commands/hashsum.c (aliases): Likewise.
4553 * grub-core/commands/setpci.c (pci_registers): Likewise.
4554 * grub-core/disk/usbms.c (attach_hook): Likewise.
4555 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
4556 (zio_checksum_table): Likewise.
4557 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
4558 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
4559 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
4560 * grub-core/lib/relocator.c (leftovers): Likewise.
4561 (extra_blocks): Likewise.
4562 * grub-core/loader/i386/bsd.c (relocator): Likewise.
4563 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
4564 (modules_last): Likewise.
4565 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
4566 (devices): Likewise.
4567 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
4568 (modules_last): Likewise.
4569 * grub-core/normal/auth.c (users): Likewise.
4570 * grub-core/normal/context.c (initial_menu): Likewise.
4571 (current_menu): Likewise.
4572 * grub-core/normal/crypto.c (crypto_specs): Likewise.
4573 * grub-core/term/serial.c (grub_serial_ports): Likewise.
4574 (grub_serial_terminfo_input_template): Likewise.
4575 (grub_serial_terminfo_output_template): Likewise.
4576 (grub_serial_terminfo_input): Likewise.
4577 (grub_serial_terminfo_output): Likewise.
4578 (registered): Likewise.
4579 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
4581 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4583 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
4584 grub_video_mode_type_t.
4585 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
4586 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
4587 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
4589 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4591 * util/grub-install.in: Correct the x86-64 name as x86_64.
4593 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
4595 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
4596 initial chunk read from the kernel always includes GRUB's multiboot
4597 header, which is now outside the first sector.
4599 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
4601 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
4602 cached mmap_size, so that this works correctly when called multiple
4604 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
4606 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
4608 * docs/grub.texi (Simple configuration): Tidy up formatting.
4610 2011-03-07 Szymon Janc <szymon@janc.net.pl>
4612 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
4613 Set-but-not-used variable removed.
4615 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4617 Workaround yet another IEEE1275 bug.
4619 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
4620 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
4621 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
4622 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
4624 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4625 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
4627 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4629 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
4632 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
4634 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
4635 empty, since in that case we can only generate either nothing or a
4636 syntactically invalid configuration file.
4637 Reported by: Michal Suchanek. Fixes Debian bug #612898.
4639 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
4641 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
4642 (Making a GRUB bootable CD-ROM): Likewise.
4643 (Invoking grub-mkrescue): New section.
4644 Reported by: Yann Dirson. Fixes Debian bug #612585.
4646 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
4648 * util/grub-install.in: Remove unnecessary brackets from tr
4650 * util/grub.d/10_hurd.in: Likewise.
4651 * util/grub.d/10_kfreebsd.in: Likewise.
4652 * util/grub.d/10_linux.in: Likewise.
4653 * util/grub.d/20_linux_xen.in: Likewise.
4654 Reported by: Jamie Heilman. Fixes Debian bug #612564.
4656 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
4658 * include/grub/file.h (not_easly_seekable): Rename to ...
4659 (not_easily_seekable): ... this. Update all users.
4661 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
4663 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
4666 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
4668 * util/grub-mkimage.c (generate_image): Refuse to create the images
4669 bigger than the actual flash (512K) in Loongson machines. 512K is also
4670 the biggest chip supported by them.
4672 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4674 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
4676 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
4678 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
4681 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4683 * util/grub-install.in: Ignore install device on platforms
4684 where it doesn't make sense. Always use UUIDs except on pc, efi and
4686 Reported by: Daniel Kahn Gillmor.
4688 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4690 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
4692 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4694 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
4695 (iterate_real): Don't rely on partition being non-NULL.
4697 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4699 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
4700 supported platforms. Put a compile time assert for this rather than
4701 generate a warning with 32-bit shift.
4703 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4705 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
4706 logical expression more readable.
4708 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4710 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
4711 even if some elements have a name.
4712 Reported by: Alexander GQ Gerasiov.
4714 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
4716 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
4717 path unreadable if `grub-probe -t abstraction' fails, for example if
4718 memberlist fails on an LVM volume group.
4719 Reported by: Darius Jahandarie.
4721 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
4723 * docs/grub.texi (Simple configuration): Document
4724 GRUB_PRELOAD_MODULES.
4726 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
4728 * .bzrignore: Remove nonexistent grub-pbkdf2.
4730 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4732 * configure.ac: Bump version to 1.99~rc1.
4734 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4736 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
4739 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4741 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
4744 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4746 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
4748 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4750 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
4753 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4755 Fix compilation on cygwin.
4757 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
4758 -R .drectve on cygwin.
4759 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
4760 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
4761 (COND_CYGWIN): New condition.
4762 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
4763 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
4764 not @TARGET_OBJ2ELF@.
4765 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
4766 type to determine whether aux is to be used.
4768 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4770 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
4771 realpath'ed device string.
4772 Handle floppy (somewhat).
4773 Issue error in unknown case rather than garbage.
4774 Reported by: Axel Beckert.
4776 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4778 * util/grub.d/00_header.in (load_video): Handle the case when no video
4780 Thanks to: Axel Beckert.
4782 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4784 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
4785 variable. Fixes problem on big endian platforms.
4787 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4789 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
4790 It doesn't work well there.
4792 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4794 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
4796 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
4797 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
4800 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4802 Use alias->path rather than buggy "canon".
4804 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
4805 (ofdisk_hash_add): New argument curcan. All users updated.
4807 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
4809 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
4811 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4813 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
4814 loadmask before doing any calculations. Use correct type for offset.
4815 (grub_linux_load64): Likewise.
4817 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
4819 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
4821 (console_grub_equivalences_unshift): Likewise.
4822 Reported by: Daniel Dehennin.
4824 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4826 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
4827 (set_env_limn_ro): Likewise.
4828 (GRUB_MOD_INIT): Likewise.
4829 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
4830 ARRAY_SIZE while on it.
4831 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
4832 * grub-core/normal/context.c (grub_env_export): Move from here ...
4833 * grub-core/kern/env.c (grub_env_export): ... here.
4834 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
4836 * grub-core/kern/main.c (grub_main): Export root and prefix.
4837 * include/grub/env.h (grub_env_export): Export.
4838 Reported by: Seth Goldberg.
4840 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4842 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
4843 Take into account space used by ELF sections and multiboot palette.
4844 Reported by: Grégoire Sutre.
4846 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4850 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4852 Pass more appropriate video id to Linux.
4854 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
4855 grub_video_get_driver_id and variable gfxpayloadforcelfb to
4857 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
4858 shift params->lfb_size.
4859 * include/grub/i386/linux.h: Make an enume out of have_vga values.
4861 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4863 * util/grub-menulst2cfg.c: Add missing include of misc.h.
4865 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4867 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
4868 separator and pass bootpath/devid even if only one of them is available.
4869 Reported by: Seth Goldberg.
4871 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4873 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
4874 implementations bug on them.
4876 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
4878 (filter_memory_map): Likewise.
4880 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4882 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
4883 Reported by: nebuchadnezzar.
4885 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4887 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
4888 Reported by: nebuchadnezzar.
4890 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4892 Submenu default support.
4894 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
4895 auto_boot. All users updated.
4897 Handle chosen and default with submenus.
4898 (grub_menu_execute_with_fallback): Declared static.
4899 Don't notify failure if autobooted. Upper level does it.
4900 (menuentry_eq): New function.
4901 (get_entry_number): Use menuentry_eq.
4902 (show_menu): New parameter "autobooted". All users updated.
4903 (grub_show_menu): Likewise.
4904 * include/grub/normal.h (grub_show_menu): Likewise.
4905 * include/grub/menu.h (grub_menu_execute_entry): Removed.
4906 (grub_menu_execute_with_fallback): Likewise.
4908 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4910 * util/grub-mklayout.c (usage): Update help text.
4912 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4914 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
4916 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4918 * util/grub-menulst2cfg.c (main): Trim the line.
4920 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4922 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
4923 (grub_machine_init): Don't check amount of low memory as reportedly
4924 INT 12h can be broken and if low memory is too low we wouldn't have
4925 gotten into grub_machine_init anyway.
4927 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4929 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
4930 (grub_machine_mmap_iterate): Take low memory into account
4932 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4934 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
4938 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4940 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
4943 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
4945 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
4946 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
4948 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
4950 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
4951 openbsd and netbsd types being in part_bsd module.
4953 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4955 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
4956 (_FILE_OFFSET_BITS): Likewise.
4957 Reported by: Seth Goldberg.
4959 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
4961 * configure.ac: Check for libdevmapper header.
4963 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4965 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
4967 (fzap_lookup): Likewise.
4968 (dnode_get): Likewise.
4969 (make_mdn): Likewise.
4970 (zfs_mount): Likewise.
4971 (fzap_iterate): Use temporary pointer to avoid aliasing.
4972 (grub_zfs_read): Likewise.
4973 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
4974 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
4975 pointers to avoid aliasing.
4976 (grub_cmd_xnu_kernel64): Likewise.
4977 (grub_xnu_load_driver): Likewise.
4979 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4981 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
4983 (grub_cmd_terminal_output): Likewise.
4984 Reported and tested by: Grégoire Sutre.
4986 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4988 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
4990 Reported and tested by: Grégoire Sutre.
4992 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4994 * configure.ac: Do CPU substitution even if it's specified explicitly.
4995 Reported and tested by: Alain Greppin.
4997 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
4999 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
5000 Reported and tested by: Alain Greppin.
5002 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
5004 Satisfy some bison versions need for inttypes.h.
5006 * grub-core/lib/posix_wrap/inttypes.h: New file.
5007 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
5008 (int16_t): Likewise.
5009 (int32_t): Likewise.
5010 (int64_t): Likewise.
5011 Reported and tested by: Alain Greppin.
5013 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
5015 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
5016 Silence spurious warning.
5017 Reported and tested by: Alain Greppin.
5019 2011-01-07 Szymon Janc <szymon@janc.net.pl>
5021 * docs/grub.texi (Support automatic decompression): Update with xz
5022 decompression support.
5024 2011-01-07 Szymon Janc <szymon@janc.net.pl>
5026 Improve loaders' kernel command line handling.
5028 * grub-core/lib/cmdline.c: New file.
5029 * include/grub/lib/cmdline.h: Likewise.
5030 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
5031 grub_create_loader_cmdline to create kernel command line.
5032 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5033 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
5034 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
5035 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
5036 (linux): Add lib/cmdline.c on common.
5038 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5040 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
5041 inopos might be unaligned.
5043 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5045 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
5046 endian transformations.
5047 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5048 Based on report by: Doug Nazar.
5050 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
5052 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
5053 array->members[i].start_sector.
5054 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
5056 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5058 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
5059 Reported and tested by: Grégoire Sutre.
5061 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
5063 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
5064 avoid causing test failures by clearing the screen.
5066 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
5068 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
5069 Fix prefix check to handle the case where dir ends with a slash
5070 (most significantly, "/" itself).
5071 Reported by: Michael Vogt.
5073 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5075 Run terminfo_cls on initing terminfo output to clear the screen and
5076 move the cursor to (0,0).
5078 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
5079 Call grub_terminfo_output_init.
5080 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
5081 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
5082 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
5084 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5086 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
5089 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5091 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
5094 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5096 The E820 type 5 is BADRAM, not EXEC_CODE.
5098 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
5099 (GRUB_E820_BADRAM): New define.
5100 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
5101 into reserved. Propagate BADRAM.
5102 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
5103 (GRUB_E820_BADRAM): New define.
5105 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5107 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
5108 Ignore the memory post-4G.
5109 (grub_relocator_firmware_alloc_region): Additional debug statement.
5111 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5113 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
5115 Reported by: David Pravec.
5117 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5119 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
5122 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5124 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
5126 (grub_reed_solomon_recover): Likewise.
5128 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5130 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
5132 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5134 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
5137 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
5139 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
5140 descriptions of extract_legacy_entries_source and
5141 extract_legacy_entries_configfile.
5142 Reported by: Seung Soo, Ha.
5144 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
5146 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
5147 on devices that do not implement function 0.
5149 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
5151 * grub-core/fs/hfsplus.c: Make parent unsigned.
5152 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
5154 (grub_hfsplus_cmp_extkey): Likewise
5156 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5158 * util/grub-install.in: Correctly use bootloader_id and not
5159 GRUB_DISTRIBUTOR on efibootmgr line.
5161 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5163 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
5165 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
5167 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
5168 Xen and reorder menu item wording to make it clearer that this entry
5169 will launch Xen. Print separate messages when loading Xen and
5172 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
5174 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
5175 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
5176 loop in case of incorrect amiga partmap.
5178 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
5180 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
5181 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
5184 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
5186 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
5188 Reported by: crocket
5190 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5192 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
5194 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
5196 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5198 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
5200 (grub_cmd_xnu_kextdir): Likewise.
5201 (grub_cmd_xnu_splash): Likewise.
5203 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5205 Avoid using Reed-Solomon with 0 redundancy.
5207 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
5208 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
5210 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
5211 (grub_reed_solomon_recover): Likewise.
5213 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5215 Don't use disk subsystem in freebsd_boot.
5217 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
5218 (freebsd_biosdev): Likewise.
5219 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
5220 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
5222 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
5224 Handling of files of unknown size is currently limited. They can't be
5225 used e.g. for initrd or modules. Moreover gzip handling of not
5226 easily seekable files is buggy. Disable unknown file size for now. May
5227 be inefficient but works.
5229 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
5230 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
5232 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
5234 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
5237 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
5239 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
5241 2010-12-25 Shea Levy <shlevy>
5243 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
5245 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5247 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
5248 Windows Server 2008.
5249 Reported by: Devin Giddings.
5251 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5253 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
5254 writing an error message because of async power management.
5255 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
5256 (grub_reboot): Likewise.
5258 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
5260 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
5261 keep unit tests from failing when they shouldn't.
5263 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
5265 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
5266 previous patch increased the size of the RS code by 20 bytes (at
5267 least with gcc-4.4), so increase this by 20 bytes to match.
5268 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
5270 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
5272 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
5273 scratch area. Make sure to initialise chosen in standalone mode as
5274 well as non-standalone.
5275 Reported by: Robert Hooker and Andy Whitcroft.
5276 Tested by: Andy Whitcroft.
5278 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
5280 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
5281 constructing a new unescaped string and passing it to grub_xputs in
5282 one go, rather than passing characters to grub_printf one at a time.
5284 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
5286 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
5289 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
5291 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
5292 comment. Add an extra layer of quotation, requiring the output of
5293 this function to be used in a printf format string.
5294 (gettext_printf): New function.
5295 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
5296 Extract translatable strings from here-documents and use a temporary
5297 variable instead, so that xgettext can find them.
5298 * util/grub.d/10_kfreebsd.in: Likewise.
5299 * util/grub.d/10_linux.in: Likewise.
5300 * util/grub.d/20_linux_xen.in: Likewise.
5302 * po/grub.d.sed: New file.
5303 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
5304 arguments. Set c-format flags on all strings extracted from
5305 util/grub.d/ (xgettext refuses to include these itself for strings
5306 it extracted from a shell file, but these really are c-format).
5308 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5310 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
5311 Avoid next pointing to nowhere.
5313 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5315 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
5316 rather than assuming than rootblock is exactly in the middle.
5317 (grub_affs_label): Likewise.
5319 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5321 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
5322 reserved_first_sector to 0.
5323 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
5324 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
5325 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
5327 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5329 Fix handling of UTF-16 UDF labels.
5331 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
5332 (read_string): .. here.
5333 (grub_udf_label): Use read_string.
5335 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
5337 * grub-core/normal/menu_entry.c (run): Execute commands from menu
5338 editor under argument scope.
5339 Reported by: Jordan Uggla
5341 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5343 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
5345 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
5347 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
5348 line, and other keys scroll an entire page (previous handling was
5349 for \r and \n to scroll a page and other keys to scroll two lines).
5351 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5353 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
5354 Set ptrdest to correct get_physical_target_address rather than
5355 incorrect get_virtual_current_address.
5357 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
5359 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
5360 correct cat to grub_uint8_t * rather than grub_uint32_t *.
5362 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
5364 * .bzrignore: Ignore grub-core/rs_decoder.S.
5366 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
5368 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
5369 .mo/.mo.gz opening sequence to ...
5370 (grub_mofile_open_lang): ... here.
5371 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
5372 * util/grub.d/00_header.in (grub_lang): Include country part of
5374 Reported by: Mario Limonciello.
5376 2010-12-09 Robert Millan <rmh@gnu.org>
5378 * NEWS: Document addition of ZFS support.
5380 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
5382 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
5383 rather than `/ 2', as the latter requires -Wa,--divide which would
5384 require bumping our minimum binutils version.
5386 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
5388 * util/grub-script-check.c (main): Print script line number on
5391 2010-12-01 Robert Millan <rmh@gnu.org>
5393 * grub-core/fs/zfs/zfs.c: New file.
5394 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
5395 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
5396 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
5397 * grub-core/fs/zfs/zfsinfo.c: Likewise.
5399 * include/grub/zfs/dmu.h: Likewise.
5400 * include/grub/zfs/dmu_objset.h: Likewise.
5401 * include/grub/zfs/dnode.h: Likewise.
5402 * include/grub/zfs/dsl_dataset.h: Likewise.
5403 * include/grub/zfs/dsl_dir.h: Likewise.
5404 * include/grub/zfs/sa_impl.h: Likewise.
5405 * include/grub/zfs/spa.h: Likewise.
5406 * include/grub/zfs/uberblock_impl.h: Likewise.
5407 * include/grub/zfs/vdev_impl.h: Likewise.
5408 * include/grub/zfs/zap_impl.h: Likewise.
5409 * include/grub/zfs/zap_leaf.h: Likewise.
5410 * include/grub/zfs/zfs.h: Likewise.
5411 * include/grub/zfs/zfs_acl.h: Likewise.
5412 * include/grub/zfs/zfs_znode.h: Likewise.
5413 * include/grub/zfs/zil.h: Likewise.
5414 * include/grub/zfs/zio.h: Likewise.
5415 * include/grub/zfs/zio_checksum.h: Likewise.
5417 * Makefile.util.def: Build ZFS into libgrubmods.
5418 * grub-core/Makefile.core.def: Build zfs.mod.
5420 2010-11-30 Szymon Janc <szymon@janc.net.pl>
5422 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
5424 * grub-core/commands/wildcard.c (match_files): Likewise.
5426 2010-11-30 Robert Millan <rmh@gnu.org>
5428 * grub-core/loader/i386/bsd.c
5429 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
5430 whether kernel is loaded using grub_loader_is_loaded(), rather
5431 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
5432 certain error conditions.
5434 2010-11-30 Robert Millan <rmh@gnu.org>
5436 * grub-core/commands/echo.c: Include `<grub/term.h>'.
5437 (grub_cmd_echo): Call grub_refresh() after printing a message.
5439 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
5441 Avoid using tricks for initialising endian variables.
5443 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
5445 (GRUB_MOD_INIT): Don't byte-swap.
5446 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
5447 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
5448 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
5449 (grub_swap_bytes32_compile_time): Likewise.
5450 (grub_cpu_to_le32_compile_time): Likewise.
5451 (grub_cpu_to_le16_compile_time): Likewise.
5453 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
5455 * util/grub-setup.c (setup): Stop recommending --force. People who
5456 understand the dangers of blocklists are able to find this option
5457 anyway and the ones who don't shouldn't use it anyway.
5459 2010-11-26 Robert Millan <rmh@gnu.org>
5461 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
5464 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
5466 Fix LVM-on-RAID probing.
5468 * util/grub-probe.c (probe): Remember which disk was detected as
5469 RAID (perhaps an LVM physical volume). Use that disk's raidname
5470 rather than that of the top-level disk.
5472 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
5474 Fix cmdline argument quotes for setparams command of menuentry
5477 * grub-core/commands/menuentry.c (setparams_prefix): Use single
5478 quotes for arguments.
5479 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
5480 grub_strchrsub function instead.
5482 * include/grub/misc.h (grub_strchrsub): New function.
5484 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
5486 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
5487 effort by skipping "." and ".." entries up-front.
5488 Suggested by: Michael Lazarev.
5490 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
5492 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
5493 ldflags to ldadd, to fix link line ordering.
5494 (none_decompress): Likewise.
5496 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
5498 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
5500 (grub-emu-lite): Remove kern/emu/cache.S.
5502 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5504 * util/deviceiter.c (compare_devices): If the by-id link for a
5505 device couldn't be resolved, fall back to sorting by the by-id link
5506 rather than segfaulting.
5507 Reported and tested by: Daniel Mierswa.
5509 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5511 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
5512 ldflags, to fix link line ordering.
5514 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5516 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
5517 linkers are picky about this.
5519 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5521 * grub-core/Makefile.am (command.lst): Adjust sed expression
5522 ordering so that extended and priority commands aren't treated as
5525 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
5527 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
5528 Remove byte-swapping function calls, which are not valid in
5529 structure initialisers.
5530 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
5532 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
5533 grub_gpt_partition_type_bios_boot.
5535 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
5537 Fix test program build on GNU/kFreeBSD.
5539 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
5540 $(LIBNVPAIR)' library dependencies.
5542 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
5544 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
5546 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
5548 * util/grub-install.in: Remove excessive quoting that broke
5549 installations to RAID devices.
5551 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
5553 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
5554 bootloader version instead of 0.
5556 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
5558 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
5561 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
5563 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
5564 retrieve the metadat sector if size isn't known.
5565 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5567 2010-11-18 Robert Millan <rmh@gnu.org>
5569 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
5572 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
5574 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
5576 Reported by: Jordan Uggla.
5578 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
5580 Make better UTF compliant.
5582 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
5583 sequences as incorrect.
5584 (grub_is_valid_utf8): Likewise.
5585 (grub_utf8_to_ucs4): Likewise.
5586 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
5587 (grub_ucs4_to_utf8_alloc): Likewise.
5588 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
5590 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
5592 Make legacy_source behave like source.
5594 * grub-core/commands/legacycfg.c (legacy_file): Don't call
5596 (grub_cmd_legacy_source): Call grub_show_menu if needed.
5598 2010-11-16 Colin Watson <cjwatson@debian.org>
5600 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
5601 (-Wunused implies -Wunused-parameter, but not vice versa).
5603 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
5605 * configure.ac: Make error messages less confusing by testing for
5606 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
5607 accepted, but produces a diagnostic if something else is wrong).
5609 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
5611 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
5612 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
5614 (grub_keyboard_controller_init)
5615 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
5616 read the initial state since controller isn't inited yet.
5618 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
5620 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
5621 allocate_regbeg may need to create new chunk header.
5623 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5625 Fix quoting in legacy parser.
5627 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
5629 (grub_legacy_parse): Likewise.
5630 Reported by: Jordan Uggla.
5631 Tested by: Jordan Uggla.
5633 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5635 Don't add -lgcc on i386 and x86_64.
5637 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
5638 * conf/Makefile.common (LDADD_KERNEL): Likewise.
5639 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
5641 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5643 * configure.ac: Add -Wno-trampolines when supported.
5645 2010-11-14 Modestas Vainius <modax@debian.org>
5647 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
5650 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
5652 Add generic logical block size support for UDF.
5654 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
5655 (GRUB_UDF_BLKSZ): Removed.
5656 (struct grub_udf_data): New field "lbshift" to hold the logical block
5657 size of the file system in log2 format. All users updated.
5658 (sblocklist): Change type to unsigned.
5659 (grub_udf_mount): Change type of "sblklist" to unsigned.
5660 Move AVDP search before VRS recognition, because the latter requires
5661 knowledge of the logical block size, which is detected during the
5663 Detect and validate logical block size during AVDP search, adding
5664 support for block sizes 512, 1024 and 4096.
5665 Make VRS recognition independent of block size.
5667 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
5669 Properly handle deleted files on UDF.
5671 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
5672 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
5675 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
5677 Support reading files larger than 2 GiB.
5679 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
5680 "offset" to grub_off_t.
5681 (grub_udf_read_file): Likewise for parameter "pos".
5683 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5685 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
5687 (Simple configuration): Refer to Changes from GRUB Legacy about
5688 save_env availability.
5690 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5692 * util/grub-install.in: Ignore empty partition table detection
5693 instead of trying to include part_ module.
5695 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5697 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
5698 LVM on RAID support.
5700 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
5702 Properly define WORDS_BIGENDIAN in wrapped environments.
5704 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
5706 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
5708 Reported by: Manoel Rebelo Abranches.
5709 Tested by: Manoel Rebelo Abranches.
5711 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5713 * util/grub-mkconfig.in: Fix quoting.
5715 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5717 Support big ext2 files.
5719 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
5720 (grub_ext2_read_block): Support triple indirect blocks.
5721 (grub_ext2_read_file): Use 64-bit types and read size_high.
5722 (grub_ext2_open): Read size_high.
5723 Reported by: Ximin Luo.
5724 Tested by: Manoel Rebelo Abranches.
5726 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5728 * util/grub-install.in: Handle filenames containing spaces.
5729 Reported by: Jordan Uggla.
5730 Tested by: Jordan Uggla.
5732 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5734 * util/grub-mkconfig.in (grub_script_check): New variable.
5735 Use grub_script_check instead of grub-script-check.
5736 Reported by: Barry Jackson.
5738 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
5740 * docs/grub.texi (menu): Correct the order.
5741 Reported by: D. Hugh Redelmeier.
5743 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
5745 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
5748 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
5750 * include/grub/elfload.h (grub_elf32_size): New parameter.
5752 Return maximum segments alignment.
5753 (grub_elf64_size): Likewise.
5754 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
5755 Return maximum segments alignment.
5756 (grub_elf64_size): Likewise.
5757 * grub-core/loader/powerpc/ieee1275/linux.c:
5758 (grub_linux_claimmap_iterate): New function. Uses the
5759 "available" property in the "memory" node for memory allocation
5760 for kernel in the PowerPC loader.
5761 (grub_linux_load32): Correctly find linux entry point offset.
5762 (grub_linux_load64): Likewise.
5764 2010-11-07 Robert Millan <rmh@gnu.org>
5766 On mips-yeeloong, build with -march=loongson2f when this flag is
5767 available (GCC >= 4.4).
5768 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
5770 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
5771 or otherwise add -march=mips3.
5773 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
5775 Suppress shell expansion on echo '*' and echo "*" like cases.
5776 Reported by: Jordan Uggla.
5778 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
5779 string arguments before shell expansion.
5780 * tests/grub_cmd_echo.in: New testcases.
5782 2010-11-07 Robert Millan <rmh@gnu.org>
5784 * conf/mips-qemu-mips.rmk: Remove stale file from previous
5787 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
5789 * grub-core/kern/emu/hostdisk.c
5790 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
5792 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5794 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
5795 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
5796 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
5798 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5800 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
5802 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5804 * util/grub-install.in: Replace useless recomendation to pass
5805 --modules with a recomendation to report a bug.
5807 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5809 Properly register serial terminfo.
5810 Reported by: Jordan Uggla
5812 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
5814 (grub_serial_terminfo_output_template): Likewise.
5815 (grub_cmd_serial): Register "serial" with terminfo.
5816 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
5817 grub_serial_terminfo_output.
5819 2010-11-05 Robert Millan <rmh@gnu.org>
5821 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
5824 2010-11-05 Robert Millan <rmh@gnu.org>
5826 On Yeeloong, pass machine type information to Linux.
5828 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
5829 (LOONGSON_MACHTYPE): New macro, set to
5830 "machtype=lemote-yeeloong-2f-8.9inches".
5831 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
5832 additional argument to Linux.
5834 2010-11-04 Robert Millan <rmh@gnu.org>
5836 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
5837 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
5838 (its SATA disks are detected as slaveless IDE master drives on
5840 Reported by Carsten Aulbert.
5842 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
5844 * util/bin2h.c (main): Fix spelling error in generated output.
5846 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
5848 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
5850 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5852 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
5853 vga= option is supplied.
5855 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5857 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
5858 * util/grub.d/10_kfreebsd.in: Likewise.
5859 * util/grub.d/10_linux.in: Likewise.
5860 * util/grub.d/20_linux_xen.in: Likewise.
5862 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5864 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
5865 argument as an argument to no-argument option.
5867 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5869 * util/grub.d/10_linux.in: Add missing load_video with explicit
5870 GRUB_GFXPAYLOAD_LINUX.
5872 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5874 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
5876 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5878 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
5879 elements with invlid index.
5880 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5881 * grub-core/disk/raid.c (insert_array): Automatically reallocate
5883 * include/grub/raid.h (grub_raid_member): New struct.
5884 (grub_raid_array): Transform devices and start_sector into usage of
5885 grub_raid_member. All users updated
5886 (allocated_devs): New member.
5888 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5890 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
5893 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
5895 NetBSD build fix for getline function conflict from gnulib.
5897 * Makefile.util.def (libgrubkern.a): New library for grub kernel
5898 components that depend on gnulib headers.
5899 (libgrubmods.a): Renamed from earlier libgrub.a.
5900 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
5902 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5904 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
5905 install rather than creating a broken install.
5907 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5909 * util/grub-setup.c (argp): Remove misleading example of installing to
5912 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5914 * util/grub-setup.c (setup): Clarify the error message.
5916 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5918 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
5920 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5922 * grub-core/kern/emu/misc.c
5923 (grub_make_system_path_relative_to_its_root)
5924 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
5926 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5928 * grub-core/kern/emu/misc.c
5929 (grub_make_system_path_relative_to_its_root): Revert r2882.
5931 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
5933 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
5934 useless field head. All users updated.
5935 (free_subchunk): Correct handling of IN_REGION subchunk.
5937 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
5939 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
5940 (Supported kernels): Likewise.
5942 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
5944 Make mktemp invocations portable.
5946 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
5947 exit if mktemp fails.
5948 * tests/grub_script_blockarg.in: Likewise.
5949 * tests/partmap_test.in: Likewise.
5950 * tests/util/grub-shell-tester.in: Likewise.
5951 * tests/util/grub-shell.in: Likewise.
5952 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5953 * Makefile.am: Likewise, and chain shell commands with `&&'
5955 * util/grub-mkrescue.in: Use the same explicit template as above, and
5956 exit if mktemp fails.
5958 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
5960 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
5961 Linux kernel, reported by Dennis Schridde.
5963 2010-10-17 Szymon Janc <szymon@janc.net.pl>
5965 * grub-core/normal/auth.c (grub_auth_check_authentication):
5966 Set-but-not-used variable removed.
5968 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5970 * docs/grub.texi (GNU/Linux): Document APM unavailability with
5971 32-bit linux protocol.
5973 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5975 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
5976 cursor shape for sanity.
5978 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5980 * docs/grub.texi (Installation): Document buggy BIOS install.
5982 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5984 * docs/grub.texi (Installation): Indent.
5986 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5988 * util/grub-setup.c (setup): New parameter allow_floppy.
5989 (arguments): New member allow_floppy.
5990 (argp_parser): Handle --allow-floppy.
5991 (main): Pass allow_floppy.
5992 * util/grub-install.in: New option --allow-floppy passed though to
5995 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
5997 * util/grub-install.in: Handle partitionless disks.
5999 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
6001 * util/grub-setup.c (setup): Don't clean blocklists before readability
6004 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6006 * docs/grub.texi (Installation): Document embedding zone. Remove
6007 obsolete grub-install example.
6009 2010-10-16 Szymon Janc <szymon@janc.net.pl>
6011 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6012 Set-but-not-used variable ifdef'ed.
6013 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
6014 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
6016 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
6017 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
6018 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
6019 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
6020 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
6021 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
6022 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
6023 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
6024 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6025 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
6026 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
6029 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6031 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
6032 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
6035 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6037 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
6038 synonym to _S5_. Needed for some DSDTs.
6040 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6042 Userspace ACPI parser debugging.
6044 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
6045 headers and add relevant defines. Don't include standard headers.
6046 (main) [GRUB_DSDT_TEST]: New function.
6047 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
6048 Don't declare functions.
6050 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6052 Remove dead grub_efi_mm_fini.
6054 * grub-core/kern/efi/mm.c (allocated_page): Removed.
6055 (ALLOCATED_PAGES_SIZE): Likewise.
6056 (MAX_ALLOCATED_PAGES): Likewise.
6057 (allocated_pages): Likewise.
6058 (grub_efi_allocate_pages): Don't record allocated pages.
6059 (grub_efi_free_pages): Likewise.
6060 (grub_efi_mm_init): Likewise.
6061 (grub_efi_mm_fini): Removed.
6063 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6065 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
6066 (grub_efi_mm_init): Take into account the memory map size increase.
6068 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6070 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
6071 (serial_hw_put): Wait based on real time rather than port reads. Don't
6073 * include/grub/serial.h (grub_serial_port): New field broken.
6075 2010-10-16 Robert Millan <rmh@gnu.org>
6077 * grub-core/kern/emu/misc.c
6078 (grub_make_system_path_relative_to_its_root): Fix premature return
6079 when processing non-root ZFS filesystems.
6080 Reported by Sergio Talens-Oliag.
6082 2010-10-15 Robert Millan <rmh@gnu.org>
6084 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
6085 guarantee compressed ones are processed first.
6087 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
6089 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
6090 grub_efiemu_autocore.
6092 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
6094 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
6096 (grub_console_getkey): Use correct jae opcode rather than ja.
6098 2010-10-12 Robert Millan <rmh@gnu.org>
6100 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
6101 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
6102 variable. All references updated.
6104 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
6106 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
6108 Correctly distinguish mdraid flavours.
6110 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
6111 (insert_array): New argument raid.
6112 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
6113 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
6114 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
6116 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
6118 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
6119 handling of special keys.
6121 2010-10-02 Aleš Nesrsta <starous@volny.cz>
6123 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
6124 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
6126 2010-10-02 Aleš Nesrsta <starous@volny.cz>
6128 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
6129 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
6131 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
6132 Use right endpoint when querying descriptor.
6134 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
6136 Clear out 0x80 color bit on EFI.
6138 Reported by: decoder and meta tech.
6140 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
6141 (grub_console_setcolorstate): Clear out 0x80 bit.
6142 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
6143 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
6144 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
6146 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
6148 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
6151 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
6153 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
6154 mo_file after freeing.
6156 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
6158 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
6160 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
6162 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
6165 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
6167 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
6170 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
6172 Put terminfo into core on ieee1275 and yeeloong (needed for console).
6174 * gentpl.py: New groups terminfoinkernel and terminfomodule.
6175 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
6176 and terminfo.h when needed.
6177 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
6178 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
6179 (terminfo): Enable only on terminfokernel.
6181 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
6182 * include/grub/lib/arg.h: Likewise.
6183 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
6184 incorrect usage of ->.
6186 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6188 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
6189 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
6191 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6193 Fix coreboot compilation.
6195 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
6196 Take VBE info into account even if only text is supported.
6197 (fill_vbe_info): Take into account the case when only VGA text
6199 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
6200 on coreboot, multiboot and qemu.
6202 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6204 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
6206 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
6208 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6210 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
6213 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6215 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
6216 if they were BSD-style.
6218 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6220 * grub-core/boot/i386/pc/lnxboot.S: Replace
6221 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
6222 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
6224 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
6226 Write embedding zone using Reed-Solomon.
6228 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
6229 * grub-core/Makefile.am (rs_decoder.S): New target.
6230 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
6231 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
6232 (multiboot): Move to RS part.
6233 (post_reed_solomon): New label.
6234 (grub_boot_drive): Move to non-RS part since it's modified in memory
6236 Include rs_decoder.S.
6237 * grub-core/lib/reed_solomon.c: New file.
6238 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
6240 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
6241 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
6242 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
6243 * include/grub/partition.h (grub_partition_map): Change prototype of
6244 embed to allow returning additional sectors.
6245 * include/grub/reed_solomon.h: New file.
6246 * util/grub-setup.c (setup): Handle Reed-Solomon.
6248 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
6250 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
6251 i386 and x86-64 definedness tests.
6253 2010-09-27 Yves Blusseau <blusseau@zetam.org>
6255 Fix generation of kernel_syms.lst
6257 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
6260 2010-09-26 Robert Millan <rmh@gnu.org>
6262 Support degraded ZFS arrays in "grub-probe -t device" resolution.
6264 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
6265 the pool is an array of devices, iterate through it and return the
6266 first device that passes a stat() test (instead of blindly returning
6269 2010-09-26 Robert Millan <rmh@gnu.org>
6271 Build fixes for GNU/kFreeBSD.
6273 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
6274 to programs that require ZFS conversion.
6275 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
6276 kernels that don't have FLOPPY_MAJOR.
6278 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
6280 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
6282 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
6286 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
6287 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
6288 mdraid09 and mdraid1x.
6290 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
6292 Re-enable grub-extras.
6294 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
6295 avoid confusing Automake. Run autogen only twice, once for the top
6296 level and once for grub-core. Add Makefile.util.def and
6297 Makefile.core.def from extra modules to the appropriate autogen
6298 invocations. If Makefile.common exists in an extra module, include
6299 it in both Makefile.util.am and grub-core/Makefile.core.am;
6300 similarly, include any Makefile.util.common file in Makefile.util.am
6301 and any Makefile.core.common file in grub-core/Makefile.core.am.
6302 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
6303 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
6304 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
6305 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
6307 * gentpl.py (gvar_add): Turn GVARS into a set.
6308 (global_variable_initializers): Sort global variables on output.
6309 (vars_init): New function.
6310 (first_time): Likewise.
6311 (library): Ensure that non-global variable initialisations are
6312 emitted before the first time we emit code for a library block.
6313 Append to variables rather than setting them. Only emit
6314 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
6315 each conditional path.
6316 (program): installdir() emits an Autogen macro, so must be passed to
6317 var_add rather than gvar_add.
6320 (rules): New function, centralising handling for different target
6321 types. Set up Guile association lists for first_time and vars_init,
6322 and send most output to a diversion so that variable initialisations
6323 can be emitted first.
6324 (module_rules): Use new rules function.
6325 (kernel_rules): Likewise.
6326 (image_rules): Likewise.
6327 (library_rules): Likewise.
6328 (program_rules): Likewise.
6329 (script_rules): Likewise.
6330 (data_rules): Likewise.
6332 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
6334 * .bzrignore: Add contrib and grub-core/contrib. Remove
6335 grub-core/Makefile.gcry.am.
6337 2010-09-24 Yves Blusseau <blusseau@zetam.org>
6339 * grub-core/lib/LzFind.c: Add missing include.
6340 * grub-core/lib/LzmaEnc.c: Likewise.
6341 * grub-core/script/lexer.c: Likewise.
6342 * grub-core/script/yylex.l: Likewise.
6343 * util/grub-macho2img.c: Likewise.
6344 * util/grub-menulst2cfg.c: Likewise.
6345 * util/grub-mklayout.c: Likewise.
6346 * util/grub-mkpasswd-pbkdf2.c
6347 * util/grub-mkrelpath.c: Likewise.
6348 * util/resolve.c: Likewise.
6350 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
6352 * Makefile.util.def (example_unit_test): Add
6353 grub-core/gnulib/libgnu.a.
6355 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
6357 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
6359 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
6361 Support xz compression on yeeloong.
6363 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
6364 * configure.ac: Check for LZMA.
6365 * grub-core/Makefile.core.def (xz_decompress): New target.
6366 (none_decompress): Likewise.
6367 * grub-core/boot/decompressor/minilib.c: New file.
6368 * grub-core/boot/decompressor/none.c: Likewise.
6369 * grub-core/boot/decompressor/xz.c: Likewise.
6370 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
6371 * grub-core/kern/mips/cache_flush.S: Likewise.
6372 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
6373 * grub-core/kern/mips/startup.S: Move first stage to ...
6374 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
6376 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
6377 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
6378 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
6379 Allocate statically.
6380 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
6381 Allocate statically or use scratch. Don't check CRC32.
6382 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
6383 Allocate statically. Don't check CRC32.
6384 * include/grub/decompressor.h: New file.
6385 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
6387 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
6388 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
6389 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
6390 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
6391 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
6392 * util/grub-mkimage.c (grub_compression_t): New type.
6393 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
6394 (image_target_desc): New field default_compression.
6395 (image_targets): Adjust yeeloong targets.
6396 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
6397 (compress_kernel): New parameter comp.
6398 (generate_image): Likewise. Handle new compression case.
6399 (options): New option --compression
6401 (main): Handle new option.
6403 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
6405 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
6407 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
6409 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
6410 typo in __i386__ conditional.
6412 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
6414 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
6417 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
6419 Implement EFI and ACPI multiboot2 extensions.
6421 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
6422 new tags as supported.
6423 (acpiv2_size): New function.
6424 (grub_multiboot_get_mbi_size): Take new tags into account.
6425 (grub_multiboot_make_mbi): Add new tags.
6426 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6428 2010-09-21 Aleš Nesrsta <starous@volny.cz>
6430 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
6431 Added missing configuration of USB device.
6433 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6435 * grub-core/normal/menu_entry.c (run): Make sure we always return
6438 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6440 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
6441 NumberOfPages is UINT64 according to the UEFI specification, not
6442 UINTN. Fix printf format.
6444 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6446 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
6447 `err' to grub_usb_err_t.
6448 Reported and tested by: KESHAV P.R.
6450 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6452 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
6453 tpart non-const, so that we can assign to it. (Since this is a
6454 typedef, the constness refers to the pointer rather than what it
6457 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6459 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
6460 $(top_srcdir)/grub-core/gnulib as well as
6461 $(top_builddir)/grub-core/gnulib.
6462 Reported by: KESHAV P.R.
6464 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6466 * util/grub-install.in: Fix the bootloader ID option to be
6467 consistently --bootloader-id, not --bootloader_id.
6468 Reported by: KESHAV P.R.
6470 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6472 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
6473 check hash checksum." consistently translatable.
6475 2010-09-21 Yves Blusseau <blusseau@zetam.org>
6477 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
6480 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6482 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
6483 (GRUB_MOD_INIT): Register sha1sum command.
6484 (GRUB_MOD_FINI): Unregister sha1sum command.
6486 2010-09-21 Yves Blusseau <blusseau@zetam.org>
6488 Keep boot and grub directory names in sync with utils scripts
6490 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
6491 * config.h.in: Add previous macros.
6492 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
6493 * util/grub-install.in: Use $bootdir and $grubdir variables.
6495 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6497 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
6498 convert partition names to disk names if the new `convert' parameter
6500 (grub_util_biosdisk_get_grub_dev): If opening the disk device
6501 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
6502 disk in its own right. This can happen with Xen disk images.
6504 2010-09-21 Yves Blusseau <blusseau@zetam.org>
6506 * util/grub-editenv.c: Update strings to avoid warnings when generating
6508 * util/grub-setup.c: Likewise.
6510 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
6512 * configure.ac: Change version to 1.99~beta0.
6514 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
6516 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
6518 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
6520 * include/multiboot.h: Resynced with specification.
6521 * include/multiboot2.h: Likewise.
6523 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
6525 Fix po directory handling.
6527 * configure.ac: Create po/Makefile.in rather than po/Makefile.
6528 * grub-core/gnulib/Makefile.am: Import gettext module.
6529 * m4/gnulib-cache.m4: Likewise.
6530 * m4/gnulib-comp.m4: Likewise.
6531 * m4/gettext.m4: New file, from gnulib.
6532 * m4/glibc2.m4: Likewise.
6533 * m4/iconv.m4: Likewise.
6534 * m4/intdiv0.m4: Likewise.
6535 * m4/intl.m4: Likewise.
6536 * m4/intldir.m4: Likewise.
6537 * m4/intlmacosx.m4: Likewise.
6538 * m4/intmax.m4: Likewise.
6539 * m4/inttypes-pri.m4: Likewise.
6540 * m4/lcmessage.m4: Likewise.
6541 * m4/lib-ld.m4: Likewise.
6542 * m4/lib-link.m4: Likewise.
6543 * m4/lib-prefix.m4: Likewise.
6544 * m4/lock.m4: Likewise.
6545 * m4/nls.m4: Likewise.
6546 * m4/po.m4: Likewise.
6547 * m4/printf-posix.m4: Likewise.
6548 * m4/progtest.m4: Likewise.
6549 * m4/threadlib.m4: Likewise.
6550 * m4/uintmax_t.m4: Likewise.
6551 * m4/visibility.m4: Likewise.
6552 * po/Makefile.am: Remove.
6553 * po/Makefile.in.in: New file, from gettext.
6554 ($(DOMAIN).pot-update): Support POTFILES-shell.
6555 * po/Makevars: New file.
6556 * po/POTFILES-shell: Rename to ...
6557 * po/POTFILES-shell.in: ... this. Update.
6558 * po/POTFILES: Rename to ...
6559 * po/POTFILES.in: ... this. Update.
6560 * po/Rules-quot: New file, from gettext.
6561 * po/boldquot.sed: Likewise.
6562 * po/en@boldquot.header: Likewise.
6563 * po/en@quot.header: Likewise.
6564 * po/insert-header.sin: Likewise.
6565 * po/quot.sed: Likewise.
6566 * po/remove-potcdate.sin: Likewise.
6568 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6570 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
6572 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6574 * util/grub.d/20_linux_xen.in: Use submenus.
6576 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6580 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
6581 parameter submenu. All users updated.
6582 * grub-core/normal/main.c (free_menu): Rename to ...
6583 (grub_normal_free_menu): ... this. Made global.
6584 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
6586 * grub-core/normal/menu_entry.c (screen): New field submenu.
6587 (make_screen): Set submenu.
6588 (run): Open new context if requested.
6589 * include/grub/menu.h (grub_menu_entry): New field submenu.
6590 * include/grub/normal.h (grub_normal_free_menu): New proto.
6592 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6594 Menu entries extractor.
6596 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
6598 (GRUB_MOD_INIT): Register new variants.
6599 (GRUB_MOD_FINI): Unregister new variants.
6600 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
6601 into grub_cmd_legacy_source.
6602 (grub_cmd_legacy_source): Implement extractor variants.
6603 (GRUB_MOD_INIT): Register new variants.
6604 (GRUB_MOD_FINI): Unregister new variants.
6605 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
6607 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
6608 search as an extractor.
6609 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
6610 test as an extractor.
6611 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
6613 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
6614 (grub_env_new_context): New function.
6615 (grub_env_context_open): Likewise.
6616 (grub_env_extractor_open): Likewise.
6617 (grub_env_extractor_close): Likewise.
6618 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
6619 grub_extractor_level.
6620 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
6621 * include/grub/env.h (grub_env_extractor_open): New proto.
6622 (grub_env_extractor_close): Likewise.
6623 * include/grub/normal.h (grub_extractor_level): New external variable.
6625 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6627 Make cutmem accept a region specification.
6628 Suggested by: Samuel Thibault
6630 * grub-core/mmap/mmap.c (parsemem): New function.
6631 (grub_cmd_cutmem): Handle new arguments.
6633 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6637 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
6638 (GRUB_MOD_INIT): Register new command.
6639 (GRUB_MOD_FINI): Unregister new command.
6641 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6643 Support some annoying BSD and Minix subpartitions.
6645 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
6646 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
6647 Properly handle concatenation.
6648 * grub-core/kern/device.c (grub_device_iterate): Likewise.
6649 * grub-core/normal/completion.c (iterate_partition): Likewise.
6650 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
6651 contain partition. All users updated.
6652 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
6654 (grub_openbsdlabel_partition_map): Likewise.
6655 (bsdlabel_partition_map_iterate): Rename to ..
6656 (iterate_real): ... this. New arguments sector, freebsd and pmap.
6657 (bsdlabel_partition_map_iterate): New function.
6658 (netopenbsdlabel_partition_map_iterate): Likewise.
6659 (netbsdlabel_partition_map_iterate): Likewise.
6660 (openbsdlabel_partition_map_iterate): Likewise.
6661 (GRUB_MOD_INIT): Register new partmaps.
6662 (GRUB_MOD_FINI): Unregister new partmaps.
6663 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
6664 (grub_partition_msdos_iterate): ... this. All users updated.
6665 Don't support embedding other than in a minix partition.
6666 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
6668 * include/grub/partition.h (grub_partition): New field msdostype.
6669 * util/grub-install.in: Handle openbsd and netbsd types being in
6672 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6674 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
6676 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
6677 * grub-core/Makefile.core.def (mdraid): Renamed to ...
6678 (mdraid09): ... this.
6679 (mdraid1x): New module.
6680 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
6681 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
6683 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6685 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
6688 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6690 * grub-core/commands/efi/lsefimmap.c: Correct header.
6693 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6695 * util/grub-editenv.c (argp_parser): Don't pass translated strings
6696 as printf format strings; the translations might contain '%' which
6697 could cause a crash.
6699 * util/grub-fstest.c (argp_parser): Likewise.
6700 * util/grub-setup.c (argp_parser): Likewise.
6703 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6705 Use argp in grub-fstest.
6707 * util/grub-fstest.c: Don't include getopt.h.
6709 (root): New variable.
6710 (args_count): Likewise.
6712 (num_disks): Likewise.
6715 (debug_str): Likewise.
6717 (options): Transformed to argp.
6719 (main): Split argument parsing into ...
6720 (argp_parser): ... this. Changed to argp format.
6721 (argp): New variable.
6722 (main): Use argp_parse.
6724 2010-09-20 Tristan Gingold <gingold@free.fr>
6725 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
6726 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6728 * grub-core/commands/efi/lsefimmap.c: New file.
6729 * grub-core/Makefile.core.def (lsefimmap): New module.
6730 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
6732 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6734 Pause the execution (10s max) if any errors are displayed so the user
6735 has a chance to see them.
6737 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
6738 (grub_print_error): Increment grub_err_printed_errors.
6739 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
6740 execution if any errors were displayed.
6741 (show_menu): Remove old code for pause.
6742 * grub-core/normal/menu_entry.c (run): Likewise.
6743 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
6745 (grub_normal_get_char_counter): Likewise.
6746 * include/grub/err.h (grub_err_printed_errors): New external variable.
6747 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
6749 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6751 Support multiboot VBE info.
6753 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
6754 Take VBE info into account.
6755 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
6756 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
6757 Call fill_vbe_info when appropriate.
6758 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
6759 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
6761 (grub_multiboot_get_mbi_size): Take new tags into account.
6762 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
6763 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
6764 Call fill_vbe_tag when appropriate.
6765 (grub_multiboot_make_mbi): Properly align tags.
6766 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
6768 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
6770 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
6772 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6774 Suport manual terminal geometry specification.
6776 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
6777 Save state in grub_ofconsole_terminfo_output.
6778 (grub_ofconsole_term): Use grub_terminfo_getwh.
6779 (grub_ofconsole_getwh): Removed.
6780 * grub-core/term/serial.c (grub_serial_getwh): Removed.
6781 (grub_serial_term): Use grub_terminfo_getwh.
6782 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
6783 (options): New struct.
6784 (OPTION_*): New enum.
6785 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
6786 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
6788 (grub_terminfo_getwh): New proto.
6789 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
6791 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6793 Handle legacy "terminal" command.
6795 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
6797 (legacy_commands): Add terminal and title.
6798 (grub_legacy_parse): Handle terminal. Simplify title handling.
6800 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6802 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
6803 parameters overflow.
6805 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6807 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
6810 * docs/grub.texi (Shell-like scripting): Document `!'.
6811 (Network): Simplify using new i386-pc-pxe format. Mention
6816 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6818 * Makefile.am (SUBDIRS): Restore "."; it's important to force
6819 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
6822 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6824 * grub-core/commands/efi/lsefisystab.c: Correct header.
6825 * grub-core/commands/efi/lssal.c: Likewise.
6826 * grub-core/commands/testload.c: Likewise.
6828 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6830 * util/grub-mkrescue.in: Add explicit root argument to --set to
6831 prevent the UUID being interpreted as an argument to --set (matches
6832 previous change to prepare_grub_to_access_device).
6834 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
6836 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
6837 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
6838 the verbosity of later #ifs.
6839 (find_partition_start): Define this function on FreeBSD too.
6840 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
6842 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
6845 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6847 * util/grub-editenv.c: Use argp instead of getopt.
6849 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6851 * util/grub-setup.c: Use argp instead of getopt.
6853 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6855 Use gnulib-tool to create gnulib source files.
6857 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
6858 grub-core/gnulib directories
6859 * .bzignore: Add **/.deps and autogenerated gnulib files
6860 * configure.ac: Assign auxiliary directory to build-aux, add invocation
6861 of gnulib macros, add grub-core/gnulib/Makefile
6862 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
6863 include m4 directory to aclocal.
6864 * Makefile.util.def: Remove direct compilation of gnulib source files
6865 and use the new grub-core/gnulib/libgnu.a.
6866 * build-aux/config.rpath: move config.rpath from top directory to
6868 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
6870 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
6871 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
6872 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
6874 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
6877 2010-09-20 Yves Blusseau <blusseau@zetam.org>
6879 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
6880 grub-core/genmod.sh and grub-core/gensyminfo.sh
6882 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
6884 Add a test for echo command options.
6886 * tests/grub_cmd_echo.in: New test.
6887 * Makefile.util.def: Rules for new test.
6889 2010-09-20 Szymon Janc <szymon@janc.net.pl>
6891 Remove crc.mod and move crc command to hashsum.mod.
6892 Remove lib/crc.c - users updated to use gcrypt implementation.
6894 * grub-core/commands/crc.c: Removed.
6895 * grub-core/Makefile.core.def (crc): Module removed.
6896 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
6897 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
6898 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
6899 * grub-core/lib/crc.c: Removed.
6900 * include/grub/lib/crc.h: Removed.
6901 * Makefile.util.def (crc): Remove lib/crc.c
6902 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
6903 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
6904 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
6905 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
6906 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
6907 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
6909 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
6911 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
6913 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6915 Split config.h for util and core.
6917 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
6920 (BSS_START_SYMBOL): Likewise.
6921 (END_SYMBOL): Likewise.
6922 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
6923 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
6924 * config.h.in: New file.
6925 * configure.ac: Use config-util.h as config define file.
6926 Rename MACHINE into GRUB_MACHINE. All users updated.
6927 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
6929 (NESTED_FUNC_ATTR): Likewise.
6930 Substitue new variables.
6931 (COND_HAVE_ASM_USCORE): New conditional.
6932 * grub-core/Makefile.am (ASM_PREFIX): New variable.
6933 (kernel_syms.lst): Use ASM_PREFIX.
6934 * grub-core/kern/emu/console.c: Include config-util.h.
6935 * grub-core/kern/emu/misc.c: Likewise.
6936 * grub-core/kern/emu/mm.c: Likewise.
6937 * include/grub/emu/misc.h: Likewise.
6938 * include/grub/libgcc.h: Likewise.
6940 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6942 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
6944 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
6945 Fix GRUB_TERM_KEY_* constants usage.
6946 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
6948 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6950 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
6952 * grub-core/bus/usb/uhci.c: Remove empty define.
6953 (grub_uhci_check_transfer): Add missing cast.
6954 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
6956 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
6958 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
6960 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
6962 * grub-core/Makefile.core.def (legacycfg): Add
6963 lib/i386/pc/vesa_modes_table.c on emu.
6965 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
6967 Reduce number of temporary files generated by build system.
6969 * grub-core/gencmdlist.sh: Removed.
6970 * grub-core/genfslist.sh: Removed.
6971 * grub-core/genhandlerlist.sh: Removed.
6972 * grub-core/genmodsrc.sh: Removed.
6973 * grub-core/genpartmaplist.sh: Removed.
6974 * grub-core/genparttoollist.sh: Removed.
6975 * grub-core/gentermiinallist.sh: Removed.
6976 * grub-core/genvideolist.sh: Removed.
6978 * grub-core/genmod.sh.in: New file.
6979 * grub-core/gensyminfo.sh.in: New file.
6981 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
6982 * conf/Makefile.extra-dist: Update with new files.
6983 * gentpl.py: Remove rules related to unnecessary temporary files.
6984 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
6986 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
6988 * grub-core/bus/usb/uhci.c: Remove empty #define.
6989 * grub-core/genmoddep.awk: Updated with new syminfo format.
6990 * util/bash-completion.d/Makefile.am: Add config.log to
6993 2010-09-19 Yves Blusseau <blusseau@zetam.org>
6995 * Makefile.util.def: Add forgotten $(LIBINTL) library.
6997 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
6999 * util/grub-mkconfig.in: Check the config script for syntax errors
7002 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
7003 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
7005 * Makefile.util.def (grub-install): Use util/grub-install.in on all
7007 * util/grub-install.in: Add EFI and IEEE1275 support.
7008 * util/i386/efi/grub-install.in: Removed.
7009 * util/ieee1275/grub-install.in: Likewise.
7011 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
7013 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
7014 (grub_cmd_cmosclean): Likewise.
7015 (GRUB_MOD_INIT): Register command cmosclean.
7016 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
7017 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
7019 2010-09-18 Carles Pina i Estany <carles@pina.cat>
7020 2010-09-18 Aleš Nesrsta <starous@volny.cz>
7021 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7023 Add keyboard layouts support.
7025 * Makefile.util.def (grub-mklayout): New file.
7026 (grub-kbdcomp): New script.
7027 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
7028 Add keyboard_layouts.h.
7029 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
7030 commands/boot.c on yeeloong.
7031 (keylayouts): New module.
7032 * grub-core/bus/usb/ohci.c
7033 * grub-core/bus/usb/uhci.c
7034 * grub-core/bus/usb/usbhub.c (rescan): New variable.
7035 (grub_usb_add_hub): Poll interrupt pipe for device handling.
7036 (attach_root_port): Likewise.
7037 (poll_nonroot_hub): Likewise.
7038 (grub_usb_poll_devices): Likewise.
7039 (detach_device): Close transfer.
7040 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
7042 (grub_usb_bulk_setup_readwrite): Likewise.
7043 (grub_usb_bulk_finish_readwrite): Likewise.
7044 * grub-core/commands/keylayouts.c: New file.
7045 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
7046 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
7048 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
7050 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
7051 * include/grub/keyboard_layouts.h: New file.
7052 * util/grub-mklayout.c: New file.
7053 * util/grub-kbdcomp.in: Likewise.
7055 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7059 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
7060 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
7062 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
7063 (grub_upper_mem): Likewise.
7064 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
7065 * include/grub/memory.h (grub_memory_type_t): New enum.
7068 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7070 * grub-core/Makefile.core.def (lsapm): New module.
7071 * grub-core/commands/i386/pc/lsapm.c: New file.
7072 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
7073 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
7075 * include/grub/i386/pc/apm.h: New file.
7076 * include/multiboot.h (multiboot_apm_info): New struct.
7078 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
7080 GRUB-legacy configuration file support.
7082 * Makefile.util.def (grub-menulst2cfg): New util.
7083 * docs/man/grub-menulst2cfg.h2m: New file.
7084 * grub-core/Makefile.core.def (legacycfg): New module.
7085 * grub-core/commands/legacycfg.c: New file.
7086 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
7087 (grub_normal_add_menu_entry): ... this.
7088 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
7089 (grub_normal_set_password): ...this.
7090 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
7091 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
7092 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
7093 * grub-core/lib/legacy_parse.c: New file.
7094 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
7095 * include/grub/i386/pc/vesa_modes_table.h: New file.
7096 * include/grub/legacy_parse.h: Likewise.
7097 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
7098 * util/grub-menulst2cfg.c: New file.
7100 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
7102 * grub-core/kern/emu/hostdisk.c
7103 (convert_system_partition_to_system_disk): Initialise node.
7105 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
7107 * grub-core/kern/emu/hostdisk.c
7108 (convert_system_partition_to_system_disk): Fix devmapper memory pool
7110 Reported and based on patch by: Modestas Vainius.
7112 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
7114 Fix DM-RAID probing with recent versions of device-mapper udev
7117 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
7118 canonicalise device paths under /dev/mapper/.
7119 (convert_system_partition_to_system_disk): Compare the
7120 uncanonicalised path to /dev/mapper/ rather than the canonicalised
7121 path, since device nodes under /dev/mapper/ are often symlinks.
7123 2010-09-17 Yves Blusseau <blusseau@zetam.org>
7125 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
7127 2010-09-16 Yves Blusseau <blusseau@zetam.org>
7129 * configure.ac: Avoid some annoying error messages if freetype-config
7130 program is not found.
7132 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
7134 Support RAID on virtio devices, and others.
7136 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
7138 [__MINGW32__] (grub_find_device): ... this.
7139 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
7140 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
7141 reasonable default if dir is NULL.
7142 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
7144 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
7145 (grub_guess_root_device): Update callers.
7146 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
7148 * util/raid.c (grub_util_getdiskname): Remove.
7149 (grub_util_raid_getmembers): Use grub_find_device rather than
7150 grub_util_getdiskname.
7152 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
7154 * docs/grub.texi (serial): Remove obsolete comment about GRUB
7155 needing to be compiled with serial support.
7156 (ls): Indicate that multiple files are accepted.
7157 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
7158 indicate that multiple files are accepted.
7160 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
7162 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
7163 libgrub_a_init.c, and util/bash-completion.d/grub.
7165 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7167 * util/grub-setup.c (setup): Fix incorrect container semantics.
7169 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7171 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
7173 Reported by: J. Nick Terry
7175 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7177 Move embedding routines to partmap sources files.
7179 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
7180 [GRUB_UTIL]: New variable.
7181 (gpt_partition_map_iterate): Set part.parent.
7182 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
7183 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
7184 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
7186 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
7187 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
7188 (grub_partition_map) [GRUB_UTIL]: New field embed.
7189 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
7190 (setup): Use ->embed.
7192 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7194 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
7196 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
7197 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
7199 2010-09-15 Yves Blusseau <blusseau@zetam.org>
7201 Add function to get completions from usage.
7203 * util/bash-completion.d/grub-completion.bash.in: Add function to get
7204 completions from usage. Use LC_ALL=C to get options properly.
7206 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7208 * grub-core/gnulib/basename-lgpl.c: Imported.
7209 * grub-core/gnulib/basename.c: Likewise.
7210 * grub-core/gnulib/dirname-lgpl.c: Likewise.
7211 * grub-core/gnulib/dirname.c: Likewise.
7212 * grub-core/gnulib/dirname.h: Likewise.
7213 * grub-core/gnulib/stripslash.c: Likewise.
7215 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7217 * grub-core/gnulib/error.c: Resynced.
7218 * grub-core/gnulib/getopt.c: Likewise.
7219 * grub-core/gnulib/getopt_int.h: Likewise.
7220 * grub-core/gnulib/regex.h: Likewise.
7221 * grub-core/gnulib/regex_internal.c: Likewise.
7222 * grub-core/gnulib/regex_internal.h: Likewise.
7224 2010-09-15 Szymon Janc <szymon@janc.net.pl>
7226 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
7227 CRC calculations and validity checks.
7228 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
7231 2010-09-15 Szymon Janc <szymon@janc.net.pl>
7233 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
7235 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7237 Fix incorrect echo options handling.
7238 Reported by: Yves Blusseau.
7240 * include/grub/command.h (grub_command_flags_t): New flags
7241 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
7242 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
7243 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
7245 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7247 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
7249 (GRUB_COMMAND_FLAG_MENU): Likewise.
7250 (GRUB_COMMAND_FLAG_BOTH): Likewise.
7251 (GRUB_COMMAND_FLAG_TITLE): Removed.
7252 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
7253 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
7254 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
7255 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
7256 (grub_command_flags_t): New enum. All users updated.
7258 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
7260 Fix solaris compilation.
7262 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
7263 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
7264 (grub-emu-list): Likewise.
7266 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7268 Remove deprecated root command.
7270 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
7273 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7275 * util/i386/pc/grub-setup.c: Merge this ...
7276 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
7277 * util/grub-setup.c: ... into this.
7278 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
7281 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7283 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
7286 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7288 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
7291 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7293 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
7294 explicit root argument to set to prevent UUID to be interpreted as
7297 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7299 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
7301 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7303 Don't export grub_gate_a20.
7305 * grub-core/kern/i386/pc/init.c: Remove leftovers.
7306 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
7308 (grub_gate_a20): ... this. All users updated.
7309 * include/grub/i386/pc/init.h: Removed. All users updated.
7311 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7313 Create euro.pf2 which supports most European languages.
7315 * Makefile.am (grubdata_DATA): Add euro.pf2.
7316 (euro.pf2): New target.
7317 (CLEANFILES): Add euro.pf2.
7319 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
7321 * configure.ac: Disable emu-usb by default to prevent inadvertent
7324 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7326 Disable usbserial on grub-emu since our libusb code isn't good enough
7329 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
7330 (usbserial_pl2303): Likewise.
7331 (usbserial_ftdi): Likewise.
7333 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7335 * include/grub/disk.h (grub_disk): Remove has_partitions.
7337 * disk/loopback.c (grub_loopback): Remove has_partitions.
7339 (options): Remove partitions. All users updated.
7340 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
7341 * util/i386/pc/grub-setup.c (setup): copy partition table only when
7342 actual partition table is found.
7344 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7346 Remove readability checks (too many false negatives).
7348 * util/grub-install.in: Remove readability checks.
7349 * util/grub-mkconfig.in: Likewise.
7350 * util/grub.d/10_hurd.in: Likewise.
7351 * util/grub.d/10_kfreebsd.in: Likewise.
7352 * util/grub.d/10_linux.in: Likewise.
7353 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
7356 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7358 Enable acpi shutdown on all ACPI platforms.
7360 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
7361 on coreboo, multiboot and EFI.
7362 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
7363 (grub_acpi_halt): Likewise.
7364 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
7365 (grub_cmd_halt): Don't call grub_acpi_halt directly.
7366 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
7367 * grub-core/lib/i386/halt.c (grub_halt)
7368 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
7370 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7372 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
7375 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7377 * grub-core/video/efi_gop.c: Fix over-80-chars line.
7378 * grub-core/video/efi_uga.c: Likewise.
7380 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7382 Filter devaliases and never open same device twice.
7384 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
7385 (last_ihandle): Likewise.
7386 (ofdisk_hash_ent): New member shortest.
7387 (ofdisk_hash_add): Add canonical path too.
7388 (scan): New function.
7389 (grub_ofdisk_iterate): Iterate over hashed entries.
7390 (compute_dev_path): Don't add :0.
7391 (grub_ofdisk_open): Don't really open the disk.
7392 (grub_ofdisk_close): Avoid closing unrelated disk.
7393 (grub_ofdisk_read): Implement reopen logic.
7394 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
7396 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
7399 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7403 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
7404 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
7405 right address. Add sparc64_ieee1275_ldflags.
7406 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
7407 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
7408 to grub_host_to_target_addr
7409 (load_image): Likewise.
7411 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7413 * grub-core/normal/completion.c (complete_file): Handle device
7415 Fix based on patch by Doug Nazar.
7417 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7419 grub-mknetdir script.
7421 * Makefile.util.def (grub-mknetdir): New module.
7422 * tests/util/grub-shell.in: Support boot=net
7423 * util/grub-mknetdir.in: New file.
7425 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7427 videoinfo on non-vbe.
7429 * grub-core/Makefile.core.def (vbeinfo): Removed.
7431 (videoinfo): New module.
7432 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
7433 * grub-core/commands/i386/pc/vbetest.c: Removed.
7434 * grub-core/commands/videoinfo.c: New file.
7435 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
7437 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
7439 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
7440 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
7441 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
7442 mode_number. New parameter mode. All users updated.
7443 (grub_video_gop_iterate): New function.
7444 (grub_video_efi_gop): New member iterate.
7445 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
7446 (grub_vbe_set_video_mode): Remove setting useless fields.
7447 (vbe2videoinfo): New function.
7448 (grub_video_vbe_iterate): Likewise.
7449 (grub_video_vbe_setup): Use vbe2videoinfo.
7450 (grub_video_vbe_print_adapter_specific_info): New function.
7451 (grub_video_vbe_adapter): New fields iterate and
7452 print_adapter_specific_info.
7453 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
7455 (grub_video_mode_info): New field mode_number.
7456 (grub_video_adapter): New fields iterate and
7457 print_adapter_specific_info.
7459 2010-09-13 Tristan Gingold <gingold@free.fr>
7460 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
7461 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7463 * grub-core/commands/efi/lsefisystab.c: New file.
7464 * grub-core/commands/efi/lssal.c: Likewise.
7465 * grub-core/Makefile.core.def (lsacpi): New module.
7466 (lsefisystab): Likewise.
7467 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
7468 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
7469 (grub_efi_sal_system_table): New struct.
7470 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
7471 (grub_efi_sal_system_table_memory_descriptor): Likewise.
7472 (grub_efi_sal_system_table_platform_features): Likewise.
7473 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
7474 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
7475 (grub_efi_sal_system_table_ap_wakeup): Likewise.
7476 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
7478 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7480 Support explicit user claim that a device is BIOS-visible.
7482 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
7483 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
7484 * grub-core/kern/emu/hostdisk.c
7485 (convert_system_partition_to_system_disk): Support mdX.
7486 (find_system_device): New parameter add. All users updated.
7487 (grub_util_biosdisk_is_present): New function.
7488 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
7491 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
7493 Search hints support.
7495 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
7498 2010-09-13 Yves Blusseau <blusseau@zetam.org>
7500 Bash completion script for util commands
7502 * Makefile.am: Add util/bash-completion.d directory
7503 * configure.ac: Likewise.
7504 * util/bash-completion.d/Makefile.am: New file.
7505 * util/bash-completion.d/grub-completion.bash.in: Likewise.
7507 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7509 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
7510 (print_backlog): set backlog_ucs4 and backlog_glyphs.
7511 Reported by: Yves Blusseau.
7513 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7515 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
7516 partition size and offset.
7518 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7520 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
7522 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7524 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
7526 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7528 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
7529 (grub_xvasprintf): Likewise.
7531 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7533 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
7535 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7537 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
7538 args ending with NULL.
7540 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
7542 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
7545 2010-09-11 Szymon Janc <szymon@janc.net.pl>
7547 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
7549 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7551 Shutdown using ACPI.
7553 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
7554 * grub-core/commands/acpihalt.c: New file.
7555 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
7556 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
7557 (grub_acpi_halt): New proto.
7558 (GRUB_ACPI_SLP_EN): New const.
7559 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
7560 (GRUB_ACPI_OPCODE_*): New enum.
7561 (GRUB_ACPI_EXTOPCODE_*): Likewise.
7563 2010-09-11 Tristan Gingold <gingold@free.fr>
7564 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
7565 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7567 * commands/lsacpi.c: New file.
7568 * grub-core/Makefile.core.def (lsacpi): New module.
7569 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
7570 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
7571 (grub_acpi_madt_entry_header): New struct.
7572 (grub_acpi_madt): Likewise.
7573 (grub_acpi_madt_entry_interrupt_override): Likewise.
7574 (grub_acpi_madt_entry_sapic): Likewise.
7575 (grub_acpi_madt_entry_lsapic): Likewise.
7576 (grub_acpi_madt_entry_platform_int_source): Likewise.
7577 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
7578 (PRIuGRUB_UINT32_T): Likewise.
7579 (PRIxGRUB_UINT64_T): Likewise.
7581 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7583 Implement loading palette on ieee1275_fb.
7585 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
7586 (have_setcolors): Likewise.
7587 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
7588 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
7589 (grub_video_ieee1275_set_palette): Implement.
7591 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7592 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
7594 * util/grub-install.in (grub_partition): New variable.
7595 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
7596 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
7597 Fixes a bug reported by Yves Blusseau.
7599 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
7603 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
7604 =grub_cpu_flush_cache on all mips and not only yeeloong.
7605 * configure.ac (COND_mips): New conditional.
7606 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
7608 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
7609 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
7610 [GRUB_LINKER_HAVE_INIT]: New function.
7611 (grub_emu_post_init): Likewise.
7612 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
7613 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
7614 * include/grub/cache.h (_mips): Include mips/cache.h.
7615 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
7616 LVM and RAID prototypes.
7617 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
7618 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
7621 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
7623 * util/grub-install.in: Don't try to verify core.img until after
7624 running grub-mkimage to create it.
7626 2010-09-10 Robert Millan <rmh@gnu.org>
7628 * util/grub.d/10_hurd.in: Add misc readability checks.
7629 * util/grub.d/10_kfreebsd.in: Likewise.
7630 * util/grub.d/10_linux.in: Likewise.
7632 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
7634 * util/grub-install.in: ${imgext} won't be defined here until the
7635 install branch is merged. For the meantime, only verify core.img on
7636 i386-pc and sparc64-ieee1275 platforms.
7638 2010-09-10 Robert Millan <rmh@gnu.org>
7640 Solaris support in grub_find_zpool_from_dir(). Thanks
7641 Seth Goldberg for referring to getextmntent() facility.
7643 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
7645 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
7647 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
7648 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
7649 method for finding zpool name.
7651 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
7653 grub-fstest needs the host and hostfs modules while other utilities
7654 actively require those modules to be absent, so grub-fstest needs
7655 its own initialisation and finalisation code.
7657 * Makefile.am (grub_fstest.pp): New target.
7658 (grub_fstest_init.lst): Likewise.
7659 (grub_fstest_init.c): Likewise.
7660 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
7662 2010-09-10 Robert Millan <rmh@gnu.org>
7664 * configure.ac: Check for `struct statfs.f_fstypename' and
7665 `struct statfs.f_mntfromname'.
7667 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
7668 kFreeBSD-specific code.
7670 2010-09-10 Robert Millan <rmh@gnu.org>
7672 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
7673 on ZFS. Now non-main filesystems are supported as / too.
7675 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
7677 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
7678 and grub-core/disk/host.c to ...
7679 (grub-fstest): ... here. Having the host disk implementation
7680 present confuses grub-probe and other utility programs.
7682 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
7683 when writing to a file, not when writing to stdout.
7685 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
7687 * tests/partmap_test.in: New test for partitions.
7688 * Makefile.util.def: Rules for new test.
7690 2010-09-09 Robert Millan <rmh@gnu.org>
7692 * util/grub-probe.c (probe): Fix a pair of unhandled error
7695 2010-09-09 Robert Millan <rmh@gnu.org>
7697 Basic Btrfs support (detection and UUID).
7699 * grub-core/fs/btrfs.c: New file.
7700 * Makefile.util.def (library): Register btrfs.c.
7701 * grub-core/Makefile.core.def: Likewise.
7703 2010-09-08 Robert Millan <rmh@gnu.org>
7705 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
7706 with (optional) parameters to specify device and relative path.
7707 * util/grub-install.in: Use is_path_readable_by_grub() to
7708 verify readability of a few critical files.
7709 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
7710 verify readability of grub.cfg.new.
7712 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
7714 Split minix.mod into minix.mod and minix2.mod.
7716 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
7717 * grub-core/Makefile.core.def (minix2): New module.
7718 * grub-core/fs/minix.c: Use definitions instead of runtime version
7720 * grub-core/fs/minix2.c: New file.
7722 2010-09-08 Yves Blusseau <blusseau@zetam.org>
7724 Add new --boot-directory option to replace --root-directory
7726 * util/grub-install.in: Add new --boot-directory option
7727 * util/grub-reboot.in: Likewise.
7728 * util/grub-set-default.in: Likewise.
7730 2010-09-08 Yves Blusseau <blusseau@zetam.org>
7732 * util/grub-mkconfig.in: Use new variable.
7734 2010-09-08 Yves Blusseau <blusseau@zetam.org>
7736 * configure.ac: Define some useful variables.
7738 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
7740 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7741 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
7742 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
7743 Use terminfo and don't use cursor-on/cursor-off unless it's known
7745 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
7746 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
7748 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
7750 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
7751 starts with "(,", fill the drive containing the loaded image in
7752 between those two characters, but expect that a full partition
7753 specification including partition map names will follow.
7755 2010-09-08 Robert Millan <rmh@gnu.org>
7757 * configure.ac: Remove `--enable-grub-fstest' option.
7758 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
7760 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
7761 `grub-fstest' instead of `grub-probe' for readability verification.
7762 * util/grub-probe.c (probe): Remove readability verification kludge.
7764 2010-09-08 Robert Millan <rmh@gnu.org>
7766 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
7767 initializing `GRUB_FS'.
7769 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
7771 Not command (!) support to GRUB script.
7773 * tests/grub_script_not.in: New test.
7774 * Makefile.util.def: Rules for new test.
7776 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
7777 ! command as a special case.
7778 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
7780 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
7782 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
7785 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
7787 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
7789 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
7791 * docs/grub.texi (Shell-like scripting): Documentation for break,
7792 continue, shift and return commands.
7794 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
7796 Rename CD-ROM to cd on BIOS.
7798 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
7800 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
7802 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7804 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
7805 * util/grub-probe.c (main): Likewise.
7806 * util/i386/pc/grub-setup.c (main): Likewise.
7807 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
7808 Reported and debugged by: alexxy
7810 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7812 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
7815 2010-09-05 Jo Shields <directhex@apebox.org>
7817 * util/grub.d/30_os-prober.in: Add missing classes.
7819 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7821 * docs/grub.texi (Theme file format): Document new position format.
7823 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7825 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
7826 a table. Use @code instead of @verbatim.
7828 2010-09-05 Colin D Bennett <colin@gibibit.com>
7830 Gfxmenu documentation.
7832 * docs/grub.texi (Theme file format): New chapter.
7834 2010-09-05 Szymon Janc <szymon@janc.net.pl>
7836 * grub-core/Makefile.core.def (xzio): New module.
7837 * grub-core/io/xzio.c: New file.
7838 * grub-core/lib/xzembed/xz.h: New file (from xembed).
7839 * grub-core/lib/xzembed/xz_config.h: Likewise.
7840 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
7841 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
7842 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
7843 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
7844 * grub-core/lib/xzembed/xz_private.h: Likewise.
7845 * grub-core/lib/xzembed/xz_stream.h: Likewise.
7846 * include/grub/file.h (grub_file_filter_id): New compression filter
7847 GRUB_FILE_FILTER_XZIO.
7849 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7851 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
7852 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
7855 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7857 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
7858 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
7860 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7862 Uncompressed checksum support.
7864 * grub-core/commands/hashsum.c (options): Add option --uncompress.
7865 (check_list): New parameter uncompress.
7866 (grub_cmd_hashsum): Handle --uncompress.
7868 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7870 Reintroduce testload.
7872 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
7874 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
7875 (GRUB_MOD_INIT): New function.
7876 (GRUB_MOD_FINI): Likewise.
7877 * grub-core/Makefile.core.def (testload): New module.
7879 2010-09-05 Szymon Janc <szymon@janc.net.pl>
7881 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
7882 (uint8_t): New type.
7883 (uint16_t): Likewise.
7884 (uint32_t): Likewise.
7885 (uint64_t): Likewise.
7887 2010-09-05 Szymon Janc <szymon@janc.net.pl>
7889 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
7891 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
7893 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
7895 (grub_gzfile_open): Removed. All users updated.
7896 (GRUB_MOD_INIT): New function.
7897 (GRUB_MOD_FINI): Likewise.
7898 * grub-core/kern/file.c (grub_file_filters_all): New variable.
7899 (grub_file_filters_enabled): Likewise.
7900 (grub_file_open): Handle filters.
7901 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
7902 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
7903 * include/grub/file.h (grub_file_filter_id_t): New type.
7904 (grub_file_filter_t): Likewise.
7905 (grub_file_filters_all): New extern variable.
7906 (grub_file_filters_enabled): Likewise.
7907 (grub_file_filter_register): New inline function.
7908 (grub_file_filter_unregister): Likewise.
7909 (grub_file_filter_disable): Likewise.
7910 (grub_file_filter_disable_compression): Likewise.
7911 * include/grub/gzio.h: Removed.
7913 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7915 Filename expansion support for wildcards in GRUB script.
7917 * tests/grub_script_expansion.in: New test.
7918 * Makefile.util.def: Rule for new test.
7920 * grub-core/commands/wildcard.c: New file, implements filename
7921 expansion support for GRUB script.
7922 * grub-core/Makefile.core.def: Rule update for regexp.mod.
7923 * grub-core/script/argv.c: Cosmetic changes.
7924 * grub-core/script/execute.c (grub_script_arglist_to_argv):
7925 Refactored to perform wildcard expansion on arguments.
7926 * include/grub/script_sh.h (grub_script_wildcard_translator): New
7929 * tests/util/grub-shell.in: Fix quoting for read input.
7931 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7933 Support for updating environment variables with matched substrings
7936 * tests/grub_cmd_regexp.in: New test.
7937 * Makefile.util.def: Rule for new test.
7939 * grub-core/commands/regexp.c: New option -s to update environment
7940 variables with regexp matches.
7942 2010-09-04 Szymon Janc <szymon@janc.net.pl>
7944 * include/grub/file.h (grub_file): New member not_easly_seekable.
7945 (grub_file_seekable): New inline function.
7946 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
7948 (grub_gzio_open): Set not_easly_seekable.
7949 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
7950 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
7952 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7954 Support for options to appear multiple times on cmdline.
7956 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
7957 * grub-core/commands/extcmd.c: Support for repeatable option.
7958 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
7959 repeatable option support.
7961 Refactor menuentry into a regular command.
7963 * grub-core/commands/menuentry.c: New file, menuentry command
7965 * grub-core/Makefile.core.def: Rule update for normal.mod.
7966 * grub-core/normal/main.c: Moved menuentry creation to
7967 grub-core/commands/menuentry.c.
7968 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
7969 (grub_menu_execute_entry_real): Removed.
7970 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
7972 (grub_script_execute_menuentry): Removed.
7973 * grub-core/script/parser.y (menuentry): Removed.
7974 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
7975 * grub-core/script/yylex.l (menuentry): Removed.
7976 * include/grub/menu.h (grub_menu_init): New prototype.
7977 (grub_menu_fini): New prototype.
7978 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
7979 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
7980 (grub_script_execute_sourcecode): New prototype.
7982 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7984 "return" command for GRUB script functions.
7986 * tests/grub_script_return.in: New test.
7987 * Makefile.util.def: Rules for new test.
7989 * grub-core/script/execute.c (grub_script_return): New function.
7990 * grub-core/script/main.c: Register/unregister return commaond.
7991 * include/grub/script_sh.h (grub_script_return): New prototype.
7993 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
7995 "setparams" command to update positional parameters.
7997 * tests/grub_script_setparams.in: New test.
7998 * Makefile.util.def: Rules for new test.
8000 * grub-core/script/argv.c (grub_script_argv_make): New function.
8001 * grub-core/script/execute.c (replace_scope): New function.
8002 (grub_script_setparams): New function.
8003 * grub-core/script/lexer.c: Remove unused variables.
8004 * grub-core/script/main.c: Register/unregister setparams command.
8005 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
8006 (grub_script_setparams): New prototype.
8008 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
8010 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
8013 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
8015 Support for passing block of commands as an argument to extcmds.
8017 * Makefile.util.def: Rules for new test.
8018 * tests/grub_script_blockarg.in: New test.
8019 * grub-core/tests/test_blockarg.c: New file, block argument
8020 command used in the test.
8022 * include/grub/extcmd.h (grub_extcmd_context): New struct.
8023 (grub_register_extcmd_prio): New function prototype.
8024 (grub_extcmd_dispatcher): New function prototype.
8025 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
8027 * include/grub/script_sh.h (struct grub_script): New members
8028 `children', `next_siblings' and `refcnt' for block arguments and
8030 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
8031 (grub_script_arg): New member `script' for block argument.
8032 (grub_script_argv): New member `script' for block argument.
8033 (grub_parser_param): New member `scripts' for block argument.
8034 (grub_script_mem_free): New extern function prototype.
8035 (grub_script_ref): New function prototype.
8036 (grub_script_unref): New function prototype.
8038 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
8039 extcmd form to support block arguments.
8040 * grub-core/script/argv.c: Block arguments support.
8041 * grub-core/script/execute.c: Likewise.
8042 * grub-core/script/lexer.c: Likewise.
8043 * grub-core/script/main.c: Likewise.
8044 * grub-core/script/script.c: Likewise.
8045 * grub-core/script/parser.y: Likewise. New `block' and `block0'
8048 * grub-core/commands/acpi.c: Update extcmd implementations with
8049 grub_extcmd_context_t.
8050 * grub-core/commands/cat.c: Likewise.
8051 * grub-core/commands/echo.c: Likewise.
8052 * grub-core/commands/extcmd.c: Likewise.
8053 * grub-core/commands/hashsum.c: Likewise.
8054 * grub-core/commands/hdparm.c: Likewise.
8055 * grub-core/commands/help.c: Likewise.
8056 * grub-core/commands/hexdump.c: Likewise.
8057 * grub-core/commands/i386/cpuid.c: Likewise.
8058 * grub-core/commands/i386/pc/drivemap.c: Likewise.
8059 * grub-core/commands/i386/pc/halt.c: Likewise.
8060 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8061 * grub-core/commands/iorw.c: Likewise.
8062 * grub-core/commands/keystatus.c: Likewise.
8063 * grub-core/commands/loadenv.c: Likewise.
8064 * grub-core/commands/ls.c: Likewise.
8065 * grub-core/commands/lspci.c: Likewise.
8066 * grub-core/commands/memrw.c: Likewise.
8067 * grub-core/commands/probe.c: Likewise.
8068 * grub-core/commands/search_wrap.c: Likewise.
8069 * grub-core/commands/setpci.c: Likewise.
8070 * grub-core/commands/sleep.c: Likewise.
8071 * grub-core/disk/loopback.c: Likewise.
8072 * grub-core/hello/hello.c: Likewise.
8073 * grub-core/loader/i386/bsd.c: Likewise.
8074 * grub-core/loader/xnu.c: Likewise.
8075 * grub-core/term/gfxterm.c: Likewise.
8076 * grub-core/term/serial.c: Likewise.
8077 * grub-core/tests/lib/functional_test.c: Likewise.
8079 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
8081 Multi-line quoted strings support.
8083 * grub-core/script/lexer.c (append_newline): Removed.
8084 (grub_script_lexer_yywrap): Refactored.
8085 (grub_script_lexer_init): Refactored.
8086 * grub-core/script/yylex.l (yywrap): New function.
8087 (grub_lexer_resplit): New function.
8088 (grub_lexer_unput): New function.
8089 * include/grub/script_sh.h (grub_lexer_param): New members, unput
8091 * tests/grub_script_echo1.in: Added few more testcases.
8093 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8095 * grub-core/kern/misc.c: Don't add abort alias in utils.
8096 Reported by: echoline.
8098 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
8100 Add missing files into "make dist" tarball for other platforms.
8102 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
8103 * conf/Makefile.common (dist_noinst_DATA): New variable.
8104 * conf/Makefile.extra-dist: Added missing make dist files.
8105 * grub-core/Makefile.core.def: Likewise.
8107 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
8109 Compress grub_prefix.
8111 * grub-core/boot/i386/pc/lnxboot.S: Use
8112 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
8113 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
8114 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
8115 GRUB_MACHINE_PREFIX_END. All users updated.
8116 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
8117 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
8119 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
8120 * util/grub-mkimage.c (image_target_desc): Change data_end to
8121 prefix_end. All users updated.
8123 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
8125 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
8127 (grub_openbsd_boot): Likewise.
8128 (grub_netbsd_boot): Likewise.
8129 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
8130 (grub_xnu_boot): Likewise.
8132 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8134 * configure.ac: Clean LIBS variable after tests.
8136 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
8138 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
8140 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8142 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
8143 echo if libdevmapper will be used.
8145 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
8147 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
8148 constant for the same file.
8150 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8152 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
8154 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
8156 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
8159 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
8161 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
8162 required by the boot protocol.
8164 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
8165 ebp and edi members.
8166 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
8167 state.ebp and state.edi.
8168 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
8169 %ebp and %edi according to grub_relocator32_ebp and
8170 grub_relocator32_edi respectively.
8171 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
8174 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8176 Add i386-pc-pxe image target.
8178 * util/grub-mkimage.c (image_target_desc): New enum value
8180 (image_targets): New target i386-pc-pxe.
8181 (generate_image): Handle i386-pc-pxe image.
8183 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8187 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
8188 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
8190 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
8191 (grub_pxe_pxenv): Correct type.
8193 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
8195 * NEWS: Document most of the important changes since 1.98.
8197 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
8199 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
8200 generated manual page) a little.
8202 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
8204 * docs/grub.texi: Add myself as an author.
8206 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8208 * Makefile.util.def (libgrub.a): Add missing sunpc.
8209 Reported by: Seth Goldberg.
8211 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8213 Interrupt wrapping and code simplifications.
8215 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
8216 x86_noieee1275 which are functionaly equivalent in this case.
8217 (grub-install): Make source on each platform explicit. Enable on
8219 * gentpl.py (x86_efi_pc): Removed group.
8220 (x86_noefi): Likewise.
8221 (i386_noefi): Likewise.
8222 (x86_noieee1275): Likewise.
8223 (i386_noieee1275): Likewise.
8224 (i386_noefi_noieee1275): Likewise.
8225 (i386_pc_qemu_coreboot): Likewise.
8226 (i386_coreboot_multiboot): Likewise.
8227 (i386_pc_coreboot_multiboot_qemu): Likewise.
8228 (x86_noefi_mips): Likewise.
8229 (noieee1275): Likewise.
8230 (ieee1275_mips): Likewise.
8231 (noemu_noieee1275): Likewise.
8234 (videoinkernel): Likewise.
8235 (videomodules): Likewise.
8236 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
8237 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
8238 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
8239 include/grub/loader.h, include/grub/msdos_partition.h,
8240 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
8241 include/grub/machine/console.h, include/grub/machine/vga.h,
8242 include/grub/machine/vbe.h, include/grub/machine/init.h,
8243 include/grub/machine/kernel.h, include/grub/cpu/time.h,
8244 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
8245 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
8246 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
8247 * grub-core/Makefile.core.def (kernel): Explicit the source for
8248 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
8249 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
8250 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
8251 Use videoinkernel tag.
8252 (usb): Enable on all usb.
8253 (usbserial_common): Likewise.
8254 (usbserial_pl2303): Likewise.
8255 (usbserial_ftdi): Likewise.
8256 (uhci): Enable on all x86.
8257 (ohci): Enable on all pci.
8258 (cmostest): Enable on all CMOS.
8259 (acpi): Include commands/acpi.c on all platforms.
8260 (halt): Add relevant lib/*/halt.c.
8261 (hdparm): Enable on all pci.
8263 (usbtest): Enable on all usb.
8264 (ata): Enable on all pci.
8265 (ata_pthru): Likewise.
8266 (usbms): Enable on all usb.
8267 (usb_keyboard): Likewise.
8268 (font): Use tag videomodules.
8270 (datetime): Use tag cmos. Enable on all noemu.
8271 (mmap): Use tags common and x86.
8272 (gfxterm): Use tag videomodules.
8274 (bitmap_scale): Likewise.
8275 (video_fb): Likewise.
8277 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
8278 adjust padding accordingly. All users updated.
8279 (grub_ohci_transaction): Fix bad format specification.
8280 (GRUB_MOD_INIT): Add asserts for struct size.
8281 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
8282 (grub_alloc_td): Likewise.
8283 (grub_free_queue): Likewise.
8284 (grub_uhci_transfer): Likewise.
8285 (grub_uhci_transaction): Fix bad format specification.
8286 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
8287 (grub_usb_bulk_readwrite): Likewise.
8288 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
8289 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
8291 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
8293 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
8294 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
8296 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
8298 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
8299 ... here. Transformed into C. Made static.
8300 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
8302 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
8303 ... here. Transformed into C. Made static.
8304 * grub-core/kern/i386/pc/startup.S
8305 (grub_biosdisk_check_int13_extensions): Moved from here ...
8306 * grub-core/disk/i386/pc/biosdisk.c
8307 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
8309 * grub-core/kern/i386/pc/startup.S
8310 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
8311 * grub-core/disk/i386/pc/biosdisk.c
8312 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
8313 Transformed into C. Made static.
8314 * grub-core/kern/i386/pc/startup.S
8315 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
8316 * grub-core/disk/i386/pc/biosdisk.c
8317 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
8318 Transformed into C. Made static.
8319 * grub-core/kern/i386/pc/startup.S
8320 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
8321 * grub-core/disk/i386/pc/biosdisk.c
8322 (grub_biosdisk_get_diskinfo_standard): ... here.
8323 Transformed into C. Made static.
8324 * grub-core/kern/i386/pc/startup.S
8325 (grub_biosdisk_get_num_floppies): Moved from here ...
8326 * grub-core/disk/i386/pc/biosdisk.c
8327 (grub_biosdisk_get_num_floppies): ... here.
8328 Transformed into C. Made static.
8329 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
8331 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
8332 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
8333 Transformed into C. Made static.
8334 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
8335 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
8336 Transformed into C. Made static.
8337 * grub-core/kern/i386/ieee1275/init.c: Removed.
8338 * grub-core/kern/i386/misc.S: Likewise.
8339 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
8340 Splitted from here ...
8341 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
8342 Transformed into C. Made static. All users updated.
8343 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
8344 Transformed into C. Made static. All users updated.
8345 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
8347 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
8348 Transformed into C. Made static. All users updated.
8349 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
8351 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
8352 Transformed into C. Made static. All users updated.
8353 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
8354 Removed (replaced by C version).
8355 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
8357 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
8358 Transformed into C. Made static.
8359 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
8361 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
8362 ... here. Transformed into C.
8363 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
8365 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
8366 ... here. Transformed into C.
8367 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
8369 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
8370 ... here. Transformed into C. Made static.
8371 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
8373 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
8374 ... here. Transformed into C.
8375 * grub-core/kern/i386/pc/startup.S
8376 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
8377 * grub-core/video/i386/pc/vbe.c
8378 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
8379 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
8381 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
8382 ... here. Transformed into C.
8383 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
8385 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
8386 ... here. Transformed into C.
8387 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
8389 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
8390 ... here. Transformed into C.
8391 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
8393 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
8394 ... here. Transformed into C.
8395 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
8397 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
8398 ... here. Transformed into C. Made static.
8399 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
8401 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
8402 ... here. Transformed into C. Made static.
8403 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
8405 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
8406 ... here. Transformed into C. Made static.
8407 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
8408 pxe_rm_entry as third argument.
8409 (grub_bios_interrupt): New function.
8410 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
8411 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
8412 of calling grub_stop.
8413 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
8414 * grub-core/lib/efi/halt.c (grub_halt): ...here.
8415 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
8416 * grub-core/lib/emu/halt.c (grub_halt): ... here.
8417 * grub-core/lib/i386/halt.c: Moved from here ...
8418 * grub-core/lib/i386/halt.c: ... here.
8419 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
8420 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
8421 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
8423 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
8424 * include/grub/i386/coreboot/init.h: Removed.
8425 * include/grub/i386/multiboot/init.h: Likewise.
8426 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
8427 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
8428 * include/grub/i386/pc/int.h: New file.
8429 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
8430 (grub_pxe_scan): Removed.
8431 (grub_pxe_call): Update prototype.
8432 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
8434 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
8435 * include/grub/i386/qemu/init.h: Removed.
8436 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
8438 (grub_halt): Likewise.
8439 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
8440 (grub_reboot): Likewise.
8441 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
8442 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
8443 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
8445 2010-08-30 Robert Millan <rmh@gnu.org>
8447 * NEWS: Document addition of ZFS support in `grub-install' and
8450 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
8452 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
8455 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8457 Remove leftover embedding of font objects.
8459 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
8460 * util/grub-install.in (font): Removed.
8461 * util/grub-mkimage.c (generate_image): Remove font support. All users
8464 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8466 Remove leftover embedding of font objects.
8468 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
8469 * util/grub-install.in (font): Removed.
8470 * util/grub-mkimage.c (generate_image): Remove font support. All users
8473 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8475 * docs/grub.texi (Network): Fix reference to pxe_blksize.
8476 Reported by: Ian Turner
8478 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8480 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
8481 timeout to avoid indefinite boot stalling.
8483 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8485 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
8486 (grub_env_write_color_highlight): Likewise.
8488 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8490 * grub-core/normal/term.c (print_more): Return to normal and not
8491 to standard state after printing "---MORE---".
8493 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8495 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
8496 Mask out the bit 0x80 since it has other meaning that specifiing color.
8498 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8500 New relocator. Allows for more kernel support and more straightforward
8503 * Makefile.am (BOOTTARGET): New variable.
8505 (linux.init.x86_64): New target.
8506 (linux.init.i386): Likewise.
8507 (multiboot.elf): Likewise.
8508 (kfreebsd.elf): Likewise.
8509 (kfreebsd.aout): Likewise.
8510 (pc-chainloader.elf): Likewise.
8511 (pc-chainloader.bin): Likewise.
8512 (ntldr.elf): Likewise.
8513 (ntldr.bin): Likewise.
8514 (multiboot2.elf): Likewise.
8515 (kfreebsd.init.x86_64): Likewise.
8516 (kfreebsd.init.i386): Likewise.
8517 (knetbsd.init.i386): Likewise.
8518 (kopenbsd.init.i386): Likewise.
8519 (knetbsd.init.x86_64): Likewise.
8520 (kopenbsd.init.x86_64): Likewise.
8521 (linux-initramfs.i386): Likewise.
8522 (linux-initramfs.x86_64): Likewise.
8523 (kfreebsd-mfsroot.i386.img): Likewise.
8524 (knetbsd.image.i386): Likewise.
8525 (kopenbsd.image.i386): Likewise.
8526 (kopenbsd.image.x86_64): Likewise.
8527 (knetbsd.miniroot-image.i386.img): Likewise.
8528 (kfreebsd-mfsroot.x86_64.img): Likewise.
8529 (knetbsd.image.x86_64): Likewise.
8530 (knetbsd.miniroot-image.x86_64.img): Likewise.
8531 (kfreebsd-mfsroot.i386.gz): Likewise.
8532 (bootcheck-kfreebsd-i386): Likewise.
8533 (kfreebsd-mfsroot.x86_64.gz): Likewise.
8534 (bootcheck-kfreebsd-x86_64): Likewise.
8535 (knetbsd.miniroot-image.i386.gz): Likewise.
8536 (bootcheck-knetbsd-i386): Likewise.
8537 (bootcheck-kopenbsd-i386): Likewise.
8538 (bootcheck-kopenbsd-x86_64): Likewise.
8539 (knetbsd.miniroot-image.x86_64.gz): Likewise.
8540 (bootcheck-knetbsd-x86_64): Likewise.
8541 (bootcheck-linux-i386): Likewise.
8542 (bootcheck-linux-x86_64): Likewise.
8543 (bootcheck-linux16-i386): Likewise.
8544 (bootcheck-linux16-x86_64): Likewise.
8545 (bootcheck-multiboot): Likewise.
8546 (bootcheck-multiboot2): Likewise.
8547 (bootcheck-kfreebsd-aout): Likewise.
8548 (bootcheck-pc-chainloader): Likewise.
8549 (bootcheck-ntldr): Likewise.
8550 (CLEANFILES): Add new targets.
8551 (BOOTCHECKS): New variable.
8552 (.PHONY): Add bootchecks.
8553 (SUCCESSFUL_BOOT_STRING): New variable.
8554 (BOOTCHECK_TIMEOUT): Likewise.
8555 (bootcheck): New target
8556 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
8557 * configure.ac: Correct efiemu excuse.
8558 * docs/grub.texi (Supported kernels): New chapter.
8559 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
8560 include/grub/mm_private.h. Simplify inclusion of
8561 include/grub/boot.h, include/grub/loader.h
8562 and include/grub/msdos_partition.h
8563 (KERNEL_HEADER_FILES) [i386_coreboot]:
8564 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
8565 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
8566 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
8567 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
8568 include/grub/machine/loader.h.
8569 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
8570 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
8572 (pci.mod): Enable on i386-multiboot.
8573 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
8574 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
8576 (relocator.mod): Rewritten.
8577 (aout.mod): Enable on all x86.
8578 (bsd.mod): Likewise.
8579 (ntldr.mod): New module.
8580 (linux.mod): Use loader/i386/linux.c on all x86.
8581 (xnu.mod): Enable on all x86.
8582 (vga_text.mod): disable on EFI and QEMU.
8583 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
8584 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
8585 * grub-core/efiemu/loadcore.c: Likewise.
8586 * grub-core/efiemu/main.c: Likewise.
8587 (grub_efiemu_exit_boot_services): Removed.
8588 (grub_efiemu_finish_boot_services): Likewise.
8589 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
8591 * grub-core/efiemu/i386/nocfgtables.c: New file.
8592 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
8593 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
8594 (grub_efi_finish_boot_services): Moved from here ...
8595 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
8596 Fille finish memory map and related data.
8597 (finish_mmap_buf): New variable.
8598 (grub_efi_uintn_t finish_mmap_size): Likewise.
8599 (grub_efi_uintn_t finish_key): Likewise.
8600 (grub_efi_uintn_t finish_desc_size): Likewise.
8601 (grub_efi_uint32_t finish_desc_version): Likewise.
8602 (grub_efi_is_finished): Likewise.
8603 (grub_efi_get_memory_map): Use saved memory map if EFI is already
8605 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
8606 (grub_elf64_phdr_iterate): Likewise.
8607 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
8608 (grub_os_area_size): Likewise.
8609 (grub_machine_init): Don't reserve os area.
8610 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
8611 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
8612 * grub-core/kern/i386/loader.S: Removed.
8613 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
8614 (grub_os_area_size): Likewise.
8615 (grub_machine_init): Don't reserve os area.
8616 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8617 Don't call grub_dl_unload_all.
8618 Don't include loader.S.
8619 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8620 Declare the memory after _end as available.
8621 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
8622 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
8623 (GRUB_MM_ALLOC_MAGIC): Moved from here...
8624 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
8625 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
8626 * include/grub/mm_private.h (grub_mm_header): ... here.
8627 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
8628 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
8629 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
8630 (grub_mm_region): ..here. Removed addr. Added pre_size.
8632 * grub-core/kern/mm.c (base): Renamed to ...
8633 (grub_mm_base): ... this. Made global.
8634 (grub_real_malloc): Alloc from end of region.
8635 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
8636 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
8637 * grub-core/kern/powerpc/cache_flush.S: ... here.
8638 * grub-core/lib/efi/relocator.c: New file.
8639 * grub-core/lib/i386/relocator.c: Rewritten.
8640 * grub-core/lib/i386/relocator16.S: New file.
8641 * grub-core/lib/i386/relocator32.S: Likewise.
8642 * grub-core/lib/i386/relocator64.S: Likewise.
8643 * grub-core/lib/i386/relocator_asm.S: Rewritten.
8644 * grub-core/lib/i386/relocator_common.S: New file.
8645 * grub-core/lib/ieee1275/relocator.c: Likewise.
8646 * grub-core/lib/mips/relocator.c: Rewritten.
8647 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
8648 stylistic adjustments.
8649 * grub-core/lib/powerpc/relocator.c: New file.
8650 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
8651 * grub-core/lib/relocator.c: Rewritten.
8652 * grub-core/lib/x86_64/relocator_asm.S: New file.
8653 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
8654 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
8655 (bsd_tag): New struct.
8656 (tags): New variable.
8657 (tags_last): Likewise.
8658 (netbsd_module): New struct.
8659 (netbsd_mods): New variable.
8660 (netbsd_mods_last): Likewise.
8661 (openbsd_opts): New parameter "serial".
8662 (OPENBSD_SERIAL_ARG): New definition.
8663 (netbsd_opts): New parameter "serial".
8664 (NETBSD_SERIAL_ARG): New definition.
8665 (grub_freebsd_add_meta): Reorganised into ...
8666 (grub_bsd_add_meta): ...this. All users updated.
8667 (grub_freebsd_add_mmap): Reorganised into ...
8668 (generate_e820_mmap): ...this...
8669 (grub_bsd_add_mmap): ...and this. All users updated.
8670 (grub_freebsd_list_modules): Use tags.
8671 (grub_netbsd_add_meta_module): New function.
8672 (grub_netbsd_list_modules): Likewise.
8673 (grub_freebsd_boot): Use relocator and finish EFI.
8674 (grub_openbsd_boot): Likewise.
8675 (grub_netbsd_setup_video): New function.
8676 (grub_netbsd_add_modules): Likewise.
8677 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
8679 (grub_bsd_unload): Unload tags.
8680 (grub_bsd_load_aout): Use relocator.
8681 (grub_bsd_elf32_size_hook): New function.
8682 (grub_bsd_elf32_hook): Use relocator.
8683 (grub_bsd_elf64_size_hook): New function.
8684 (grub_bsd_elf64_hook): Use relocator.
8685 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
8686 (grub_bsd_load): Zero-out openbsd_ramdisk.
8687 (grub_bsd_load): Use relocator.
8688 (grub_cmd_openbsd): Support serial.
8689 (grub_cmd_netbsd): Support modules.
8690 (grub_cmd_freebsd_module): Use relocator.
8691 (grub_netbsd_module_load): New function.
8692 (grub_cmd_netbsd_module): Likewise.
8693 (grub_cmd_openbsd_ramdisk): Likewise.
8694 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
8696 (GRUB_MOD_FINI): Unregister new commands.
8697 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
8698 (grub_freebsd_load_elfmodule_obj): Use relocator.
8699 (grub_freebsd_load_elfmodule): Likewise.
8700 (grub_freebsd_load_elf_meta): Likewise.
8701 (grub_netbsd_load_elf_meta): New function.
8702 (grub_openbsd_find_ramdisk): Likewise.
8703 * grub-core/loader/i386/bsd_helper.S: Removed.
8704 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
8705 * grub-core/loader/i386/bsd_trampoline.S: Removed.
8706 * grub-core/loader/i386/efi/linux.c: Likewise.
8707 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
8708 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
8709 (DEFAULT_VIDEO_MODE): Likewise.
8710 (real_mode_target): New variable.
8711 (prot_mode_target): Likewise.
8712 (initrd_mem_target): Likewise.
8713 (relocator): Likewise.
8714 (efi_mmap_buf): Likewise.
8715 (efi_mmap_size): Likewise.
8716 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
8717 (free_pages): Use relocator.
8718 (allocate_pages): Account for efi_mmap and use relocator. Return error.
8719 (grub_linux_setup_video): Return error.
8720 (grub_linux_trampoline_start): Removed.
8721 (grub_linux_trampoline_end): Likewise.
8722 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
8723 andd video parameters depending on firmware.
8724 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
8725 [GRUB_MACHINE_EFI]: Pass EFI parameters.
8726 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
8727 (grub_cmd_initrd): Use relocator.
8728 * grub-core/loader/i386/linux_trampoline.S: Removed.
8729 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
8730 (elf_sec_entsize): Likewise.
8731 (elf_sec_shstrndx): Likewise.
8732 (elf_sections): Likewise.
8733 (grub_multiboot_load): Use relocator.
8734 (grub_multiboot_get_mbi_size): Account for sections.
8735 (grub_multiboot_make_mbi): Use relocator and support sections.
8736 (grub_multiboot_add_elfsyms): New function.
8737 (grub_multiboot_free_mbi): Free sections.
8738 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
8739 (grub_linux_real_target): Likewise.
8740 (grub_linux_real_chunk): Likewise.
8741 (grub_linux16_prot_size): Likewise.
8742 (grub_linux16_boot): Use relocator.
8743 (grub_linux_unload): Unload relocator.
8744 (grub_cmd_linux): Use relocator.
8745 (grub_cmd_initrd): Likewise.
8746 * grub-core/loader/i386/pc/ntldr.c: New file.
8747 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
8748 Don't try to guess CPU frequency.
8749 (grub_xnu_set_video): Stretch bitmap.
8750 (grub_xnu_boot): Use relocator.
8751 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
8752 (grub_linux_unload): Free relocator.
8753 (grub_linux_load32): Use relocator.
8754 (grub_linux_load64): Likewise.
8755 (grub_cmd_initrd): Likewise.
8756 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
8757 (grub_multiboot_unload): Unload relocator.
8758 (grub_cmd_multiboot): Use relocator.
8759 (grub_cmd_module): Likewise.
8760 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
8761 Use relocator and support sections.
8762 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
8763 (elf_sec_entsize): Likewise.
8764 (elf_sec_shstrndx): Likewise.
8765 (elf_sections): Likewise.
8766 (grub_multiboot_load): Use relocator.
8767 (grub_multiboot_get_mbi_size): Account for sections.
8768 (grub_multiboot_make_mbi): Use relocator and support sections.
8769 (grub_multiboot_add_elfsyms): New function.
8770 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
8771 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
8772 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
8773 Prototype changed. All users updated.
8774 (grub_xnu_align_heap): Simplified.
8775 (grub_xnu_writetree_toheap): Likewise.
8776 (grub_xnu_unload): Unload relocator.
8777 (grub_cmd_xnu_kernel): Use relocator.
8778 (grub_cmd_xnu_kernel64): Likewise.
8779 (grub_xnu_register_memory): Simplified.
8780 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
8781 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
8783 (grub_console_checkkey): Likewise.
8784 (grub_console_getkey): Likewise.
8785 (grub_console_getwh): Likewise.
8786 (grub_console_getxy): Likewise.
8787 (grub_console_gotoxy): Likewise.
8788 (grub_console_cls): Likewise.
8789 (grub_console_setcolorstate): Likewise.
8790 (grub_console_setcursor): Likewise.
8791 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
8792 * grub-core/tests/boot/kbsd.init-i386.S: New file.
8793 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
8794 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
8795 * grub-core/tests/boot/kernel-8086.S: Likewise.
8796 * grub-core/tests/boot/kernel-i386.S: Likewise.
8797 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
8798 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
8799 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
8800 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
8801 * grub-core/tests/boot/knetbsd.cfg: Likewise.
8802 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
8803 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
8804 * grub-core/tests/boot/linux.cfg: Likewise.
8805 * grub-core/tests/boot/linux.init-i386.S: Likewise.
8806 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
8807 * grub-core/tests/boot/linux16.cfg: Likewise.
8808 * grub-core/tests/boot/multiboot.cfg: Likewise.
8809 * grub-core/tests/boot/multiboot2.cfg: Likewise.
8810 * grub-core/tests/boot/ntldr.cfg: Likewise.
8811 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
8812 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
8813 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
8815 * include/grub/dl.h (grub_dl_unload_all): Removed.
8816 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
8817 (grub_efi_finish_boot_services): Change prototype.
8818 (grub_efi_is_finished): New variable.
8819 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
8821 (grub_efiemu_finish_boot_services): Removed.
8822 (grub_machine_efiemu_init_tables): New prototype.
8823 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
8824 (grub_elf64_phdr_iterate): Likewise.
8825 * include/grub/i386/bsd.h: Include relocator.h.
8826 (freebsd_tag_header): New struct.
8827 (grub_openbsd_bios_mmap): Removed.
8828 (grub_unix_real_boot): Removed.
8829 (grub_freebsd_load_elfmodule32): Changed prototype.
8830 (grub_freebsd_load_elfmodule_obj64): Likewise.
8831 (grub_freebsd_load_elf_meta32): Likewise.
8832 (grub_freebsd_load_elf_meta64): Likewise.
8833 (grub_freebsd_add_meta): Removed.
8834 (grub_netbsd_load_elf_meta32): New prototype.
8835 (grub_netbsd_load_elf_meta64): Likewise.
8836 (grub_bsd_add_meta): Likewise.
8837 (grub_openbsd_ramdisk_descriptor): New struct.
8838 (grub_openbsd_find_ramdisk32): New prototype.
8839 (grub_openbsd_find_ramdisk64): Likewise.
8840 * include/grub/i386/coreboot/loader.h: Removed.
8841 * include/grub/i386/efi/loader.h: Likewise.
8842 * include/grub/i386/ieee1275/loader.h: Likewise.
8843 * include/grub/i386/linux.h (linux_kernel_header): Change void *
8845 * include/grub/i386/loader.h: Removed.
8846 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
8848 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
8849 (grub_phys_addr_t): New type.
8850 (grub_vtop): New inline function.
8851 (grub_map_memory): Likewise.
8852 (grub_unmap_memory): Likewise.
8853 * include/grub/i386/multiboot/loader.h: Removed.
8854 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
8855 (NETBSD_BTINFO_CONSOLE): New definition.
8856 (NETBSD_BTINFO_SYMTAB): Likewise.
8857 (NETBSD_BTINFO_MODULES): Likewise.
8858 (NETBSD_BTINFO_FRAMEBUF): Likewise.
8859 (grub_netbsd_bootinfo): New struct.
8860 (grub_netbsd_btinfo_common): Use explicit bitsize.
8861 (grub_netbsd_btinfo_mmap_entry): Removed.
8862 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
8863 (grub_netbsd_btinfo_bootdisk): New struct.
8864 (grub_netbsd_btinfo_symtab): Likewise.
8865 (grub_netbsd_btinfo_serial): Likewise.
8866 (grub_netbsd_btinfo_modules): Likewise.
8867 (grub_netbsd_btinfo_framebuf): Likewise.
8868 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
8869 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
8871 (grub_openbsd_bootargs): Use explicit bitsize.
8872 (grub_openbsd_bootarg_console): New struct.
8873 (GRUB_OPENBSD_COM_MAJOR): New definition.
8874 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
8875 * include/grub/i386/pc/efiemu.h: Removed.
8876 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
8877 * include/grub/i386/qemu/loader.h: Removed.
8878 * include/grub/i386/relocator.h: Rewritten.
8879 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
8880 * include/grub/mips/memory.h: New file.
8881 * include/grub/mips/multiboot.h: Rewritten.
8882 * include/grub/mips/relocator.h: Rewritten.
8883 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
8884 (grub_vtop): New function.
8885 (grub_map_memory): Likewise.
8886 (grub_unmap_memory): Likewise.
8887 * include/grub/misc.h (ALIGN_DOWN): New definition.
8888 * include/grub/mm.h (grub_mm_check_real): New proto.
8889 (GRUB_MM_CHECK): New definition.
8890 * include/grub/mm_private.h: New file.
8891 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
8892 (grub_multiboot_get_mbi_size): Removed.
8893 (grub_multiboot_make_mbi): Change prottype.
8894 (grub_multiboot_set_accepts_video): New proto.
8895 (grub_multiboot_add_elfsyms): Likewise.
8896 (grub_multiboot_payload_eip): New variable.
8897 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
8899 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
8901 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
8902 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
8903 * include/grub/powerpc/ieee1275/loader.h: Removed.
8904 * include/grub/powerpc/memory.h: New file.
8905 * include/grub/powerpc/relocator.h: Likewise.
8906 * include/grub/relocator.h: Likewise.
8907 * include/grub/relocator_private.h: Likewise.
8908 * include/grub/sparc64/ieee1275/loader.h: Removed.
8909 * include/grub/x86_64/memory.h: New file.
8910 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
8911 (grub_xnu_heap_malloc): Likewise.
8912 (grub_xnu_heap_real_start): Removed.
8913 (grub_xnu_heap_start): Likewise.
8914 (grub_xnu_relocator): New variable.
8915 (grub_xnu_heap_target_start): Likewise.
8916 * tests/util/grub-shell.in: Support non-pc.
8917 * util/grub-mkimage.c (image_targets): Fix multiboot target.
8919 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8921 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
8923 (grub_bidi_logical_to_visual): Check that malloc succeded.
8924 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
8926 (grub_xputs_normal): Likewise.
8928 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8930 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
8933 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8935 * grub-core/efiemu/runtime/efiemu.sh: Removed.
8937 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8939 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
8941 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8943 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
8946 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
8948 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
8950 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8952 * grub-core/normal/term.c (print_more): Fix a memory leak.
8953 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
8954 (grub_xputs_normal): Likewise.
8956 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8958 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
8959 the begining of the string
8961 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8963 * grub-core/script/script.c (grub_script_parse): Free parsed on
8966 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8968 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
8971 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8973 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
8976 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8978 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
8979 (scroll_up): Fix a memory leak.
8981 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8983 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
8986 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
8988 Handle USB pendrives exposed as floppies.
8990 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
8992 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
8993 Check for partitions on all devices.
8995 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8997 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
8998 (readkey): Likewise.
9000 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
9002 Multiple variable names support to "export" command.
9004 * normal/context.c (grub_cmd_export): "export" command supports
9005 multiple variable names.
9007 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
9009 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
9010 --target=drive output to Mach device name.
9012 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
9014 New Automake based build system for GRUB.
9016 * ABOUT-NLS: New file.
9017 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
9018 in Makefile.util.def file.
9019 * Makefile.util.def: New file. Autogen build definitions file for
9021 * conf/Makefile.common: New file. Common variables for GRUB host
9022 utils and target modules.
9023 * conf/Makefile.extra-dist: New file. Extra files for make dist.
9024 * docs/Makefile.am: New file. Automake file for docs.
9025 * gentpl.py: New file. Python script to generate Autogen
9027 * grub-core/Makefile.am: New file. GRUB target modules' rules
9028 that doesn't fit in Makefile.core.def file.
9029 * grub-core/Makefile.core.def: New file. Autogen build
9030 definitions file for GRUB target modules.
9031 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
9032 specific setjmp.S file.
9033 * po/Makefile.am: New file.
9035 * .bzrignore: New ignores.
9036 * INSTALL: New requirements, without Ruby.
9037 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
9038 * autogen.sh: Updated to invoke autogen as necessary.
9039 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
9040 and defines for Automake conditionals.
9041 * geninit.sh: Refactoring.
9043 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
9045 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
9048 * include/grub/test.h: Fix functional test modules' naming.
9049 * grub-core/tests/example_functional_test.c: Fix test module name.
9051 * util/misc.c: Hosted versions' of grub functions for libgrub.a
9052 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
9053 * util/grub-editenv.c: Likewise.
9054 * util/grub-fstest.c: Likewise.
9055 * util/grub-mkdevicemap.c: Likewise.
9056 * util/grub-mkfont.c: Likewise.
9057 * util/grub-mkimage.c: Likewise.
9058 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9059 * util/grub-probe.c: Likewise.
9060 * util/grub-script-check.c: Likewise.
9061 * util/i386/pc/grub-setup.c: Likewise.
9062 * util/sparc64/ieee1275/grub-setup.c: Likewise.
9064 * tests/util/grub-shell.in: Fix override directory path.
9065 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
9066 * util/import_gcry.py: Create Makefile.gcry.def file instead.
9068 * util/lvm.c: Update #includes.
9069 * util/raid.c: Likewise.
9070 * util/resolve.c: Likewise.
9071 * grub-core/bus/emu/pci.c: Likewise.
9072 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
9073 * grub-core/lib/posix_wrap/string.h: Likewise.
9074 * grub-core/kern/emu/main.c: Likewise.
9076 * grub-core/gensymlist.sh: New file. Script for generating kernel
9078 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
9080 * grub-core/gentrigtables.c: Fix unused variable warnings.
9082 * Makefile.in: Removed.
9083 * conf/any-emu.rmk: Removed.
9084 * conf/common.rmk: Removed.
9085 * conf/i386-coreboot.rmk: Removed.
9086 * conf/i386-efi.rmk: Removed.
9087 * conf/i386-ieee1275.rmk: Removed.
9088 * conf/i386-multiboot.rmk: Removed.
9089 * conf/i386-pc.rmk: Removed.
9090 * conf/i386-qemu.rmk: Removed.
9091 * conf/i386.rmk: Removed.
9092 * conf/mips-yeeloong.rmk: Removed.
9093 * conf/mips.rmk: Removed.
9094 * conf/powerpc-ieee1275.rmk: Removed.
9095 * conf/sparc64-ieee1275.rmk: Removed.
9096 * conf/tests.rmk: Removed.
9097 * conf/x86-efi.rmk: Removed.
9098 * conf/x86_64-efi.rmk: Removed.
9099 * gendistlist.sh: Removed.
9100 * geninitheader.sh: Removed.
9101 * genkernsyms.sh.in: Removed.
9102 * genmk.rb: Removed.
9103 * gensymlist.sh.in: Removed.
9104 * mkinstalldirs: Removed.
9106 * grub-core/boot: ... to here.
9108 * grub-core/bus: ... to here.
9109 * commands: Moved ...
9110 * grub-core/commands: ... to here.
9112 * grub-core/disk: ... to here.
9114 * grub-core/efiemu: ... to here.
9116 * grub-core/font: ... to here.
9118 * grub-core/fs: ... to here.
9119 * gencmdlist.sh: Moved ...
9120 * grub-core/gencmdlist.sh: ... to here.
9121 * genemuinit.sh: Moved ...
9122 * grub-core/genemuinit.sh: ... to here.
9123 * genemuinitheader.sh: Moved ...
9124 * grub-core/genemuinitheader.sh: ... to here.
9125 * genfslist.sh: Moved ...
9126 * grub-core/genfslist.sh: ... to here.
9127 * genhandlerlist.sh: Moved ...
9128 * grub-core/genhandlerlist.sh: ... to here.
9129 * genmoddep.awk: Moved ...
9130 * grub-core/genmoddep.awk: ... to here.
9131 * genmodsrc.sh: Moved ...
9132 * grub-core/genmodsrc.sh: ... to here.
9133 * genpartmaplist.sh: Moved ...
9134 * grub-core/genpartmaplist.sh: ... to here.
9135 * genparttoollist.sh: Moved ...
9136 * grub-core/genparttoollist.sh: ... to here.
9137 * genterminallist.sh: Moved ...
9138 * grub-core/genterminallist.sh: ... to here.
9139 * gentrigtables.c: Moved ...
9140 * grub-core/gentrigtables.c: ... to here.
9141 * genvideolist.sh: Moved ...
9142 * grub-core/genvideolist.sh: ... to here.
9143 * gettext: Moved ...
9144 * grub-core/gettext: ... to here.
9145 * gfxmenu: Moved ...
9146 * grub-core/gfxmenu: ... to here.
9148 * grub-core/gnulib: ... to here.
9150 * grub-core/hello: ... to here.
9152 * grub-core/hook: ... to here.
9154 * grub-core/io: ... to here.
9156 * grub-core/kern: ... to here.
9158 * grub-core/lib: ... to here.
9160 * grub-core/loader: ... to here.
9162 * grub-core/mmap: ... to here.
9164 * grub-core/normal: ... to here.
9165 * partmap: Moved ...
9166 * grub-core/partmap: ... to here.
9167 * parttool: Moved ...
9168 * grub-core/parttool: ... to here.
9170 * grub-core/script: ... to here.
9172 * grub-core/term: ... to here
9173 * tests/example_functional_test.c: Moved ...
9174 * grub-core/tests/example_functional_test.c: ... to here.
9175 * tests/lib/functional_test.c: Moved ...
9176 * grub-core/tests/lib/functional_test.c: ... to here.
9177 * tests/lib/test.c: Moved ...
9178 * grub-core/tests/lib/test.c: ... to here.
9180 * grub-core/video: ... to here.
9182 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
9184 Replace --enable-grub-emu-modules with grub-emu-lite.
9186 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
9189 * include/grub/emu/misc.h (grub_emu_init): New prototype.
9190 * kern/emu/full.c: New file. For grub-emu specific initialization.
9191 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
9192 * kern/emu/main.c: Call initialization function grub_emu_init.
9194 * Makefile.in: Include grub-emu-lite in install.
9195 * commands/parttool.c: Use grub_no_autoload to differentiate
9196 between grub-emu and grub-emu-lite.
9197 * include/grub/misc.h: New variable grub_no_autoload.
9199 * conf/any-emu.rmk: New rules for grub-emu-lite.
9200 * configure.ac: Remove --enable-grub-emu-modules.
9201 * genmk.rb: Cleanup unnecessary rules.
9202 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
9204 * normal/main.c: Don't load list files on grub-emu-lite.
9205 * util/misc.c (grub_arch_sync_caches): Removed.
9207 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
9209 * kern/mips/startup.S (grub_prefix): Update comment to refer to
9210 grub-mkimage rather than grub-mkelfimage.
9211 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
9213 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
9215 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
9216 a key after CapsLock or NumLock. It's just a qemu bug.
9218 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
9220 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
9221 needed by libusb wrapper.
9223 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9225 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
9227 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
9229 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
9230 --nounzip is passed.
9232 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
9234 USB hotunplugging and USB serial support.
9236 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
9237 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
9238 (grub_uhci_transfer): Respect timeout and set *actual.
9239 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
9240 non-standard length.
9241 (grub_usb_device_attach): Autoload modules.
9242 (GRUB_MOD_INIT): Set grub_term_poll_usb.
9243 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
9244 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
9246 (grub_usb_add_hub): Fill nports and children.
9247 (attach_root_port): Receive hub instead of controller.
9248 All users updated. Fill hub->devices.
9249 (grub_usb_root_hub): Allocate hub->devices.
9250 (detach_device): New function.
9251 (poll_nonroot_hub): Fill children and detach devices.
9252 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
9253 actual arguments. All users updated.
9254 (grub_usb_bulk_read_extended): New function.
9255 * bus/usb/serial/common.c: New file.
9256 * bus/usb/serial/ftdi.c: Likewise.
9257 * bus/usb/serial/pl2303.c: Likewise.
9258 * commands/terminal.c (handle_command): Support wildcard.
9259 * commands/usbtest.c: Output "Unknown" instead of empty string.
9260 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
9261 (usbserial_common_mod_SOURCES): New variable.
9262 (usbserial_common_mod_CFLAGS): Likewise.
9263 (usbserial_common_mod_LDFLAGS): Likewise.
9264 (pkglib_MODULES): Add usbserial_pl2303.mod.
9265 (usbserial_pl2303_mod_SOURCES): New variable.
9266 (usbserial_pl2303_mod_CFLAGS): Likewise.
9267 (usbserial_pl2303_mod_LDFLAGS): Likewise.
9268 (pkglib_MODULES): Add usbserial_ftdi.mod.
9269 (usbserial_ftdi_mod_SOURCES): New variable.
9270 (usbserial_ftdi_mod_CFLAGS): Likewise.
9271 (usbserial_ftdi_mod_LDFLAGS): Likewise.
9272 (pkglib_MODULES): Add serial.mod.
9273 (serial_mod_SOURCES): New variable.
9274 (serial_mod_CFLAGS): Likewise.
9275 (serial_mod_LDFLAGS): Likewise.
9276 * conf/i386-pc.rmk: Likewise.
9277 * conf/mips-yeeloong.rmk: Likewise.
9278 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
9279 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
9280 * disk/usbms.c (first_available_slot): New variable.
9281 (grub_usbms_attach): Don't reuse free slots due to potential cache
9283 * include/grub/serial.h: Moved to ..
9284 * include/grub/ns8250.h: ...this.
9285 * include/grub/serial.h: New file.
9286 * include/grub/term.h (grub_term_poll_usb): New variable.
9287 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
9288 readkey. All users updated.
9289 (grub_terminfo_output_state): Pass term to put.
9290 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
9291 (grub_usb_controller_dev): Add timeout and actual arguments to
9292 transfer. All users updated.
9293 (grub_usb_interface): New field detach_data.
9294 (grub_usb_device): New fields children and nports.
9295 (grub_usb_ep_type_t): New type.
9296 (grub_usb_get_ep_type): New function.
9297 (grub_usb_bulk_read_extended): Likewise.
9298 * include/grub/usbdesc.h (grub_usb_desc): New type.
9299 * include/grub/usbserial.h: New file.
9300 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
9301 * kern/term.c (grub_term_poll_usb): New variable.
9302 (grub_getkey): Call grub_term_poll_usb if set.
9303 (grub_checkkey): Likewise.
9304 (grub_getkeystatus): Likewise.
9305 * term/serial.c: Moved controller-specific parts to ...
9306 * term/ns8250.c: ... here.
9307 * term/serial.c: Mostly rewritten.
9308 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
9311 2010-08-20 Robert Millan <rmh@gnu.org>
9313 Make kFreeBSD code more generic to support ext2fs as root, ufs as
9314 a separate module and maybe other interesting combinations.
9316 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
9317 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
9318 (kfreebsd_entry): Add generic filesystem module load routine.
9319 Map GRUB `ext2' to kFreeBSD `ext2fs'.
9321 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
9323 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
9324 "numcenter" (I misunderstood the purpose of this entry).
9325 * docs/grub.texi (sendkey): Likewise.
9327 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
9329 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
9330 status flag options; simply omitting the option is equivalent and
9331 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
9332 (keysym_table): Rename "num5numlock" to "numlock".
9333 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
9334 can uniformly say that only the last of multiple `sendkey'
9335 invocations has any effect.
9336 * docs/grub.texi (sendkey): New section.
9338 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
9340 * commands/i386/pc/sendkey.c (options): Fix three typos.
9342 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9344 Implement sendkey support.
9346 * commands/i386/pc/sendkey.c: New file.
9347 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
9348 (sendkey_mod_SOURCES): New variable.
9349 (sendkey_mod_CFLAGS): Likewise.
9350 (sendkey_mod_LDFLAGS): Likewise.
9352 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
9354 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
9355 fix warnings from Autoconf.
9357 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
9359 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
9360 to avoid false positives with some assemblers that output things
9361 like "someprefix_func" as part of their output.
9363 2010-08-15 Robert Millan <rmh@gnu.org>
9365 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
9367 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
9368 grub_get_libzfs_handle() errors.
9370 2010-08-14 Robert Millan <rmh@gnu.org>
9372 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
9373 filesystem is not ZFS.
9375 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
9377 Fix for misspelled color names defaulting to black/black (bug
9378 reported by Doug Nazar)
9380 * include/grub/normal.h (grub_parse_color_name_pair): Add return
9381 status to prototype.
9382 * normal/color.c (grub_parse_color_name_pair): Return failure
9384 (grub_env_write_color_normal): Ignore bad color names.
9385 (grub_env_write_color_highlight): Likewise.
9386 * normal/main.c (GRUB_MOD_INIT): Set default color names.
9388 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
9390 "shift" command support to GRUB script.
9392 * include/grub/script_sh.h (grub_script_shift): New prototype.
9393 * script/execute.c (grub_script_shift): New function.
9394 * script/main.c (grub_script_init): Register shift command.
9395 (grub_script_fini): Unregister shift command.
9396 * util/grub-script-check.c (grub_script_cmd_shift): New function.
9398 * tests/grub_script_shift.in: New testcase.
9399 * conf/tests.rmk: Rules for new testcase.
9401 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
9403 "continue" command support to GRUB script.
9405 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
9406 (grub_script_break): Continue support.
9407 * script/main.c (grub_script_init): Register continue command.
9408 (grub_script_fini): Unregister continue command.
9410 * tests/grub_script_continue.in: New testcase.
9411 * conf/tests.rmk: Rules for new testcase.
9413 2010-08-12 BVK Chaitanya <bvk@dbook>
9415 "break" command support to GRUB script.
9417 * conf/common.rmk: Rule updates to grub-script-check.
9418 * include/grub/misc.h (grub_min): New function.
9419 * include/grub/script_sh.h (grub_script_init): New prototype.
9420 (grub_script_fini): New prototype.
9421 (grub_script_break): New prototype.
9422 * script/main.c (grub_script_init): New function.
9423 (grub_script_fini): New function.
9424 * script/execute.c (grub_script_break): New function.
9425 * normal/main.c: Calls to grub_script_{init,fini}.
9426 * util/grub-script-check.c (grub_script_break): New function.
9428 * tests/grub_script_break.in: New testcase.
9429 * conf/tests.rmk: Rules for new test case.
9431 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
9433 Function parameters support to GRUB script.
9435 * script/yylex.l (VARIABLE): Regular expression update.
9436 * script/function.c (grub_script_function_call): Moved ...
9437 * script/execute.c (grub_script_function_call): ... to here.
9438 (grub_script_execute_arglist_to_argv): Removed.
9439 (grub_script_arglist_to_argv): New function.
9440 * script/argv.c: New file.
9441 (grub_script_argv_free): New function.
9442 (grub_script_argv_next): Likewise.
9443 (grub_script_argv_append): Likewise.
9444 (grub_script_argv_split_append): Likewise.
9445 * include/grub/script_sh.h (grub_script_argv): New struct.
9446 (grub_script_argv_free): New function.
9447 (grub_script_argv_next): Likewise.
9448 (grub_script_argv_append): Likewise.
9449 (grub_script_argv_split_append): Likewise.
9451 * conf/common.rmk (normal.mod): New source script/argv.c.
9453 * tests/grub_script_echo1.in: More tests.
9454 * tests/grub_script_vars1.in: Likewise.
9455 * tests/grub_script_functions.in: New test case.
9456 * conf/tests.rmk: Rules for new testcase.
9458 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
9460 Remove grub_script_cmdblock struct.
9462 * include/grub/script_sh.h: Remove grub_script_cmdblock.
9463 * script/parser.y: Likewise.
9464 * script/execute.c: Rename cmdblock suffix to cmdlist.
9465 * script/script.c: Likewise.
9466 * util/grub-script-check.c: Likewise.
9468 2010-08-11 Yves Blusseau <blusseau@zetam.org>
9470 * .bzrignore: add grub-macho2img
9472 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
9474 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
9476 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
9478 Remove the dump of sm712 initialisation sequence.
9480 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
9481 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
9482 (GRUB_VGA_IO_MISC_WRITE): Likewise.
9483 (GRUB_VGA_CR_*): Added many registers.
9484 (GRUB_VGA_SR_*): Likewise.
9485 (GRUB_VGA_GR_*): Likewise.
9486 (grub_vga_write_arx): New function.
9487 (grub_video_hw_config): New struct.
9488 (grub_vga_set_geometry): New function.
9489 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
9490 GRUB_PCI_CLASS_SUBCLASS_VGA.
9491 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
9492 * video/sm712.c (grub_sm712_write_reg): New function
9493 (grub_sm712_read_reg): Likewise.
9494 (grub_sm712_sr_write): Likewise.
9495 (grub_sm712_gr_write): Likewise.
9496 (grub_sm712_cr_write): Likewise.
9497 (grub_sm712_write_arx): Likewise.
9498 (grub_sm712_cr_shadow_write): Likewise.
9499 (grub_sm712_write_dda_lookup): Likewise.
9500 (grub_video_sm712_setup): Initialise the video rather then
9501 blindly replay the dump.
9502 (main) [TEST]: Add a routine to be able to compile as standalone for
9504 * video/sm712_init.c (sm712_init): Removed.
9505 (sm712_sr_seq1): New array.
9506 (sm712_sr_seq2): Likewise.
9508 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
9510 * include/grub/vga.h: Add missing grub/pci.h include.
9512 2010-08-10 Yves Blusseau <blusseau@zetam.org>
9514 * util/grub-macho2img.c (main): fix typo
9516 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
9518 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
9519 (grub_vga_gr_read): Likewise.
9520 (grub_vga_cr_write): Likewise.
9521 (grub_vga_cr_read): Likewise.
9522 (grub_vga_sr_write): Likewise.
9523 (grub_vga_sr_read): Likewise.
9524 (grub_vga_palette_read): Likewise.
9525 (grub_vga_palette_write): Likewise.
9526 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
9527 (grub_sm712_sr_read): New function.
9528 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
9529 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
9531 2010-08-09 Robert Millan <rmh@gnu.org>
9533 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
9534 out unused variables on non-ZFS build.
9536 2010-08-08 Robert Millan <rmh@gnu.org>
9538 Fix path generation for sub-filesystems in ZFS.
9540 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
9543 2010-08-08 Robert Millan <rmh@gnu.org>
9545 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
9547 2010-08-08 Robert Millan <rmh@gnu.org>
9549 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
9550 exist, issue a proper error message (rely on `ls' for translated
9553 2010-08-08 Robert Millan <rmh@gnu.org>
9555 Fix grub-probe invocation.
9557 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
9559 2010-08-04 Robert Millan <rmh@gnu.org>
9561 * configure.ac: Remove checks for getfsstat() and getmntany().
9562 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
9563 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
9564 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
9565 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
9566 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
9568 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
9569 via find_mount_point_from_dir() and getfsstat() / getmntany().
9571 2010-08-04 Robert Millan <rmh@gnu.org>
9573 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
9574 (grub_find_zpool_from_mount_point): Merge into ...
9575 (grub_find_zpool_from_dir): ... this.
9576 * kern/emu/misc.c: Likewise.
9579 (grub_make_system_path_relative_to_its_root): Replace
9580 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
9581 with grub_find_zpool_from_dir().
9582 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
9584 2010-08-04 Robert Millan <rmh@gnu.org>
9586 Support OpenSolaris in ZFS device resolution.
9588 * configure.ac: Check for getmntany().
9589 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
9590 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
9593 2010-08-03 Robert Millan <rmh@gnu.org>
9597 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
9598 * include/grub/emu/misc.h: ... here.
9600 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
9601 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
9603 * util/misc.c: Remove `<grub/util/libzfs.h>'.
9604 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
9605 (grub_get_libzfs_handle): Move to ...
9606 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
9607 (grub_get_libzfs_handle): ... here.
9609 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
9611 * script/execute.c (grub_script_execute_cmdline): Check for NULL
9612 as command name case.
9614 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
9616 * disk/raid.c (insert_array): Select unique numbers for named arrays
9617 as well, for use as keys in the disk cache.
9619 2010-08-01 Robert Millan <rmh@gnu.org>
9621 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
9622 kFreeBSD device name, except on ZFS where the filesystem label is
9624 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
9625 `/boot/zfs/zpool.cache'.
9626 Set mountfrom kernel variable using ${kfreebsd_device}.
9628 2010-08-01 Robert Millan <rmh@gnu.org>
9630 Make it even harder to use uninitialized `libzfs_handle' (and
9631 make the interface a bit simpler).
9633 * include/grub/util/misc.h (grub_util_init_libzfs)
9634 (libzfs_handle): Remove.
9635 (grub_get_libzfs_handle): New prototype.
9637 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
9639 (grub_util_init_libzfs): Remove.
9640 (grub_get_libzfs_handle): New function.
9642 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
9643 grub_get_libzfs_handle() to obtain a libzfs handle instead of
9644 accessing `libzfs_handle' directly.
9646 2010-08-01 Robert Millan <rmh@gnu.org>
9648 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
9649 (grub_find_zpool_from_mount_point): New function prototypes.
9651 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
9652 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
9654 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
9655 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
9658 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
9659 finding zpool from mount point into ...
9660 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
9662 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
9663 requested path is part of a ZFS pool, use
9664 grub_find_zpool_from_mount_point() to detect its filesystem name,
9665 and generate a path with `/fsname@path' syntax.
9667 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9669 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
9670 (void) rather than () so that this is a proper prototype.
9672 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9674 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
9676 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9678 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
9679 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
9681 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9683 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
9685 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9687 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
9689 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9691 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
9692 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
9693 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
9695 (Shell-like scripting): Add real content.
9696 (Serial terminal): Suggest `terminal_input serial; terminal_output
9697 serial' rather than putting the two commands on separate lines,
9698 since console input will be inoperative after the first command.
9699 (menuentry): Document --class, --users, and --hotkey options.
9700 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
9701 Vladimir Serbinenko).
9703 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9704 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9706 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
9708 2010-08-01 Robert Millan <rmh@gnu.org>
9710 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
9711 (grub_find_zpool_from_mount_point): New function prototypes.
9713 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
9714 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
9716 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
9717 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
9720 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
9721 finding zpool from mount point into ...
9722 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
9724 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
9725 requested path is part of a ZFS pool, use
9726 grub_find_zpool_from_mount_point() to detect its filesystem name,
9727 and generate a path with `/fsname@path' syntax.
9729 2010-08-01 Robert Millan <rmh@gnu.org>
9731 Prevent accidental use of uninitialized libzfs_handle.
9733 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
9734 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
9735 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
9737 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
9739 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
9740 util/grub.d/10_linux.in). Fixes Debian bug #591093.
9742 2010-08-01 Robert Millan <rmh@gnu.org>
9744 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
9746 2010-07-31 Robert Millan <rmh@gnu.org>
9748 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
9750 2010-07-31 Robert Millan <rmh@gnu.org>
9752 * kern/emu/misc.c: Add missing license header.
9754 2010-07-31 Robert Millan <rmh@gnu.org>
9756 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
9758 * include/grub/util/libnvpair.h: Include `<config.h>'.
9759 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
9760 declaring libnvpair prototypes ourselves.
9761 * include/grub/util/libzfs.h: Include `<config.h>'.
9762 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
9763 declaring libzfs prototypes ourselves.
9765 (libzfs_handle): Moved to ...
9766 * include/grub/util/misc.h (libzfs_handle): ... here.
9767 Include `<grub/util/libzfs.h>'.
9769 2010-07-30 Robert Millan <rmh@gnu.org>
9771 * include/grub/emu/misc.h: Add missing license header.
9773 2010-07-30 Robert Millan <rmh@gnu.org>
9775 Enable `grub-probe -t device' resolution on ZFS.
9777 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
9778 * include/grub/util/libnvpair.h: New file.
9779 * include/grub/util/libzfs.h: New file.
9781 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
9782 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
9783 `<grub/util/libnvpair.h>'.
9784 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
9786 (find_mount_point_from_dir): New static function.
9787 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
9789 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
9790 find_root_device_from_libzfs() before ressorting to find_root_device().
9792 * include/grub/util/misc.h (grub_util_init_libzfs): New function
9794 * util/misc.c: Include `<grub/util/libzfs.h>'.
9795 (grub_util_init_libzfs): New function.
9796 [HAVE_LIBZFS] (libzfs_handle): New global variable.
9797 [HAVE_LIBZFS] (fini_libzfs): New static function.
9798 (grub_util_init_libzfs): New function.
9799 * util/grub-probe.c (main): Call grub_util_init_libzfs().
9801 2010-07-30 Robert Millan <rmh@gnu.org>
9803 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
9804 (xmalloc, xrealloc, xstrdup, xasprintf): Add
9805 `warn_unused_result' attribute.
9806 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
9807 (grub_xasprintf, grub_xvasprintf): Likewise.
9808 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
9810 2010-07-29 Robert Millan <rmh@gnu.org>
9812 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
9813 (probe): Handle `PRINT_FS_LABEL'.
9814 (main): Handle `-t fs_label'.
9816 2010-07-29 Robert Millan <rmh@gnu.org>
9818 * configure.ac: Remove grub-mkisofs checks.
9820 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9822 * util/ieee1275/grub-install.in: Don't use empty grub_device.
9823 Reported by: Lennart Sorensen.
9825 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9827 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
9828 prior to terminal_input/terminal_output separation. It's been over 1.5
9829 years and those versions weren't widely deployed.
9831 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
9833 * disk/raid.c (insert_array): Don't count named arrays when looking
9834 for unused array numbers.
9835 Reported and tested by: Michael Guntsche.
9837 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9839 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
9840 implementation of this so that grub-emu links again, with a note
9841 that this should support hotplugging in the future.
9843 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9845 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
9847 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9849 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
9851 (grub_loopback_close): Remove empty function.
9852 (grub_loopback_dev): Remove close method.
9854 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9856 Disable EFI cursor when the EFI console becomes inactive.
9858 * term/efi/console.c (grub_efi_console_init): New function.
9859 (grub_efi_console_fini): New function.
9860 (grub_console_term_output): Register init and fini methods.
9862 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9864 * tests/util/grub-shell-tester.in: Remove bashism and declare as
9867 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9869 * disk/loopback.c (grub_loopback): Replace filename with file.
9870 (delete_loopback): Handle new semantics.
9871 (grub_cmd_loopback): Likewise.
9872 (grub_loopback_iterate): Likewise.
9873 (grub_loopback_close): Likewise.
9875 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9877 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
9879 Reported by: Tito Keitel.
9881 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9883 * docs/grub.texi (Naming convention): Document new naming convention.
9885 2010-07-20 Vadim Solomin <vadic052@gmail.com>
9886 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9888 Generate device.map in something closer to the old ordering.
9890 * util/deviceiter.c (struct device): New declaration.
9891 (compare_file_names): Rename to ...
9892 (compare_devices): ... this. Sort by kernel name in preference to
9893 the stable by-id name, but keep the latter as a fallback comparison.
9894 Update header comment.
9895 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
9896 of `struct device' rather than of plain file names.
9898 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
9900 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
9903 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9905 * commands/acpi.c (setup_common_tables): Use sizeof instead of
9907 (setv1table): Likewise.
9909 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9911 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
9912 removing the homehost if present.
9913 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
9914 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
9915 removing the homehost if present.
9916 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
9918 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
9920 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
9921 parameter. Set its pointer target to 0.
9922 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
9923 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
9924 `data_offset' value from the superblock for 1.x metadata.
9925 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
9927 (insert_array): Record the start sector of data on the device.
9928 (grub_raid_register): Pass start_sector parameters to
9929 grub_raid_list->detect and insert_array.
9930 * include/grub/raid.h (struct grub_raid_array): Add start_sector
9932 (struct grub_raid): Add start_sector parameter to `detect'.
9934 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
9935 __attribute__ ((packed)), leaving a comment.
9936 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
9937 (grub_mdraid_detect_09): ... here and ...
9938 (grub_mdraid_detect_1x): ... here.
9940 2010-07-20 Peter Henn <peter.henn@web.de>
9942 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
9943 chunk size and disk size, which are already given as sector counts
9944 as distinct from the 0.90 units. Fetch the correct device number
9945 from the role table instead of using the table index.
9947 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
9949 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
9950 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
9951 (WriteMostly1): New macro.
9952 Set array->name to NULL for metadata format 0.90. Add support for
9953 metadata 1.x. Fix some comments.
9954 * disk/raid.c (): Add support for name based RAID arrays. Fix a
9956 * util/getroot.c (grub_util_get_grub_dev): Add support for
9957 /dev/md/name style devices.
9959 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
9961 * .bzrignore: Ignore 20_linux_xen.
9963 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
9965 * util/import_unicode.py: Remove unnecessary imports.
9967 2010-07-17 Aleš Nesrsta <starous@volny.cz>
9969 Hotplugging and USB hub support.
9971 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
9972 (grub_ohci): Likewise.
9973 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
9974 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
9975 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
9976 (GRUB_OHCI_CTRL_EDS): Likewise.
9977 (GRUB_OHCI_BULK_EDS): Likewise.
9978 (GRUB_OHCI_TDS): Likewise.
9979 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
9980 (grub_ohci_ed_phys2virt): New function.
9981 (grub_ohci_virt_to_phys): Likewise.
9982 (grub_ohci_td_phys2virt): Likewise.
9983 (grub_ohci_td_virt2phys): Likewise.
9984 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
9986 (grub_ohci_find_ed): New function.
9987 (grub_ohci_alloc_td): Likewise.
9988 (grub_ohci_free_td): Likewise.
9989 (grub_ohci_free_tds): Likewise.
9990 (grub_ohci_transfer): Use previously allocated memory.
9991 (grub_ohci_portstatus): Reset status changed bit.
9992 (grub_ohci_detect_dev): Supply status changed.
9993 (grub_ohci_fini_hw): Free memory.
9994 (grub_ohci_restore_hw): Reallocate memory.
9995 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
9996 Reset status change.
9997 (grub_uhci_detect_dev): Supply status_change.
9998 * bus/usb/usb.c (attach_hooks): New var.
9999 (grub_usb_device_attach): New function.
10000 (grub_usb_register_attach_hook_class): Likewise.
10001 (grub_usb_unregister_attach_hook_class): Likewise.
10002 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
10003 (grub_usb_add_hub): Reset connection changed bit.
10004 (attach_root_port): New function.
10005 (grub_usb_root_hub): Likewise.
10006 (poll_nonroot_hub): Likewise.
10007 (grub_usb_poll_devices): Likewise.
10008 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
10009 * disk/usbms.c (grub_usbms_open): Use device hooks.
10010 (grub_usbms_iterate) :Poll devices.
10011 (grub_usbms_finddevs): Split into ...
10012 (grub_usbms_attach): ... this ...
10013 (grub_usbms_attach): ... and this.
10014 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
10016 (grub_usb_interface): New fields attached and detach_hook.
10017 (grub_usb_attach_hook_class): New type.
10018 (grub_usb_attach_desc): New struct.
10019 (grub_usb_register_attach_hook_class): New function.
10020 (grub_usb_unregister_attach_hook_class): Likewise.
10021 (grub_usb_poll_devices): Likewise.
10022 (grub_usb_device_attach): Likewise.
10023 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
10024 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
10026 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
10028 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
10029 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
10030 delta determination style. Works with most NetBSD partitions too.
10032 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
10034 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
10035 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
10037 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
10039 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
10041 2010-07-14 Anton Blanchard <anton@samba.org>
10043 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
10046 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
10048 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
10050 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
10052 * kern/partition.c (grub_partition_check_containment): New function to
10053 check that a partition is physically contained in a parent. Since
10054 offsets are relative (and non-negative), this reduces to checking that
10055 the partition ends before its parent.
10056 (grub_partition_map_probe): Discard out-of-range sub-partitions.
10057 (grub_partition_iterate): Likewise.
10058 * include/grub/partition.h (grub_partition_map): Slightly more detailed
10060 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
10061 partitions that start before their parent, and add debug printfs.
10063 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
10065 * Makefile.in (.SUFFIX): Spell correctly, as ...
10066 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
10067 bare module name without `.mod', e.g. `test') tried to invoke a
10070 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
10072 * README: Point to the Info manual.
10074 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
10076 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
10077 2nd superblock position from partition size.
10079 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
10081 * Makefile.in (MAINTAINER_CLEANFILES): Remove
10082 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
10083 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
10086 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10088 Restructure SCSI .id handling.
10089 Reported and tested by: Aleš Nesrsta.
10091 * disk/ata.c (grub_atapi_close): Removed. All users updated.
10092 (grub_atapi_dev): Changed .name to "ata". New field .id.
10093 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
10094 (grub_usbms_dev): New field .id.
10095 * disk/scsi.c (grub_scsi_iterate): Generate name.
10096 (grub_scsi_open): Parse name.
10097 * include/grub/scsi.h (grub_make_scsi_id): New function.
10098 (grub_scsi_dev): Change iterate and open to number instead of naming
10099 busses. All users updated.
10100 (grub_scsi): Remove name. Add .bus.
10102 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10104 * commands/help.c (grub_cmd_help): Fix a typo.
10106 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10108 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
10109 Reported and tested by: Colin Watson.
10111 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10113 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
10116 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10118 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
10120 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
10122 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
10125 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
10127 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
10128 and disk/raid6_recover.c.
10129 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10130 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
10132 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
10134 * term/gfxterm.c (repaint_schedulded): Rename to ...
10135 (repaint_scheduled): ... this. Update all callers.
10136 (repaint_was_schedulded): Rename to ...
10137 (repaint_was_scheduled): ... this. Update all callers.
10139 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
10141 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
10142 which we expect to be handled by upper layers.
10144 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
10146 * bus/usb/usbhub.c: #include time.h header.
10148 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
10150 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
10151 entry_name also for entries without stat blocks (e.g. ".."); fixes
10152 corruption of the first entry in a directory.
10154 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
10156 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
10157 after setting gfxterm as the active terminal. GRUB_BACKGROUND
10158 doesn't work otherwise.
10160 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
10162 * docs/grub.texi (Features): Update list of supported file systems.
10163 (GNU/Linux): Update for GRUB 2.
10164 (Serial terminal): Remove mention of --disable-serial, which was a
10165 GRUB Legacy configure option. Update instructions to use
10166 `terminal_input' and `terminal_output' rather than `terminal'.
10167 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
10168 configuration' and `Installing GRUB using grub-install'.
10169 (Menu entry editor): Update for GRUB 2.
10170 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
10171 Document new -a, -u, and -v options.
10172 (initrd): New section.
10173 (initrd16): New section.
10174 (linux): New section.
10175 (linux16): New section.
10176 (search): The `var' argument to `--set' is optional.
10177 (GRUB only offers a rescue shell): Go into a little more detail on
10180 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
10182 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
10184 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
10186 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
10187 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
10189 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
10191 * util/i386/pc/grub-setup.c (setup): Rename prefix to
10192 install_prefix, in line with install_dos_part and install_bsd_part.
10193 Add new prefix variable, which is copied to install_prefix after
10194 comparing core.img in memory with the one read from disk in the
10195 no-embedding case, and use that rather than overwriting
10196 install_prefix immediately when installing to a partition.
10197 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
10200 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
10202 * configure.ac: Avoid == in test command, it's not portable.
10203 * util/grub.d/30_os-prober.in: Likewise.
10205 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
10207 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
10209 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
10211 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
10212 multiple (top-level) partmaps.
10214 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10216 * util/i386/efi/grub-install.in: Don't use empty grub_device.
10217 Reported by: Tino Keitel.
10219 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10221 Bidi and diacritics support.
10223 * Makefile.in (widthspec.bin): New target.
10224 (widthspec.h): Likewise.
10225 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
10226 * autogen.sh: Generate unidata.c.
10227 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
10228 * commands/ls.c (grub_ls_list_devices): Likewise.
10229 (grub_ls_list_files): Likewise.
10230 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
10231 (grub_mini_cmd_lsmod): Likewise.
10232 * commands/read.c: Likewise.
10233 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
10234 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
10235 * lib/arg.c (grub_arg_show_help): Likewise.
10236 * lib/crypto.c (grub_password_get): Likewise.
10237 * normal/auth.c (grub_username_get): Likewise.
10238 * normal/misc.c (grub_normal_print_device_info): Likewise.
10239 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
10240 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
10241 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
10242 (normal/charset.c_DEPENDENCIES): New variable.
10243 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
10244 (pkglib_MODULES): Remove charset.mod.
10245 (charset_mod_SOURCES): Removed.
10246 (charset_mod_CFLAGS): Likewise.
10247 (charset_mod_LDFLAGS): Likewise.
10248 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
10249 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
10251 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
10252 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
10253 (kernel_img_HEADERS): Add terminfo.h.
10254 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
10255 Fill ->font. Reverse ascii bitmaps.
10256 (grub_font_get_xheight): New function.
10257 * font/font.c (grub_font_get_string_width): Moved from here ...
10258 * gfxmenu/font.c (grub_font_get_string_width): ... here.
10259 * font/font.c (grub_font_draw_string): Moved from here ...
10260 * gfxmenu/font.c (grub_font_draw_string): ... here.
10261 * font/font.c (grub_font_dup_glyph): New function.
10262 (grub_font_blit_glyph): Likewise.
10263 (grub_font_blit_glyph_mirror): Likewise.
10264 (blit_comb): Likewise.
10265 (grub_font_construct_dry_run): Likewise.
10266 (grub_font_get_constructed_device_width): Likewise.
10267 (grub_font_construct_glyph): Likewise.
10268 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
10269 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
10270 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
10271 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
10272 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
10273 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
10274 (grub_font_get_xheight): New proto.
10275 (grub_font_get_constructed_device_width): Likewise.
10276 (grub_font_construct_glyph): Likewise.
10277 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
10278 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
10279 * include/grub/font.h (grub_font_draw_string): Moved from here ...
10280 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
10281 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
10282 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
10283 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
10284 (grub_console_getcharwidth): Likewise.
10285 * include/grub/misc.h (grub_xputs): New proto.
10286 (grub_puts): Inlined.
10287 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
10288 (grub_normal_get_line_counter): Removed.
10289 (grub_install_newline_hook): Likewise.
10290 (grub_normal_get_char_counter): New proto.
10291 (grub_normal_reset_more): Likewise.
10292 (grub_xputs_normal): Likewise.
10293 * include/grub/powerpc/ieee1275/console.h: Removed.
10294 * include/grub/sparc64/ieee1275/console.h: Likewise.
10295 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
10296 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
10297 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
10298 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
10299 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
10300 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
10301 (grub_term_input): Pass reference to self. All users updated.
10302 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
10303 Pass reference to self. New fields normal_color, highlight_color and
10304 data. All users updated.
10305 (grub_putchar): Removed.
10306 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
10307 (grub_unicode_estimate_width): New function.
10308 (grub_term_getcharwidth): Add defaults.
10309 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
10310 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
10311 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
10312 (grub_cls): Remove EXPORT_FUNC.
10313 (grub_setcolorstate): Inline.
10314 (grub_newline_hook): Removed.
10315 * include/grub/terminfo.h: Rewritten. All users updated.
10316 * include/grub/unicode.h: New file.
10317 * include/grub/video.h (grub_video_signed_rect): New type.
10318 * kern/emu/console.c (grub_console_highlight_color): Removed.
10319 (grub_console_normal_color): Likewise.
10320 (grub_console_standard_color): Made static.
10321 (grub_ncurses_putchar): Remove mapping.
10322 (grub_ncurses_getcharwidth): Removed.
10323 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
10324 (grub_ncurses_setcolor): Removed.
10325 (grub_ncurses_getcolor): Likewise.
10326 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
10327 (grub_console_putchar): ... this.
10328 (grub_console_putchar): Handle argument difference.
10329 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
10330 console_init_early and console_init_lately.
10331 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
10332 * kern/misc.c (grub_puts): Removed.
10333 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
10334 (grub_vsnprintf_real): Remove str = NULL support.
10335 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
10336 * normal/charset.c (grub_utf8_to_ucs4): ... here.
10337 * kern/term.c (grub_putcode): Renamed to ...
10338 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
10339 (grub_putchar): Removed.
10340 (grub_xputs_dumb): New function.
10341 (grub_xputs): New variable.
10342 * lib/charset.c: Move from here ...
10343 * normal/charset.c: ... to here.
10344 (grub_ucs4_to_utf8): New function.
10345 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
10346 (join_types): New variable.
10347 (unpack_join): New function.
10348 (bidi_types): New variable.
10349 (unpack_bidi): New function.
10350 (get_bidi_type): Likewise.
10351 (get_join_type): Likewise.
10352 (is_mirrored): Likewise.
10353 (grub_unicode_get_comb_type): Likewise.
10354 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
10355 (is_type_after): Likewise.
10356 (grub_unicode_aglomerate_comb): Likewise.
10357 (bidi_line_wrap): Likewise.
10358 (grub_bidi_line_logical_to_visual): Likewise.
10359 (grub_bidi_logical_to_visual): Likewise.
10360 (grub_unicode_mirror_code): Likewise.
10361 (grub_unicode_shape_code): Likewise.
10362 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
10363 Don't use grub_putchar.
10364 * normal/main.c (grub_normal_init_page): Use grub_putcode.
10365 (grub_normal_reader_init): Likewise.
10366 (grub_xputs_saved): New variable.
10367 (GRUB_MOD_INIT): Set grub_xputs.
10368 (GRUB_MOD_FINI): Restore grub_xputs.
10369 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
10370 (menu_init): Avoid printing gfxmenu error.
10371 (show_menu): Use grub_normal_get_char_counter.
10372 * normal/menu_entry.c (update_screen): Fix out-of-array.
10373 (complete): Avoid NULL dereferencing.
10374 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
10375 * normal/menu_text.c (print_spaces): Removed.
10376 (grub_print_ucs4): Likewise.
10377 (grub_print_message_indented): Use grub_print_ucs4.
10378 (print_message): Use grub_putcode.
10379 (print_entry): Hanlde diacritics.
10380 * normal/term.c (term_state): New type.
10381 (grub_more_lines): Removed.
10382 (term_states): New variable.
10383 (grub_normal_line_counter): Renamed to ..
10384 (grub_normal_char_counter): ...this. All users updated.
10385 (grub_normal_get_line_counter): Renamed to ...
10386 (grub_normal_get_char_counter): ... this.
10387 (grub_normal_reset_more): New function.
10388 (process_newline): Removed.
10389 (print_more): New function.
10390 (grub_install_newline_hook): Removed.
10391 (map_code): New function.
10392 (grub_puts_terminal): Use grub_print_ucs4.
10393 (putglyph): New function.
10394 (putcode_real): Likewise.
10395 (grub_putcode): Use putcode_real.
10396 (get_maxwidth): New function.
10397 (get_startwidth): Likewise.
10398 (print_ucs4_terminal): Likewise.
10399 (find_term_state): Likewise.
10400 (put_glyphs_terminal): Likewise.
10401 (print_backlog): Likewise.
10402 (print_ucs4_real): Likewise.
10403 (grub_print_ucs4): Likewise.
10404 (grub_xputs_normal): Likewise.
10405 * term/efi/console.c (grub_console_putchar): Output diacritics.
10406 (grub_console_getcharwidth): Removed.
10407 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
10408 * term/gfxterm.c (clear_char): Free chars.
10409 (scroll_up): Avoid leaking memory.
10410 (grub_gfxterm_putchar): Support diacritics.
10411 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
10412 * term/i386/pc/console.c (grub_console_term_output): Declare as
10413 GRUB_TERM_CODE_TYPE_VGA.
10414 * term/i386/pc/vga.c (grub_vga_term): Declare as
10415 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
10416 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
10417 GRUB_TERM_CODE_TYPE_VGA.
10418 * term/i386/vga_common.c (map_char): Removed.
10419 (grub_console_putchar): Likewise.
10420 (grub_console_getcharwidth): Likewise.
10421 * term/ieee1275/ofconsole.c: Simplify using terminfo.
10422 (colors): Reordered to match terminfo.
10423 (grub_ofconsole_normal_color): Removed.
10424 (grub_ofconsole_writeesc): Likewise.
10425 (grub_ofconsole_highlight_color): Likewise.
10426 (grub_ofconsole_getcharwidth): Likewise.
10427 (grub_ofconsole_setcolorstate): Likewise.
10428 (grub_ofconsole_setcolor): Likewise.
10429 (grub_ofconsole_getcolor): Likewise.
10430 (grub_ofconsole_readkey): Renamed to ...
10431 (readkey): ... this. Remove escape sequence handling. Return -1 on no
10433 (grub_ofconsole_checkkey): Removed.
10434 (grub_ofconsole_getkey): Likewise.
10435 (grub_ofconsole_getxy): Likewise.
10436 (grub_ofconsole_gotoxy): Likewise.
10437 (grub_ofconsole_cls): Likewise.
10438 (grub_ofconsole_refresh): Likewise.
10439 (grub_ofconsole_terminfo_input): New struct.
10440 (grub_ofconsole_terminfo_output): Likewise.
10441 (grub_ofconsole_term_input): Use terminfo.
10442 (grub_ofconsole_term_output): Likewise.
10443 (grub_console_init): Split into ...
10444 (grub_console_init_early): ...this and ...
10445 (grub_console_init_lately): ...this. Use terminfo.
10446 (grub_ofconsole_putchar): Renamed to ...
10447 (put): ... this. Remove mapping.
10448 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
10449 * term/serial.c: Simplify using terminfo.
10452 (keep_track): Likewise.
10453 (registered): Likewise.
10454 (input_buf): Likewise.
10455 (npending): Likewise.
10456 (serial_translate_key_sequence): Likewise.
10457 (fill_input_buf): Likewise.
10458 (grub_serial_checkkey): Likewise.
10459 (grub_serial_getkey): Likewise.
10460 (grub_serial_getxy): Likewise.
10461 (grub_serial_gotoxy): Likewise.
10462 (grub_serial_putchar): Likewise.
10463 (grub_serial_cls): Likewise.
10464 (grub_serial_setcolorstate): Likewise.
10465 (grub_serial_setcursor): Likewise.
10466 (serial_hw_init): Use serial_hw_fetch.
10467 (grub_serial_terminfo_input): New variable.
10468 (grub_serial_terminfo_output): Likewise.
10469 (grub_serial_term_input): Use terminfo.
10470 (grub_serial_term_output): Likewise.
10471 * term/terminfo.c (putstr): Use put.
10472 (grub_terminfo_all_free): New function
10473 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
10474 (grub_terminfo_output_register): New function.
10475 (grub_terminfo_output_unregister): Likewise.
10476 (grub_terminfo_getxy): Likewise.
10477 (grub_terminfo_readkey): Likewise.
10478 (grub_terminfo_checkkey): Likewise.
10479 (grub_terminfo_getkey): Likewise.
10480 (grub_terminfo_input_init): Likewise.
10481 (print_terminfo): Likewise.
10482 (grub_cmd_terminfo): Handle encoding.
10483 (grub_terminfo_gotoxy): Track position.
10484 (grub_terminfo_cls): Likewise.
10485 (grub_terminfo_putchar): Likewise.
10486 (grub_terminfo_setcolorstate): Handle colors
10487 (grub_terminfo_cursor_on): This ...
10488 (grub_terminfo_cursor_off): ... and this merged into ...
10489 (grub_terminfo_setcursor): ... this.
10490 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
10491 * unicode/ArabicShaping.txt: New file (imported from Unicode).
10492 * unicode/BidiMirroring.txt: Likewise.
10493 * unicode/UnicodeData.txt: Likewise.
10494 * unicode/COPYING: Likewise.
10495 * util/grub-editenv.c (grub_putchar): Removed.
10496 (grub_xputs_real): New function.
10497 (grub_xputs): New variable.
10498 * util/grub-fstest.c (grub_putchar): Removed.
10499 (grub_xputs_real): New function.
10500 (grub_xputs): New variable.
10501 * util/grub-mkdevicemap.c (grub_putchar): Removed.
10502 (grub_xputs_real): New function.
10503 (grub_xputs): New variable.
10504 * util/grub-probe.c (grub_putchar): Removed.
10505 (grub_xputs_real): New function.
10506 (grub_xputs): New variable.
10507 * util/grub-script-check.c (grub_putchar): Removed.
10508 (grub_xputs_real): New function.
10509 (grub_xputs): New variable.
10510 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
10511 (grub_xputs_real): New function.
10512 (grub_xputs): New variable.
10513 * util/import_unicode.py: New file.
10514 * util/grub-mkfont.c (ft_errmsgs): New array.
10515 (grub_glyph_info): Make bitmap a pointer.
10516 (file_formats): New type WIDTH_SPEC.
10517 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
10518 (options): Add width-spec.
10520 (add_char): Renamed to ...
10521 (add_glyph): ... this.
10522 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
10523 (glyph_replace): New type.
10524 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
10525 (add_char): New function.
10526 (add_subst): Likewise.
10527 (process_cursive): Likewise.
10528 (add_font): Handle GSUB.
10529 (write_font_width_spec): New function.
10530 (main): Sort glyphs.
10531 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
10532 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
10533 * kern/term.c (grub_cls): Moved from here...
10534 * normal/term.c (grub_cls): ... here.
10536 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10538 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
10539 suitable for using within the format argument of printf when
10540 converting grub_size_t.
10541 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
10542 "x" to convert grub_size_t arguments.
10544 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10546 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
10548 (list_get_minimal_size): Take selection box into account.
10550 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10552 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
10555 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10557 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
10558 devices when iterating over /dev/disk/by-id; they will be handled
10559 later if appropriate, which they aren't always (e.g. LVM).
10561 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10563 * include/grub/misc.h (grub_reboot): Declare as noreturn.
10564 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
10566 (grub_halt): Likewise.
10567 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
10569 (grub_halt): Don't return, even if all of shut-down, power-off, and
10572 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10574 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
10575 arguments, not three.
10577 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10579 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
10580 * util/grub.d/10_linux.in: Use it to check for LVM, so that
10581 LVM-on-RAID is handled correctly.
10583 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10585 * docs/grub.texi (Changes from GRUB Legacy): New section.
10586 (Future): Fix typo.
10588 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
10590 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
10591 grub.d/README accidentally ends up executable for one reason or
10592 another. Ignore it.
10594 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10596 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
10597 (gpt_partition_map_iterate): Support non-512B sectors.
10599 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10601 * kern/efi/init.c (grub_efi_init): Disable watchdog.
10602 Tested by: Seth Goldberg.
10604 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
10606 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
10607 Properly align mbi.
10608 Reported by: Seth Goldberg.
10610 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
10612 * util/grub-mkrescue.in: Avoid module duplication.
10614 2010-07-01 Sean Finney <seanius@seanius.net>
10616 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
10618 2010-07-01 Sean Finney <seanius@seanius.net>
10620 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
10622 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
10624 * disk/lvm.c (grub_lvm_checkvalue): New function.
10625 (grub_lvm_check_flag): Likewise.
10627 2010-07-01 Robert Millan <rmh@gnu.org>
10629 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
10630 Support 'p' as partition separator on kernel of FreeBSD (used
10632 (grub_util_biosdisk_get_grub_dev): Likewise.
10634 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
10636 Yeeloong firmware port.
10638 * boot/mips/yeeloong/fwstart.S: New file.
10639 * bus/cs5536.c (gpiodump): New const.
10640 (set_io_space): New function.
10641 (set_iod): Likewise.
10642 (set_p2d): Likewise.
10643 (grub_cs5536_init_geode): Likewise.
10644 * commands/mips/yeeloong/lsspd.c: New file.
10645 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
10646 (serial_mod_SOURCES): New variable.
10647 (serial_mod_CFLAGS): Likewise.
10648 (serial_mod_LDFLAGS): Likewise.
10649 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
10650 term/terminfo.c and term/tparm.c.
10651 (pkglib_IMAGES): Add fwstart.img.
10652 (fwstart_img_SOURCES): New variable.
10653 (fwstart_img_CFLAGS): Likewise.
10654 (fwstart_img_ASFLAGS): Likewise.
10655 (fwstart_img_LDFLAGS): Likewise.
10656 (fwstart_img_FORMAT): Likewise.
10657 (pkglib_MODULES): Add lsspd.mod.
10658 (lsspd_mod_SOURCES): New variable.
10659 (lsspd_mod_CFLAGS): Likewise.
10660 (lsspd_mod_LDFLAGS): Likewise.
10661 (pkglib_MODULES): Add halt.mod.
10662 (halt_mod_SOURCES): New variable.
10663 (halt_mod_CFLAGS): Likewise.
10664 (halt_mod_LDFLAGS): Likewise.
10665 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
10666 (serial_mod_SOURCES): Removed.
10667 (serial_mod_CFLAGS): Likewise.
10668 (serial_mod_LDFLAGS): Likewise.
10669 * disk/ata.c (check_device): New function.
10670 (grub_ata_device_initialize): Use check_device.
10671 (grub_ata_iterate): Recheck devices.
10672 (grub_ata_open): Likewise.
10673 (grub_atapi_iterate): Likewise.
10674 (grub_atapi_open): Likewise.
10675 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
10676 (GRUB_ATA_CH1_PORT1): Likewise.
10677 (GRUB_ATA_CH0_PORT2): Likewise.
10678 (GRUB_ATA_CH1_PORT2): Likewise.
10679 * include/grub/mips/loongson.h: New file.
10680 * include/grub/mips/yeeloong/ec.h: Likewise.
10681 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
10682 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
10683 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
10684 * include/grub/misc.h (grub_halt): Declare as noreturn.
10685 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
10686 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
10687 (UART_ENABLE_FIFO_TRIGGER1): New definition.
10688 (UART_ENABLE_DTRRTS): Likewise.
10689 (UART_ENABLE_MODEM): Removed.
10690 (UART_ENABLE_OUT2): New const.
10691 * include/grub/term.h (grub_term_register_input_active): New function.
10692 (grub_term_register_output_active): Likewise.
10693 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
10695 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
10696 (init_pci): New function.
10697 (grub_machine_init): Execute platform init when firmware. Init serial.
10698 (grub_halt): Implement.
10699 (grub_exit): Likewise.
10700 (grub_reboot): Likewise.
10701 * term/serial.c (serial_hw_init): Update macros.
10702 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
10703 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
10704 (image_targets): New target mipsel-yeeloong-flash.
10705 (generate_image): Support IMAGE_YEELOONG_FLASH.
10706 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
10707 (grub_video_sm712_setup): Init card.
10708 (grub_video_sm712_set_palette): Removed.
10709 * video/sm712_init.c: New file.
10711 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
10713 * Makefile.in (install-local): Temporarily prepend $(builddir) to
10714 PATH when running help2man and then run it on the unadorned
10715 executable names, rather than passing $(builddir)/* paths to
10716 help2man. This avoids the build directory ending up in generated
10719 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
10721 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
10722 to avoid accidents when debugging with 'sh -x'.
10723 * util/grub-mkrescue.in: Likewise.
10724 * util/grub.d/00_header.in: Likewise.
10725 * util/grub.d/10_hurd.in: Likewise.
10726 * util/grub.d/10_kfreebsd.in: Likewise.
10727 * util/grub.d/10_linux.in: Likewise.
10728 * util/grub.d/10_netbsd.in: Likewise.
10729 * util/grub.d/10_windows.in: Likewise.
10730 * util/grub.d/20_linux_xen.in: Likewise.
10731 * util/grub.d/30_os-prober.in: Likewise.
10732 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10734 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
10736 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
10737 last character in the buffer.
10738 Reported by: Vladimir Serbinenko.
10740 2010-06-29 Robert Millan <rmh@gnu.org>
10742 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
10743 (Command-line and menu entry commands): Document `badram' command.
10745 2010-06-28 Robert Millan <rmh@gnu.org>
10747 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
10748 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
10749 command using ${GRUB_BADRAM} as parameter.
10751 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10753 * docs/grub.texi (Device map): New section.
10754 (Themes): New section (stub).
10755 * Makefile.in (docs/grub.info): The info documentation now builds
10756 without errors. Make sure it stays that way.
10758 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
10760 Use normal parser for menu entries.
10761 Reported by: Thomas Frauendorfer
10763 * include/grub/parser.h (grub_parser_execute): Don't export.
10764 * normal/menu.c (grub_menu_execute_entry_real): New function.
10765 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
10767 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10769 * docs/grub.texi (Embedded configuration): New section (replacing
10770 old "Preset Menu" stub).
10771 (Images): New section.
10772 (configfile): Note that any menu entries defined in `file' are shown
10775 2010-06-28 Josh Triplett <josh@joshtriplett.org>
10777 * mmap/i386/pc/mmap_helper.S: Set CF on return.
10779 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10781 * util/grub-install.in: Add --debug-image= option.
10783 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10785 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
10788 * util/deviceiter.c (check_device): Rename to ...
10789 (check_device_readable_unique): ... this. Update all callers.
10790 Maintain and check a list of which devices (by canonicalized name)
10791 have already been seen.
10792 (clear_seen_devices): New function.
10793 (compare_file_names) [__linux__]: New function.
10794 (grub_util_iterate_devices): Clear the list of seen devices on exit
10795 and (just in case) on entry.
10796 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
10797 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
10798 seen-devices list, superseded by general code in check_device.
10800 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
10802 * commands/cat.c (options): New variable.
10803 (grub_cmd_cat): Parse options. If the --dos option is given, print
10804 DOS-style "\r\n" line endings as simple newlines (Debian bug
10806 (GRUB_MOD_INIT): Use extcmd.
10807 (GRUB_MOD_FINI): Likewise.
10808 * docs/grub.texi (cat): Document --dos.
10810 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
10812 XEN with Linux grub-mkconfig support.
10814 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
10815 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
10816 GRUB_CMDLINE_XEN_DEFAULT.
10817 * util/grub.d/20_linux_xen.in: New file.
10819 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
10821 Initialise VGA video on qemu ourselves.
10823 * boot/i386/qemu/boot.S: Don't call 0xc000.
10824 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
10825 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
10826 (kernel_img_HEADERS): Add pci.h.
10827 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
10828 * configure.ac: Force unifont on qemu and yeeloong.
10829 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
10830 (grub_vga_palette_write): Use correct register.
10831 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
10832 Call grub_qemu_init_cirrus.
10833 * kern/i386/qemu/init.c: New file.
10834 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
10836 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
10838 2010-06-26 Pavel Roskin <proski@gnu.org>
10840 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
10843 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
10845 * docs/grub.texi (Simple configuration): Explain that
10846 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
10847 set to `true' to disable their respective recovery entries, not
10850 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
10852 Make the `source' command slightly faster.
10854 * normal/main.c (grub_normal_execute): Don't re-read list files when
10857 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
10859 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
10860 field position and mask size to red fields from mode_info, not
10862 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
10863 Remove redundant tag->common.framebuffer_type assignment.
10864 Reported by: Seth Goldberg.
10866 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
10868 Sync up other versions of the Linux loader with Robert Millan's
10869 change of 2010-01-09, "Make loader output a bit more user-friendly".
10871 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
10873 (grub_cmd_linux): Likewise.
10874 (grub_cmd_initrd): Likewise.
10875 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
10876 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10878 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
10880 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
10881 larger than MEMORY_MAP_SIZE.
10883 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
10885 Fix parallel build.
10887 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
10889 * script/parser.y: #include grub_script.tab.h header.
10891 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10893 Support >3GiB and <16MiB RAM in i386-qemu.
10895 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
10896 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
10897 (grub_lower_mem): Removed.
10898 (grub_upper_mem): Likewise.
10899 (mem_size): Made static.
10900 (above_4g): New variable.
10901 (grub_machine_mmap_init): Detect small mem_size and above_4g.
10902 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
10905 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10907 Cirrus 5446 and Bochs video cards support.
10909 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
10911 (video_cirrus_mod_SOURCES): New variable.
10912 (video_cirrus_mod_CFLAGS): Likewise.
10913 (video_cirrus_mod_LDFLAGS): Likewise.
10914 (video_bochs_mod_SOURCES): Likewise.
10915 (video_bochs_mod_CFLAGS): Likewise.
10916 (video_bochs_mod_LDFLAGS): Likewise.
10917 * include/grub/vga.h: New file.
10918 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
10919 (grub_video_fb_set_page_t): New type.
10920 (grub_video_fb_setup): New prototype.
10921 (grub_video_fb_swap_buffers): Likewise.
10922 (grub_video_fb_get_info_and_fini): Likewise.
10923 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
10924 (CRTC_DATA_PORT): Likewise.
10925 (CRTC_CURSOR): Likewise.
10926 (CRTC_CURSOR_ADDR_HIGH): Likewise.
10927 (CRTC_CURSOR_ADDR_LOW): Likewise.
10928 (CRTC_CURSOR_DISABLE): Likewise.
10929 (update_cursor): Use grub_vga_cr_write.
10930 (grub_vga_text_setcursor): Likewise.
10931 * video/bochs.c: New file.
10932 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
10933 (palette): Likewise.
10934 (palette_size): Likewise.
10935 (framebuffer): New variable.
10936 (grub_video_fb_init): Use 'framebuffer'.
10937 (grub_video_fb_fini): Likewise.
10938 (grub_video_fb_get_info): Likewise.
10939 (grub_video_fb_get_palette): Likewise.
10940 (grub_video_fb_set_palette): Likewise.
10941 (grub_video_fb_set_viewport): Likewise.
10942 (grub_video_fb_get_viewport): Likewise.
10943 (grub_video_fb_map_color): Likewise.
10944 (grub_video_fb_map_rgb): Likewise.
10945 (grub_video_fb_map_rgba): Likewise.
10946 (grub_video_fb_unmap_color): Likewise.
10947 (grub_video_fb_unmap_color_int): Likewise.
10948 (grub_video_fb_fill_rect): Likewise.
10949 (grub_video_fb_blit_bitmap): Likewise.
10950 (grub_video_fb_blit_render_target): Likewise.
10951 (grub_video_fb_scroll): Likewise.
10952 (grub_video_fb_create_render_target): Likewise.
10953 (grub_video_fb_doublebuf_blit_init): Likewise.
10954 (grub_video_fb_set_active_render_target): Handle doublebuffering.
10955 (doublebuf_pageflipping_update_screen): New function.
10956 (doublebuf_pageflipping_init): Likewise.
10957 (grub_video_fb_setup): Likewise.
10958 (grub_video_fb_swap_buffers): Likewise.
10959 (grub_video_fb_get_info_and_fini): Likewise.
10960 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
10962 (doublebuf_pageflipping_commit): Restructured into ...
10963 (doublebuf_pageflipping_set_page): ... this.
10964 (doublebuf_pageflipping_update_screen): Removed.
10965 (doublebuf_pageflipping_init): Likewise.
10966 (double_buffering_init): Likewise.
10967 (grub_video_vbe_setup): Use grub_video_fb_setup.
10968 (grub_video_vbe_swap_buffers): Removed.
10969 (grub_video_vbe_set_active_render_target): Likewise.
10970 (grub_video_vbe_get_active_render_target): Likewise.
10971 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
10972 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
10973 grub_video_fb_set_active_render_target and
10974 grub_video_fb_get_active_render_target.
10975 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
10976 (SEQUENCER_DATA_PORT): Likewise.
10977 (MAP_MASK_REGISTER): Likewise.
10978 (CRTC_ADDR_PORT): Likewise.
10979 (CRTC_DATA_PORT): Likewise.
10980 (START_ADDR_HIGH_REGISTER): Likewise.
10981 (START_ADDR_LOW_REGISTER): Likewise.
10982 (GRAPHICS_ADDR_PORT): Likewise.
10983 (GRAPHICS_DATA_PORT): Likewise.
10984 (READ_MAP_REGISTER): Likewise.
10985 (INPUT_STATUS1_REGISTER): Likewise.
10986 (INPUT_STATUS1_VERTR_BIT): Likewise.
10987 (get_map_mask): Use grub_vga_sr_read.
10988 (set_map_mask): Use grub_vga_sr_write.
10989 (set_read_map): Use grub_vga_gr_write.
10990 (set_start_address): Use grub_vga_cr_write.
10991 * video/sm712.c (framebuffer): Remove leftover fields.
10993 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
10995 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
10996 setting GRUB_VIDEO_BACKEND. Make it available as a user override
10997 instead. Replace the gfxterm backend check with a check that
10998 ${GRUB_PREFIX}/video.lst is non-empty.
10999 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
11001 (load_video): New generated function. Call it before loading
11002 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
11003 * util/grub.d/10_linux.in (linux_entry): Call load_video.
11004 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
11005 * docs/grub.texi (Simple configuration): Document
11006 GRUB_VIDEO_BACKEND.
11008 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
11010 Use video functions in linux and xnu loaders.
11012 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
11013 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
11014 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
11015 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
11016 loader/i386/pc/linux.c.
11017 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
11018 (find_line_len): Removed.
11019 (find_framebuf): Likewise.
11020 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
11021 * loader/i386/efi/xnu.c: Removed.
11022 * loader/i386/pc/xnu.c: Moved from here...
11023 * loader/i386/xnu.c: ...here.
11025 Enable priorities in video drivers.
11027 * include/grub/video.h (grub_video_adapter_prio_t): New type.
11028 (grub_video_adapter): New field prio.
11029 (grub_video_register): Respect prio when inserting.
11030 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
11031 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
11032 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
11033 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
11034 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
11035 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
11036 * video/sm712.c (grub_video_sm712_adapter): Likewise.
11040 * include/grub/video.h (grub_video_driver_id_t): New value
11041 GRUB_VIDEO_DRIVER_SDL.
11042 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
11044 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
11046 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
11047 argument to printf.
11048 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
11050 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
11052 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
11053 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
11055 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
11057 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
11058 directly, and recommend grub-install instead.
11059 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
11061 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
11063 Fix i386-pc prefix handling with nested partitions (Debian bug
11064 #585068). Note that the case where the core image is booted using
11065 multiboot and relocated from its original location still requires
11068 * kern/i386/pc/init.c (make_install_device): If the prefix starts
11069 with "(,", fill the boot drive in between those two characters, but
11070 expect that a full partition specification including partition map
11072 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
11073 specified, write a prefix without the drive name but including a
11074 full partition specification.
11076 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
11078 * util/grub-mkconfig.in: Ignore non-option arguments, for
11079 compatibility with older versions (before 2010-06-12) which did the
11080 same. In particular, this makes it easier to ship an update-grub
11081 wrapper which is compatible with that used with GRUB Legacy (Debian
11084 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11086 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
11087 for manual page generation.
11089 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11091 * po/POTFILES: Remove leftover commands/handler.c.
11093 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
11095 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
11096 left this script non-functional.
11098 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
11100 * docs/man/grub-emu.h2m: New file.
11102 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
11104 * docs/grub.texi (Commands): Document reduced command set in rescue
11106 (cpuid): New section.
11108 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
11110 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
11111 new partition naming style.
11112 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
11114 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
11116 Add "-o grub.iso" like cmdline options support.
11118 * util/grub-install.in: Improve cmdline option parsing.
11119 * util/grub-mkconfig.in: Likewise.
11120 * util/grub-mkrescue.in: Likewise.
11121 * util/grub-reboot.in: Likewise.
11122 * util/grub-set-default.in: Likewise.
11123 * util/i386/efi/grub-install.in: Likewise.
11124 * util/ieee1275/grub-install.in: Likewise.
11125 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11127 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
11129 * .bzrignore: Ignore 41_custom.
11131 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
11133 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
11135 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
11137 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
11138 prototype declarations.
11140 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
11141 generating fs, partmap, and video lists.
11142 * include/grub/fs.h (grub_fs_register): Omit prototype if
11143 GRUB_LST_GENERATOR is defined.
11144 * include/grub/partition.h (grub_partition_map_register): Likewise.
11145 * include/grub/video.h (grub_video_register): Likewise.
11147 2010-06-12 Javier Martín <lordhabbit@gmail.com>
11149 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
11151 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
11153 * util/grub-mkrescue.in: Support --xorriso argument.
11155 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
11157 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
11158 Suggested by: Thomas Schmitt.
11160 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
11162 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
11163 Suggested by: Thomas Schmitt.
11165 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
11167 custom.cfg support.
11169 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
11170 * util/grub.d/41_custom.in: New file.
11172 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
11174 * util/grub-mkrescue.in (make_image): Remove sh module, which has
11175 been merged back into normal.
11177 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
11179 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
11180 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
11182 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
11184 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
11185 when generating manual pages.
11186 * docs/man/grub-bin2h.h2m: New file.
11187 * docs/man/grub-editenv.h2m: New file.
11188 * docs/man/grub-fstest.h2m: New file.
11189 * docs/man/grub-install.h2m: New file.
11190 * docs/man/grub-macho2img.h2m: New file.
11191 * docs/man/grub-mkconfig.h2m: New file.
11192 * docs/man/grub-mkdevicemap.h2m: New file.
11193 * docs/man/grub-mkfont.h2m: New file.
11194 * docs/man/grub-mkimage.h2m: New file.
11195 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
11196 * docs/man/grub-mkrelpath.h2m: New file.
11197 * docs/man/grub-mkrescue.h2m: New file.
11198 * docs/man/grub-ofpathname.h2m: New file.
11199 * docs/man/grub-pe2elf.h2m: New file.
11200 * docs/man/grub-probe.h2m: New file.
11201 * docs/man/grub-reboot.h2m: New file.
11202 * docs/man/grub-script-check.h2m: New file.
11203 * docs/man/grub-set-default.h2m: New file.
11204 * docs/man/grub-setup.h2m: New file.
11206 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
11208 Use FOR_* macros instead of *_iterate whenever possible.
11210 * commands/handler.c: Removed.
11211 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
11212 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
11213 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
11214 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
11215 (grub_probe_SOURCES): Remove kern/parser.c.
11216 (util/grub-script-check.c_DEPENDENCIES): Removed.
11217 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
11218 and grub_script_check_init.c.
11219 (grub_script_check_init.lst): Removed.
11220 (grub_script_check_init.h): Likewise.
11221 (grub_script_check_init.c): Likewise.
11222 (pkglib_MODULES): Remove handler.mod and sh.mod.
11223 (handler_mod_SOURCES): Removed.
11224 (handler_mod_CFLAGS): Likewise.
11225 (handler_mod_LDFLAGS): Likewise.
11226 (normal_mod_SOURCES): Remove normal/handler.c.
11227 Add script/main.c, script/script.c, script/execute.c,
11228 script/function.c, script/lexer.c, grub_script.tab.c
11229 and grub_script.yy.c.
11230 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
11231 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
11232 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
11233 (grub_setup_SOURCES): Remove kern/parser.c.
11234 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
11235 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
11236 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
11237 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
11238 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
11239 (grub_setup_SOURCES): Remove kern/parser.c.
11240 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
11241 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
11242 * include/grub/command.h (grub_command_iterate): Removed.
11243 (FOR_COMMANDS): New macro.
11244 * include/grub/dl.h (grub_dl): New member next.
11245 (grub_dl_iterate): Removed.
11246 (grub_dl_head): New variable declaration.
11247 (FOR_DL_MODULES): New macro.
11248 * include/grub/fs.h: Include list.h.
11249 (grub_fs): Make next first element.
11250 (grub_fs_list): New variable declaration.
11251 (grub_fs_register): Make inline.
11252 (grub_fs_unregister): Likewise.
11253 (grub_fs_iterate): Removed.
11254 (FOR_FILESYSTEMS): New macro.
11255 * include/grub/handler.h: Removed.
11256 * include/grub/list.h (grub_list_hook_t): Removed.
11257 (grub_list_test_t): Likewise.
11258 (grub_list_pop): Likewise.
11259 (grub_list_iterate): Likewise.
11260 (grub_list_insert): Likewise.
11261 (FOR_LIST_ELEMENTS): New macro.
11262 * include/grub/parser.h (grub_parser_class): Removed.
11263 (grub_parser_register): Likewise.
11264 (grub_parser_unregister): Likewise.
11265 (grub_parser_get_current): Likewise.
11266 (grub_parser_set_current): Likewise.
11267 (grub_register_rescue_parser): Likewise.
11268 (grub_rescue_parse_line): New function.
11269 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
11270 * include/grub/script_sh.h (grub_script_function_list): New variable
11272 (FOR_SCRIPT_FUNCTIONS): New macro.
11273 (grub_script_function_iterate): Removed.
11274 (grub_normal_parse_line): New prototype.
11275 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
11276 (FOR_DISABLED_TERM_INPUTS): Likewise.
11277 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
11278 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
11279 * include/grub/video.h (grub_video_adapter): Move 'next' to first
11281 (grub_video_register): Inline.
11282 (grub_video_unregister): Likewise.
11283 (grub_video_adapter_list): New variable declaration.
11284 (grub_video_iterate): Removed.
11285 (FOR_VIDEO_ADAPTERS): New macro.
11286 * kern/dl.c (grub_dl_list): Removed. All users updated.
11287 (grub_dl_iterate): Removed.
11288 * kern/fs.c (grub_fs_list): Make global.
11289 (grub_fs_register): Removed.
11290 (grub_fs_unregister): Likewise.
11291 (grub_fs_iterate): Likewise.
11292 * kern/handler.c: Removed.
11293 * kern/list.c (grub_list_pop): Removed.
11294 (grub_list_iterate): Likewise.
11295 (grub_list_insert): Likewise.
11296 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
11297 (grub_prio_list_insert): Don't use grub_list_insert.
11298 * kern/main.c (grub_register_rescue_parser): Don't call
11299 grub_register_rescue_parser.
11300 * kern/parser.c (grub_parser_class): Removed.
11301 (grub_parser_execute): Use grub_rescue_parse_line.
11302 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
11303 (grub_rescue_parser): Removed.
11304 (grub_register_rescue_parser): Likewise.
11305 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
11306 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
11307 (grub_auth_check_authentication): Likewise.
11308 * normal/completion.c (iterate_command): Removed.
11309 (grub_normal_do_completion): Use FOR_COMMANDS.
11310 * normal/handler.c: Removed.
11311 * normal/main.c (read_config_file): Remove parser changing.
11312 (grub_normal_execute): Don't call read_handler_list.
11313 (grub_normal_read_line_real): Statically allocate prompt.
11314 (grub_cmdline_run): Use grub_normal_parse_line.
11315 (GRUB_MOD_FINI): Don't call free_handler_list.
11316 * normal/menu_entry.c (run): Likewise.
11317 * script/function.c (grub_script_function_list): Make global.
11318 (grub_script_function_iterate): Removed.
11319 * script/main.c (grub_normal_parse_line): Make global.
11320 (grub_sh_parser): Removed.
11321 (GRUB_MOD_INIT): Likewise.
11322 (GRUB_MOD_FINI): Likewise.
11323 * tests/lib/functional_test.c (grub_functional_test): Use
11325 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
11326 (grub_test_run): Use FOR_LIST_ELEMENTS.
11327 * tests/lib/unit_test.c (main): Likewise.
11328 * util/deviceiter.c (grub_util_iterate_devices): Don't use
11330 * util/grub-fstest.c (grub_term_input_class): Removed.
11331 (grub_term_output_class): Likewise.
11332 * util/grub-probe.c: Likewise.
11333 * util/i386/pc/grub-setup.c: Likewise.
11334 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11335 * util/grub-script-check.c (main): Don't call grub_init_all and
11337 * video/video.c (grub_video_adapter_list): Make global.
11338 (grub_video_register): Removed.
11339 (grub_video_unregister): Likewise.
11340 (grub_video_iterate): Likewise.
11342 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
11344 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
11345 reported by Henrique Ferreiro.
11347 2010-06-09 Robert Millan <rmh@gnu.org>
11349 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
11350 ones, when both are available.
11352 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
11354 Make --version uniform and avoid hard-coded program name.
11356 * util/grub-mkimage.c (main): Use `program_name' instead of
11358 * util/i386/pc/grub-setup.c (main): Likewise.
11359 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
11360 * util/grub-install.in: Save the basename of $0 in $self, and use the
11361 latter in informational messages. Use the same format for --version
11362 as the binary programs.
11363 * util/grub-mkconfig.in: Likewise.
11364 * util/grub-mkrescue.in: Likewise.
11365 * util/grub-reboot.in: Likewise.
11366 * util/grub-set-default.in: Likewise.
11367 * util/i386/efi/grub-install.in: Likewise.
11368 * util/ieee1275/grub-install.in: Likewise.
11369 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11371 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
11373 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
11374 embedding area. Use <= instead of == when checking for non-emptiness.
11376 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
11378 * configure.ac: Add `.' to the directories searched for unifont.
11380 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
11382 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
11385 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
11387 * docs/grub.texi (History): Expand to cover GRUB 2.
11388 (Serial terminal): Refer to `terminal_input' and `terminal_output'
11389 commands, not `terminal'.
11390 (serial): Likewise.
11391 (terminal_input): New section.
11392 (terminal_output): New section.
11393 (uppermem): New section (stub).
11394 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
11396 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
11398 * docs/grub.texi (Security): Menu entries are unrestricted by
11399 default, not restricted to superusers as I had previously thought.
11400 Reword to account for this.
11402 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11404 * kern/emu/misc.c (device_mapper_null_log): New function.
11405 (grub_device_mapper_supported): New function.
11406 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
11408 * kern/emu/hostdisk.c (find_partition_start): Check whether
11409 device-mapper is supported before trying to use it.
11410 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
11412 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11414 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
11415 (File name syntax): Likewise.
11416 (help): --all is no longer supported in GRUB 2. Be more precise
11417 about pattern matching.
11419 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11421 * normal/completion.c (grub_normal_do_completion): When completing
11422 arguments to "set" and the current word contains an equals sign,
11423 skip to after the equals sign before starting completion.
11425 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11427 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
11429 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11431 * docs/grub.texi (Network): New section.
11432 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
11433 `(nd)' as in GRUB Legacy.
11434 (pxe_unload): New section.
11436 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11438 * docs/grub.texi (Troubleshooting): `echo' is not usually available
11439 in the rescue shell, so recommend using `set' instead. Thanks,
11442 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11444 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
11445 (password): New section.
11446 (password_pbkdf2): New section.
11447 (search): New section.
11448 (Security): New section.
11449 (Troubleshooting): New section, currently very incomplete.
11450 (Invoking grub-mkpasswd-pbkdf2): New section.
11451 (Internals): New section, currently very incomplete.
11453 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11455 * util/grub.d/00_header.in: Add some more quoting (of
11456 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
11458 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
11460 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
11462 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
11463 to `count', fixing variable shadowing that broke the -c option.
11465 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
11467 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
11468 in case they contain spaces.
11470 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
11472 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
11473 "part_" to partmap module names, in line with grub-install.
11474 Reported by: Jindřich Makovička (Debian bug #584426).
11476 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
11478 * util/grub-mkimage.c: Make target-related error messages slightly
11479 more helpful; -O talks about "format". Explicitly point to the use
11480 of -O if no target is specified.
11481 Reported by: Didier Raboud (Debian bug #584415).
11483 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
11485 * INSTALL: Document several build requirements for optional features
11486 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
11488 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11490 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
11491 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
11492 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
11494 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11496 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
11497 Thanks to Jordan Uggla for spotting this.
11499 2010-06-02 Aleš Nesrsta <starous@volny.cz>
11501 Finally make USB usable.
11503 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
11504 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
11505 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
11506 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
11507 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
11508 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
11509 (GRUB_OHCI_FSMPS): Likewise.
11510 (GRUB_OHCI_PERIODIC_START): Likewise.
11511 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
11512 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
11513 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
11514 (GRUB_OHCI_SET_PORT_RESET): Likewise.
11515 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
11516 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
11517 (grub_ohci_transaction): Likewise.
11518 (grub_ohci_transfer): Improve condition detection algorithms.
11519 Handle toggle property. Program the transactions correctly.
11520 Improve error handling. Various important fixups.
11521 (grub_ohci_portstatus): Put register writes in right order.
11522 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
11523 (grub_uhci_transfer): Don't show "failed" message on success.
11524 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
11526 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
11527 determine its size.
11528 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
11529 before initialization is completed. Use IN direction for empty
11530 transfers. Use last_trans and compute toggle.
11531 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
11532 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
11533 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
11534 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
11535 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
11536 (grub_usb_device): Increase toggle to 256.
11537 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
11538 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
11539 GRUB_USBMS_SUBCLASS_SFF8070.
11540 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
11541 (grub_scsi_inquiry): New member page and alloc_length.
11542 (grub_scsi_request_sense): New structure.
11543 (grub_scsi_request_sense_data): Likewise.
11544 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
11546 * disk/scsi.c (grub_scsi_request_sense): New function.
11547 (grub_scsi_test_unit_ready): Likewise.
11548 (grub_scsi_inquiry): Fill new fields.
11549 (grub_scsi_read_capacity): Likewise.
11550 (grub_scsi_read10): Add request sense at the end.
11551 (grub_scsi_read12): Likewise.
11552 (grub_scsi_write10): Likewise.
11553 (grub_scsi_write12): Likewise.
11554 (grub_scsi_open): Add Test Unit Ready.
11555 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
11556 Support additional subclasses. Con't clear halt yet. Activate the
11557 proper config. Calculate LUNs correctly.
11558 (grub_usbms_transfer): Various important fixups.
11560 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
11562 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
11563 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
11564 (grub_ohci_fini_hw): New function.
11565 (grub_ohci_restore_hw): Likewise.
11566 (GRUB_MOD_INIT(ohci)): Register preboot hook.
11567 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
11568 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
11570 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
11572 Dedicated DMA allocations.
11574 * bus/pci.c (grub_memalign_dma32): New function
11575 (grub_dma_free): Likewise.
11576 (grub_dma_get_virt): Likewise.
11577 (grub_dma_get_phys): Likewise.
11578 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
11579 (grub_ohci_pci_iter): Use dma32_alloc.
11580 (grub_ohci_transfer): Likewise.
11581 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
11582 (grub_usb_bulk_readwrite): Likewise.
11583 * include/grub/pci.h: Add declarations.
11585 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
11589 * bus/cs5536.c: New file.
11590 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
11591 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
11592 (cs5536_mod_SOURCES): New variable.
11593 (cs5536_mod_CFLAGS): Likewise.
11594 (cs5536_mod_LDFLAGS): Likewise.
11595 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
11597 (kernel_img_SOURCES): Add bus/cs5536.c.
11598 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
11600 (usb_mod_SOURCES): New variable.
11601 (usb_mod_CFLAGS): New variable.
11602 (usb_mod_LDFLAGS): New variable.
11603 (usbtest_mod_SOURCES): New variable.
11604 (usbtest_mod_CFLAGS): New variable.
11605 (usbtest_mod_LDFLAGS): New variable.
11606 (ohci_mod_SOURCES): New variable.
11607 (ohci_mod_CFLAGS): New variable.
11608 (ohci_mod_LDFLAGS): New variable.
11609 (usbms_mod_SOURCES): New variable.
11610 (usbms_mod_CFLAGS): New variable.
11611 (usbms_mod_LDFLAGS): New variable.
11612 (usb_keyboard_mod_SOURCES): New variable.
11613 (usb_keyboard_mod_CFLAGS): New variable.
11614 (usb_keyboard_mod_LDFLAGS): New variable.
11615 * include/grub/smbus.h: New file.
11616 * include/grub/cs5536.h: New file.
11618 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11620 * util/grub.d/00_header.in: Add safety check to make sure that
11621 ${locale_dir} exists before trying to probe it.
11623 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11625 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
11626 per the GNU Coding Standards; this is now too obscure to be worth
11629 (chainloader): Remove cross-reference to `SCO UnixWare'.
11631 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11633 * docs/grub.texi (Chain-loading): New section.
11634 (DOS/Windows): New section, borrowed from GRUB Legacy with details
11635 adjusted for GRUB 2.
11636 (SCO UnixWare): Likewise.
11638 (chainloader): Add reference to `Block list syntax'.
11639 (drivemap): New section.
11640 (parttool): New section.
11642 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11644 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
11646 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
11647 (Installing GRUB using grub-install): Remove reference to the grub
11648 shell; mention `grub-mkimage' and `grub-setup' instead.
11649 (Invoking grub-install): Likewise.
11650 (Interface): Add reference to `Menu entry editor'.
11651 (serial): Remove `--device' option.
11653 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11655 * docs/grub.texi (Configuration): New section, documenting
11656 configuration file generation using grub-mkconfig. I've left a slot
11657 for documenting the full shell scripting format but have not yet
11658 started on writing that up.
11659 (Invoking grub-mkconfig): New section.
11661 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11663 * docs/grub.texi (direntry): Remove grub-terminfo reference.
11664 (GNU GRUB manual): Likewise.
11665 (General commands): Update description of `terminfo' for GRUB 2.
11667 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11669 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
11670 (GRUB_MOD_INIT): Fix capitalisation.
11671 * docs/grub.texi (Command-line and menu entry commands): Document
11672 gettext and gptsync commands.
11674 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
11676 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
11677 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
11679 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
11681 Add btrfs probing support, currently only in the single-device case.
11683 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
11685 (grub_guess_root_device): Call find_root_device_from_mountinfo
11686 before looking in /dev.
11688 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11690 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
11691 GRUB_DISK_SIZE_UNKNOWN.
11692 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
11694 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
11696 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
11697 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
11698 corrupted or not synced properly.
11700 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11702 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
11703 Reported by: Seth Goldberg.
11705 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11707 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
11709 Reported by: Seth Goldberg.
11711 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11713 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
11714 Reported by: Seth Goldberg.
11716 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
11718 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
11719 64-bit address as signed on MIPS.
11721 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
11723 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
11724 to the empty string.
11726 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
11728 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
11730 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
11731 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
11732 * kern/misc.c (__enable_execute_stack): Disable on
11735 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
11737 Make grub-probe work with symbolic links under /dev/mapper as well
11738 as with real block devices. The Linux world seems to be (at best)
11739 in transition here, and GRUB shouldn't get caught in the middle.
11741 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
11744 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
11746 * util/grub-script-check.c (main): Ensure defined behaviour on empty
11747 input files (in which case exit zero).
11749 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
11751 * kern/emu/misc.c (canonicalize_file_name): realpath can still
11752 return NULL for various reasons even if it has a maximum-length
11753 buffer: for example, there might be a symlink loop, or the path
11754 might exceed PATH_MAX. If this happens, return NULL.
11756 2010-05-27 Robert Millan <rmh@gnu.org>
11758 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
11759 partmap module to handle cross-partmap setups.
11760 Reported by Orestes Mas. Gràcies!
11762 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
11764 * util/grub-mkrescue.in: Initialise override_dir rather than
11765 assuming that it's unset or empty in the environment.
11767 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
11769 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
11770 variable index into p_index to suppress a warning with -Wshadow.
11772 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
11774 * INSTALL: Added flex >= 2.5.35 requirement.
11776 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11778 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
11780 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11784 * commands/i386/cmostest.c: New file.
11785 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
11786 (cmostest_mod_SOURCES): New variable.
11787 (cmostest_mod_CFLAGS): Likewise.
11788 (cmostest_mod_LDFLAGS): Likewise.
11789 * conf/i386-pc.rmk: Likewise.
11790 * docs/grub.texi (Vendor power-on keys): New section.
11791 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
11792 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
11793 and GRUB_BUTTON_CMOS_ADDRESS.
11794 * util/grub.d/00_header.in: Handle powering-on by separate button.
11796 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11798 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
11799 Removed drawing_scrollbar argument. All users updated
11801 Reported by Jo Shields
11803 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11805 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
11806 buffer since gfxterm handles double repaint.
11808 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11810 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
11811 * term/gfxterm.c (real_scroll): Likewise.
11813 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11815 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
11816 before calling BIOS.
11818 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11820 * include/grub/i18n.h: Always enable grub_gettext.
11822 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11824 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
11825 partition naming style.
11827 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
11829 * util/grub-mkconfig.in: Fix handling of -o so that it works when
11830 not the first option.
11832 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
11834 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
11836 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
11838 * util/misc.c: Move inclusion of <limits.h> to ...
11839 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
11841 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
11843 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
11844 Fix merge error in NetBSD code.
11845 (find_partition_start) [__NetBSD__]: Likewise.
11847 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
11849 Fix grub-mkrescue usage unit testing.
11851 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
11853 2010-05-18 Christian Franke <franke@computer.org>
11855 * util/grub.d/10_windows.in: Use path names instead of
11856 drive letters to prevent warning from Cygwin 1.7.
11857 Add drivemap command to menuentry if needed.
11859 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
11861 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
11862 gnumach and gnumach.gz.
11864 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11866 * include/grub/i18n.h (gettext): Inline instead of using #define.
11867 (grub_gettext): Likewise.
11870 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11872 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
11873 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
11874 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
11875 (main): Add a slash after pkglibdirroot.
11877 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11879 * util/grub-install.in: Add missing "in" keyword.
11881 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11883 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
11884 Reported by: Seth Goldberg.
11886 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11888 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
11890 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
11892 * configure.ac: Check for Linux device-mapper support.
11894 * util/hostdisk.c (device_is_mapped): New function.
11895 (find_partition_start): New function, partly broken out from
11896 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
11897 device-mapper support added.
11898 (linux_find_partition): Use find_partition_start.
11899 (convert_system_partition_to_system_disk): Add `st' argument.
11900 Support Linux /dev/mapper/* devices if device-mapper support is
11901 available; only DM-RAID devices are understood at present.
11902 (find_system_device): Add `st' argument. Pass it to
11903 convert_system_partition_to_system_disk.
11904 (grub_util_biosdisk_get_grub_dev): Pass stat result to
11905 find_system_device and convert_system_partition_to_system_disk. Use
11906 find_partition_start.
11908 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
11909 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
11910 * util/deviceiter.c [__linux__]: Define MINOR.
11911 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
11912 * util/mkdevicemap.c (grub_putchar): New function.
11913 (grub_getkey): New function.
11914 (grub_refresh): New function.
11915 (main): Set debug=all if -v -v is used.
11917 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
11919 Fix build with non-GNU libcs.
11921 * util/misc.c (canonicalize_file_name): Move to ...
11922 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
11923 grub_make_system_path_relative_to_its_root.
11925 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
11927 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
11928 we handle finding grub-mkimage. Default to finding grub-mkimage in
11929 ${bindir} with program_transform_name applied, and provide a
11930 --grub-mkimage option to override this.
11932 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11934 Remove grub-mkisofs.
11936 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
11937 (grub_mkisofs_SOURCES): Removed.
11938 (grub_mkisofs_CFLAGS): Removed.
11939 * util/mkisofs/defaults.h: Removed.
11940 * util/mkisofs/eltorito.c: Likewise.
11941 * util/mkisofs/exclude.h: Likewise.
11942 * util/mkisofs/hash.c: Likewise.
11943 * util/mkisofs/include/: Likewise.
11944 * util/mkisofs/include/fctldefs.h: Likewise.
11945 * util/mkisofs/include/mconfig.h: Likewise.
11946 * util/mkisofs/include/prototyp.h: Likewise.
11947 * util/mkisofs/include/statdefs.h: Likewise.
11948 * util/mkisofs/iso9660.h: Likewise.
11949 * util/mkisofs/joliet.c: Likewise.
11950 * util/mkisofs/match.c: Likewise.
11951 * util/mkisofs/match.h: Likewise.
11952 * util/mkisofs/mkisofs.c: Likewise.
11953 * util/mkisofs/mkisofs.h: Likewise.
11954 * util/mkisofs/msdos_partition.h: Likewise.
11955 * util/mkisofs/multi.c: Likewise.
11956 * util/mkisofs/name.c: Likewise.
11957 * util/mkisofs/rock.c: Likewise.
11958 * util/mkisofs/tree.c: Likewise.
11959 * util/mkisofs/write.c: Likewise.
11961 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11963 Unify grub-mkimage accross platforms.
11965 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
11966 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
11967 (grub_mkelfimage_SOURCES): Removed.
11968 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
11969 (util/grub-mkimage.c_DEPENDENCIES): .. this.
11970 (bin_UTILITIES): Add grub-mkimage.
11971 (grub_mkimage_SOURCES): New variable.
11972 (kernel_img_HEADERS): Remove machine/kernel.h.
11973 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
11974 (pkglib_PROGRAMS): Add kernel.img.
11975 (kernel_img_HEADERS): Add machine/kernel.h.
11976 (kernel_img_FORMAT): Removed.
11977 (bin_UTILITIES): Remove grub-mkimage.
11978 (grub_mkimage_SOURCES): Removed.
11979 (grub_mkimage_CFLAGS): Likewise.
11980 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11981 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
11982 (pkglib_PROGRAMS): Add kernel.img.
11983 (bin_UTILITIES): Remove grub-mkimage.
11984 (grub_mkimage_SOURCES): Removed.
11985 (grub_mkimage_CFLAGS): Likewise.
11986 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11987 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
11988 (pkglib_PROGRAMS): Add kernel.img.
11989 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
11990 (pkglib_PROGRAMS): Add kernel.img.
11991 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
11992 (grub_mkimage_SOURCES): Removed.
11993 (grub_mkimage_CFLAGS): Likewise.
11994 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
11995 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
11996 (pkglib_PROGRAMS): Add kernel.img.
11997 (bin_UTILITIES): Remove grub-mkimage.
11998 (grub_mkimage_SOURCES): Removed.
11999 (grub_mkimage_CFLAGS): Likewise.
12000 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
12001 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
12002 (grub_mkimage_SOURCES): Removed.
12003 (grub_mkimage_CFLAGS): Likewise.
12004 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
12005 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
12006 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
12007 (grub_pe32_optional_header): ... this.
12008 (grub_pe64_optional_header): ... and this. All users updated.
12009 (GRUB_PE32_PE32_MAGIC): Split into ..
12010 (GRUB_PE32_PE32_MAGIC): .. this.
12011 (GRUB_PE32_PE64_MAGIC): .. and this.
12012 (GRUB_PE32_SIGNATURE_SIZE): New definition.
12013 * include/grub/elf.h (PT_GNU_STACK): New definition.
12014 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
12015 * include/grub/i386/efi/kernel.h: Likewise.
12016 * include/grub/i386/kernel.h: Likewise.
12017 * include/grub/i386/pc/kernel.h: Likewise.
12018 * include/grub/i386/qemu/boot.h: Likewise.
12019 * include/grub/mips/kernel.h: Likewise.
12020 * include/grub/mips/qemu-mips/kernel.h: Likewise.
12021 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
12022 * include/grub/powerpc/kernel.h: Likewise.
12023 * include/grub/sparc64/ieee1275/boot.h: Likewise.
12024 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
12025 * include/grub/sparc64/kernel.h: Likewise.
12026 * include/grub/x86_64/efi/kernel.h: Likewise.
12027 * include/grub/x86_64/kernel.h: Likewise.
12028 * include/grub/offsets.h: New file.
12029 * include/grub/kernel.h (grub_module_info): Split into ...
12030 (grub_module_info32): ... this.
12031 (grub_module_info64): ... and this.
12032 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
12033 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
12034 (grub_boot_blocklist): Moved from here ...
12035 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
12036 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
12037 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
12038 * include/grub/types.h (grub_target_to_host16): Removed.
12039 (grub_target_to_host32): Likewise.
12040 (grub_target_to_host64): Likewise.
12041 (grub_host_to_target16): Likewise.
12042 (grub_host_to_target32): Likewise.
12043 (grub_host_to_target64): Likewise.
12044 (grub_host_to_target_addr): Likewise.
12046 Support grub-mkrescue for efi, coreboot and qemu.
12048 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
12049 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
12050 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
12051 * util/grub-mkrawimage.c: Moved from here ...
12052 * util/grub-mkimage.c: ... here. All users updated.
12053 (ALIGN_ADDR): Use image_target.
12054 (TARGET_NO_FIELD): New const.
12055 (image_target_desc): New type.
12056 (image_targets): New array.
12057 (grub_target_to_host64): Use image_target.
12058 (grub_target_to_host32): Likewise.
12059 (grub_target_to_host16): Likewise.
12060 (grub_host_to_target64): Likewise.
12061 (grub_host_to_target32): Likewise.
12062 (grub_host_to_target16): Likewise.
12063 (grub_host_to_target_addr): Likewise.
12064 (generate_image): Handle multiimage.
12065 (main): Require -O parameter. All users updated.
12066 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
12067 util/efi/grub-mkimage.c
12068 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
12069 New option --rom-directory.
12071 * util/i386/efi/grub-mkimage.c: Removed.
12072 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
12073 (grub_target_to_host32): Likewise.
12074 (grub_target_to_host64): Likewise.
12075 (grub_host_to_target16): Likewise.
12076 (grub_host_to_target32): Likewise.
12077 (grub_host_to_target64): Likewise.
12078 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
12079 (grub_target_to_host32): Likewise.
12080 (grub_target_to_host64): Likewise.
12081 (grub_host_to_target16): Likewise.
12082 (grub_host_to_target32): Likewise.
12083 (grub_host_to_target64): Likewise.
12085 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
12087 Source tree is reorganized for emu build.
12089 * include/grub/util/console.h: Move from here...
12090 * include/grub/emu/console.h: ...to here.
12091 * include/grub/util/getroot.h: Move from here...
12092 * include/grub/emu/getroot.h: ...to here.
12093 * include/grub/util/hostdisk.h: Move from here...
12094 * include/grub/emu/hostdisk.h: ...to here.
12095 * util/console.c: Move from here...
12096 * kern/emu/console.c: ...to here.
12097 * util/getroot.c: Move from here...
12098 * kern/emu/getroot.c: ...to here.
12099 * util/grub-emu.c: Move from here...
12100 * kern/emu/main.c: ...to here.
12101 * util/hostdisk.c: Move from here...
12102 * kern/emu/hostdisk.c: ...to here.
12103 * util/hostfs.c: Move from here...
12104 * kern/emu/hostfs.c: ...to here.
12105 * util/mm.c: Move from here...
12106 * kern/emu/mm.c: ...to here.
12107 * util/pci.c: Move from here...
12108 * bus/emu/pci.c: ...to here.
12109 * util/sdl.c: Move from here...
12110 * video/emu/sdl.c: ...to here.
12111 * util/time.c: Move from here...
12112 * kern/emu/time.c: ...to here.
12113 * util/usb.c: Move from here...
12114 * bus/usb/emu/usb.c: ...to here.
12116 * include/grub/emu/misc.h: New header for grub-emu functions.
12117 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
12119 * conf/any-emu.rmk: Rule updates for above renames.
12120 * conf/common.rmk: Likewise.
12121 * conf/i386-pc.rmk: Likewise.
12122 * conf/i386-qemu.rmk: Likewise.
12123 * conf/mips.rmk: Likewise.
12124 * conf/sparc64-ieee1275.rmk: Likewise.
12125 * conf/x86-efi.rmk: Likewise.
12127 * disk/lvm.h: #include updates for above renames.
12128 * util/grub-mkrelpath.c: Likewise.
12129 * util/grub-probe.c: Likewise.
12130 * util/i386/pc/grub-setup.c: Likewise.
12131 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12132 * kern/emu/console.c: Likewise.
12133 * kern/emu/getroot.c: Likewise.
12134 * kern/emu/hostdisk.c: Likewise.
12135 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
12137 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
12138 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
12139 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
12140 * util/misc.c: Remove grub-emu functions.
12142 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12145 Reported by: Thorsten Grützmacher.
12147 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
12149 (circprog_set_property): Register and unregister timeout hook.
12150 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
12151 (label_destroy): Free template. and unregister hook.
12152 (label_set_state): New function.
12153 (label_set_property): Handle templates and hooks.
12154 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
12156 (progress_bar_set_property): Register and unregister timeout hook.
12157 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
12158 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
12159 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
12160 (update_timeout_visit): Removed.
12161 (update_timeouts): New function.
12162 (redraw_timeouts): Likewise.
12163 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
12164 (grub_gfxmenu_clear_timeout): Likewise.
12165 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
12166 (grub_gfxmenu_timeout_notify): Likewise.
12167 (grub_gfxmenu_timeout_notifications): New external variable.
12168 (grub_gfxmenu_timeout_register): New function.
12169 (grub_gfxmenu_timeout_unregister): Likewise.
12171 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12173 Transform (broken) vga terminal into (working) vga video driver.
12175 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
12176 video/i386/pc/vga.c.
12177 * include/grub/video.h (grub_video_driver_id):
12178 Add GRUB_VIDEO_DRIVER_VGA.
12179 * term/i386/pc/vga.c: Renamed to ...
12180 * video/i386/pc/vga.c: ...this
12181 (DEBUG_VGA): Removed.
12182 (CHAR_WIDTH): Likewise.
12183 (CHAR_HEIGHT): Likewise.
12184 (TEXT_WIDTH): Likewise.
12185 (TEXT_HEIGHT): Likewise.
12186 (DEFAULT_FG_COLOR): Likewise.
12187 (DEFAULT_BG_COLOR): Likewise.
12188 (colored_char): Likewise.
12191 (cursor_state): Likewise.
12192 (fg_color): Likewise.
12193 (bg_color): Likewise.
12194 (text_buf): Likewise.
12197 (framebuffer): New variable.
12198 (set_read_map): Disabled.
12199 (setup): New variable.
12200 (is_target): Likewise.
12201 (grub_vga_mod_init): Likewise.
12202 (grub_vga_mod_fini): Likewise.
12203 (check_vga_mem): Likewise.
12204 (write_char): Likewise.
12205 (write_cursor): Likewise.
12206 (scroll_up): Likewise.
12207 (grub_vga_putchar): Likewise.
12208 (grub_vga_getcharwidth): Likewise.
12209 (grub_vga_getwh): Likewise.
12210 (grub_vga_getxy): Likewise.
12211 (grub_vga_gotoxy): Likewise.
12212 (grub_vga_cls): Likewise.
12213 (grub_vga_setcolorstate): Likewise.
12214 (grub_vga_setcursor): Likewise.
12215 (grub_video_vga_init): New function.
12216 (grub_video_vga_setup): Likewise.
12217 (grub_video_vga_fini): Likewise.
12218 (update_target): Likewise.
12219 (grub_video_vga_blit_bitmap): Likewise.
12220 (grub_video_vga_blit_render_target): Likewise.
12221 (grub_video_vga_set_active_render_target): Likewise.
12222 (grub_video_vga_get_active_render_target): Likewise.
12223 (grub_video_vga_swap_buffers): Likewise.
12224 (grub_video_vga_set_palette): Likewise.
12225 (grub_video_vga_get_info_and_fini): Likewise.
12226 (grub_vga_term): Removed.
12227 (grub_video_vga_adapter): New variable.
12228 (GRUB_MOD_INIT): Register a video driver instead of terminal.
12229 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
12231 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12233 * video/readers/jpeg.c: Indented.
12235 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12237 Various jpeg cleanups.
12239 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
12240 (grub_jpeg_decode_quan_table): Use sizeof.
12241 (grub_jpeg_decode_du): Use ARRAY_SIZE.
12243 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
12245 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
12246 tables. Ignore non-last ac bit.
12247 (grub_jpeg_decode_quan_table): Likewise.
12249 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12251 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
12252 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
12253 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12254 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
12255 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
12256 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
12258 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12260 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
12263 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12265 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
12267 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12269 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
12272 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12274 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
12277 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12279 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
12282 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12284 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
12286 2010-05-01 Christian Franke <franke@computer.org>
12288 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
12289 Remove broken Cygwin path conversion.
12290 * util/misc.c: [__CYGWIN__] Add include and define.
12291 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
12293 (make_system_path_relative_to_its_root): Simplify loop, replace early
12295 [__CYGWIN__] Add conversion to win32 path.
12296 Include "/" case in trailing slash removal.
12298 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12300 * kern/main.c (grub_load_config): Fix copy-pasted comment.
12301 Reported by: Seth Goldberg
12303 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12305 * commands/help.c (grub_cmd_help): Fix a typo.
12306 Reported by: Seth Goldberg
12308 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12310 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
12312 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
12313 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
12314 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
12315 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
12316 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
12317 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
12318 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
12319 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
12320 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
12321 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
12322 * normal/context.c (GRUB_MOD_INIT): Likewise.
12323 * normal/main.c (GRUB_MOD_INIT): Likewise.
12324 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
12325 * term/serial.c (GRUB_MOD_INIT): Likewise.
12326 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
12328 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12330 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
12333 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12335 * commands/iorw.c: New file.
12336 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
12337 (iorw_mod_SOURCES): New variable.
12338 (iorw_mod_CFLAGS): Likewise.
12339 (iorw_mod_LDFLAGS): Likewise.
12341 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12345 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
12346 * normal/main.c (hotkey_aliases): New variable.
12347 (grub_normal_add_menu_entry): Parse "--hotkey".
12348 * normal/menu_text.c (run_menu): Handle hotkeys.
12350 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12352 * kern/i386/coreboot/init.c (grub_machine_init): Call
12353 grub_machine_mmap_init on qemu.
12355 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12357 * boot/i386/qemu/boot.S: Add a missing .code16.
12359 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12361 Use LBIO on coreboot.
12363 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
12364 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
12365 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
12367 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
12368 grub_machine_mmap_init on coreboot.
12369 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
12370 GRUB_LINUXBIOS_MEMBER_LINK.
12371 (grub_machine_mmap_iterate): Fix declaration.
12372 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
12374 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12376 Split coreboot and multiboot ports.
12378 * conf/i386-multiboot.rmk: New file.
12379 * configure.ac: Add multiboot port.
12380 * include/grub/i386/multiboot/boot.h: New file.
12381 * include/grub/i386/multiboot/console.h: Likewise.
12382 * include/grub/i386/multiboot/init.h: Likewise.
12383 * include/grub/i386/multiboot/kernel.h: Likewise.
12384 * include/grub/i386/multiboot/loader.h: Likewise.
12385 * include/grub/i386/multiboot/memory.h: Likewise.
12386 * include/grub/i386/multiboot/serial.h: Likewise.
12387 * include/grub/i386/multiboot/time.h: Likewise.
12388 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
12389 * loader/multiboot.c: Likewise.
12390 * loader/multiboot_mbi2.c: Likewise.
12391 * util/grub-mkrescue.in: Generate multiboot rescue.
12393 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12395 * kern/parser.c (grub_parser_execute): Cope with read-only config.
12397 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
12399 Merge handling of input and output terminals. Fix a hang.
12401 * commands/terminal.c (abstract_terminal): New struct.
12402 (handle_command): New function. Based on grub_cmd_terminal_input.
12403 (grub_cmd_terminal_input): Use handle_command.
12404 (grub_cmd_terminal_output): Use handle_command.
12406 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
12408 Fix comment handling.
12410 * tests/grub_script_comments.in: New testcase.
12411 * conf/tests.rmk: Rules for new testcase.
12412 * script/yylex.l: Updated flex rules.
12414 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
12416 * docs/grub.texi (play): Document that zero pitches produce rests.
12417 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
12420 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12422 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
12425 2010-04-26 Christian Franke <franke@computer.org>
12427 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
12428 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
12429 (grub_get_prefix): Remove function.
12430 * util/grub-emu.c (main): Replace grub_get_prefix () call by
12431 make_system_path_relative_to_its_root ().
12432 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
12434 2010-04-24 Christian Franke <franke@computer.org>
12436 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
12437 (kernel_img_LDFLAGS): Remove -static-libgcc.
12439 2010-04-24 Christian Franke <franke@computer.org>
12441 * configure.ac: Do not CHECK_BSS_START_SYMBOL
12442 and CHECK_END_SYMBOL if grub-emu is built.
12443 Unset TARGET_OBJ2ELF if grub-emu is built
12444 without module support.
12446 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
12450 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
12451 (grub_fstest_SOURCES): Likewise.
12452 (pkglib_MODULES): Add nilfs2.mod.
12453 (nilfs2_mod_SOURCES): New variable.
12454 (nilfs2_mod_CFLAGS): Likewise.
12455 (nilfs2_mod_LDFLAGS): Likewise.
12456 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
12457 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
12458 * fs/nilfs2.c: New file.
12460 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
12462 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
12465 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
12467 Add grub-mkconfig support for NetBSD.
12469 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
12470 * util/grub-mkconfig.in: export new NetBSD specific variables.
12471 * po/POTFILES-shell: added 10_netbsd.in.
12472 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
12474 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
12476 Fix emu build with grub-emu-pci and grub-emu-modules.
12478 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
12480 * include/grub/libpciaccess.h: New file.
12481 * conf/any-emu.rmk: Update kernel headers for emu build.
12483 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12485 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
12487 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12489 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
12491 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12493 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
12494 Retrieve chosen/bootpath if bootpath isn't hardcoded.
12495 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
12496 util/ieee1275/ofpath.c.
12497 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
12498 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
12499 * include/grub/sparc64/ieee1275/boot.h
12500 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
12501 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
12502 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
12503 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
12505 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
12506 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
12507 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
12510 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
12512 * util/grub-mkconfig.in: Corrected two == equality tests.
12513 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
12514 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
12515 expect a number appended to it.
12516 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
12517 expects a number appended to it.
12519 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12521 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
12523 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12525 * util/hostdisk.c (make_device_name): Change to new partition naming.
12527 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12529 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
12531 2010-04-17 Christian Franke <franke@computer.org>
12533 * Makefile.in: Add missing localedir setting.
12535 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
12537 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
12538 mistake in r2156. Noticed by Anthony Fok.
12540 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
12542 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
12544 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
12546 Fix a spurious, uninitialized variable warning.
12548 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
12549 Initialize variable, shdr.
12550 (grub_freebsd_load_elfmodule): Likewise.
12551 (grub_freebsd_load_elf_meta): Likewise.
12553 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
12555 Fix for escaped dollar in double quoted strings.
12557 * script/yylex.l: Updated flex rules.
12558 * conf/tests.rmk: Rule for new testcase.
12559 * tests/grub_script_dollar.in: New testcase.
12561 2010-04-13 Carles Pina i Estany <carles@pina.cat>
12562 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
12564 Enclose all translated strings in grub.cfg in single quotes, and
12565 escape them appropriately (Ubuntu bug #552921).
12567 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
12568 * util/grub.d/10_hurd.in: Use it.
12569 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
12570 * util/grub.d/10_linux.in (linux_entry): Likewise.
12572 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12574 Fix cygwin compilation.
12576 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
12577 * include/grub/misc.h (__register_frame_info)
12578 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
12579 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
12580 * kern/misc.c (__register_frame_info)
12581 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
12582 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
12584 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12586 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
12588 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12590 Unify libgcc processing.
12592 * Makefile.in (kernel_img_LDFLAGS): New variable.
12593 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
12594 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
12596 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
12597 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
12598 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
12599 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
12600 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
12601 overwriting. Remove -lgcc and -static-libgcc
12602 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
12603 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
12604 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
12605 (kernel_img_LDFLAGS): Append instead of overwriting.
12606 Remove -lgcc and -static-libgcc
12607 * conf/sparc64-ieee1275.rmk: Likewise.
12608 * include/grub/powerpc/libgcc.h: Move to ...
12609 * include/grub/libgcc.h: .. this.
12610 * include/grub/libgcc.h: Don't export most of the function on x86.
12611 (__bswapsi2): New export.
12612 (__bswapdi2): Likewise.
12613 * include/grub/mips/libgcc.h: Removed.
12614 * include/grub/sparc64/libgcc.h: Likewise.
12616 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12618 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
12619 disk_info_msg (conflicts with gettexting into languages with cases).
12621 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
12623 Add grub-probe support for NetBSD.
12625 * util/getroot.c (find_root_device): Convert block device to
12626 character device on NetBSD.
12627 * util/probe.c (probe): Require character device on NetBSD.
12628 * util/hostdisk.c: NetBSD specific headers.
12629 (configure_device_driver): new function to tune device driver
12630 parameters (currently only for NetBSD floppy driver).
12631 (grub_util_biosdisk_open): NetBSD specific code (get disk size
12632 via disklabel ioctl).
12633 (open_device): call configure_device_driver on NetBSD.
12634 (convert_system_partition_to_system_disk): NetBSD specific code.
12635 (device_is_wholedisk): Likewise.
12636 (grub_util_biosdisk_get_grub_dev): Likewise.
12637 (make_device_name): Fixed a typo in bsd_part_str.
12638 * configure.ac: check for opendisk() and getrawpartition() on
12639 NetBSD and set LIBUTIL.
12640 * Makefile.in: add LIBUTIL to LIBS.
12642 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
12646 * util/grub-script-check.c: Better help message.
12648 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
12652 * configure.ac: Flex version check.
12653 * conf/common.rmk: Add -Wno-error to sh.mod.
12654 * script/yylex.l: Remove all #pragma.
12656 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12658 * include/grub/util/misc.h (canonicalise_file_name): Add missing
12660 Reported by: Seth Goldberg.
12662 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12664 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
12665 Rename "module" to "module2".
12666 Reported by: Seth Goldberg.
12668 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12670 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
12672 Reported by: Seth Goldberg.
12674 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12676 * lib/posix_wrap/locale.h: Add missing file.
12677 Reported by: Seth Goldberg.
12679 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12681 grub-emu module load support.
12683 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
12684 NO_DYNAMIC_MODULES switched to this.
12685 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
12686 (CFLAGS): Likewise.
12687 * conf/any-emu.rmk: Generate symlist.
12688 (kernel_img_HEADERS): Add util/datetime.h.
12689 (kernel_img_HEADERS) [sdl]: Add sdl.h.
12690 (kernel_img_HEADERS) [libusb]: Add libusb.h.
12691 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
12692 kern/$(target_cpu)/cache.S.
12693 * configure.ac (grub-emu-modules): New option.
12694 * genmk.rb: Handle multiple source lists.
12695 * include/grub/sdl.h: New file.
12696 * include/grub/libusb.h: Likewise.
12697 * util/grub-emu.c (main): Hanle (host) root.
12698 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
12699 GRUB_ERR_UNKNOWN_DEVICE.
12700 * util/misc.c: Move mm functions to ...
12701 * util/mm.c: ... here. All users updated.
12703 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12705 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
12706 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
12708 (maintainer-clean): Remove libgcrypt-grub.
12710 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12712 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
12714 2010-04-09 EFI Coder <eficoder@hotmail.com>
12716 * normal/menu_text.c (print_message): Clean up the message and show
12717 the Fn information when on EFI
12718 * term/efi/console.c (grub_console_checkkey): Add F4 support.
12720 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12722 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
12724 * normal/crypto.c (read_crypto_list): Likewise.
12725 * normal/dyncmd.c (read_command_list): Likewise.
12726 * normal/term.c (read_terminal_list): Likewise.
12727 * normal/main.c (read_lists): Use explicit prefix.
12728 (read_lists_hook): Use read_lists.
12729 (grub_normal_execute): Likewise.
12731 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12733 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
12734 Reported by: Thomas Schmitt.
12735 Add -no-emul-boot to grub-mkisofs parameters.
12737 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12739 * font/font.c: Indented.
12741 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
12743 Elif support to GRUB script (by Deepak Vankadaru).
12745 * tests/grub_script_if.in: New testcase.
12746 * conf/tests.rmk: Rule for new testcase.
12747 * script/parser.y: Grammar rules for elif.
12749 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
12751 While and until loops support to GRUB script.
12753 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
12754 (grub_script_create_cmdwhile): New function prototype.
12755 (grub_script_execute_cmdwhile): New function prototype.
12756 * script/execute.c (grub_script_execute_cmdwhile): New function.
12757 * script/parser.y (command): New commands.
12758 (whilecmd): New grammar rule.
12759 (untilcmd): New grammar rule.
12760 * script/script.c (grub_script_create_cmdwhile): New function.
12761 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
12764 * tests/grub_script_while1.in: New testcase.
12765 * conf/tests.rmk: Rule for new testcase.
12767 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12769 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
12772 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
12774 GRUB_BACKGROUND support.
12776 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
12777 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
12779 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12781 Load fonts and modules for gfxmenu in grub-mkconfig.
12782 Idea by: Mario Vazquez
12784 * util/grub.d/00_header.in: Load pf2 and image modules.
12786 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12788 grub-mkconfig multiple terminal support.
12790 * util/grub-mkconfig.in: Handle multiple terminals correctly.
12791 * util/grub.d/00_header.in: Likewise.
12793 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
12795 * Makefile.in: Specify files explicitly instead of using $< and $@ since
12796 we use cd $(srcdir).
12798 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
12800 * util/grub.d/10_linux.in: Only use the first word of
12801 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
12802 spaces in GRUB_DISTRIBUTOR.
12803 * util/grub.d/10_kfreebsd.in: Likewise.
12804 * util/grub.d/10_hurd.in: Likewise.
12806 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
12808 Fix unit testing framework for Qemu 0.12.
12810 * tests/util/grub-shell.in: Remove -serial stdio option.
12812 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12814 POSIX header file wrappers.
12816 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
12818 * lib/posix_wrap/ctype.h: Likewise.
12819 * lib/posix_wrap/errno.h: Likewise.
12820 * lib/posix_wrap/langinfo.h: Likewise.
12821 * lib/posix_wrap/limits.h: Likewise.
12822 * lib/posix_wrap/localcharset.h: Likewise.
12823 * lib/posix_wrap/stdint.h: Likewise.
12824 * lib/posix_wrap/stdio.h: Likewise.
12825 * lib/posix_wrap/stdlib.h: Likewise.
12826 * lib/posix_wrap/string.h: Likewise.
12827 * lib/posix_wrap/sys/types.h: Likewise.
12828 * lib/posix_wrap/unistd.h: Likewise.
12829 * lib/posix_wrap/wchar.h: Likewise.
12830 * lib/posix_wrap/wctype.h: Likewise.
12831 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
12832 (grub_script.yy.h): Likewise.
12833 * script/yylex.l: Remove POSIX emulation #defines.
12834 * Makefile.in (POSIX_CFLAGS): New variable.
12835 (GNULIB_UTIL_CFLAGS): Likewise.
12839 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
12840 (regexp_mod_SOURCES): New variable.
12841 (regexp_mod_CFLAGS): Likewise.
12842 (regexp_mod_LDFLAGS): Likewise.
12843 * commands/regexp.c: New file.
12844 * gnulib/regcomp.c: New file. Imported from gnulib.
12845 * gnulib/regex.c: Likewise.
12846 * gnulib/regex_internal.c: Likewise.
12847 * gnulib/regex_internal.h: Likewise.
12848 * gnulib/regexec.c: Likewise.
12849 * gnulib/regex.h: Likewise.
12851 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12853 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
12854 unsupported video mode types.
12856 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12858 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
12860 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12862 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
12863 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
12865 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12867 Remove unused grub_vga_get_font.
12869 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
12870 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
12872 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12874 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
12875 * include/grub/misc.h: Likewise.
12877 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12879 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
12880 for which failure is fatal.
12882 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12884 * util/grub-install.in: Use mkdir -p to create grub directory.
12885 * util/i386/efi/grub-install.in: Likewise.
12886 * util/ieee1275/grub-install.in: Likewise.
12888 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12890 * Makefile.in (LEX): new variable.
12892 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
12894 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
12895 `=' and added double quotes on operands of this equality test.
12897 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
12899 * Makefile.in (uninstall): Remove a leftover debug echo.
12900 Reported by: Grégoire Sutre
12902 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
12904 MIPS multiboot2 support.
12906 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
12907 (multiboot2_mod_SOURCES): New variable.
12908 (multiboot2_mod_CFLAGS): Likewise.
12909 (multiboot2_mod_LDFLAGS): Likewise.
12910 (multiboot2_mod_ASFLAGS): Likewise.
12911 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
12913 (MULTIBOOT_ENTRY_REGISTER): Likewise.
12914 (MULTIBOOT_MBI_REGISTER): Likewise.
12915 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
12916 (MULTIBOOT_ELF32_MACHINE): Likewise.
12917 (MULTIBOOT_ELF64_MACHINE): Likewise.
12918 * include/grub/mips/multiboot.h: New file.
12919 * include/grub/video.h (grub_video_driver_id): New type
12920 GRUB_VIDEO_DRIVER_SM712.
12921 (grub_video_get_info_and_fini): Export.
12922 (grub_video_get_palette): Likewise.
12923 (grub_video_get_driver_id): Likewise.
12924 * include/multiboot2.h: Resynced with spec.
12925 * loader/i386/multiboot.c: Moved from here ...
12926 * loader/multiboot.c: ... here. All users updated.
12927 (grub_multiboot_boot): Use platform-specific macros.
12928 * loader/i386/multiboot_elfxx.c: Moved from here ...
12929 * loader/multiboot_elfxx.c: ... here. All users updated.
12930 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
12931 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
12932 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
12934 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12936 Import gnulib argp module.
12938 * gnulib/argp-ba.c: New file.
12939 * gnulib/argp-eexst.c: Likewise.
12940 * gnulib/argp-fmtstream.c: Likewise.
12941 * gnulib/argp-fmtstream.h: Likewise.
12942 * gnulib/argp-fs-xinl.c: Likewise.
12943 * gnulib/argp-help.c: Likewise.
12944 * gnulib/argp-namefrob.h: Likewise.
12945 * gnulib/argp-parse.c: Likewise.
12946 * gnulib/argp-pin.c: Likewise.
12947 * gnulib/argp-pv.c: Likewise.
12948 * gnulib/argp-pvh.c: Likewise.
12949 * gnulib/argp-version-etc.c: Likewise.
12950 * gnulib/argp-version-etc.h: Likewise.
12951 * gnulib/argp-xinl.c: Likewise.
12952 * gnulib/argp.h: Likewise.
12954 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12956 * kern/device.c (grub_device_iterate): Clear errors after failed
12959 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12961 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
12962 returned by firmware.
12964 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12966 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
12967 compilation on coreboot and qemu
12969 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
12971 * include/multiboot2.h: Resync with spec.
12973 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
12975 Multiboot2 tag support
12977 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
12978 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
12979 Remove loader/multiboot_loader.c.
12980 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
12981 (grub_multiboot2_real_boot): Likewise.
12982 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
12983 (grub_get_multiboot_mmap_count): New proto.
12984 (grub_fill_multiboot_mmap): Likewise.
12985 (grub_multiboot_set_video_mode): Likewise.
12986 (grub_multiboot_set_console): Likewise.
12987 (grub_multiboot_load): Likewise.
12988 (grub_multiboot_load_elf): Likewise.
12989 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
12990 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
12991 * include/multiboot.h: Resynced with specification.
12992 * include/multiboot2.h: Resynced with specification.
12993 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
12994 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
12995 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
12996 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
12998 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
12999 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
13000 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
13002 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
13004 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
13005 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
13007 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
13008 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
13009 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
13011 * loader/i386/multiboot_mbi2.c: New file.
13013 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
13015 Resync with gnulib.
13017 * Makefile.in (GNULIB_CFLAGS): New variable.
13018 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
13019 (grub_script_check_CFLAGS): New variable.
13020 * gnulib/alloca.h: Resync with gnulib.
13021 * gnulib/error.c: Likewise.
13022 * gnulib/error.h: Likewise.
13023 * gnulib/fnmatch.c: Likewise.
13024 * gnulib/fnmatch_loop.c: Likewise.
13025 * gnulib/getdelim.c: Likewise.
13026 * gnulib/getline.c: Likewise.
13027 * gnulib/getopt.c: Likewise.
13028 * gnulib/getopt1.c: Likewise.
13029 * gnulib/getopt_int.h: Likewise.
13030 * gnulib/gettext.h: Likewise.
13031 * gnulib/progname.c: Likewise.
13032 * gnulib/progname.h: Likewise.
13034 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
13036 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
13037 which is the case with --disabled-nls.
13039 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
13040 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
13041 * util/misc.c: Likewise.
13042 * util/mkisofs/mkisofs.c: Likewise.
13043 * util/mkisofs/mkisofs.h: Likewise.
13045 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
13047 Simplify Apple CC support.
13049 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
13050 Add 0 byte at the end not to have a symbol with empty target.
13051 * mmap/i386/pc/mmap_helper.S: Likewise.
13052 * genmk.rb: Ignore errors 2030 and 2050.
13053 * kern/i386/pc/startup.S: Use LOCAL when possible.
13055 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
13057 Testcase and the fix for final semicolon on cmdline.
13059 * tests/grub_script_final_semicolon.in: New testcase.
13060 * conf/tests.rmk: Rules for the new testcase.
13061 * script/parser.y: Grammar fix.
13063 2010-03-26 BVK Chaitanya <bvk@localhost>
13065 Blank lines testcase for GRUB script.
13067 * tests/grub_script_blanklines.in: New testcase.
13068 * conf/tests.rmk: Rules for the new testcase.
13070 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13072 Don't use __FILE__.
13074 * genmk.rb: Add -DGRUB_FILE to all C targets.
13075 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
13076 * include/grub/list.h: Likewise.
13077 * include/grub/misc.h: Likewise.
13078 * include/grub/mm.h: Likewise.
13079 * include/grub/test.h: Likewise.
13080 * kern/mm.c: Likewise.
13081 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
13083 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13085 Sunpc partitions support.
13087 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
13088 (grub_fstest_SOURCES): Likewise.
13089 (pkglib_MODULES): Add part_sunpc.mod.
13090 (part_sunpc_mod_SOURCES): New variable.
13091 (part_sunpc_mod_CFLAGS): Likewise.
13092 (part_sunpc_mod_LDFLAGS): Likewise.
13093 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
13094 * partmap/sunpc.c: New file.
13096 2010-03-26 BVK Chaitanya <bvk@localhost>
13098 For loop support to GRUB script.
13100 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
13101 (grub_script_create_cmdfor): New function prototype.
13102 (grub_script_execute_cmdfor): New function prototype.
13103 * script/execute.c (grub_script_execute_cmdfor): New function.
13104 * script/parser.y (command): New for command.
13105 (forcmd): New grammar rule.
13106 * script/script.c (grub_script_create_cmdfor): New function.
13107 * util/grub-script-check.c (grub_script_execute_cmdfor): New
13109 * tests/grub_script_for1.in: New testcase.
13110 * conf/tests.rmk: Rules for new testcase.
13112 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13116 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
13117 'partition' is NULL, grub_partition_get_start already does that.
13118 * commands/loadenv.c (check_blocklists): Likewise.
13119 (write_blocklists): Likewise.
13120 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
13121 (grub_fstest_SOURCES): Likewise.
13122 (pkglib_MODULES): Add part_bsd.mod.
13123 (part_bsd_mod_SOURCES): New variable.
13124 (part_bsd_mod_CFLAGS): Likewise.
13125 (part_bsd_mod_LDFLAGS): Likewise.
13126 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
13127 (grub_emu_SOURCES): Likewise.
13128 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13129 * include/grub/bsdlabel.h: New file.
13130 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
13132 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
13133 (grub_partition_map_list): New variable.
13134 (grub_partition_map_register): Inline.
13135 (grub_partition_map_unregister): Likewise.
13136 (FOR_PARTITION_MAPS): New macro.
13137 (grub_partition_map_iterate): Removed.
13138 (grub_partition_get_start): Handle nested partitions.
13139 * include/grub/msdos_partition.h: Remove bsd-related entries.
13140 (grub_pc_partition): Remove.
13141 * kern/disk.c (grub_disk_close): Free partition data.
13142 (grub_disk_adjust_range): Handle nested partitions.
13143 * kern/partition.c (grub_partition_map_probe): New function.
13144 (grub_partition_probe): Parse name to number, handle subpartitions.
13145 (get_partmap): New function.
13146 (grub_partition_iterate): Handle subpartitions.
13147 (grub_partition_get_name): Likewise.
13148 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
13149 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
13150 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
13151 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
13153 (acorn_partition_map_probe): Remove.
13154 (acorn_partition_map_get_name): Likewise.
13155 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
13157 Set 'index' to 0 since there can be only one partition entry per sector.
13158 (amiga_partition_map_probe): Remove.
13159 (amiga_partition_map_get_name): Likewise.
13160 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
13162 Set 'offset' and 'index' to real positions of partitions.
13163 (apple_partition_map_probe): Remove.
13164 (apple_partition_map_get_name): Likewise.
13165 * partmap/bsdlabel.c: New file.
13166 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
13168 Allocate 'data' so it can be correctly freed.
13169 Set 'index' to offset inside sector.
13170 (gpt_partition_map_probe): Remove.
13171 (gpt_partition_map_get_name): Likewise.
13172 * partmap/msdos.c (grub_partition_parse): Remove.
13173 (pc_partition_map_iterate): Don't force raw access.
13175 Make 'ext_offset' a local variable.
13176 (pc_partition_map_probe): Remove.
13177 (pc_partition_map_get_name): Remove.
13178 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
13180 (sun_partition_map_probe): Remove.
13181 (sun_partition_map_get_name): Likewise.
13182 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
13183 (grub_pcpart_type): Likewise.
13184 * util/hostdisk.c (open_device): Handle new numbering scheme.
13185 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
13186 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
13187 * util/grub-probe.c (probe_partmap): Handle nested paritions.
13188 * util/grub-install.in: Insert all subpartition modules.
13189 * util/ieee1275/grub-install.in: Likewise.
13191 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
13193 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
13196 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
13198 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
13200 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
13202 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
13203 match where 'make install' puts them.
13204 * util/i386/efi/grub-install.in: Likewise.
13206 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
13208 * .bzrignore: Add gentrigtables, grub-script-check,
13209 grub_script_check_init.c, grub_script_check_init.h, and
13212 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
13214 * kern/parser.c: Indented.
13216 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
13218 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
13220 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
13222 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
13223 alpha_mask_size == 0 case.
13225 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
13227 GRUB shell lexer and parser improvements.
13229 * conf/any-emu.rmk: Build rule updates.
13230 * conf/common.rmk: Likewise.
13231 * conf/i386-coreboot.rmk: Likewise.
13232 * conf/i386-efi.rmk: Likewise.
13233 * conf/i386-ieee1275.rmk: Likewise.
13234 * conf/i386-pc.rmk: Likewise.
13235 * conf/powerpc-ieee1275.rmk: Likewise.
13236 * conf/x86_64-efi.rmk: Likewise.
13238 * configure.ac: Configure check for flex.
13240 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
13242 (grub_lexer_param): Struct member updates.
13243 (grub_parser_param): Likewise.
13244 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
13245 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
13246 (grub_script_lexer_init): Prototype update.
13247 (grub_script_lexer_record_start): Likewise.
13248 (grub_script_lexer_record_stop): Likewise.
13249 (grub_script_lexer_yywrap): New function prototype.
13250 (grub_script_lexer_fini): Likewise.
13251 (grub_script_execute_argument_to_string): Removed by...
13252 (grub_script_execute_argument_to_argv): ...better version.
13254 * script/execute.c (ROUND_UPTO): New macro.
13255 (grub_script_execute_cmdline): Out of memory fixes.
13256 (grub_script_execute_menuentry): Likewise.
13257 (grub_script_execute_argument_to_string): Removed. Update all
13259 (grub_script_execute_argument_to_argv): ...better version.
13260 * script/function.c (grub_script_function_create): Use
13261 grub_script_execute_argument_to_argv instead of
13262 grub_script_execute_argument_to_string.
13264 * script/lexer.c (check_varstate): Removed.
13265 (check_textstate): Removed.
13266 (grub_script_lexer_record_start): Likewise.
13267 (grub_script_lexer_record_stop): Likewise.
13268 (recordchar): Replaced with...
13269 (grub_script_lexer_record): ...new function.
13270 (nextchar): Removed.
13271 (grub_script_lexer_init): Rewritten.
13272 (grub_script_yylex): Rewritten.
13273 (append_newline): New function.
13274 (grub_script_lexer_yywrap): New function.
13275 (grub_script_lexer_fini): New function.
13276 (grub_script_yyerror): Sets error flag.
13278 * script/yylex.l: New file.
13279 (grub_lexer_yyfree): Wrapper for flex yyffre.
13280 (grub_lexer_yyalloc): Likewise.
13281 (grub_lexer_yyrealloc): Likewise.
13282 * script/parser.y: Refactored.
13284 * script/script.c (grub_script_arg_add): Out of memory fixes.
13285 (grub_script_add_arglist): Likewise.
13286 (grub_script_create_cmdline): Likewise.
13287 (grub_script_create_cmdmenu): Likewise.
13288 (grub_script_add_cmd): Likewise.
13289 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
13290 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
13293 * tests/grub_script_echo1.in: New testcase.
13294 * tests/grub_script_vars1.in: New testcase.
13295 * tests/grub_script_echo_keywords.in: New testcase.
13297 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13299 Remove some redundancy in build system.
13301 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
13302 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
13303 (TARGET_LDFLAGS): Add -nostdlib.
13304 (TARGET_IMG_LDFLAGS): Likewise.
13305 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
13306 anything since mmap isn't available.
13307 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
13309 (pkglib_MODULES): Remove reboot.mod.
13310 (reboot_mod_SOURCES): Removed.
13311 (reboot_mod_CFLAGS): Likewise.
13312 (reboot_mod_LDFLAGS): Likewise.
13313 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
13314 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
13315 (DEFSYMFILES): Add kernel_syms.lst.
13316 (kernel_img_HEADERS): Add common headers.
13317 (symlist.c): New target.
13318 (kernel_syms.lst): Likewise.
13319 (pkglib_MODULES): Add memdisk.mod.
13320 (memdisk_mod_SOURCES): New variable.
13321 (memdisk_mod_CFLAGS): Likewise.
13322 (memdisk_mod_LDFLAGS): Likewise.
13323 (pkglib_MODULES): Add reboot.mod.
13324 (reboot_mod_SOURCES): New variable.
13325 (reboot_mod_CFLAGS): Likewise.
13326 (reboot_mod_LDFLAGS): Likewise.
13327 (pkglib_MODULES): Add date.mod.
13328 (date_mod_SOURCES): New variable.
13329 (date_mod_CFLAGS): Likewise.
13330 (date_mod_LDFLAGS): Likewise.
13331 (pkglib_MODULES): Add datehook.mod.
13332 (datehook_mod_SOURCES): New variable.
13333 (datehook_mod_CFLAGS): Likewise.
13334 (datehook_mod_LDFLAGS): Likewise.
13335 (pkglib_MODULES): Add lsmmap.mod.
13336 (lsmmap_mod_SOURCES): New variable.
13337 (lsmmap_mod_CFLAGS): Likewise.
13338 (lsmmap_mod_LDFLAGS): Likewise.
13339 (pkglib_MODULES): Add boot.mod.
13340 (boot_mod_SOURCES): New variable.
13341 (boot_mod_CFLAGS): Likewise.
13342 (boot_mod_LDFLAGS): Likewise.
13343 * conf/i386-coreboot.rmk: Removed redundant parts.
13344 * conf/i386-ieee1275.rmk: Likewise.
13345 * conf/i386-pc.rmk: Likewise.
13346 * conf/mips-yeeloong.rmk: Likewise.
13347 * conf/mips.rmk: Likewise.
13348 * conf/powerpc-ieee1275.rmk: Likewise.
13349 * conf/sparc64-ieee1275.rmk: Likewise.
13350 * conf/x86_64-efi.rmk: Likewise.
13351 * conf/i386-coreboot.rmk: Moved qemu parts ..
13352 * conf/i386-qemu.rmk: ... here
13353 * conf/i386-efi.rmk: Moved common parts to...
13354 * conf/x86-efi.rmk: ... here.
13355 * conf/i386.rmk: Added modules common to all x86 variants.
13356 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
13357 * disk/memdisk.c: Remove grub/machine/kernel.h.
13358 * gensymlist.sh.in: Include symbol.h.
13359 * hook/datehook.c: Correct module name.
13360 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
13361 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
13362 * include/grub/i386/efi/serial.h: New file.
13363 * include/grub/x86_64/efi/serial.h: Likewise.
13364 * util/time.c: Likewise.
13365 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
13367 2010-03-14 Colin King <colin.king@ubuntu.com>
13368 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
13370 Shrink the pre-partition-table part of boot.img by eight bytes.
13372 * boot/i386/pc/boot.S (ERR): New macro.
13373 (chs_mode): Use ERR.
13374 (geometry_error): Likewise.
13375 (hd_probe_error): Remove. This is only used once, so we wrwite
13377 (read_error): Instead of printing read_error_string, just set up
13378 %si and fall through to ...
13379 (error_message): ... this new function, also used by ERR.
13381 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
13383 Speed up consecutive hostdisk operations on the same device.
13385 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
13386 (grub_util_biosdisk_open): Initialise disk->data.
13387 (struct linux_partition_cache): New structure.
13388 (linux_find_partition): Cache partition start positions; these are
13389 expensive to compute on every read and write.
13390 (open_device): Cache open file descriptor in disk->data, so that we
13391 don't have to reopen it and flush the buffer cache for consecutive
13392 operations on the same device.
13393 (grub_util_biosdisk_close): New function.
13394 (grub_util_biosdisk_dev): Set `close' member.
13396 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
13397 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
13398 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
13399 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
13400 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
13402 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13404 Compile parts of grub-emu as modules.
13406 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
13407 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
13408 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
13409 (all-local): Add $(GRUB_EMU).
13410 (install-local): Install $(GRUB_EMU).
13411 (uninstall): Uninstall $(GRUB_EMU).
13412 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
13413 * kern/dl.c: Likewise.
13414 * commands/sleep.c: Not include machine/time.h.
13415 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
13416 (COMMON_CFLAGS): Likewise.
13417 (sbin_UTILITIES): Remove grub-emu.
13418 (grub_emu_SOURCES): Removed.
13419 (kernel_img_RELOCATABLE): New variable.
13420 (pkglib_PROGRAMS): Add kernel.img.
13421 (kernel_img_SOURCES): New variable
13422 (kernel_img_CFLAGS): Likewise.
13423 (kernel_img_LDFLAGS): Likewise.
13424 (TARGET_NO_STRIP): Likewise.
13425 (TARGET_NO_DYNAMIC_MODULES): Likewise.
13426 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
13427 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
13428 (grub-emu): New target.
13429 (GRUB_EMU): New variable.
13430 * configure.ac: Whitelist -emu as possible x86_64 architecture.
13431 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
13432 * loader/xnu.c: Likewise.
13433 * include/grub/pci.h: Likewise.
13434 * genemuinit.sh: New file.
13435 * genemuinitheader.sh: Likewise.
13436 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
13437 Support TARGET_NO_DYNAMIC_MODULES.
13438 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
13439 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
13440 * disk/loopback.c: Likewise.
13441 * font/font_cmd.c: Likewise.
13442 * partmap/acorn.c: Likewise.
13443 * partmap/amiga.c: Likewise.
13444 * partmap/apple.c: Likewise.
13445 * partmap/gpt.c: Likewise.
13446 * partmap/msdos.c: Likewise.
13447 * partmap/sun.c: Likewise.
13448 * parttool/msdospart.c: Likewise.
13449 * term/gfxterm.c: Likewise.
13450 * video/bitmap.c: Likewise.
13451 * video/readers/jpeg.c: Likewise.
13452 * video/readers/png.c: Likewise.
13453 * video/readers/tga.c: Likewise.
13454 * video/video.c: Likewise.
13455 * util/grub-emu.c (read_command_list): Removed.
13456 (main): Don't call util_init_nls.
13457 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
13458 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
13460 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13462 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
13463 date.mod, datehook.mod.
13464 (datetime_mod_SOURCES): New variable.
13465 (datetime_mod_CFLAGS): Likewise.
13466 (datetime_mod_LDFLAGS): Likewise.
13467 (date_mod_SOURCES): Likewise.
13468 (date_mod_CFLAGS): Likewise.
13469 (date_mod_LDFLAGS): Likewise.
13470 (datehook_mod_SOURCES): Likewise.
13471 (datehook_mod_CFLAGS): Likewise.
13472 (datehook_mod_LDFLAGS): Likewise.
13473 * conf/sparc64-ieee1275.rmk: Likewise.
13474 * lib/ieee1275/datetime.c: New file.
13476 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13478 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
13479 (ieee1275_fb_mod_SOURCES): New variable.
13480 (ieee1275_fb_mod_CFLAGS): Likewise.
13481 (ieee1275_fb_mod_LDFLAGS): Likewise.
13482 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
13484 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
13485 (HEAP_MAX_ADDR): Likewise.
13486 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
13488 Correct stop condition.
13489 (grub_ieee1275_devices_iterate): New function.
13490 * video/ieee1275.c: New file.
13492 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
13494 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
13496 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
13498 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
13499 SCRATCH_PAD_DISKBOOT as scratch.
13500 (bootit): Pass Openfirmware pointer in %o4.
13501 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
13503 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
13504 with util/grub-mkrawimage.c.
13505 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
13506 * include/grub/aout.h (AOUT_MID_SUN): New definition.
13507 (grub_aout_get_type) [GRUB_UTIL]: Removed.
13508 (grub_aout_load) [GRUB_UTIL]: Likewise.
13509 * include/grub/kernel.h (grub_modules_get_end): New proto.
13510 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
13511 (SCRATCH_PAD_BOOT): New definition.
13512 (SCRATCH_PAD_DISKBOOT): Likewise.
13513 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
13514 * include/grub/sparc64/ieee1275/ieee1275.h
13515 (grub_ieee1275_original_stack): New variable
13516 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
13518 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
13519 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
13520 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
13521 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
13522 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
13523 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
13524 (grub_platform_image_format_t): New type.
13525 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
13526 * kern/main.c (grub_modules_get_end)
13527 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
13528 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
13529 (codestart): Switch stacks.
13530 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
13532 (grub_heap_init): Use grub_modules_get_end.
13533 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
13535 * util/grub-mkrawimage.c (generate_image): Support sparc64.
13537 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
13539 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
13541 * util/grub-mkrescue.in: Base ISO UUID on UTC.
13543 2010-03-08 Matt Kraai <kraai@ftbfs.org>
13545 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
13548 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
13550 * genmoddep.awk: Output all missing symbols and not only first.
13552 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13554 * NEWS: Put the date of 1.98 release.
13556 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13558 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
13561 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13563 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
13564 completition in the middle of string.
13566 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13568 * util/grub-mkrescue.in: Use mktemp with explicit template.
13570 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13572 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
13574 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
13576 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
13579 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
13581 Fix FreeBSD compilation.
13583 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
13584 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
13586 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
13588 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
13590 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13592 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
13594 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13596 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
13598 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
13600 Support relative image path in theme file.
13602 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
13603 (image_set_property): Handle theme_dir and relative path.
13605 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13607 * configure.ac: Alias amd64 to x86_64.
13609 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13611 * NEWS: mention multiboot on EFI.
13613 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13615 * kern/main.c (grub_load_modules): Handle errors from init functions of
13618 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13620 * normal/autofs.c (autoload_fs_module): Handle errors.
13622 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13624 Disable linux.mod on qemu-mips since it's not functional and leads
13625 to compilation failure.
13627 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
13628 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
13629 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
13630 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
13631 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
13632 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
13633 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
13634 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
13635 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
13636 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
13637 Reported by: BVK Chaitanya
13639 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
13641 * INSTALL: Add gettext as a dependency and add qemu to a new section
13642 "Prerequisites for make-check".
13644 2010-03-04 Christian Franke <franke@computer.org>
13646 * util/grub-pe2elf.c: Add missing include "progname.h".
13648 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13650 * normal/crypto.c (read_crypto_list): Fix a typo.
13651 Reported by: Seth Goldberg.
13653 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13655 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
13656 Reported by: Seth Goldberg.
13658 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13660 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
13663 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13665 * genmk.rb: Remove terminal*.lst in make clean.
13666 Reported by: Seth Goldberg.
13668 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
13670 * util/i386/efi/grub-install.in: Copy gettext files.
13672 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13674 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
13676 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13678 Wait for user entry basing on presence of output rather than on errors.
13680 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
13681 (grub_install_newline_hook): Likewise.
13682 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
13683 * normal/menu.c (show_menu): Check line_counter to determine presence
13685 * normal/term.c (grub_normal_line_counter): New variable.
13686 (grub_normal_get_line_counter): New function.
13687 (grub_install_newline_hook): Likewise.
13689 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13691 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
13693 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
13695 * configure.ac: Update version to 1.98.
13697 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
13699 * util/grub.d/10_linux.in (linux_entry): Don't default to
13700 gfxpayload=keep if Linux doesn't support video handover.
13702 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
13704 Don't compile video modules on yeeloong since video subsystem is part
13707 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
13708 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
13709 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
13710 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
13711 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
13712 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
13713 * include/grub/bitmap_scale.h: Likewise.
13714 * include/grub/bufio.h: Likewise.
13715 * include/grub/font.h: Likewise.
13716 * include/grub/gfxterm.h: Likewise.
13717 * include/grub/video.h: Likewise.
13718 * include/grub/vbe.h: Don't include video_fb.h.
13719 * video/i386/pc/vbe.c: Include video_fb.h.
13720 * commands/i386/pc/vbetest.c: Include video.h.
13722 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
13724 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
13725 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
13726 default entry if GRUB_SAVEDEFAULT=true. This allows using
13727 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
13728 saving a new default on every boot.
13730 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13732 * normal/crypto.c (read_crypto_list): Fix a memory leak.
13733 * normal/term.c (read_terminal_list): Likewise.
13734 * normal/main.c (grub_normal_init_page): Likewise.
13735 (grub_normal_read_line_real): Likewise.
13737 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13739 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
13741 Reported by: Seth Goldberg.
13743 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
13745 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
13746 duplicate declaration of `start'.
13748 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
13750 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
13752 Reported by: Georgy Buranov
13754 2010-02-20 Carles Pina i Estany <carles@pina.cat>
13756 * util/grub-mkrawimage.c (usage): Change string formatting to
13759 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
13761 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
13764 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
13766 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
13767 Reported by: Michael Suchanek.
13769 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13771 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
13772 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
13774 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
13776 Remove any reference to non-free fonts.
13778 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
13779 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
13780 uses non-free components.
13781 * font/font.c (grub_font_get_name): Remove example name.
13782 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
13783 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
13784 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
13785 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
13787 2010-02-16 Georgy Buranov <gburanov@gmail.com>
13789 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
13791 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
13793 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
13795 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
13797 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
13799 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
13801 * gensymlist.sh.in: Use TARGET_CC instead of CC.
13803 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13805 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
13806 * docs/grub.texi (Command-line and menu entry commands): Document play
13809 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13811 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
13812 parse arguments as inline tempo and notes. Move code for playing notes
13814 (play): ... new function.
13816 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13818 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
13819 grub_uint16_t instead of short.
13820 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
13821 disk from little endian to cpu endianness.
13823 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
13825 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
13826 GRUB_TICKS_PER_SECOND instead of 120.
13828 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13830 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
13831 escape sequence after \e.
13833 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13835 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
13836 non-ASCII characters.
13838 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13840 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
13841 set root in single quotes to prevent \, from being unescaped.
13843 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13845 Prevent unknown commands from stopping menuentry execution.
13847 * script/execute.c (grub_script_execute_cmdline): Print error after
13850 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13852 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
13853 Reported by: Pavel Pisa.
13855 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13857 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
13859 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13861 Merge grub_ieee1275_map_physical into grub_map and rename to
13864 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
13865 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
13867 * kern/ieee1275/openfw.c (grub_map): Rename to ...
13868 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
13870 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
13872 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13874 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
13875 opening and not after.
13877 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13879 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
13882 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13884 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
13885 (alloc_phys): Use ALIGN_UP instead of align_addr.
13887 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13889 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
13891 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13893 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
13895 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13897 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
13900 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13902 Fix over-4GiB seek on sparc64.
13904 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
13905 Replace pos_i and pos_lo with pos. All users updated.
13906 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
13908 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
13910 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
13913 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13915 * util/grub-mkrawimage.c (main): Call set_program_name.
13917 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13919 Properly align 64-bit targets.
13921 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
13922 (generate_image): Use ALIGN_ADDR.
13924 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13926 Properly create cross-endian images.
13928 * include/grub/types.h (grub_host_to_target_addr): New macro
13929 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
13931 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
13933 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
13935 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13937 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
13939 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
13940 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
13941 (grub_linux_boot): Divide by 64K when on VESA.
13943 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13945 Support GRUB_GFXPAYLOAD_LINUX.
13947 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
13948 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
13950 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13952 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
13953 to show messages instead of discarding them.
13954 Process errors after executing command and not before. Keep old method
13957 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13959 * configure.ac: Check for ft2build.h.
13961 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13963 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
13965 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13967 * genkernsyms.sh.in: Use TARGET_CC.
13969 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
13973 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13975 * include/grub/multiboot2.h: Remove leftover file.
13976 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
13977 * include/grub/partition.h [GRUB_UTIL]: Likewise.
13979 2010-02-07 Yves Blusseau <blusseau@zetam.org>
13981 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
13983 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13985 Fix warnings in grub-emu when compiling with maximum warning options.
13987 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
13988 (grub_arch_modules_addr): Return 0 and not NULL.
13989 * util/misc.c (ENABLE_RELOCATABLE): New definition.
13990 (xstrdup): Use newstr instead of dup.
13991 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
13992 of disk to dsk to avoid shadowing.
13993 (find_free_slot): Fix prototype.
13994 * util/getroot.c (grub_util_is_dmraid): Make static.
13995 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
13996 Add missing prototype.
13997 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
13999 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14001 * loader/i386/linux.c (grub_linux_setup_video): Handle error
14004 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14006 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
14009 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14011 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
14012 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
14013 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
14014 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
14015 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
14016 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
14018 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14020 * include/grub/err.h (grub_err_printf): Don't export.
14022 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14024 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
14026 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
14028 * include/grub/i18n.h (grub_gettext_dummy): Removed.
14029 * kern/misc.c (grub_gettext_dummy): Make static.
14031 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14033 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
14035 * kern/term.c (grub_putchar): Likewise.
14037 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14039 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
14040 buggy hook call and memory leak.
14042 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14044 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
14046 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14048 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
14050 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14052 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
14054 Return grub_errno on allocation error.
14056 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14058 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
14060 2010-02-06 Yves Blusseau <blusseau@zetam.org>
14062 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
14063 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
14065 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14067 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
14069 (grub_pxefs_open): Likewise.
14071 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
14073 * util/grub.d/10_hurd.in: Add --class information to menuentries.
14074 * util/grub.d/10_kfreebsd.in: Likewise.
14075 * util/grub.d/10_linux.in: Likewise.
14077 2010-02-06 Colin D Bennett <colin@gibibit.com>
14079 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
14080 (gfxmenu_mod_SOURCES): New variable.
14081 (gfxmenu_mod_CFLAGS): Likewise.
14082 (gfxmenu_mod_LDFLAGS): Likewise.
14083 * include/grub/term.h (grub_term_set_current_output): Declare
14085 * docs/gfxmenu-theme-example.txt: New file.
14086 * gfxmenu/gfxmenu.c: Likewise.
14087 * gfxmenu/gui_box.c: Likewise.
14088 * gfxmenu/gui_canvas.c: Likewise.
14089 * gfxmenu/gui_circular_progress.c: Likewise.
14090 * gfxmenu/gui_image.c: Likewise.
14091 * gfxmenu/gui_label.c: Likewise.
14092 * gfxmenu/gui_list.c: Likewise.
14093 * gfxmenu/gui_progress_bar.c: Likewise.
14094 * gfxmenu/gui_string_util.c: Likewise.
14095 * gfxmenu/gui_util.c: Likewise.
14096 * gfxmenu/icon_manager.c: Likewise.
14097 * gfxmenu/model.c: Likewise.
14098 * gfxmenu/named_colors.c: Likewise.
14099 * gfxmenu/theme_loader.c: Likewise.
14100 * gfxmenu/view.c: Likewise.
14101 * gfxmenu/widget-box.c: Likewise.
14102 * include/grub/gfxmenu_model.h: Likewise.
14103 * include/grub/gfxmenu_view.h: Likewise.
14104 * include/grub/gfxwidgets.h: Likewise.
14105 * include/grub/gui.h: Likewise.
14106 * include/grub/gui_string_util.h: Likewise.
14107 * include/grub/icon_manager.h: Likewise.
14109 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14111 Agglomerate scrolling in gfxterm.
14113 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
14114 (grub_virtual_screen_setup): Initialise 'total_screen'.
14115 (write_char): Split to ...
14116 (paint_char): ... this ...
14117 (write_char): ... and this.
14118 (paint_char): Handle delayed scrolling.
14119 (draw_cursor): Likewise.
14120 (scroll_up): Split to ...
14121 (real_scroll): ... this ...
14122 (scroll_up): ... and this.
14123 (real_scroll): Handle multi-line scroll and draw below-the-bottom
14125 (grub_gfxterm_refresh): Call real_scroll.
14127 2010-02-06 Colin D Bennett <colin@gibibit.com>
14129 * include/grub/misc.h (grub_iscntrl): New inline function.
14130 (grub_isalnum): Likewise.
14131 (grub_strtol): Likewise.
14133 2010-02-06 Colin D Bennett <colin@gibibit.com>
14135 * normal/menu_text.c (get_entry_number): Move from here ...
14136 * normal/menu.c (get_entry_number): ... moved here.
14137 * include/grub/menu.h (grub_menu_get_default_entry_index):
14139 * normal/menu.c (grub_menu_get_default_entry_index): New function.
14140 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
14141 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
14142 (grub_menu_viewer_should_return): Likewise.
14143 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
14144 * normal/menu_text.c (run_menu): Enable menu switching.
14145 * normal/menu_viewer.c (should_return): New variable.
14146 (menu_viewer_changed): Likewise.
14147 (grub_menu_viewer_show_menu): Handle menu viewer changes.
14148 (grub_menu_viewer_should_return): New function.
14149 (menuviewer_write_hook): Likewise.
14150 (grub_menu_viewer_init): Likewise.
14152 2010-02-06 Colin D Bennet <colin@gibibit.com>
14153 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14155 Support for gfxterm in a window.
14157 * include/grub/gfxterm.h: New file.
14158 * include/grub/video.h (struct grub_video_rect): New declaration.
14159 (grub_video_rect_t): Likewise.
14160 * term/gfxterm.c (struct grub_gfxterm_window): New type.
14161 (refcount): New variable.
14162 (render_target): Likewise.
14163 (window): Likewise.
14164 (repaint_callback): Likewise.
14165 (grub_virtual_screen_setup): Use 'render_target'.
14166 (init_window): New function.
14167 (grub_gfxterm_init_window): Likewise.
14168 (grub_gfxterm_init): Check reference counter.
14170 (destroy_window): New function.
14171 (grub_gfxterm_destroy_window): Likewise.
14172 (grub_gfxterm_fini): Check reference counter.
14173 Use destroy_window.
14174 (redraw_screen_rect): Restore viewport.
14175 Use 'render_target' and 'window'.
14176 Call 'repaint_callback'.
14177 (write_char): Use 'render_target'.
14178 (draw_cursor): Likewise.
14179 (scroll_up): Restore viewport.
14180 Use 'render_target' and 'window'.
14181 Call 'repaint_callback'.
14182 (grub_gfxterm_cls): Likewise.
14183 (grub_gfxterm_refresh): Use 'window'.
14184 (grub_gfxterm_set_repaint_callback): New function.
14185 (grub_gfxterm_background_image_cmd): Use 'window'.
14186 (grub_gfxterm_get_term): New function.
14187 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
14189 2010-02-06 Colin D Bennett <colin@gibibit.com>
14191 Bitmap scaling support.
14193 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
14194 (bitmap_scale_mod_SOURCES): New variable.
14195 (bitmap_scale_mod_CFLAGS): Likewise.
14196 (bitmap_scale_mod_LDFLAGS): Likewise.
14197 * include/grub/bitmap_scale.h: New file.
14198 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
14199 (background_image_cmd_options): New variable.
14200 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
14201 (cmd): Rename and change type to ...
14202 (background_image_cmd_handle): ... this. All users updated.
14203 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
14204 * video/bitmap_scale.c: New file.
14206 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14210 * Makefile.in (LIBSDL): New variable.
14211 (enable_grub_emu_sdl): Likewise.
14212 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
14213 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
14214 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
14215 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
14216 * util/sdl.c: New file.
14218 2010-02-06 Colin D Bennett <colin@gibibit.com>
14219 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14221 Double buffering support.
14223 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
14224 * include/grub/video.h: Update comment.
14225 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
14227 (grub_video_fb_doublebuf_blit_init): New prototype.
14228 * term/gfxterm.c (scroll_up): Support double buffering.
14229 (grub_gfxterm_refresh): Likewise.
14230 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
14231 (grub_video_fb_doublebuf_blit_init): Likewise.
14232 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
14233 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
14234 'displayed_page', 'render_page' and 'update_screen'.
14235 (grub_video_vbe_fini): Free offscreen buffer.
14236 (doublebuf_pageflipping_commit): New function.
14237 (doublebuf_pageflipping_update_screen): Likewise.
14238 (doublebuf_pageflipping_init): Likewise.
14239 (double_buffering_init): Likewise.
14240 (grub_video_vbe_setup): Enable doublebuffering.
14241 (grub_video_vbe_swap_buffers): Implement.
14242 (grub_video_vbe_set_active_render_target): Handle double buffering.
14243 (grub_video_vbe_get_active_render_target): Likewise.
14244 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
14245 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
14246 (grub_video_vbe_enable_double_buffering): Likewise.
14247 (grub_video_vbe_swap_buffers): Use update_screen.
14248 (grub_video_set_mode): Use double buffering.
14250 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
14252 * maintainance/gentrigtables.py: Remove.
14253 * lib/trig.c: Likewise.
14255 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
14257 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
14259 (trigtables.c): New rule.
14260 (gentrigtables): Likewise.
14261 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
14263 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
14265 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
14268 2010-02-06 Colin D Bennet <colin@gibibit.com>
14270 Trigonometry support.
14272 * include/grub/trig.h: New file.
14273 * lib/trig.c: Likewise.
14274 * maintainance/gentrigtables.py: Likewise.
14275 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
14276 (trig_mod_SOURCES): New variable.
14277 (trig_mod_CFLAGS): Likewise.
14278 (trig_mod_LDFLAGS): Likewise.
14280 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14282 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
14285 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
14287 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
14290 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14292 * util/hostdisk.c (open_device): Don't use partition device when reading
14293 before the partition.
14294 (grub_util_biosdisk_read): Don't read from partition and before the
14295 partition in single operation.
14296 (grub_util_biosdisk_write): Don't write to partition and before the
14297 partition in single operation.
14299 2010-02-03 Torsten Landschoff <torsten@debian.org>
14301 * kern/disk.c (grub_disk_read): Fix offset computation when reading
14304 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14306 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
14308 (grub_biosdisk_write): Refuse to write to CDROM.
14310 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14312 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
14314 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14316 * font/font.c (find_glyph): Check that bmp_idx is available before
14318 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
14319 with (font == NULL).
14321 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
14323 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
14325 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
14327 * include/grub/script_sh.h (sourcecode): Add const qualifier.
14328 * util/grub-script-check.c (getline): Fix empty lines case.
14330 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
14332 * Makefile.in (check): Exit with fail status when one of the tests
14334 * tests/example_functional_test.c (example_test): Fix reversed assert.
14335 * tests/example_unit_test.c (example_test): Likewise.
14337 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
14339 * util/grub.d/10_linux.in: This script does not use any of the
14340 contents of gettext.sh, only the external command `gettext', so stop
14341 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
14342 the same prefix as GRUB.)
14343 * util/grub.d/10_kfreebsd.in: Likewise.
14345 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14347 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
14350 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14352 * kern/disk.c (grub_disk_read): Fix offset computation when reading
14355 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14357 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
14358 having a 4KiB and not 32KiB buffer size.
14360 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
14362 * util/hostfs.c: Include `<errno.h>'.
14363 (grub_hostfs_read): Handle errors from fseeko() and fread().
14365 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
14367 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
14368 loop when using read hooks on files whose size isn't sector-aligned.
14370 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
14372 Remove unused parameter.
14374 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
14375 (grub_iso9660_open): Remove initialization of `data->length'.
14377 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
14379 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
14380 memleak conditions.
14382 2010-01-27 Carles Pina i Estany <carles@pina.cat>
14384 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
14385 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
14387 2010-01-26 Carles Pina i Estany <carles@pina.cat>
14389 * util/bin2h.c (usage): Fix warning (space after backslash).
14391 2010-01-26 Carles Pina i Estany <carles@pina.cat>
14393 * font/font.c: Include `grub/fontformat.h.
14394 Remove font file format constants.
14395 (grub_font_load): Use the new macros.
14396 * include/grub/fontformat.h: New file.
14397 * util/grub-mkfont.c: Include `grub/fontformat.c'.
14398 (write_font_pf2): Use the new macros.
14400 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
14402 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
14405 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
14407 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
14409 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
14410 (_start): Macroify `0x7F'.
14412 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
14413 (make_install_device): Use "(pxe)" as fallback prefix when booting
14416 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14418 * configure.ac: Reset LIBS after check for libgcc symbols.
14420 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
14422 * util/hostdisk.c (open_device): Add trailing newline to debug
14425 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
14427 * configure.ac: Check for `limits.h'.
14428 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
14430 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
14432 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
14433 capitalize error strings.
14435 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
14437 * util/grub.d/10_hurd.in: Add a recovery mode.
14439 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14441 * configure.ac: Check for libgcc symbols with -nostdlib.
14443 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
14445 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
14447 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14449 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
14450 stack since heap may be unavailable at that point.
14451 (grub_ofconsole_gotoxy): Likewise.
14453 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14455 * configure.ac: Check for _restgpr_14_x.
14456 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
14457 and _savegpr_* prototypes.
14459 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
14461 Use generic grub_reboot() for i386-efi.
14463 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
14464 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
14465 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
14467 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14469 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
14470 presence of "prefix" variable as it breaks when normal.mod is
14473 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
14475 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
14476 stack since heap is unavailable at that point.
14478 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
14480 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
14481 (grub_freebsd_bootinfo): Rewritten.
14482 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
14484 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
14486 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
14488 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
14490 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
14493 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
14495 * util/misc.c (make_system_path_relative_to_its_root): Change the work
14496 around for handling "/" to the correct fix. Fix a memory leak. Use
14497 xstrdup instead of strdup.
14499 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14501 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
14503 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14505 Optimise glyph lookup by Basic Multilingual Plane lookup array.
14507 * font/font.c (struct grub_font): New member 'bmp_idx'.
14508 (font_init): Initialise 'bmp_idx'.
14509 (load_font_index): Fill 'bmp_idx'.
14510 (find_glyph): Make inline. Use bmp_idx for BMP characters.
14512 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14514 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
14517 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14519 Move context handling out of the kernel.
14521 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
14522 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
14523 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
14524 * conf/i386-efi.rmk: Likewise.
14525 * conf/i386-ieee1275.rmk: Likewise.
14526 * conf/i386-pc.rmk: Likewise.
14527 * conf/powerpc-ieee1275.rmk: Likewise.
14528 * conf/sparc64-ieee1275.rmk: Likewise.
14529 * conf/x86_64-efi.rmk: Likewise.
14530 * include/grub/env.h: Include grub/menu.h.
14531 (grub_env_var_type): Removed.
14532 (grub_env_var): Replaced field 'type' with 'global'.
14533 (grub_env_find): New prototype.
14534 (grub_env_context_open): Remove EXPORT_FUNC.
14535 (grub_env_context_close): Likewise.
14536 (grub_env_export): Likewise.
14537 (grub_env_set_data_slot): Removed.
14538 (grub_env_get_data_slot): Likewise.
14539 (grub_env_unset_data_slot): Likewise.
14540 (grub_env_unset_menu): New prototype.
14541 (grub_env_set_menu): Likewise.
14542 (grub_env_get_menu): Likewise.
14543 * include/grub/env_private.h: New file.
14544 * include/grub/normal.h (grub_context_init): New prototype.
14545 (grub_context_fini): Likewise.
14546 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
14547 * normal/context.c (grub_cmd_export): ... to here.
14548 * kern/env.c: Include env_private.h.
14549 (HASHSZ): Moved to include/grub/env_private.h.
14550 (grub_env_context): Likewise.
14551 (grub_env_sorted_var): Likewise.
14552 (current_context): Renamed from this ...
14553 (grub_current_context): ...to this. 'static' removed. All users updated.
14554 (grub_env_find): Removed 'static'.
14555 (grub_env_context_open): Moved to normal/context.c.
14556 (grub_env_context_close): Likewise.
14557 (grub_env_export): Likewise.
14558 (mangle_data_slot_name): Removed.
14559 (grub_env_set_data_slot): Likewise.
14560 (grub_env_get_data_slot): Likewise.
14561 (grub_env_unset_data_slot): Likewise.
14562 * kern/main.c (grub_set_root_dev): Don't export root.
14563 It will be done later.
14564 (grub_main): Don't export prefix.
14565 It will be done later.
14566 * normal/context.c: New file.
14567 * normal/main.c (free_menu): Use grub_env_unset_menu.
14568 (grub_normal_add_menu_entry): Use grub_env_get_menu.
14569 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
14570 (GRUB_MOD_INIT(normal)): Call grub_context_init.
14571 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
14573 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14577 * commands/setpci.c: New file.
14578 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
14579 (setpci_mod_SOURCES): New variable.
14580 (setpci_mod_CFLAGS): Likewise.
14581 (setpci_mod_LDFLAGS): Likewise.
14583 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14585 Byte-addressable PCI configuration space.
14587 * bus/pci.c (grub_pci_make_address): Use byte address instead of
14589 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
14590 GRUB_PCI_REG_CACHELINE.
14591 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
14592 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
14593 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
14594 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
14595 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
14596 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
14597 grub_pci_make_address.
14598 (lock_rom_area): Likewise.
14599 * commands/lspci.c (grub_lspci_iter): Use macroses
14600 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
14601 of grub_pci_make_address.
14602 * disk/ata.c (grub_ata_pciinit): Likewise.
14603 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
14604 (GRUB_PCI_REG_VENDOR): Likewise.
14605 (GRUB_PCI_REG_DEVICE): Likewise.
14606 (GRUB_PCI_REG_COMMAND): Likewise.
14607 (GRUB_PCI_REG_STATUS): Likewise.
14608 (GRUB_PCI_REG_REVISION): Likewise.
14609 (GRUB_PCI_REG_CLASS): Likewise.
14610 (GRUB_PCI_REG_CACHELINE): Likewise.
14611 (GRUB_PCI_REG_LAT_TIMER): Likewise.
14612 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
14613 (GRUB_PCI_REG_BIST): Likewise.
14614 (GRUB_PCI_REG_ADDRESSES): Likewise.
14615 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14616 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14617 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14618 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14619 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14620 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
14621 (GRUB_PCI_REG_CIS_POINTER): Likewise.
14622 (GRUB_PCI_REG_SUBVENDOR): Likewise.
14623 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
14624 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
14625 (GRUB_PCI_REG_CAP_POINTER): Likewise.
14626 (GRUB_PCI_REG_IRQ_LINE): Likewise.
14627 (GRUB_PCI_REG_IRQ_PIN): Likewise.
14628 (GRUB_PCI_REG_MIN_GNT): Likewise.
14629 (GRUB_PCI_REG_MAX_LAT): Likewise.
14630 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
14631 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
14632 * video/efi_uga.c (find_framebuf): Likewise.
14633 * video/sm712.c (grub_video_sm712_setup): Likewise.
14634 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
14637 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14639 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
14640 can be reliably determined to be supported.
14642 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14644 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
14645 that VESA is supported.
14646 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
14649 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14651 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
14653 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14655 * util/misc.c (make_system_path_relative_to_its_root): Work around
14656 special-casing of "/", as previous incarnation of this routine did.
14658 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14660 Fix any-emu compilation.
14662 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
14663 * grub_bin2h_SOURCES: New variable.
14665 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14667 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
14669 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
14671 * util/grub.d/00_header.in: Fix handling of locale_dir.
14673 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14675 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
14676 as possible unifont location (Gentoo).
14677 Reported by: Alexander Brüning
14679 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14681 Don't try to generate lists for kernel.img.
14683 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
14684 (pkglib_MODULES): Remove kernel.img.
14685 (kernel_img_EXPORTS): Removed.
14686 (kernel_img_RELOCATABLE): New variable.
14687 * conf/x86_64-efi.rmk: Likewise.
14688 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
14690 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14692 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
14693 grub_xasprintf or grub_snprintf.
14694 (grub_vsprintf): Likewise.
14695 (grub_snprintf): New proto.
14696 (grub_vsnprintf): Likewise.
14697 (grub_xasprintf): Likewise.
14698 (grub_xvasprintf): Likewise.
14699 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
14700 (grub_sprintf): Removed.
14701 (grub_vsnprintf): New function.
14702 (grub_snprintf): Likewise.
14703 (grub_xvasprintf): Likewise.
14704 (grub_xasprintf): Likewise.
14705 (grub_vsprintf): Renamed to ...
14706 (grub_vsnprintf_real): ...this. New argument max_len.
14708 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
14710 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
14711 fix grub-script-check warning.
14713 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14715 * include/grub/font.h (grub_font_load): Fix prototype.
14717 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14719 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
14721 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14723 * include/grub/x86_64/at_keyboard.h: New file.
14725 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14727 * loader/mips/linux.c: Include missing grub/i18n.h.
14729 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14731 * normal/menu.c (notify_execution_failure): Clarify error message.
14733 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14735 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
14736 return value (and revert all return statements). Update users.
14738 2010-01-20 Dan Merillat <debian@dan.merillat.org>
14740 * kern/device.c (grub_device_iterate): Allocate new part_ent
14741 structure based on sizeof (*p) rather than sizeof (p->next), to
14742 account for structure padding.
14744 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
14745 disk is NULL, which might happen for LVM physical volumes with no
14748 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14750 * loader/mips/linux.c (grub_cmd_initrd)
14751 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
14753 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
14755 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
14756 (grub_video_video_init, grub_video_bitmap_init)
14757 (grub_font_manager_init, grub_term_gfxterm_init)
14758 (grub_at_keyboard_init): New extern declarations.
14759 (grub_machine_init): Initialize gfxterm and at_keyboard.
14761 * kern/main.c (grub_main): Revert grub_printf delay kludge.
14763 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
14764 `gfxterm.mod' into core image.
14766 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
14767 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14768 (kernel_img_FORMAT): Copy to ...
14770 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
14771 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14772 (kernel_img_FORMAT): ... here, and ...
14774 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
14775 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14776 (kernel_img_FORMAT): ... here.
14778 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
14779 and input (at_keyboard) terminals in kernel.
14780 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
14782 (pkglib_MODULES): Remove `pci.mod'.
14783 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
14784 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
14785 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14786 (at_keyboard_mod_LDFLAGS): Remove variables.
14788 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
14790 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
14792 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
14794 * include/grub/mips/libgcc.h: Only export symbols for functions
14795 that libgcc provides.
14797 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
14801 * bus/bonito.c: New file.
14802 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
14803 GRUB_PCI_NUM_DEVICES.
14804 * term/i386/pc/serial.c: Move to ...
14805 * term/serial.c: ... here. All users updated.
14806 * util/i386/pc/grub-mkimage.c: Move to ...
14807 * util/grub-mkrawimage.c: ... here. All users updated.
14808 * term/i386/pc/at_keyboard.c: Move to ...
14809 * term/at_keyboard.c: ... here. All users updated.
14810 * conf/mips-qemu-mips.rmk: New file.
14811 * conf/mips-yeeloong.rmk: Likewise.
14812 * conf/mips.rmk: Likewise.
14813 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
14815 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
14817 (grub_ata_pciinit): Support CS5536.
14818 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
14819 * font/font_cmd.c (loadfont_command): Open file before passing it to
14821 (pseudo_file_read): New function.
14822 (pseudo_file_close): Likewise.
14823 (pseudo_fs): New structure.
14824 (load_font_module): New function.
14825 (GRUB_MOD_INIT(font_manager)): Load embedded font.
14826 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
14827 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
14828 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
14829 * include/grub/i386/at_keyboard.h: Split into ...
14830 * include/grub/at_keyboard.h: ... this ...
14831 * include/grub/i386/at_keyboard.h: ... and this.
14832 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
14834 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
14836 (grub_elf64_size): Likewise.
14837 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
14839 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
14840 * include/grub/i386/coreboot/serial.h: Rewritten.
14841 * include/grub/i386/ieee1275/serial.h: Include
14842 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
14843 * include/grub/i386/pc/serial.h: Moved from here ...
14844 * include/grub/serial.h: ... to here. All users updated.
14845 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
14846 (GRUB_PCI_NUM_BUS): Likewise.
14847 (GRUB_PCI_NUM_DEVICES): Likewise.
14848 (grub_pci_device_map_range): Add missing volatile keyword.
14849 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
14850 * include/grub/mips/at_keyboard.h: New file.
14851 * include/grub/mips/cache.h: Likewise.
14852 * include/grub/mips/io.h: Likewise.
14853 * include/grub/mips/kernel.h: Likewise.
14854 * include/grub/mips/libgcc.h: Likewise.
14855 * include/grub/mips/pci.h: Likewise.
14856 * include/grub/mips/qemu-mips/boot.h: Likewise.
14857 * include/grub/mips/qemu-mips/kernel.h: Likewise.
14858 * include/grub/mips/qemu-mips/loader.h: Likewise.
14859 * include/grub/mips/qemu-mips/memory.h: Likewise.
14860 * include/grub/mips/qemu-mips/serial.h: Likewise.
14861 * include/grub/mips/qemu-mips/time.h: Likewise.
14862 * include/grub/mips/relocator.h: Likewise.
14863 * include/grub/mips/time.h: Likewise.
14864 * include/grub/mips/types.h: Likewise.
14865 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
14866 * include/grub/mips/yeeloong/boot.h: Likewise.
14867 * include/grub/mips/yeeloong/kernel.h: Likewise.
14868 * include/grub/mips/yeeloong/loader.h: Likewise.
14869 * include/grub/mips/yeeloong/memory.h: Likewise.
14870 * include/grub/mips/yeeloong/pci.h: Likewise.
14871 * include/grub/mips/yeeloong/serial.h: Likewise.
14872 * include/grub/mips/yeeloong/time.h: Likewise.
14873 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
14874 * kern/elf.c (grub_elf32_size): New parameter. All users
14876 (grub_elf64_size): Likewise.
14877 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
14878 Load modules before saying "Welcome to GRUB!".
14879 Call grub_refresh after saying "Welcome to GRUB!".
14880 * kern/mips/cache.S: New file.
14881 * kern/mips/cache_flush.S: Likewise.
14882 * kern/mips/dl.c: Likewise.
14883 * kern/mips/init.c: Likewise.
14884 * kern/mips/qemu-mips/init.c: Likewise.
14885 * kern/mips/startup.S: Likewise.
14886 * kern/mips/yeeloong/init.c: Likewise.
14887 * kern/term.c (grub_putcode): Handle NULL terminal.
14888 (grub_getcharwidth): Likewise.
14889 (grub_getkey): Likewise.
14890 (grub_checkkey): Likewise.
14891 (grub_getkeystatus): Likewise.
14892 (grub_getxy): Likewise.
14893 (grub_getwh): Likewise.
14894 (grub_gotoxy): Likewise.
14895 (grub_cls): Likewise.
14896 (grub_setcolorstate): Likewise.
14897 (grub_setcolor): Likewise.
14898 (grub_getcolor): Likewise.
14899 (grub_refresh): Likewise.
14900 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
14901 (write_jump): Add hatch nop.
14902 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
14903 * lib/mips/setjmp.S: New file.
14904 * loader/mips/linux.c: Likewise.
14905 * term/i386/pc/at_keyboard.c: Move from here ...
14906 * term/at_keyboard.c: ... to here.
14907 * term/i386/pc/serial.c: Moved from here ...
14908 * term/serial.c: ... to here. All users updated.
14909 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
14910 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
14911 (serial_translate_key_sequence): Avoid deadlock.
14912 (grub_serial_getkey): Handle backspace.
14913 (grub_serial_putchar): Fix newline handling.
14914 * util/i386/pc/grub-mkimage.c: Move from here ...
14915 * util/grub-mkrawimage.c: ... to here. All users updated.
14916 (generate_image): New parameters 'font_path' and 'format'.
14917 Support embedding font.
14918 Use grub_host_to_target* instead of grub_cpu_to_le*.
14919 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
14920 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
14921 (options): New option "--font".
14923 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
14924 (main): Handle "--font".
14925 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
14926 (grub_virtual_screen_setup): Set bg_color_display.
14927 (redraw_screen_rect): Use bg_color_display instead of incorrect
14929 (grub_gfxterm_cls): Likewise.
14930 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
14931 Support embedding config file.
14932 (add_segments): Likewise.
14933 (options): New option "--config".
14934 (main): Handle "--config".
14935 * video/sm712.c: New file.
14937 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14939 Fix parallel builds.
14941 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
14942 font.c depend on ascii.h).
14944 2010-01-12 Carles Pina i Estany <carles@pina.cat>
14946 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
14948 2010-01-11 Carles Pina i Estany <carles@pina.cat>
14950 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
14951 By default: disabled.
14952 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
14955 2010-01-10 Carles Pina i Estany <carles@pina.cat>
14957 * font/font.c: Update copyright years.
14958 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
14960 2010-01-10 Carles Pina i Estany <carles@pina.cat>
14962 * font/font.c: Include `ascii.h'.
14963 (ASCII_BITMAP_SIZE): New macro.
14964 (ascii_font_glyph): Define.
14965 (ascii_glyph_lookup): New function.
14966 (grub_font_get_string_width): Change comment. If glyph not found, use
14967 ascii_glyph_lookup.
14968 (grub_font_get_glyph_with_fallback): If glyph not available returns
14969 ascii_glyph_lookup.
14970 * util/grub-mkfont.c (file_formats): New enum.
14971 (options): Add `ascii-bitmaps' new option.
14972 (usage): Add `asii-bitmaps' new option.
14973 (write_font_ascii_bitmap): New function.
14974 (write_font): Rename to ...
14975 (write_font_p2): ... this. Remove print_glyphs call.
14976 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
14977 used. Call print_glyphs.
14978 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
14980 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
14982 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
14983 (grub_bin2h_SOURCES): New variable.
14984 * util/bin2h.c: New file.
14986 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14988 * include/multiboot.h: Resynced with spec.
14989 * include/multiboot2.h: Likewise.
14990 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
14991 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
14993 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
14995 * include/grub/term.h (grub_term_register_input,
14996 grub_term_register_output): Check return of terminal init()
14997 routines, and abort if errors are raised.
14999 * commands/terminal.c: Update copyright year.
15001 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
15003 * commands/terminal.c (grub_cmd_terminal_input)
15004 (grub_cmd_terminal_output): Check return of terminal init()
15005 routines, and abort if errors are raised.
15007 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
15009 * include/grub/i386/bsd.h: Fix include pathes.
15011 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
15013 Add missing *BSD copyright headers.
15015 * include/grub/aout.h: Add BSD licence.
15016 * include/grub/i386/bsd.h: Parts under different licences moved to ...
15017 * include/grub/i386/freebsd_linker.h: ... here,
15018 * include/grub/i386/freebsd_reboot.h: ... here,
15019 * include/grub/i386/netbsd_bootinfo.h: ... here,
15020 * include/grub/i386/netbsd_reboot.h: ... here,
15021 * include/grub/i386/openbsd_bootarg.h: ... here,
15022 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
15023 licence to each file.
15025 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
15027 * acinclude.m4: Remove `nop' assembly instruction; it's not
15028 implemented by all architectures.
15030 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
15032 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
15033 ELILO. This is no longer necessary.
15035 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
15037 Added new tool, grub-scrit-check to verify grub.cfg syntax.
15039 * util/grub-script-check.c: grub-script-check tool.
15040 * conf/common.rmk: Make rules for grub-script-check.
15042 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
15044 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
15045 spotting it back in 2008. Shame on me for forgetting he did.
15047 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
15049 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
15051 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
15052 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
15053 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
15054 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
15055 (GRUB_VIDEO_TYPE_EFI): Rename to ...
15056 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
15058 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
15060 * include/grub/test.h: Add license header.
15061 * tests/example_functional_test.c: Likewise.
15062 * tests/example_unit_test.c: Likewise.
15063 * tests/lib/functional_test.c: Likewise.
15064 * tests/lib/test.c: Likewise.
15065 * tests/lib/unit_test.c: Likewise.
15067 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
15069 Use flag-based instead of hook-based video mode selection and "auto"
15072 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
15073 (grub_video_set_mode): Changed prototype. All users updated.
15074 (grub_video_check_mode_flag): New inline function.
15075 * video/video.c (parse_modespec): New function.
15076 (grub_video_set_mode): Parse flags and keywords.
15078 2010-01-17 Carles Pina i Estany <carles@pina.cat>
15080 * util/misc.c (grub_util_info): Fix the order of the parameters in a
15083 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
15085 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
15087 2010-01-16 Carles Pina i Estany <carles@pina.cat>
15089 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
15091 * util/grub-emu.c (usage): Likewise.
15092 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
15093 * util/i386/efi/grub-mkimage.c (usage): Likewise.
15094 * util/i386/pc/grub-mkimage.c (usage): Likewise.
15095 * util/i386/pc/grub-setup.c (usage): Likewise.
15097 2010-01-16 Carles Pina i Estany <carles@pina.cat>
15099 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
15101 (grub_util_info): Likewise.
15102 (grub_util_error): Likewise.
15103 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
15104 and/or new lines in `grub_util_warna', `grub_util_info',
15105 `grub_util_error' calls.
15106 * util/getroot.c: Likewise.
15107 * util/grub-editenv.c: Likewise.
15108 * util/grub-emu.c: Likewise.
15109 * util/grub-fstest.c: Likewise.
15110 * util/grub-mkdevicemap.c: Likewise.
15111 * util/grub-mkfont.c: Likewise.
15112 * util/grub-mkpasswd-pbkdf2.c: Likewise.
15113 * util/grub-mkrelpath.c: Likewise.
15114 * util/grub-pe2elf.c: Likewise.
15115 * util/grub-probe.c: Likewise.
15116 * util/hostdisk.c: Likewise.
15117 * util/i386/efi/grub-mkimage.c: Likewise.
15118 * util/i386/pc/grub-mkimage.c: Likewise.
15119 * util/i386/pc/grub-setup.c: Likewise.
15120 * util/ieee1275/ofpath.c: Likewise.
15121 * util/mkisofs/eltorito.c: Likewise.
15122 * util/mkisofs/rock.c: Likewise.
15123 * util/mkisofs/write.c: Likewise.
15124 * util/raid.c: Likewise.
15125 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
15126 * util/sparc64/ieee1275/grub-setup.c: Likewise.
15128 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
15130 Enable multiboot on non-pc.
15132 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
15133 multiboot.mod and multiboot2.mod to ...
15134 * conf/i386.rmk (pkglib_MODULES): ... here.
15135 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
15137 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
15138 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
15140 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
15141 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
15143 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
15144 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
15146 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
15147 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
15149 (ata_mod_SOURCES): Removed.
15150 (ata_mod_CFLAGS): Likewise.
15151 (ata_mod_LDFLAGS): Likewise.
15152 (relocator_mod_SOURCES): Removed.
15153 (relocator_mod_CFLAGS): Likewise.
15154 (relocator_mod_ASFLAGS): Likewise.
15155 (relocator_mod_LDFLAGS): Likewise.
15157 * include/grub/x86_64/multiboot.h: New file.
15158 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
15161 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
15163 Video multiboot support.
15165 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
15167 * include/multiboot.h: Resynced with multiboot specification.
15168 * include/multiboot2.h: Likewise.
15169 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
15170 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
15171 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
15172 (HAS_VGA_TEXT): Likewise.
15173 (accepts_video): New variable.
15174 (grub_multiboot_set_accepts_video): New function.
15175 (grub_multiboot_get_mbi_size): Account for video structures.
15176 (set_video_mode): New function.
15177 (retrieve_video_parameters): Likewise.
15178 (grub_multiboot_make_mbi): Fill video fields.
15180 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
15184 * include/grub/video.h (grub_video_driver_id): New type.
15185 (grub_video_adapter): New member 'id'. All users updated.
15186 (grub_video_get_driver_id): New proto.
15187 * video/video.c (grub_video_get_driver_id): New function.
15189 2010-01-14 Carles Pina i Estany <carles@pina.cat>
15191 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
15194 2010-01-14 Carles Pina i Estany <carles@pina.cat>
15196 * normal/cmdline.c (print_completion): Gettextizze.
15198 2001-01-14 Carles Pina i Estany <carles@pina.cat>
15200 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
15202 2010-01-14 Carles Pina i Estany <carles@pina.cat>
15204 * gettext/gettext.c (grub_gettext_translate): Push and pop
15206 (grub_gettext_delete_list): Change comment style.
15207 * kern/err.c (grub_error): Gettextizze.
15208 (grub_fatal): Gettextizze.
15210 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
15212 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
15213 (grub_linux16_real_boot): ... this.
15214 * kern/i386/loader.S: Likewise.
15215 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
15216 (grub_linux16_boot): New function. Switches to text mode and calls
15217 grub_linux16_real_boot().
15219 * loader/i386/bsd.c: Include `<grub/video.h>'.
15220 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
15221 text mode before calling grub_unix_real_boot().
15223 * loader/i386/multiboot.c: Include `<grub/video.h>'.
15224 (grub_multiboot_boot): Switch to text mode before calling
15225 grub_relocator32_boot().
15227 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
15228 (grub_chainloader_boot): Switch to text mode before calling
15229 grub_chainloader_real_boot().
15231 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
15232 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15234 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
15237 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
15238 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15240 * util/grub.d/00_header.in: Define a "savedefault" function for use
15242 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
15244 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
15245 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15247 * util/grub-mkconfig_lib.in (save_default_entry): Only set
15248 saved_entry if boot_once is unset.
15249 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
15250 previous saved entry (i.e. grub-reboot).
15252 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
15254 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
15256 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
15258 * util/grub.d/00_header.in: Use `set var=val' rather than plain
15260 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
15262 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
15264 * util/grub-reboot.in: Fix --version output.
15265 * util/grub-set-default.in: Likewise.
15267 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
15269 * util/grub.d/00_header.in: Silently ignore zero-sized environment
15272 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
15274 * util/grub.d/00_header.in: Quote the value assigned to `default',
15275 in case it contains spaces.
15277 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
15279 * util/grub.d/30_os-prober.in: Fix merge error that moved a
15280 `save_default_entry' call from the macosx case to the linux case.
15282 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15283 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
15285 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
15286 in `chosen' environment variable.
15287 * normal/menu_text.c (get_entry_number): Check if the variable
15288 matches the title of a menu entry.
15289 (run_menu): Pass menu to get_entry_number.
15291 * util/grub-reboot.in: New file.
15292 * util/grub-set-default.in: New file.
15293 * conf/common.rmk (grub-reboot): New utility.
15294 (grub-set-default): New utility.
15296 * util/grub-mkconfig_lib.in (save_default_entry): New function.
15297 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
15298 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
15299 move it to `saved_entry' for the next boot. Load environment on
15301 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
15302 * util/grub.d/10_hurd.in: Likewise.
15303 * util/grub.d/10_linux.in (linux_entry): Likewise.
15304 * util/grub.d/10_windows.in: Likewise.
15305 * util/grub.d/30_os-prober.in: Likewise.
15307 * util/grub-install.in: Create environment block.
15308 * util/i386/efi/grub-install.in: Likewise.
15309 * util/ieee1275/grub-install.in: Likewise.
15310 * util/sparc64/ieee1275/grub-install.in: Likewise.
15312 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
15314 Unit testing framework for GRUB.
15316 * Makefile.in: Test framework build rules for 'make check'.
15317 * conf/tests.rmk: Build rules for individual tests and framework.
15319 * include/grub/test.h: Header file for whitebox tests.
15320 * tests/lib/functional_test.c: Framework support for whitebox
15322 * tests/lib/test.c: Common whitebox testing code for unit and
15324 * tests/lib/unit_test.c: Framework support for whitebox unit
15327 * tests/util/grub-shell-tester.in: Support utility for grub-script
15329 * tests/util/grub-shell.in: Utility to execute grub-script
15330 commands in a Qemu instance.
15332 * tests/example_functional_test.c: Example whitebox functional
15334 * tests/example_grub_script_test.in: Example grub-script test.
15335 * tests/example_scripted_test.in: Example scripted test.
15336 * tests/example_unit_test.c: Example whitebox unit test.
15338 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15340 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
15341 Add loader/i386/multiboot_mbi.c.
15342 (multiboot2_mod_SOURCES): Likewise.
15343 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
15344 (multiboot2_mod_SOURCES): Likewise.
15345 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
15346 (grub_multiboot_make_mbi): Likewise.
15347 (grub_multiboot_free_mbi): Likewise.
15348 (grub_multiboot_init_mbi): Likewise.
15349 (grub_multiboot_add_module): Likewise.
15350 (grub_multiboot_set_bootdev): Likewise.
15351 * loader/i386/multiboot.c (mbi): Removed.
15352 (mbi_dest): Likewise.
15353 (alloc_mbi): New variable.
15354 (grub_multiboot_payload_size): Removed. All users updated.
15355 (grub_multiboot_pure_size): New variable.
15356 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
15357 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
15358 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
15359 (grub_fill_multiboot_mmap): Likewise.
15360 (grub_multiboot_get_bootdev): Likewise.
15361 (grub_multiboot): Use multiboot_mbi functions.
15362 * loader/i386/multiboot_mbi.c: New file.
15364 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15366 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
15367 it would result in module crash.
15369 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15371 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
15372 (grub_ofconsole_getwh): Split to ...
15373 (grub_ofconsole_getwh): ... this.
15374 (grub_ofconsole_dimensions): ...and this.
15375 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
15377 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
15379 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
15381 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15383 * loader/i386/pc/multiboot2.c: Removed stalled file.
15385 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15387 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
15388 Reported by: Grégoire Sutre
15390 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
15392 * util/misc.c (canonicalize_file_name): New function.
15393 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
15394 instead of realpath().
15396 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
15398 * util/grub-install.in (usage): Clarify meaning of --root-directory,
15399 and make it clearer that it's optional. Based on confusion
15402 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15404 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
15405 in premature implicit newline.
15407 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15409 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
15410 which resulted in garbled command line at the end of screen.
15412 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
15414 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
15415 initialization with similar approach as with other Linux loaders.
15417 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
15419 Fix i386-ieee1275 build.
15421 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
15422 and grub_term_height() for video_{width,height} initialization.
15424 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
15426 Fix grub-emu build.
15428 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
15430 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15431 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
15433 Support for multiple terminals.
15435 * Makefile.in (pkglib_DATA): terminal.lst.
15436 (terminal.lst): New target.
15437 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
15438 (GRUB_MOD_INIT(handler)): Likewise.
15439 (GRUB_MOD_FINI(handler)): Likewise.
15440 * commands/help.c (grub_cmd_help): Handle multiple terminals.
15441 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
15442 * commands/sleep.c (do_print): Use grub_term_restore_pos.
15443 (grub_cmd_sleep): Use grub_term_save_pos.
15444 * commands/terminal.c: New file.
15445 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
15446 commands/terminal.c and lib/charset.c.
15447 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
15448 (pkglib_MODULES): Add terminal.mod.
15449 (terminal_mod_SOURCES): New variable.
15450 (terminal_mod_CFLAGS): Likewise.
15451 (terminal_mod_LDFLAGS): Likewise.
15452 * genhandlerlist.sh: Don't handle terminals.
15453 * genmk.rb: Generate terminal-*.lst.
15454 * genterminallist.sh: New file.
15455 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
15456 (grub_is_valid_utf8): Likewise.
15457 (grub_utf8_to_ucs4_alloc): Likewise.
15458 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
15459 (grub_menu_register_viewer): Changed argument.
15460 (grub_menu_try_text): New proto.
15461 (grub_gfxmenu_try_hook): New declaration.
15462 * include/grub/normal.h (grub_normal_exit_level): New declaration.
15463 (grub_menu_init_page): Additional argument term.
15464 (grub_normal_init_page): Likewise.
15465 (grub_cmdline_get): Arguments simplified.
15466 (grub_utf8_to_ucs4_alloc): Removed.
15467 (grub_print_ucs4): Additional argument term.
15468 (grub_getstringwidth): Likewise.
15469 (grub_print_message_indented): Likewise.
15470 (grub_menu_text_register_instances): New proto.
15471 (grub_show_menu): Likewise.
15472 (read_terminal_list): Likewise.
15473 (grub_set_more): Likewise.
15474 * include/grub/parser.h: Include handler.h.
15475 * include/grub/reader.h: Rewritten.
15476 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
15477 (GRUB_TERM_WIDTH): Changed to function.
15478 (GRUB_TERM_HEIGHT): Likewise.
15479 (GRUB_TERM_BORDER_WIDTH): Likewise.
15480 (GRUB_TERM_BORDER_HEIGHT): Likewise.
15481 (GRUB_TERM_NUM_ENTRIES): Likewise.
15482 (GRUB_TERM_ENTRY_WIDTH): Likewise.
15483 (GRUB_TERM_CURSOR_X): Likewise.
15484 (grub_term_input_class): Likewise.
15485 (grub_term_output_class): Likewise.
15486 (grub_term_outputs_disabled): New declaration.
15487 (grub_term_inputs_disabled): Likewise.
15488 (grub_term_outputs): Likewise.
15489 (grub_term_inputs): Likewise.
15490 (grub_term_register_input): Rewritten.
15491 (grub_term_register_output): Likewise.
15492 (grub_term_unregister_input): Likewise.
15493 (grub_term_unregister_output): Likewise.
15494 (FOR_ACTIVE_TERM_INPUTS): New macro.
15495 (FOR_DISABLED_TERM_INPUTS): Likewise.
15496 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
15497 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
15498 * include/grub/terminfo.h: Add oterm argument to all protypes.
15499 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
15500 Use grub_rescue_run.
15501 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
15503 * kern/reader.c: Removed. All users updated.
15504 * kern/rescue_reader.c (grub_rescue_init): Removed.
15505 (grub_rescue_reader): Likewise.
15506 (grub_register_rescue_reader): Likewise.
15507 (grub_rescue_run): New function based on kern/reader.c.
15508 * kern/term.c: Adapted for multiterm.
15509 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
15510 (grub_is_valid_utf8): Likewise.
15511 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
15512 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
15514 * loader/i386/linux.c (grub_linux_boot): Likewise.
15515 * normal/auth.c (grub_username_get): New function.
15516 (grub_auth_check_authentication): Use grub_username_get.
15517 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
15518 * normal/color.c: Adapt for multiterm.
15519 * normal/main.c (read_config_file): Don't use grub_reader_loop.
15520 (grub_normal_init_page): Additional argument term.
15521 (read_lists): Call read_terminal_lists.
15522 (grub_enter_normal_mode): Call grub_cmdline_run.
15523 Handle grub_normal_exit_level.
15524 (grub_cmd_normal): Make reentrant.
15525 (grub_cmd_normal_exit): New function.
15526 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
15527 * normal/menu.c: Adapt for multiterm.
15528 * normal/menu_entry.c: Likewise.
15529 * normal/menu_text.c: Likewise.
15530 * normal/menu_viewer.c: Removed. All users updated.
15531 * normal/term.c: New file.
15532 * util/console.c: Change order of includes to workaround a bug in
15534 * term/terminfo.c: New argument oterm on all exported functions.
15536 * util/grub-editenv.c (grub_term_input_class): Removed.
15537 (grub_term_output_class): Likewise.
15539 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
15541 Make loader output a bit more user-friendly.
15543 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
15544 is being loaded. Likewise for the Hurd.
15546 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
15547 that kernel of FreeBSD ${version} is being loaded.
15549 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
15551 (grub_cmd_initrd): Likewise.
15552 * util/grub.d/10_linux.in (linux_entry): Print message indicating
15553 that Linux ${version} is being loaded. Likewise for initrd.
15555 2010-01-09 Carles Pina i Estany <carles@pina.cat>
15557 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
15559 2010-01-08 Carles Pina i Estany <carles@pina.cat>
15561 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
15562 (GRUB_MOD_INIT): Gettextizze.
15563 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
15564 (GRUB_MOD_INIT): Gettextizze.
15565 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
15566 (grub_cmd_linux): Capitalise Linux.
15567 (GRUB_MOD_INIT): Gettextizze.
15568 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
15569 (grub_cmd_linux): Capitalise Linux.
15570 (GRUB_MOD_INIT): Gettextizze.
15571 * loader/i386/linux.c: Include `<grub/i18n.h>'.
15572 (grub_cmd_linux): Capitalise Linux.
15573 (GRUB_MOD_INIT): Gettextizze.
15574 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
15575 (GRUB_MOD_INIT): Gettextizze.
15576 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
15577 (grub_cmd_linux): Capitalise Linux.
15578 (GRUB_MOD_INIT): Gettextizze.
15579 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
15580 (grub_cpu_xnu_init): Gettextizze.
15581 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
15582 (GRUB_MOD_INIT): Gettextizze.
15583 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
15584 (GRUB_MOD_INIT): Gettextizze.
15585 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
15586 (grub_linux_load64): Capitalise Linux.
15587 (GRUB_MOD_INIT): Gettextizze.
15588 * loader/xnu.c: Include `<grub/i18n.h>'.
15589 (GRUB_MOD_INIT): Gettextizze.
15590 * po/POTFILES: Add `loader/efi/appleloader.c',
15591 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
15592 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
15593 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
15594 `loader/i386/xnu.c', `loader/multiboot_loader.c',
15595 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
15596 and `loader/xnu.c'.
15598 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
15600 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
15602 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
15604 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
15605 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
15606 * util/mkisofs/mkisofs.c (main): Readjust --version output.
15608 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15610 Reset Multiboot 2 support. New loader implements the draft in
15611 /branches/multiboot2 and shares as much code as possible with the
15612 production Multiboot 1 implementation.
15614 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
15615 * loader/multiboot2.c: Likewise.
15616 * loader/i386/multiboot_helper.S: Likewise.
15617 * include/multiboot2.h: Replace with latest version from the draft
15618 in /branches/multiboot2.
15620 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
15621 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
15622 and `loader/multiboot2.c'.
15623 (pkglib_MODULES): Add `multiboot2.mod'.
15624 (multiboot2_mod_SOURCES): New variable.
15625 (multiboot2_mod_LDFLAGS): Likewise.
15626 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
15628 * conf/i386-pc.rmk: Likewise.
15630 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
15631 (multiboot_mod_SOURCES): Remove variable.
15632 (multiboot_mod_LDFLAGS): Likewise.
15633 (multiboot_mod_CFLAGS): Likewise.
15635 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
15636 `<multiboot2.h>' instead of `<multiboot.h>'.
15637 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
15638 (MULTIBOOT_HEADER_MAGIC): New macros.
15640 * loader/multiboot_loader.c (module_version_status): Remove variable.
15641 (find_multi_boot2_header): Remove function.
15642 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
15643 logic. Always check for the Multiboot version we're compiling for.
15644 (grub_cmd_module_loader): Likewise.
15645 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
15646 command instead of `multiboot'.
15648 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15650 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
15651 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
15654 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15655 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15657 Fix breakage introduced with previous commit.
15659 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
15661 * normal/handler.c (read_handler_list): Revert part of previous commit
15662 affecting this file.
15663 * normal/main.c (read_lists): Move read_handler_list() call back to ...
15664 (grub_normal_execute): ... here.
15666 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
15668 Merge prefix-redefinition-fix branch.
15670 * normal/autofs.c (read_fs_list): Make function capable of being
15671 run multiple times, gracefuly replacing the previous data
15673 * normal/dyncmd.c (read_command_list): Likewise.
15674 * normal/handler.c (read_handler_list): Likewise.
15675 * normal/main.c (read_lists): New function. Calls all the
15676 list reading functions.
15677 (grub_normal_execute): Use read_lists() instead of calling all
15678 list reading functions explicitly. Register read_lists() as a
15679 variable hook attached to ${prefix}.
15681 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15683 Merge crypto branch.
15685 * Makefile.in (pkglib_DATA): Add crypto.lst.
15686 (crypto.lst): New target.
15687 * commands/hashsum.c: New file.
15688 * commands/password.c (check_password): Use grub_crypto_memcmp.
15689 * commands/password_pbkdf2.c: New file.
15690 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
15691 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
15692 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
15693 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
15694 -I$(srcdir)/lib/libgcrypt_wrap.
15695 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
15696 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
15697 password_pbkdf2.mod.
15698 (crypto_mod_SOURCES): New variable.
15699 (crypto_mod_CFLAGS): Likewise.
15700 (crypto_mod_LDFLAGS): Likewise.
15701 (hashsum_mod_SOURCES): New variable.
15702 (hashsum_mod_CFLAGS): Likewise.
15703 (hashsum_mod_LDFLAGS): Likewise.
15704 (pbkdf2_mod_SOURCES): New variable.
15705 (pbkdf2_mod_CFLAGS): Likewise.
15706 (pbkdf2_mod_LDFLAGS): Likewise.
15707 (password_pbkdf2_mod_SOURCES): New variable.
15708 (password_pbkdf2_mod_CFLAGS): Likewise.
15709 (password_pbkdf2_mod_LDFLAGS): Likewise.
15710 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
15711 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
15712 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
15713 Include conf/gcry.rmk.
15714 * include/grub/auth.h: Rewritten.
15715 * include/grub/crypto.h: New file.
15716 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
15717 * include/grub/normal.h (read_crypto_list): New prototype.
15718 * lib/crypto.c: New file.
15719 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
15720 * lib/pbkdf2.c: Likewise.
15721 * normal/auth.c (grub_auth_strcmp): Removed.
15722 (grub_iswordseparator): Likewise.
15723 (grub_auth_strword): Likewise.
15724 (is_authenticated): Use grub_strword.
15725 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
15726 and grub_strword. Pass entered password to authentication callback.
15727 * normal/crypto.c: New file.
15728 * normal/main.c: Call read_crypto_list.
15729 * util/grub-mkpasswd-pbkdf2.c: New file.
15730 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
15732 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
15734 Fix descent and ascent calculation.
15736 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
15737 (options): New option "asce".
15739 (add_char): Ignore invalid glyphs for descent calculation.
15740 Calculate ascent from actual content.
15741 (print_glyphs): Use 'asce'.
15742 (write_font): Likewise. Allow ascent override.
15743 (main): Handle "asce" option.
15745 2010-01-06 Carles Pina i Estany <carles@pina.cat>
15747 * kern/err.c: Include `<grub/i18n.h>'.
15748 (grub_print_error): Add full stop. Gettextizze.
15749 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
15750 (grub_bsd_load_elf): Capitalise ELF.
15751 (grub_cmd_freebsd_loadenv): Add `s' in error string.
15752 (grub_cmd_freebsd_module): Likewise.
15753 (grub_cmd_freebsd_module_elf): Likewise.
15754 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
15756 2010-01-06 Carles Pina i Estany <carles@pina.cat>
15758 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
15759 * commands/search_file.c (HELP_MESSAGE): New macro.
15760 * commands/search_label.c (HELP_MESSAGE): Likewise.
15761 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
15762 * po/POTFILES: Add `commands/search_file.c',
15763 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
15764 `commands/search.c'.
15766 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
15768 * config.rpath: Update from Gnulib.
15770 2010-01-05 Yves Blusseau <blusseau@zetam.org>
15772 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
15774 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
15776 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
15778 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15780 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
15781 arguments to fread so that we get a return value in bytes, rather
15782 than something that will normally be rounded down to 0.
15783 Adjust error handling to avoid producing garbage when size_t is not
15784 the same size as long long.
15786 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
15788 * util/mkisofs/write.c (padblock_write): Check return value of
15791 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
15793 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
15796 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
15798 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
15800 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
15801 instead of manual alignment.
15802 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
15803 verbose). Avoid attempts to read past end of the device
15804 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
15805 but GRUB_DISK_CACHE_SIZE may exceed that).
15807 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
15809 * commands/crc.c (grub_cmd_crc): Abort on read errors.
15810 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
15813 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15815 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
15817 (grub_efi_piwg_device_path): New structure
15818 (grub_efi_piwg_device_path_t): New type.
15819 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
15820 (devpath_1): Transform to a structure. All users updated.
15821 (devpath_2): Likewise.
15822 (devpath_3): Likewise.
15823 (devpath_4): Likewise.
15824 (devpath_5): Likewise.
15826 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15828 * loader/efi/appleloader.c: Restored. Update all users.
15830 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
15832 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
15834 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
15835 (struct boot_blocklist): Move from here ...
15836 * include/grub/i386/pc/boot.h [ASM_FILE]
15837 (struct grub_boot_blocklist): ... to here. Update all users.
15838 (setup): Only initialize `start' member of `first_block'
15839 structure. Add assert() calls to verify the other members.
15841 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
15842 (generate_image): Fix broken blocklist length initialization.
15843 Add assert() call to verify blocklist `segment' field.
15845 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
15847 * loader/efi/appleloader.c: Remove. Update all users.
15849 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
15851 * boot/i386/pc/boot.S: Update copyright year.
15852 * boot/i386/pc/cdboot.S: Likewise.
15853 * boot/i386/pc/diskboot.S: Likewise.
15854 * boot/i386/pc/lnxboot.S: Likewise.
15855 * boot/i386/pc/pxeboot.S: Likewise.
15856 * bus/pci.c: Likewise.
15857 * commands/cmp.c: Likewise.
15858 * commands/help.c: Likewise.
15859 * commands/hexdump.c: Likewise.
15860 * commands/i386/pc/halt.c: Likewise.
15861 * commands/i386/pc/play.c: Likewise.
15862 * commands/i386/pc/vbeinfo.c: Likewise.
15863 * commands/ls.c: Likewise.
15864 * commands/test.c: Likewise.
15865 * disk/dmraid_nvidia.c: Likewise.
15866 * disk/i386/pc/biosdisk.c: Likewise.
15867 * disk/ieee1275/nand.c: Likewise.
15868 * disk/ieee1275/ofdisk.c: Likewise.
15869 * disk/lvm.c: Likewise.
15870 * disk/raid.c: Likewise.
15871 * disk/raid6_recover.c: Likewise.
15872 * disk/scsi.c: Likewise.
15873 * fs/affs.c: Likewise.
15874 * fs/cpio.c: Likewise.
15875 * fs/ext2.c: Likewise.
15876 * fs/hfs.c: Likewise.
15877 * fs/iso9660.c: Likewise.
15878 * fs/ntfs.c: Likewise.
15879 * fs/sfs.c: Likewise.
15880 * fs/udf.c: Likewise.
15881 * fs/ufs.c: Likewise.
15882 * fs/xfs.c: Likewise.
15883 * gencmdlist.sh: Likewise.
15884 * genmk.rb: Likewise.
15885 * include/grub/disk.h: Likewise.
15886 * include/grub/efi/api.h: Likewise.
15887 * include/grub/efi/efi.h: Likewise.
15888 * include/grub/efi/pe32.h: Likewise.
15889 * include/grub/elf.h: Likewise.
15890 * include/grub/fs.h: Likewise.
15891 * include/grub/i386/at_keyboard.h: Likewise.
15892 * include/grub/i386/pc/memory.h: Likewise.
15893 * include/grub/i386/pc/vbe.h: Likewise.
15894 * include/grub/i386/pci.h: Likewise.
15895 * include/grub/i386/tsc.h: Likewise.
15896 * include/grub/ieee1275/ieee1275.h: Likewise.
15897 * include/grub/ntfs.h: Likewise.
15898 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
15899 * include/grub/sparc64/libgcc.h: Likewise.
15900 * include/grub/symbol.h: Likewise.
15901 * include/grub/types.h: Likewise.
15902 * include/multiboot2.h: Likewise.
15903 * io/gzio.c: Likewise.
15904 * kern/device.c: Likewise.
15905 * kern/disk.c: Likewise.
15906 * kern/efi/efi.c: Likewise.
15907 * kern/efi/mm.c: Likewise.
15908 * kern/elf.c: Likewise.
15909 * kern/file.c: Likewise.
15910 * kern/i386/dl.c: Likewise.
15911 * kern/i386/pc/init.c: Likewise.
15912 * kern/i386/pc/startup.S: Likewise.
15913 * kern/ieee1275/ieee1275.c: Likewise.
15914 * kern/ieee1275/init.c: Likewise.
15915 * kern/main.c: Likewise.
15916 * kern/mm.c: Likewise.
15917 * kern/powerpc/dl.c: Likewise.
15918 * kern/sparc64/dl.c: Likewise.
15919 * kern/x86_64/dl.c: Likewise.
15920 * lib/hexdump.c: Likewise.
15921 * loader/efi/appleloader.c: Likewise.
15922 * loader/i386/ieee1275/linux.c: Likewise.
15923 * loader/i386/pc/chainloader.c: Likewise.
15924 * loader/i386/pc/linux.c: Likewise.
15925 * loader/i386/pc/multiboot2.c: Likewise.
15926 * loader/ieee1275/multiboot2.c: Likewise.
15927 * loader/multiboot2.c: Likewise.
15928 * loader/multiboot_loader.c: Likewise.
15929 * loader/powerpc/ieee1275/linux.c: Likewise.
15930 * normal/completion.c: Likewise.
15931 * normal/menu_entry.c: Likewise.
15932 * partmap/apple.c: Likewise.
15933 * util/grub.d/10_hurd.in: Likewise.
15934 * util/hostfs.c: Likewise.
15935 * video/readers/png.c: Likewise.
15937 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
15939 * include/grub/misc.h (GNUC_PREREQ): New macro.
15940 (ATTRIBUTE_ERROR): New macro.
15941 * include/grub/list.h (grub_bad_type_cast_real): Use
15944 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15946 * normal/menu_text.c (print_message): Change messages.
15948 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15950 * normal/menu_entry.c (store_completion): Gettextizze.
15952 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15954 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
15956 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15958 * po/POTFILES: Sort correctly.
15960 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15962 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
15963 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
15964 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
15966 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
15967 summary. Gettextizze the strings.
15968 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
15969 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
15970 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
15972 (GRUB_MOD_INIT): Remove command name from summary.
15973 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
15975 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
15976 * term/i386/pc/serial.c (options): Add full stops.
15977 (GRUB_MOD_INIT): Remove command name from the summary.
15979 2010-01-03 Carles Pina i Estany <carles@pina.cat>
15981 * commands/acpi.c: Gettextizze help strings and/or options. Include
15982 `grub/i18n.h' if needed.
15983 * commands/blocklist.c: Likewise.
15984 * commands/boot.c: Likewise.
15985 * commands/cat.c: Likewise.
15986 * commands/cmp.c: Likewise.
15987 * commands/configfile.c: Likewise.
15988 * commands/crc.c: Likewise.
15989 * commands/date.c: Likewise.
15990 * commands/echo.c: Likewise.
15991 * commands/efi/fixvideo.c: Likewise.
15992 * commands/efi/loadbios.c: Likewise.
15993 * commands/gptsync.c: Likewise.
15994 * commands/halt.c: Likewise.
15995 * commands/handler.c: Likewise.
15996 * commands/hdparm.c: Likewise.
15997 * commands/hexdump.c: Likewise.
15998 * commands/i386/cpuid.c: Likewise.
15999 * commands/i386/pc/drivemap.c: Likewise.
16000 * commands/i386/pc/halt.c: Likewise.
16001 * commands/i386/pc/pxecmd.c: Likewise.
16002 * commands/i386/pc/vbeinfo.c: Likewise.
16003 * commands/i386/pc/vbetest.c: Likewise.
16004 * commands/ieee1275/suspend.c: Likewise.
16005 * commands/keystatus.c: Likewise.
16006 * commands/loadenv.c: Likewise.
16007 * commands/ls.c: Likewise.
16008 * commands/lsmmap.c: Likewise.
16009 * commands/lspci.c: Likewise.
16010 * commands/memrw.c: Likewise.
16011 * commands/minicmd.c: Likewise.
16012 * commands/parttool.c: Likewise.
16013 * commands/password.c: Likewise.
16014 * commands/probe.c: Likewise.
16015 * commands/read.c: Likewise.
16016 * commands/reboot.c: Likewise.
16017 * commands/search.c: Likewise.
16018 * commands/sleep.c: Likewise.
16019 * commands/test.c: Likewise.
16020 * commands/true.c: Likewise.
16021 * commands/usbtest.c: Likewise.
16022 * commands/videotest.c: Likewise.
16023 * commands/xnu_uuid.c: Likewise.
16024 * disk/loopback.c: Likewise.
16025 * hello/hello.c: Likewise.
16026 * loader/i386/bsd.c: Likewise.
16027 * term/i386/pc/serial.c: Likewise.
16028 * po/POTFILES: Add new files.
16030 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
16032 * term/i386/pc/at_keyboard.c
16033 (keyboard_controller_wait_untill_ready): Rename to ...
16034 (keyboard_controller_wait_until_ready): ... this. Update all users.
16036 2010-01-01 Carles Pina i Estany <carles@pina.cat>
16038 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
16039 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
16040 string using string width.
16041 * normal/menu_text.c (grub_print_message_indented): Use
16042 grub_print_spaces and not print_spaces.
16043 (print_timeout): Likewise.
16044 (print_spaces): Move to...
16045 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
16047 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
16049 Import from Gnulib.
16051 * gnulib/getdelim.c: New file.
16052 * gnulib/getline.c: Likewise.
16054 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
16056 * include/grub/list.h (grub_assert_fail): Removed.
16057 (grub_bad_type_cast_real): New function.
16058 (grub_bad_type_cast): New macro.
16059 (GRUB_AS_LIST): Use grub_bad_type_cast.
16060 (GRUB_AS_LIST_P): Likewise.
16061 (GRUB_AS_NAMED_LIST): Likewise.
16062 (GRUB_AS_NAMED_LIST_P): Likewise.
16063 (GRUB_AS_PRIO_LIST): Likewise.
16064 (GRUB_AS_PRIO_LIST_P): Likewise.
16065 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
16067 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
16069 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
16072 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
16074 * configure.ac: Check for TARGET_CFLAGS initialization before we
16075 initialize it ourselves (sigh).
16076 Move a few modifications to TARGET_CFLAGS to be unconditional
16077 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
16080 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
16081 * term/i386/pc/at_keyboard.c
16082 (keyboard_controller_wait_untill_ready): Likewise.
16083 (keyboard_controller_led): Rename `led_status' paramter to avoid
16086 2009-12-28 Carles Pina i Estany <carles@pina.cat>
16088 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
16091 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16093 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
16095 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16097 * normal/menu_text.c (grub_print_message_indented): Prevent
16098 past-the-end-of-array dereference.
16100 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16102 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
16103 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
16105 2009-12-27 Carles Pina i Estany <carles@pina.cat>
16107 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
16108 * normal/main.c (grub_normal_read_line): Remove a space from the
16111 2009-12-27 Carles Pina i Estany <carles@pina.cat>
16113 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
16114 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
16115 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
16116 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
16117 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
16118 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
16119 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
16121 2009-12-26 Carles Pina i Estany <carles@pina.cat>
16123 * video/readers/jpeg.c (cmd): Declare.
16124 (grub_cmd_jpegtest): Use `grub_command_t' type.
16125 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
16127 (GRUB_MOD_FINI): Use `cmd' to unregister.
16128 * video/readers/png.c (cmd): Declare.
16129 (grub_cmd_pngtest): Use `grub_command_t' type.
16130 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
16132 (GRUB_MOD_FINI): Use `cmd' to unregister.
16133 * video/readers/tga.c (cmd): Declare.
16134 (grub_cmd_tgatest): Use `grub_command_t' type.
16135 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
16137 (GRUB_MOD_FINI): Use `cmd' to unregister.
16139 2009-12-26 Carles Pina i Estany <carles@pina.cat>
16141 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
16143 * kern/corecmd.c (grub_register_core_commands): Likewise.
16144 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
16145 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
16146 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
16147 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
16148 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
16149 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
16150 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
16151 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
16152 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
16153 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
16154 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
16155 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
16156 * normal/handler.c (insert_handler): Likewise.
16157 * normal/main.c (GRUB_MOD_INIT): Likewise.
16158 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
16160 2009-12-26 Carles Pina i Estany <carles@pina.cat>
16162 * commands/help.c (grub_cmd_help): Print the command name before the
16164 (GRUB_MOD_INIT): Remove command name from the summary.
16165 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
16167 * lib/arg.c (find_long): Print the command name before the summary.
16168 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
16170 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
16171 * commands/cat.c (GRUB_MOD_INIT): Likewise.
16172 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
16173 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
16174 * commands/crc.c (GRUB_MOD_INIT): Likewise.
16175 * commands/date.c (GRUB_MOD_INIT): Likewise.
16176 * commands/echo.c (GRUB_MOD_INIT): Likewise.
16177 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
16178 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
16179 * commands/handler.c (GRUB_MOD_INIT): Likewise.
16180 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
16181 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
16182 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
16183 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
16184 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
16185 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
16186 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
16187 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
16188 * commands/ls.c (GRUB_MOD_INIT): Likewise.
16189 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
16190 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
16191 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
16192 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
16193 * commands/password.c (GRUB_MOD_INIT): Likewise.
16194 * commands/probe.c (GRUB_MOD_INIT): Likewise.
16195 * commands/read.c (GRUB_MOD_INIT): Likewise.
16196 * commands/search.c (GRUB_MOD_INIT): Likewise.
16197 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
16198 * commands/test.c (GRUB_MOD_INIT): Likewise.
16199 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
16200 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
16201 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
16202 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
16203 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
16204 * lib/arg.c (GRUB_MOD_INIT): Likewise.
16205 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
16206 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
16207 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
16208 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
16209 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
16210 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
16211 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
16212 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
16214 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
16216 Use search command for preliminar UUID search.
16218 * commands/search.c: Split into ...
16219 * commands/search_wrap.c: ...this
16220 * commands/search.c: ...and this.
16221 * commands/search_file.c: New file.
16222 * commands/search_label.c: New file.
16223 * commands/search_uuid.c: New file.
16224 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
16225 Add commands/search_wrap.c, commands/search_file.c,
16226 commands/search_label.c and commands/search_uuid.c.
16227 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
16228 (search_mod_SOURCES): Set to commands/search_wrap.c.
16229 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
16231 (search_fs_file_mod_SOURCES): New variable.
16232 (search_fs_file_mod_CFLAGS): Likewise.
16233 (search_fs_file_mod_LDFLAGS): Likewise.
16234 (search_label_mod_SOURCES): Likewise.
16235 (search_label_mod_CFLAGS): Likewise.
16236 (search_label_mod_LDFLAGS): Likewise.
16237 (search_fs_uuid_mod_SOURCES): New variable.
16238 (search_fs_uuid_mod_CFLAGS): Likewise.
16239 (search_fs_uuid_mod_LDFLAGS): Likewise.
16240 (fs_file_mod_SOURCES): Removed.
16241 (fs_file_mod_CFLAGS): Likewise.
16242 (fs_file_mod_LDFLAGS): Likewise.
16243 (fs_uuid_mod_SOURCES): Removed.
16244 (fs_uuid_mod_CFLAGS): Likewise.
16245 (fs_uuid_mod_LDFLAGS): Likewise.
16246 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
16247 Set to util/grub-install.in.
16248 * disk/fs_file.c: Removed.
16249 * disk/fs_uuid.c: Likewise.
16250 * include/grub/search.h: New file.
16251 * util/grub-install.in: Handle sparc64.
16252 Create and use load.cfg.
16253 * util/sparc64/ieee1275/grub-install.in: Removed.
16255 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
16257 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
16258 Ignore return status if CF is cleared.
16259 (grub_biosdisk_get_diskinfo_standard): Likewise.
16261 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
16263 * term/i386/pc/at_keyboard.c
16264 (keyboard_controller_wait_untill_ready): New function.
16265 (grub_keyboard_controller_write, grub_keyboard_controller_read)
16266 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
16267 for keyboard polling, rather than duplicate the same loop. This
16268 saves a few bytes in code size.
16270 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
16272 Support for (pxe[:server[:gateway]]) syntax and
16273 use environment variable for PXE.
16275 * commands/i386/pc/pxecmd.c (options): Removed.
16276 (print_ip): Removed.
16277 (grub_cmd_pxe): Removed
16278 (grub_cmd_pxe_unload): New function.
16279 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
16280 (grub_pxe_your_ip): Made static.
16281 (grub_pxe_default_server_ip): Likewise.
16282 (grub_pxe_default_gateway_ip): Likewise.
16283 (grub_pxe_blksize): Likewise.
16284 (parse_ip): New function.
16285 (grub_pxe_open): Support server and gateway specification.
16286 (grub_pxe_close): Free disk->data.
16287 (grub_pxefs_open): Use disk->data.
16288 (grub_pxefs_read): Likewise.
16289 (grub_env_write_readonly): New function.
16290 (set_mac_env): Likewise.
16291 (set_env_limn_ro): Likewise.
16292 (parse_dhcp_vendor): Likewise.
16293 (grub_pxe_detect): Set the environment variables.
16294 (set_ip_env): New function.
16295 (write_ip_env): Likewise.
16296 (grub_env_write_pxe_default_server): Likewise.
16297 (grub_env_write_pxe_default_gateway): Likewise.
16298 (grub_env_write_pxe_blocksize): Likewise.
16299 (GRUB_MOD_INIT(pxe)): Set environment variables.
16300 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
16301 (grub_pxe_mac_addr_t): ... this. All users updated.
16302 (grub_pxe_your_ip): Removed.
16303 (grub_pxe_server_ip): Likewise.
16304 (grub_pxe_gateway_ip): Likewise.
16305 (grub_pxe_blksize): Likewise.
16307 2009-12-25 Carles Pina i Estany <carles@pina.cat>
16309 * commands/help.c: Include `<grub/i18n.h>'.
16310 (grub_cmd_help): Gettextizze.
16311 (GRUB_MOD_INIT): Likewise.
16312 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
16313 (GRUB_MOD_INIT): Gettextizze.
16314 * commands/search.c: Include `<grub/i18n.h>'.
16315 (options): Gettextizze.
16316 (GRUB_MOD_INIT): Gettextizze.
16317 * lib/arg.c: Include `<grub/i18n.h>'.
16318 (help_options): Gettextizze.
16319 (find_long): Likewise.
16320 (grub_arg_show_help): Likewise.
16321 * normal/dyncmd.c: Include `<grub/i18n.h>'.
16322 (read_command_list): Gettextizze.
16323 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
16324 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
16326 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
16328 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
16329 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
16330 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
16331 (led_status): New variable.
16332 (keyboard_controller_led): New function.
16333 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
16334 update led status for caps lock, num lock and scroll lock.
16336 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
16338 * util/hostdisk.c (open_device): Fix a comment.
16340 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16342 * util/grub-install.in (host_os): New variable.
16343 * util/i386/efi/grub-install.in (host_os): Likewise.
16345 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16347 * util/mkisofs/write.c (padblock_write): Abort when given an
16348 excedingly large embed image, instead of silently truncating it.
16350 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16352 * include/multiboot.h: Indentation fixes.
16354 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16356 * include/multiboot.h (struct multiboot_aout_symbol_table)
16357 (struct multiboot_elf_section_header_table): New structure
16358 declarations (stolen from GRUB Legacy).
16359 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
16362 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
16363 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
16366 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16368 * include/multiboot.h: Make comments src2texi-friendly.
16370 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16372 For consistency with [multiboot]/docs/boot.S.
16374 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
16375 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
16376 (MULTIBOOT_MAGIC2): Rename from this ...
16377 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
16379 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
16381 * include/multiboot.h: Remove `<grub/types.h>'.
16382 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
16383 types. Update all users.
16385 2009-12-25 Carles Pina i Estany <carles@pina.cat>
16387 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
16388 `couldn't' and `can not' by `cannot'.
16389 * commands/i386/pc/drivemap.c: Likewise.
16390 * disk/ata.c: Likewise.
16391 * disk/ieee1275/nand.c: Likewise.
16392 * fs/affs.c: Likewise.
16393 * fs/fat.c: Likewise.
16394 * fs/hfs.c: Likewise.
16395 * fs/hfsplus.c: Likewise.
16396 * fs/iso9660.c: Likewise.
16397 * fs/jfs.c: Likewise.
16398 * fs/minix.c: Likewise.
16399 * fs/reiserfs.c: Likewise.
16400 * fs/sfs.c: Likewise.
16401 * fs/udf.c: Likewise.
16402 * fs/ufs.c: Likewise.
16403 * fs/xfs.c: Likewise.
16404 * loader/powerpc/ieee1275/linux.c: Likewise.
16405 * loader/sparc64/ieee1275/linux.c: Likewise.
16406 * util/grub-probe.c: Likewise.
16407 * util/misc.c: Likewise.
16409 2009-12-24 Carles Pina i Estany <carles@pina.cat>
16411 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
16413 * commands/acpi.c: Likewise.
16414 * commands/blocklist.c: Likewise.
16415 * commands/efi/loadbios.c: Likewise.
16416 * commands/i386/pc/drivemap.c: Likewise.
16417 * commands/loadenv.c: Likewise.
16418 * commands/memrw.c: Likewise.
16419 * commands/password.c: Likewise.
16420 * commands/videotest.c: Likewise.
16421 * disk/ata.c: Likewise.
16422 * disk/ata_pthru.c: Likewise.
16423 * disk/dmraid_nvidia.c: Likewise.
16424 * disk/ieee1275/nand.c: Likewise.
16425 * disk/ieee1275/ofdisk.c: Likewise.
16426 * disk/loopback.c: Likewise.
16427 * disk/lvm.c: Likewise.
16428 * disk/mdraid_linux.c: Likewise.
16429 * disk/raid.c: Likewise.
16430 * disk/raid6_recover.c: Likewise.
16431 * disk/scsi.c: Likewise.
16432 * efiemu/main.c: Likewise.
16433 * efiemu/mm.c: Likewise.
16434 * efiemu/pnvram.c: Likewise.
16435 * efiemu/symbols.c: Likewise.
16436 * font/font.c: Likewise.
16437 * fs/cpio.c: Likewise.
16438 * fs/hfsplus.c: Likewise.
16439 * fs/iso9660.c: Likewise.
16440 * fs/jfs.c: Likewise.
16441 * fs/minix.c: Likewise.
16442 * fs/ntfs.c: Likewise.
16443 * fs/ntfscomp.c: Likewise.
16444 * fs/reiserfs.c: Likewise.
16445 * fs/ufs.c: Likewise.
16446 * fs/xfs.c: Likewise.
16447 * gettext/gettext.c: Likewise.
16448 * include/grub/auth.h: Likewise.
16449 * kern/elf.c: Likewise.
16450 * kern/file.c: Likewise.
16451 * kern/ieee1275/init.c: Likewise.
16452 * kern/ieee1275/mmap.c: Likewise.
16453 * kern/ieee1275/openfw.c: Likewise.
16454 * kern/powerpc/dl.c: Likewise.
16455 * kern/sparc64/dl.c: Likewise.
16456 * lib/arg.c: Likewise.
16457 * loader/i386/bsd.c: Likewise.
16458 * loader/i386/bsdXX.c: Likewise.
16459 * loader/i386/efi/linux.c: Likewise.
16460 * loader/i386/efi/xnu.c: Likewise.
16461 * loader/i386/ieee1275/linux.c: Likewise.
16462 * loader/i386/linux.c: Likewise.
16463 * loader/i386/multiboot.c: Likewise.
16464 * loader/i386/pc/linux.c: Likewise.
16465 * loader/i386/pc/multiboot2.c: Likewise.
16466 * loader/i386/xnu.c: Likewise.
16467 * loader/ieee1275/multiboot2.c: Likewise.
16468 * loader/macho.c: Likewise.
16469 * loader/machoXX.c: Likewise.
16470 * loader/multiboot2.c: Likewise.
16471 * loader/multiboot_loader.c: Likewise.
16472 * loader/powerpc/ieee1275/linux.c: Likewise.
16473 * loader/sparc64/ieee1275/linux.c: Likewise.
16474 * loader/xnu.c: Likewise.
16475 * loader/xnu_resume.c: Likewise.
16476 * mmap/i386/pc/mmap.c: Likewise.
16477 * normal/menu_viewer.c: Likewise.
16478 * partmap/acorn.c: Likewise.
16479 * partmap/amiga.c: Likewise.
16480 * partmap/apple.c: Likewise.
16481 * script/lexer.c: Likewise.
16482 * term/gfxterm.c: Likewise.
16483 * term/i386/pc/serial.c: Likewise.
16484 * term/i386/pc/vga.c: Likewise.
16485 * term/ieee1275/ofconsole.c: Likewise.
16486 * term/terminfo.c: Likewise.
16487 * video/bitmap.c: Likewise.
16488 * video/efi_gop.c: Likewise.
16489 * video/efi_uga.c: Likewise.
16490 * video/fb/video_fb.c: Likewise.
16491 * video/i386/pc/vbe.c: Likewise.
16492 * video/readers/tga.c: Likewise.
16493 * video/video.c: Likewise.
16495 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
16497 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
16498 * commands/lspci.c: Likewise.
16499 * commands/probe.c: Likewise.
16500 * commands/xnu_uuid.c: Likewise.
16501 * conf/i386-coreboot.rmk: Likewise.
16502 * conf/i386-efi.rmk: Likewise.
16503 * conf/i386-ieee1275.rmk: Likewise.
16504 * conf/i386-pc.rmk: Likewise.
16505 * conf/powerpc-ieee1275.rmk: Likewise.
16506 * conf/sparc64-ieee1275.rmk: Likewise.
16507 * conf/x86_64-efi.rmk: Likewise.
16508 * fs/i386/pc/pxe.c: Likewise.
16509 * gettext/gettext.c: Likewise.
16510 * include/grub/efi/graphics_output.h: Likewise.
16511 * include/grub/i386/pc/memory.h: Likewise.
16512 * kern/env.c: Likewise.
16513 * kern/i386/qemu/startup.S: Likewise.
16514 * lib/i386/pc/biosnum.c: Likewise.
16515 * lib/i386/relocator.c: Likewise.
16516 * lib/i386/relocator_asm.S: Likewise.
16517 * lib/relocator.c: Likewise.
16518 * loader/i386/bsd.c: Likewise.
16519 * loader/i386/multiboot.c: Likewise.
16520 * loader/i386/pc/chainloader.c: Likewise.
16521 * loader/i386/xnu.c: Likewise.
16522 * loader/xnu.c: Likewise.
16523 * normal/main.c: Likewise.
16524 * normal/menu_text.c: Likewise.
16525 * util/getroot.c: Likewise.
16526 * util/grub-mkconfig_lib.in: Likewise.
16527 * util/grub.d/00_header.in: Likewise.
16528 * util/i386/pc/grub-mkimage.c: Likewise.
16529 * util/mkisofs/eltorito.c: Likewise.
16530 * util/mkisofs/exclude.h: Likewise.
16531 * util/mkisofs/hash.c: Likewise.
16532 * util/mkisofs/iso9660.h: Likewise.
16533 * util/mkisofs/joliet.c: Likewise.
16534 * util/mkisofs/mkisofs.c: Likewise.
16535 * util/mkisofs/mkisofs.h: Likewise.
16536 * util/mkisofs/multi.c: Likewise.
16537 * util/mkisofs/name.c: Likewise.
16538 * util/mkisofs/rock.c: Likewise.
16539 * util/mkisofs/tree.c: Likewise.
16540 * util/mkisofs/write.c: Likewise.
16541 * video/efi_gop.c: Likewise.
16543 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
16545 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
16548 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16550 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
16551 * genmk.rb (class SCRIPT): Modify the target file instead of source.
16553 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16555 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
16556 (GRUB_MOD_INIT(memrw)): Update help line.
16558 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16560 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
16561 Use grub_extcmd_t. All users updated.
16562 (options): New variable.
16563 (grub_cmd_read): Restructure for readability. Support "-v" option.
16564 (grub_cmd_write): Restructure for readability.
16566 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16568 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
16570 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16572 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
16573 with the actual contents of the correspondending make variable.
16574 * util/grub-mkrescue.in (pkglib_DATA): New variable.
16575 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
16576 specifying `*.lst' and `efiemu??.o'
16578 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16580 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
16581 after function name.
16582 Noticed by Rene Engelhard <rene@debian.org>.
16584 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16586 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
16587 (options): New variable.
16588 (iospace): Likewise.
16589 (grub_lspci_iter): List IO spaces if "-i" was given.
16590 (grub_cmd_lspci): Parse options.
16591 (GRUB_MOD_INIT(lspci)): Use extcmd.
16592 (GRUB_MOD_FINI(lspci)): Likewise.
16594 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
16596 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
16597 `function' keyword.
16598 Patch by Tony Mancill <tmancill@debian.org>.
16600 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
16602 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
16603 (grub_uhci_portstatus): Likewise.
16604 (grub_uhci_portstatus): Add necessary delay.
16605 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
16607 2009-12-21 Carles Pina i Estany <carles@pina.cat>
16609 * commands/acpi.c (options): Fix capitalizations and/or full stops.
16610 (GRUB_MOD_INIT): Likewise.
16611 * commands/boot.c (GRUB_MOD_INIT): Likewise.
16612 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
16613 * commands/echo.c (options): Fix capitalizations and/or full stops.
16614 * commands/efi/loadbios.c (enable_rom_area): Likewise.
16615 (enable_rom_area): Likewise.
16616 (GRUB_MOD_INIT): Likewise.
16617 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
16618 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
16619 * commands/handler.c (GRUB_MOD_INIT): Likewise.
16620 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
16621 * commands/hexdump.c (options): Likewise.
16622 * commands/i386/cpuid.c (options): Likewise.
16623 (GRUB_MOD_INIT): Likewise.
16624 * commands/i386/pc/drivemap.c (options): Likewise.
16625 (GRUB_MOD_INIT): Likewise.
16626 * commands/i386/pc/halt (options): Likewise.
16627 (GRUB_MOD_INIT): Likewise.
16628 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
16629 * commands/i386/pc/pxecmd.c (options): Likewise.
16630 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
16631 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
16632 * commands/keystatus.c (options): Likewise.
16633 (GRUB_MOD_INIT): Likewise.
16634 * commands/loadenv.c (options): Likewise.
16635 * commands/ls.c (options): Likewise.
16636 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
16637 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
16638 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
16639 * commands/parttool.c (helpmsg): Likewise.
16640 * commands/probe.c (options): Likewise.
16641 * commands/read.c (GRUB_MOD_INIT): Likewise.
16642 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
16643 * commands/search.c (options): Likewise.
16644 * commands/sleep.c (options): Likewise.
16645 * commands/test.c (GRUB_MOD_INIT): Likewise.
16646 * commands/true.c (GRUB_MOD_INIT): Likewise.
16647 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
16648 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
16649 * lib/arg.c (help_options): Likewise.
16650 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
16652 * po/POTFILES: Add `commands/loadenv.c'.
16654 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
16656 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
16657 instead of specifying them explicit.
16659 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16661 * NEWS: Add grub-probe support for GNU/Hurd.
16663 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16665 * NEWS: gettext was added after 1.97.
16667 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16669 * util/mkisofs/msdos_partition.h: New file (based on
16670 include/grub/msdos_partition.h).
16671 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
16672 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
16673 (ld_options, main): Recognize --protective-msdos-label.
16674 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
16675 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
16676 (padblock_write): If `use_protective_msdos_label' is set, patch a
16677 protective DOS-style label in the output image.
16679 * util/grub-mkrescue.in: Use --protective-msdos-label.
16681 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16683 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
16686 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16688 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
16690 (ld_options, main): Recognize `--embedded-boot'.
16691 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
16693 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
16694 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
16695 (padblock_write): Likewise. Rewrite to support embedded boot image.
16697 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
16698 for BIOS-based disk boot instead of only ElTorito.
16700 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16702 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
16703 build (not needed for bootstrap).
16705 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16707 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
16708 from i386-pc build (not needed for bootstrap).
16709 Rewrite a pair of strings.
16711 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
16713 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
16715 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
16717 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
16719 2009-12-21 Andreas Born <futur.andy@googlemail.com>
16721 * kern/env.c (grub_env_context_open): Mark exported variable for
16724 2009-12-21 Andreas Born <futur.andy@googlemail.com>
16726 * kern/env.c (grub_env_export): Create nonexistent variables before
16729 2009-12-20 Carles Pina i Estany <carles@pina.cat>
16731 * include/grub/auth.h: Include `<grub/i18n.h>'.
16732 (GRUB_GET_PASSWORD): Gettextizze string.
16733 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
16735 (grub_utf8_to_ucs4_alloc): Fix indentation.
16736 (grub_print_ucs4): Likewise.
16737 (grub_getstringwidth): Likewise.
16738 (print_message_indented): New declaration.
16739 * normal/auth.c: Include `<grub/i18n.h>'.
16740 (grub_auth_check_authentication): Gettexttize string.
16741 * normal/cmdline.c: Include `<grub/i18n.h>'.
16742 (grub_cmdline_get): Gettextizze.
16743 * normal/color.c: Include `<grub/i18n.h>'.
16744 (grub_parse_color_name_pair): Gettexttize strings.
16745 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
16746 string (use `print_message_indented').
16747 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
16748 `include/grub/normal.h'.
16749 (print_message_indented): Renamed to ...
16750 (grub_print_message_indented): ... this. Remove `static' qualifer (now
16751 used in normal/main.c).
16752 (print_message): Use `grub_print_message_indented' instead of
16753 `print_message_indented'.
16754 (print_timeout): Likewise.
16755 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
16756 (grub_normal_print_device_info): Gettexttize strings.
16757 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
16759 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
16761 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
16762 of arguments. Return number of tokens and not arguments. All users
16765 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
16767 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
16768 non-MSDOS paritions.
16770 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16772 * include/grub/types.h (UNUSED): Removed since it conflicts with
16773 NetBSD headers. All users changed to direct __attribute__ ((unused)).
16774 Reported by Grégoire Sutre.
16776 2009-12-19 Carles Pina i Estany <carles@pina.cat>
16778 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
16779 (grub_print_ucs4_alloc): Likewise.
16780 (grub_getstringwidth): Likewise.
16781 * normal/main.c (grub_normal_init_page): Gettextize version string.
16782 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
16783 (getstringwidth): Renamed to ...
16784 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
16785 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
16786 (grub_print_ucs4): Remove `static' qualifer (now used in
16788 * po/POTFILES: Add normal/main.c.
16790 2009-12-19 Carles Pina i Estany <carles@pina.cat>
16792 * normal/menu_text.c (STANDARD_MARGIN): New macro.
16793 (print_message_indented): Add `margin_left' and `margin_right'
16795 (print_message): Update `print_message_indented' calls. Adds '\n' to the
16797 (print_timeout): Use `print_message_indented' to print the message.
16798 Deletes `second_stage' parameter.
16799 (run_menu): Update `print_timeout' calls.
16801 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16803 Fix console palette on OpenFirmware.
16805 * term/ieee1275/ofconsole.c (MAX): Removed.
16806 (colors): Redone based on VGA palette.
16807 (grub_ofconsole_setcolor): Discard brightness bit since only 8
16808 colors are supported.
16809 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
16811 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16813 Fix potential EfiEmu double prepare.
16815 * efiemu/main.c (prepared): New variable
16816 (grub_efiemu_unload): Set prepare to '0'.
16817 (grub_efiemu_prepare): Return if already prepared. Set prepared.
16819 set_virtual_address_map support.
16821 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
16823 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
16825 (grub_efiemu_crc32): Likewise.
16826 (grub_efiemu_crc64): Likewise.
16827 (grub_efiemu_set_virtual_address_map): Likewise.
16828 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
16830 (grub_autoefi_set_virtual_address_map): Likewise.
16831 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
16832 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
16833 Restructure flow to accomodate it.
16834 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
16835 (grub_efiemu_crc): Recompute CRC32.
16836 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
16837 (efiemu_ptv_relocated): ... this. Made global. All users updated.
16838 * efiemu/symbols.c (relocated_handle): New variable.
16839 (grub_efiemu_free_syms): Free relocated_handle.
16840 (grub_efiemu_alloc_syms): Allocate relocated_handle.
16841 (grub_efiemu_write_sym_markers): New function.
16842 (grub_efiemu_set_virtual_address_map): Likewise.
16844 Newer XNU parameters.
16846 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
16847 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
16848 (grub_xnu_fill_devicetree): New prototype.
16849 (grub_xnu_heap_real_start): New variable.
16850 * loader/xnu.c (get_name_ptr): New function.
16851 (grub_xnu_load_driver): Fill namelen and name.
16853 64-bit xnu support.
16855 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
16856 and 'loader/macho64.c'.
16857 * conf/i386-pc.rmk: Likewise.
16858 * conf/x86_64-efi.rmk: Likewise.
16859 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
16860 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
16861 * include/grub/macho.h (grub_macho_segment64): New structure.
16862 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
16863 (grub_macho_size32): ... to this.
16864 (grub_macho32_get_entry_point): Renamed from ...
16865 (grub_macho_get_entry_point32): ... to this.
16866 (grub_macho_contains_macho64): New prototype.
16867 (grub_macho_size64): Likewise.
16868 (grub_macho_get_entry_point64): Likewise.
16869 (grub_macho32_load): Renamed from ...
16870 (grub_macho_load32): ... to this.
16871 (grub_macho32_filesize): Renamed from ...
16872 (grub_macho_filesize32): ... to this.
16873 (grub_macho32_readfile): Renamed from ...
16874 (grub_macho_readfile32): ... to this.
16875 (grub_macho_filesize64): New prototype.
16876 (grub_macho_readfile64): Likewise.
16877 (grub_macho_parse32): Likewise.
16878 (grub_macho_parse64): Likewise.
16879 * loader/macho.c: Split into ...
16880 * loader/machoXX.c: ... and this. Replace 32 with XX.
16881 * loader/macho32.c: New file.
16882 * loader/macho64.c: Likewise.
16883 * loader/xnu.c (grub_xnu_is_64bit): New variable.
16884 (grub_cmd_xnu_kernel): Make 32-bit only.
16885 (grub_cmd_xnu_kernel64): New function.
16886 (grub_xnu_load_driver): Support Mach-O 64.
16887 (grub_cmd_xnu_mkext): Likewise.
16888 * util/grub.d/30_os-prober.in (osx_entry): New function.
16889 Generate entries for 64-bit boot too.
16891 Eliminate ad-hoc tree format in XNU and EfiEmu.
16893 * efiemu/main.c (grub_efiemu_prepare): Update comment.
16894 * efiemu/pnvram.c: Rewritten to use environment variables.
16897 Inline utf16_to_utf8.
16899 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
16900 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
16902 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
16904 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
16905 * commands/usbtest.c (grub_usb_get_string): ... move here.
16906 (usb_print_str): Fix error handling.
16907 * include/grub/usb.h (grub_usb_get_string): Remove.
16909 UTF-8 to UTF-16 transformation.
16911 * conf/common.rmk (pkglib_MODULES): Add charset.mod
16912 (charset_mod_SOURCES): New variable.
16913 (charset_mod_CFLAGS): Likewise.
16914 (charset_mod_LDFLAGS): Likewise.
16915 * include/grub/utf.h: New file.
16916 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
16918 Support for device properties.
16920 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
16921 (grub_xnu_devprop_device_header): Likewise.
16922 (grub_xnu_devprop_device_descriptor): Likewise.
16923 (grub_xnu_devprop_add_device): New prototype.
16924 (grub_xnu_devprop_remove_device): Likewise.
16925 (grub_xnu_devprop_remove_property): Likewise.
16926 (grub_xnu_devprop_add_property_utf8): Likewise.
16927 (grub_xnu_devprop_add_property_utf16): Likewise.
16928 (grub_cpu_xnu_init): Likewise.
16929 (grub_cpu_xnu_fini): Likewise.
16930 (grub_cpu_xnu_unload): Likewise.
16931 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
16932 (property_descriptor): Likewise.
16933 (devices): New variable.
16934 (grub_xnu_devprop_remove_property): New function.
16935 (grub_xnu_devprop_add_device): Likewise.
16936 (grub_xnu_devprop_remove_device): Likewise.
16937 (grub_xnu_devprop_add_property): Likewise.
16938 (grub_xnu_devprop_add_property_utf8): Likewise.
16939 (grub_xnu_devprop_add_property_utf16): Likewise.
16940 (hextoval): Likewise.
16941 (grub_cpu_xnu_fill_devprop): Likewise.
16942 (grub_cmd_devprop_load): Likewise.
16943 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
16944 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
16945 (cmd_devprop_load): New variable.
16946 (grub_cpu_xnu_init): New function.
16947 (grub_cpu_xnu_fini): Likewise.
16948 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
16949 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
16950 (grub_cmd_xnu_devtree): Likewise.
16951 (hextoval): New function.
16952 (unescape): Likewise.
16953 (grub_xnu_fill_devicetree): Likewise.
16955 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
16956 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
16958 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16960 Workaround for broken ATI VBE.
16962 * video/i386/pc/vbe.c (last_set_mode): New variable.
16963 (grub_vbe_set_video_mode): Set 'last_set_mode'.
16964 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
16965 (grub_video_vbe_setup): Don't check for reserved flag.
16967 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
16969 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
16970 the `find' command.
16972 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
16974 UUID support for HFS.
16976 * fs/hfs.c (grub_hfs_uuid): New function.
16977 (grub_hfs_fs): New value .uuid.
16978 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
16980 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
16982 Fix a segfault with parsing unknown long options.
16984 * util/grub-mkrelpath.c (options): Zero terminate it.
16986 2009-12-13 Carles Pina i Estany <carles@pina.cat>
16988 * include/grub/misc.h (grub_puts): New declaration.
16989 (grub_puts_): Likewise.
16990 * kern/misc.c (grub_puts): New definition.
16991 (grub_puts_): Likewise.
16993 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
16995 * util/grub-probe.c (probe): Improve error message.
16997 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
16999 * loader/i386/multiboot_elfxx.c
17000 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
17003 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
17005 Relocator framework
17007 * loader/i386/xnu_helper.S: Removed. All users updated.
17008 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
17009 (relocator_mod_SOURCES): New variable.
17010 (relocator_mod_CFLAGS): Likewise.
17011 (relocator_mod_LDFLAGS): Likewise.
17012 (relocator_mod_ASFLAGS): Likewise.
17013 * conf/x86_64.rmk: Likewise.
17014 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
17015 (grub_multiboot_payload_entry_offset): Likewise.
17016 (grub_multiboot_forward_relocator): Likewise.
17017 (grub_multiboot_forward_relocator_end): Likewise.
17018 (grub_multiboot_backward_relocator): Likewise.
17019 (grub_multiboot_backward_relocator_end): Likewise.
17020 (grub_multiboot_payload_eip): New variable.
17021 (grub_multiboot_payload_orig): Likewise.
17022 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
17023 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
17024 * include/grub/i386/memory.h
17025 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
17026 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
17027 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
17028 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
17029 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
17030 * include/grub/i386/relocator.h: New file.
17031 * include/grub/x86_64/relocator.h: Likewise.
17032 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
17033 (XNU_RELOCATOR): New macro.
17034 (grub_xnu_launcher_start): Remove.
17035 (grub_xnu_launcher_end): Likewise.
17036 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
17037 (grub_xnu_heap_real_start): Remove.
17038 (grub_xnu_heap_start): Change to void *. All users updated.
17039 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
17040 * lib/i386/relocator.c: New file.
17041 * lib/i386/relocator_asm.S: Likewise.
17042 * lib/i386/relocator_backward.S: Likewise.
17043 * lib/mips/relocator.c: Likewise.
17044 * lib/mips/relocator_asm.S: Likewise.
17045 * lib/relocator.c: Likewise.
17046 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
17048 (playground): Likewise.
17049 (grub_multiboot_payload_orig): New variable.
17050 (grub_multiboot_payload_dest): Likewise.
17051 (grub_multiboot_payload_size): Likewise.
17052 (grub_multiboot_payload_eip): Likewise.
17053 (grub_multiboot_payload_esp): Likewise.
17054 (grub_multiboot_boot): Use grub_relocator32_boot.
17055 (grub_multiboot_unload): Free relocators.
17056 (grub_multiboot): Setup stack. Use relocators.
17057 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
17058 (grub_multiboot_load_elfXX): Use relocators.
17059 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
17060 (grub_multiboot_payload_size): Likewise.
17061 (grub_multiboot_payload_dest): Likewise.
17062 (grub_multiboot_payload_entry_offset): Likewise.
17063 (grub_multiboot_forward_relocator): Likewise.
17064 (grub_multiboot_backward_relocator): Likewise.
17065 (grub_multiboot_real_boot): Likewise.
17066 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
17067 (grub_xnu_entry_point): Likewise.
17068 (grub_xnu_arg1): Likewise.
17069 (grub_xnu_stack): Likewise.
17070 (grub_xnu_launch): Removed.
17071 (grub_xnu_boot_resume): New function.
17072 (grub_xnu_boot): Use relocators.
17073 * loader/i386/xnu_helper.S: Removed.
17074 * loader/xnu.c (grub_xnu_heap_start): New variable.
17075 (grub_xnu_heap_size): Likewise.
17076 (grub_xnu_heap_malloc): Use relocators.
17077 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
17079 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
17081 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
17084 2009-12-13 Carles Pina i Estany <carles@pina.cat>
17086 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
17087 GRUB_ERR_NONE before calling grub_env_set.
17089 2009-12-12 Robert Millan <rmh@aybabtu.com>
17091 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
17092 * genmk.rb (video): New variable.
17093 (CLEANFILES, VIDEOFILES): Add #{video}.
17094 (#{video}): New target rule.
17095 * genvideolist.sh: New file.
17096 * Makefile.in (pkglib_DATA): Add video.lst.
17097 (video.lst): New target rule.
17098 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
17100 * util/grub.d/30_os-prober.in: Replace `vbe' with
17101 ${GRUB_VIDEO_BACKEND}.
17103 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
17105 * THANKS: Add David Miller.
17107 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
17109 libpciaccess support.
17111 * Makefile.in (LIBPCIACCESS): New variable.
17112 (enable_grub_emu_pci): Likewise.
17113 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
17114 util/pci.c and commands/lspci.c.
17115 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
17116 * configure.ac (grub-emu-pci): New option.
17117 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
17118 (grub_pci_device_unmap_range): Likewise.
17119 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
17120 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
17121 (grub_pci_address_t) [!GRUB_UTIL]: New type.
17122 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
17123 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
17124 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
17125 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
17126 * include/grub/pciutils.h: New file.
17127 * util/pci.c: Likewise.
17129 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
17131 * util/misc.c: Don't include <errno.h> twice.
17133 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
17135 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
17136 name in an error message.
17137 (grub_biosdisk_rw): Likewise.
17139 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
17141 Eliminate NTFS 4Gib barrier.
17143 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
17144 (read_run_data): Likewise.
17145 (grub_ntfs_read_run_list): Likewise.
17146 (grub_ntfs_read_block): Likewise.
17147 (grub_ntfs_iterate_dir): Likewise.
17148 (read_mft): Likewise.
17149 (read_data): Likewise.
17151 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
17152 to avoid 64-bit division
17153 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
17154 (grub_ntfs_rlst): Use grub_disk_addr_t.
17156 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
17158 Eliminate grub-fstest 4Gib barrier.
17160 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
17161 (read_file): Fix error reporting.
17163 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
17165 Eliminate hexdump 4Gib barrier.
17167 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
17168 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
17170 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
17172 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
17175 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
17177 Remove miscellaneous files in distclean target.
17179 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
17181 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
17183 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
17184 if they're already set. This resolves the conflict between my
17185 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
17186 fixing the --grub-probe option again.
17187 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
17188 change on 2009-10-06, so that we now once again source
17189 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
17191 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
17193 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
17194 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
17195 `util/devicemap.c'.
17197 2009-12-08 Carles Pina i Estany <carles@pina.cat>
17199 * include/grub/misc.h (grub_printf_): New declaration.
17200 * kern/misc.c (grub_printf_): New definition.
17201 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
17202 instead of `grub_printf' and `_'.
17203 * normal/menu_entry.c (store_completion): Likewise.
17205 (grub_menu_entry_run): Likewise.
17206 * normal/menu_text.c (grub_wait_after_message): Likewise.
17207 (notify_booting): Likewise.
17208 (notify_fallback): Likewise.
17209 (notify_execution_failure): Likewise.
17211 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
17213 * configure.ac: Check for vasprintf.
17214 * util/misc.c (asprintf): Move allocation from here ...
17215 (vasprintf): ... to here. New function.
17216 (xasprintf): New function.
17217 * include/grub/util/misc.h (vasprintf, xasprintf): Add
17219 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
17220 * util/grub-mkfont.c (write_font): Likewise.
17221 * util/grub-probe.c (probe): Likewise.
17222 * util/hostdisk.c (make_device_name): Likewise.
17224 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
17226 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
17227 anything even prefixed with 'cdrom' as a cdrom.
17229 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
17231 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
17234 2009-12-05 Carles Pina i Estany <carles@pina.cat>
17236 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
17237 grub_gettext_msg_list.
17238 (grub_gettext_gettranslation_from_position): Return const char *
17240 (grub_gettext_translate): Add the translated strings into a list,
17241 returns from the list if existing there.
17242 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
17243 (grub_gettext_delete_list): Delete the list.
17244 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
17245 lang environment variable is changed.
17246 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
17248 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
17250 Rename kernel.mod to kernel.img.
17252 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
17253 (kernel_mod_EXPORTS): Rename to ...
17254 (kernel_img_EXPORTS): ... this.
17255 (kernel_mod_SOURCES): Rename to ...
17256 (kernel_img_SOURCES): ... this.
17257 (kernel_mod_HEADERS): Rename to ...
17258 (kernel_img_HEADERS): ... this. All users updated.
17259 (kernel_mod_CFLAGS): Rename to ...
17260 (kernel_img_CFLAGS): ... this.
17261 (kernel_mod_ASFLAGS): Rename to ...
17262 (kernel_img_ASFLAGS): ... this.
17263 (kernel_mod_LDFLAGS): Rename to ...
17264 (kernel_img_LDFLAGS): ... this.
17265 * conf/x86_64-efi.rmk: Likewise.
17266 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
17267 (read_kernel_image): ... this. All users updated.
17268 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
17270 2009-12-05 Carles Pina i Estany <carles@pina.cat>
17272 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
17273 (print_spaces): New function.
17274 (grub_print_ucs4): New function.
17275 (getstringwidth): New function.
17276 (print_message_indented): New function.
17277 (print_message): Gettexttize strings using print_message_indented.
17278 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
17280 (get_entry_number): Gettextize and uses dynamic terminal width.
17281 (notify_booting, notify_fallback, notify_execution_failure):
17283 * normal/menu_entry.c (store_completion): Cleanup the gettextized
17286 (grub_menu_entry_run): Likewise.
17287 * PO/POTFILES: Add normal/menu_entry.c.
17289 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
17291 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
17293 2009-12-05 Carles Pina i Estany <carles@pina.cat>
17295 * util/grub-install.in: Install gettext .mo files.
17296 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
17298 2009-12-05 Carles Pina i Estany <carles@pina.cat>
17300 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
17303 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
17305 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
17306 non-firmware-dependant one in realmode.S takes precedence.
17308 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
17310 * commands/halt.c: Replace misc arch-specific headers with
17312 * commands/reboot.c: Likewise.
17313 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
17315 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
17316 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
17317 (kernel_img_SOURCES): ... to here.
17319 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
17320 * include/grub/i386/pc/init.h: Likewise.
17321 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
17322 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
17324 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
17326 * include/grub/i386/halt.h: Remove.
17327 * include/grub/i386/reboot.h: Likewise.
17329 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
17331 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
17333 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
17334 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
17335 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
17337 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
17338 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17339 (usage): Add missing comma in printf.
17341 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
17343 Use the same reboot approach on i386 coreboot and qemu as we do on
17346 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
17347 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
17348 * kern/i386/reboot.c: Remove.
17349 * include/grub/i386/reboot.h (grub_reboot): Export function.
17350 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
17351 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
17352 0xf000:0xfff0 instead of 0xffff:0x0000.
17353 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
17354 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
17356 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
17358 Fix $srcdir != $objdir build.
17360 * Makefile.in (po/%.po): Rewrite as ...
17361 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
17363 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
17365 Fix GNU/Hurd grub-install crash.
17366 * util/grub-probe.c (probe): Try to access `path' only when it is not
17369 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
17371 Correct module naming.
17373 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
17374 (GRUB_MOD_INIT(efi_uga)): ... to this
17375 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
17376 (GRUB_MOD_FINI(efi_uga)): ... to this
17377 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
17378 (GRUB_MOD_INIT(efi_gop)): ... to this
17379 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
17380 (GRUB_MOD_FINI(efi_gop)): ... to this
17382 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
17384 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
17386 (usage): Translate `arg' strings using gettext().
17387 Thanks to Jordi Mallach for the suggestion.
17389 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
17391 GOP support. Based on patch from Bean
17392 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
17394 * video/efi_gop.c: New file.
17395 * include/grub/efi/graphics_output.h: Likewise.
17396 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
17397 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
17399 * conf/x86_64-efi.rmk: Likewise.
17401 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
17403 Rename efi_fb to efi_uga.
17405 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
17407 (efi_fb_mod_SOURCES): Rename this ...
17408 (efi_uga_mod_SOURCES): ... to this.
17409 (efi_fb_mod_CFLAGS): Rename this ...
17410 (efi_uga_mod_CFLAGS): ... to this.
17411 (efi_fb_mod_LDFLAGS): Rename this ...
17412 (efi_uga_mod_LDFLAGS): ... to this.
17413 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
17415 (efi_fb_mod_SOURCES): Rename this ...
17416 (efi_uga_mod_SOURCES): ... to this.
17417 (efi_fb_mod_CFLAGS): Rename this ...
17418 (efi_uga_mod_CFLAGS): ... to this.
17419 (efi_fb_mod_LDFLAGS): Rename this ...
17420 (efi_uga_mod_LDFLAGS): ... to this.
17421 * video/efi_fb.c: Move this ...
17422 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
17424 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
17426 * po/README: New file. Explain our PO file workflow.
17428 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
17430 * po/ChangeLog: Remove. Move relevant entries back to ...
17431 * ChangeLog: ... here.
17432 * po/ca.po: Remove (now handled by TLP).
17433 * po/id.po: Likewise.
17434 * po/zh_CN.po: Likewise.
17435 * Makefile.in (LINGUAS): Initialize in a way that supports
17438 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
17440 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
17441 reliing on po/LINGUAS.
17442 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
17443 (po/%.po): ... this.
17445 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17447 * util/i386/efi/grub-mkimage.c: Include "progname.h".
17448 (main): Use `program_name' instead of nonexistent `progname'.
17450 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17452 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
17453 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
17455 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
17457 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
17459 * conf/i386-efi.rmk: Likewise.
17460 * conf/i386-ieee1275.rmk: Likewise.
17461 * conf/powerpc-ieee1275.rmk: Likewise.
17462 * conf/sparc64-ieee1275.rmk: Likewise.
17463 * conf/x86_64-efi.rmk: Likewise.
17465 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17467 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
17469 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
17471 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
17473 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
17475 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
17476 (grub_mkdevicemap_SOURCES): New variable.
17477 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
17478 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
17479 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
17480 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
17481 (grub_mkdevicemap_SOURCES): Remove.
17482 * conf/i386-efi.rmk: Likewise.
17483 * conf/i386-ieee1275.rmk: Likewise.
17484 * conf/i386-pc.rmk: Likewise.
17485 * conf/powerpc-ieee1275.rmk: Likewise.
17486 * conf/sparc64-ieee1275.rmk: Likewise.
17487 * conf/x86_64-efi.rmk: Likewise.
17488 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
17489 (usage): Fix strings to use `program_name'.
17490 (main): Initialize gettext.
17491 * util/grub-editenv.c: Likewise.
17492 * util/grub-emu.c: Likewise.
17493 * util/grub-fstest.c: Likewise.
17494 * util/grub-mkdevicemap.c: Likewise.
17495 * util/grub-mkfont.c: Likewise.
17496 * util/grub-mkrelpath.c: Likewise.
17497 * util/grub-pe2elf.c: Likewise.
17498 * util/grub-probe.c: Likewise.
17499 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
17500 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
17501 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17503 * util/misc.c: Include `"progname.h"'.
17504 (progname): Remove variable.
17505 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
17507 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
17509 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
17510 printf and print a newline after the menuentry header line.
17511 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
17513 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
17515 autoconf >= 2.60 support $(localedir).
17517 * INSTALL: Note that autoconf 2.60 is required.
17518 * configure.ac (AC_PREREQ): Bump to 2.60.
17519 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
17520 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
17522 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
17524 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
17527 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
17529 * normal/main.c (grub_normal_read_line): Fix off-by-one
17532 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
17534 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
17535 "parser.grub" in grub_command_execute() call.
17537 2009-11-24 Carles Pina i Estany <carles@pina.cat>
17539 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
17540 * conf/i386-efi.rmk: Likewise.
17541 * conf/i386-ieee1275.rmk: Likewise.
17542 * conf/i386-pc.rmk: Likewise.
17543 * conf/powerpc-ieee1275.rmk: Likewise.
17544 * conf/sparc64-ieee1275.rmk: Likewise.
17545 * conf/x86_64-efi.rmk: Likewise.
17546 * gettext/gettex.c: Include <grub/i18n.h>.
17547 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
17549 * include/grub/i18n.h: ... to here
17550 * include/grub/i18n.h: ... to here.
17551 * kern/misc.c: Include <grub/i18n.h>
17552 (grub_gettext_dummy): Move above user.
17554 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17556 * util/Makefile.in (install-local): Convert a `for' into a normal
17559 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
17561 * autogen.sh: Add automake call.
17562 * config.guess: Remove.
17563 * config.sub: Likewise.
17564 * install-sh: Likewise.
17566 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17568 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
17570 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17572 * util/Makefile.in (install-local): Convert a make `$(foreach)'
17573 function to a normal shell `for'.
17575 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17577 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
17579 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17581 * util/grub-mkrelpath.c: New file.
17582 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
17583 (grub_mkrelpath_SOURCES): New variable.
17584 * include/grub/util/misc.h: New function prototype.
17585 * util/misc.c (make_system_path_relative_to_its_root): New function.
17587 * util/grub-mkconfig_lib.in (bindir): New variable.
17588 (grub_mkrelpath): Likewise.
17589 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
17591 * util/probe.c (probe): Make the file path relative to its root.
17592 Change a info message to use the GRUB path. Enable again the
17593 check if we can read the file with GRUB facilities.
17595 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
17598 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17600 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
17603 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17605 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
17608 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
17610 * util/getroot.c (grub_util_is_dmraid): New function.
17611 (grub_util_get_dev_abstraction): Treat dmraid and multipath
17612 devices as normal ones, not as LVM.
17614 2009-11-23 Carles Pina i Estany <carles@pina.cat>
17616 * conf/common.rmk: Add grub-gettext_lib target and updates
17617 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
17619 * gettext/gettext.c: New file. (Reads mo files).
17620 * include/grub/file.h (grub_file_pread): New prototype.
17621 * include/grub/i18n.h (_): New prototype.
17622 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
17624 * kern/misc.c (grub_gettext_dummy): New function.
17625 * normal/menu_text.c: Include <grub/i18n.h>.
17626 * normal/menu_text.c (print_timeout): Gettexttize string.
17627 * normal/menu_text.c (print_message): Gettexttize string.
17628 * po/POTFILES: Add `normal/menu_text.c'.
17629 * po/ca.po: Add new translations.
17630 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
17631 gettext module and defines locale_dir and lang in grub.cfg.
17632 * NEWS: Add gettext support.
17634 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17636 * util/hostdisk.c: Include `<grub/i18n.h>'.
17637 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
17638 (make_device_name): Rewrite using asprintf.
17639 (convert_system_partition_to_system_disk): Replace 0 with NULL.
17640 (find_system_device): If a device is not found, generate one just
17641 by reusing the OS path name.
17642 (read_device_map): Make it permissible for device.map not to exist.
17644 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17646 * script/sh/execute.c: Move from here ...
17647 * script/execute.c: ... to here. Update all users.
17648 * script/sh/function.c: Move from here ...
17649 * script/function.c: ... to here. Update all users.
17650 * script/sh/lexer.c: Move from here ...
17651 * script/lexer.c: ... to here. Update all users.
17652 * script/sh/main.c: Move from here ...
17653 * script/main.c: ... to here. Update all users.
17654 * script/sh/parser.y: Move from here ...
17655 * script/parser.y: ... to here. Update all users.
17656 * script/sh/script.c: Move from here ...
17657 * script/script.c: ... to here. Update all users.
17659 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17661 * configure.ac: Detect all `emu' platforms. Define
17662 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
17663 --enable-grub-emu logic. Disable include/grub/machine
17664 symlink on `emu' platforms.
17666 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
17667 * gensymlist.sh.in: Likewise.
17669 * include/grub/i386/coreboot/machine.h: Remove file.
17670 * include/grub/i386/efi/machine.h: Likewise.
17671 * include/grub/i386/ieee1275/machine.h: Likewise.
17672 * include/grub/i386/pc/machine.h: Likewise.
17673 * include/grub/i386/qemu/machine.h: Likewise.
17674 * include/grub/powerpc/ieee1275/machine.h: Likewise.
17675 * include/grub/sparc64/ieee1275/machine.h: Likewise.
17676 * include/grub/x86_64/efi/machine.h: Likewise.
17678 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
17679 * commands/halt.c: Likewise.
17680 * commands/reboot.c: Likewise.
17681 * include/grub/autoefi.h: Likewise.
17682 * include/grub/i386/at_keyboard.h: Likewise.
17683 * include/grub/i386/kernel.h: Likewise.
17684 * include/grub/i386/loader.h: Likewise.
17685 * include/grub/i386/pc/memory.h: Likewise.
17686 * kern/dl.c: Likewise.
17687 * kern/i386/coreboot/init.c: Likewise.
17688 * loader/i386/bsd.c: Likewise.
17689 * loader/i386/linux.c: Likewise.
17690 * loader/multiboot_loader.c: Likewise.
17691 * term/i386/pc/serial.c: Likewise.
17692 * term/usb_keyboard.c: Likewise.
17694 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
17695 `<grub/machine/machine.h>'
17696 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
17697 * util/misc.c: Remove `<grub/machine/machine.h>' and
17698 `<grub/machine/time.h>'.
17700 * Makefile.in (enable_grub_emu): Remove variable.
17701 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
17703 * conf/any-emu.rmk: New file.
17704 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
17705 (grub_emu_init.c): Move from here ...
17706 * conf/any-emu.rmk: ... to here.
17708 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
17709 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
17710 * conf/any-emu.rmk: ... to here.
17712 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17714 * include/grub/parser.h (grub_parser_register): Document need
17715 of `name' parameter.
17716 * normal/main.c (grub_normal_read_line): Simplify prompt string.
17717 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
17720 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17722 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
17724 * include/grub/i18n.h (N_): New macro.
17725 * util/mkisofs/mkisofs.h: Likewise.
17726 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
17728 (usage): Use gettext() to translate help strings when printing them.
17730 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
17732 Based on patch from Bean
17733 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
17735 * video/efi_fb.c: New file.
17736 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
17737 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
17739 * conf/x86_64-efi.rmk: Likewise.
17741 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
17743 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
17744 * util/i386/pc/grub-setup.c: Likewise.
17746 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17748 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
17750 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
17751 file_get_storage_info to implement grub_guess_root_device.
17753 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
17755 * Makefile.in (target): Use make's builtin $(shell) function
17756 instead of calling directly $(SHELL) to create the locale directories,
17757 inside the $(foreach) function.
17759 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
17761 * util/grub-mkrescue.in: Print an error and usage if output option
17762 has not been given.
17764 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
17766 Patch from Loïc Minier <loic.minier@ubuntu.com>.
17767 * util/grub.d/30_os-prober.in: Cope with Linux entries where
17768 root and /boot are on different devices.
17770 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
17772 Fix build for srcdir != objdir.
17774 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
17775 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
17777 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
17778 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
17779 reference for input.
17781 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
17783 * util/grub-mkrescue.in: Use source directory direcly (without copiing
17784 or hardlinking it). Remove -J option, Joliet is not compatible with
17785 multiple source directories.
17787 2009-11-21 Carles Pina i Estany <carles@pina.cat>
17788 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
17790 * util/grub-mkrescue.in: Recognize `--override-directory' option.
17791 (process_input_dir): New function. Process an arbitrary input
17793 Misc adjustments to support both "override mode" and system-wide mode.
17795 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
17797 * configure.ac (UNIFONT_BDF): Rename to ...
17798 (FONT_SOURCE): ... this. Update all users.
17800 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
17802 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
17803 to the list of unifont files to look for.
17805 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
17807 Patch from Joe Auricchio <jauricchio@gmail.com>
17808 * commands/minicmd.c (grub_mini_cmd_clear): New function.
17809 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
17810 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
17812 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
17814 * Makefile.in (install-local): Add a missing backslash.
17816 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
17818 * include/grub/x86_64/io.h: New file.
17820 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
17822 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
17823 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
17824 Include `"progname.h"'.
17825 (main): Initialize gettext.
17826 * util/i386/pc/grub-setup.c: Gettexttize.
17827 * util/i386/pc/grub-mkimage.c: Likewise.
17829 * Makefile.in (po/*.po): Redefine as ...
17830 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
17832 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
17834 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
17836 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
17837 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
17838 (program_name): Remove.
17839 (main): Initialize gettext support.
17840 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
17841 Include `<libintl.h>'.
17844 * util/mkisofs/eltorito.c: Gettexttize.
17845 * util/mkisofs/joliet.c: Likewise.
17846 * util/mkisofs/mkisofs.c: Likewise.
17847 * util/mkisofs/multi.c: Likewise.
17848 * util/mkisofs/rock.c: Likewise.
17849 * util/mkisofs/tree.c: Likewise.
17850 * util/mkisofs/write.c: Likewise.
17852 * po/POTFILES: Update with new files.
17854 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17856 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
17857 * util/mkisofs/iso9660.h: Likewise.
17858 * util/mkisofs/joliet.c: Likewise.
17859 * util/mkisofs/mkisofs.c: Likewise.
17860 * util/mkisofs/mkisofs.h: Likewise.
17861 * util/mkisofs/rock.c: Likewise.
17862 * util/mkisofs/tree.c: Likewise.
17863 * util/mkisofs/write.c: Likewise.
17865 * util/mkisofs/eltorito.c (rcsid): Remove.
17866 * util/mkisofs/hash.c: Likewise.
17867 * util/mkisofs/joliet.c: Likewise.
17868 * util/mkisofs/name.c: Likewise.
17869 * util/mkisofs/rock.c: Likewise.
17870 * util/mkisofs/tree.c: Likewise.
17871 * util/mkisofs/write.c: Likewise.
17873 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17875 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
17876 instead of static allocation.
17877 * util/mkisofs/match.h: Likewise.
17879 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17881 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
17882 and `util/grub.d/10_linux.in'.
17883 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
17884 translatable Shell files.
17886 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
17888 * Makefile.in ($(srcdir)/aclocal.m4): New target.
17890 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17892 * INSTALL: Document Automake is needed for bootstrap.
17893 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
17894 * util/grub.d/10_kfreebsd.in (bindir): New variable.
17895 Add gettext initialization.
17896 (kfreebsd_entry): Make menuentry output translatable.
17898 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17900 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
17901 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
17902 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
17903 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
17904 (LINGUAS): Auto-generate using `po/LINGUAS'.
17905 * po/LINGUAS: New file.
17907 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17909 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
17911 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
17912 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
17913 bindtextdomain() calls for gettext initialization.
17915 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17917 * gnulib/progname.c: New file (imported from Gnulib).
17918 * gnulib/progname.h: Likewise.
17919 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
17920 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
17921 (usage): Replace `progname' with `program_name'.
17922 (main): Use set_program_name() for program name initialization.
17924 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17926 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
17928 * Makefile.in (CPPFLAGS): ... to here.
17930 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
17932 * aclocal.m4: Move from here ...
17933 * acinclude.m4: ... to here.
17934 * autogen.sh: Add call to `aclocal'.
17935 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
17937 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
17939 * Makefile.in (CLEANFILES): Add `po/*.mo'.
17940 (LINGUAS): New variable.
17941 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
17942 (install-local): Install MO files.
17943 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
17944 * include/grub/i18n.h: New file.
17945 * po/POTFILES: New file.
17946 * po/ca.po: New file.
17947 * util/grub.d/10_linux.in (bindir): New variable.
17948 Add gettext initialization.
17949 (linux_entry): Make menuentry output translatable.
17950 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
17951 (usage): Make --help output translatable.
17952 (main): Initialize gettext.
17954 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17956 * import_gcry.py: New file (written by Vladimir with minor
17958 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
17960 * INSTALL: Document that Python is required for bootstrap.
17962 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
17964 Import ciphers from libgcrypt 1.4.4.
17966 * lib/libgcrypt/cipher/ChangeLog
17967 * lib/libgcrypt/cipher/ac.c
17968 * lib/libgcrypt/cipher/arcfour.c
17969 * lib/libgcrypt/cipher/bithelp.h
17970 * lib/libgcrypt/cipher/blowfish.c
17971 * lib/libgcrypt/cipher/camellia-glue.c
17972 * lib/libgcrypt/cipher/camellia.c
17973 * lib/libgcrypt/cipher/camellia.h
17974 * lib/libgcrypt/cipher/cast5.c
17975 * lib/libgcrypt/cipher/cipher.c
17976 * lib/libgcrypt/cipher/crc.c
17977 * lib/libgcrypt/cipher/des.c
17978 * lib/libgcrypt/cipher/dsa.c
17979 * lib/libgcrypt/cipher/ecc.c
17980 * lib/libgcrypt/cipher/elgamal.c
17981 * lib/libgcrypt/cipher/hash-common.c
17982 * lib/libgcrypt/cipher/hash-common.h
17983 * lib/libgcrypt/cipher/hmac-tests.c
17984 * lib/libgcrypt/cipher/md.c
17985 * lib/libgcrypt/cipher/md4.c
17986 * lib/libgcrypt/cipher/md5.c
17987 * lib/libgcrypt/cipher/primegen.c
17988 * lib/libgcrypt/cipher/pubkey.c
17989 * lib/libgcrypt/cipher/rfc2268.c
17990 * lib/libgcrypt/cipher/rijndael-tables.h
17991 * lib/libgcrypt/cipher/rijndael.c
17992 * lib/libgcrypt/cipher/rmd.h
17993 * lib/libgcrypt/cipher/rmd160.c
17994 * lib/libgcrypt/cipher/rsa.c
17995 * lib/libgcrypt/cipher/seed.c
17996 * lib/libgcrypt/cipher/serpent.c
17997 * lib/libgcrypt/cipher/sha1.c
17998 * lib/libgcrypt/cipher/sha256.c
17999 * lib/libgcrypt/cipher/sha512.c
18000 * lib/libgcrypt/cipher/tiger.c
18001 * lib/libgcrypt/cipher/twofish.c
18002 * lib/libgcrypt/cipher/whirlpool.c
18004 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
18006 Fix build for systems without error().
18008 * gnulib/error.c: New file (imported from Gnulib).
18009 * gnulib/error.h: Likewise.
18010 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
18011 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
18012 (this variable is now used by error()).
18014 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
18016 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
18017 instead of relying that char is signed.
18019 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18021 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
18022 blocksize different from specified.
18023 (grub_pxefs_read): Likewise.
18025 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
18027 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
18029 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
18030 (grub_ata_readwrite): Likewise. Update 2 format strings.
18031 (grub_atapi_read): Likewise.
18033 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
18034 * conf/i386.rmk (pkglib_MODULES): ... to here ...
18035 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
18036 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
18037 (ata_mod_LDFLAGS): Move from here ...
18038 * conf/i386.rmk: ... to here ...
18039 * conf/x86_64-efi.rmk: ... and here.
18040 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
18041 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
18043 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
18045 Relicense multiboot.h, with RMS' blessing.
18047 * include/multiboot.h: Change to X11 license.
18049 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
18051 Support --version in grub-mkisofs.
18053 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
18054 (OPTION_VERSION): New macro.
18055 (ld_options): Recognize --version.
18056 (usage): Move `program_name' from here ...
18057 (program_name): ... to here. Add `static' qualifier.
18058 (main): Recognize `OPTION_VERSION'.
18060 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
18062 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
18063 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
18065 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
18067 Fix help2man generation for mkisofs.
18069 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
18070 (usage): Send output to stdout (rather than stderr).
18072 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
18074 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
18075 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
18076 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
18077 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
18078 (bin_SCRIPTS): Add `grub-mkfloppy'.
18079 (grub_mkfloppy_SOURCES): New variable.
18081 * util/grub-mkrescue.in: New file.
18082 * util/i386/pc/grub-mkfloppy.in: New file.
18084 * util/i386/coreboot/grub-mkrescue.in: Remove.
18085 * util/i386/pc/grub-mkrescue.in: Remove.
18087 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
18089 * include/grub/multiboot.h (struct grub_multiboot_header): Move
18091 * include/multiboot.h (struct multiboot_header): ... to here. Update
18093 * include/grub/multiboot.h (struct grub_multiboot_info): Move
18095 * include/multiboot.h (struct multiboot_info): ... to here. Update
18097 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
18099 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
18101 * include/grub/multiboot.h (struct grub_mod_list): Move
18103 * include/multiboot.h (struct multiboot_mod_list): ... to here.
18106 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
18108 * include/multiboot2.h (multiboot_word): Rename from this ...
18109 (multiboot2_word): ... to this. Update all users.
18110 (multiboot_header): Rename from this ...
18111 (multiboot2_header): ... to this. Update all users.
18112 (multiboot_tag_header): Rename from this ...
18113 (multiboot2_tag_header): ... to this. Update all users.
18114 (multiboot_tag_start): Rename from this ...
18115 (multiboot2_tag_start): ... to this. Update all users.
18116 (multiboot_tag_name): Rename from this ...
18117 (multiboot2_tag_name): ... to this. Update all users.
18118 (multiboot_tag_module): Rename from this ...
18119 (multiboot2_tag_module): ... to this. Update all users.
18120 (multiboot_tag_memory): Rename from this ...
18121 (multiboot2_tag_memory): ... to this. Update all users.
18122 (multiboot_tag_unused): Rename from this ...
18123 (multiboot2_tag_unused): ... to this. Update all users.
18124 (multiboot_tag_end): Rename from this ...
18125 (multiboot2_tag_end): ... to this. Update all users.
18127 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
18129 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
18130 this platform we should support Multiboot1 first.
18132 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
18133 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
18134 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
18136 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
18138 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
18139 of write calls (converting them to fwrite() if they aren't already).
18140 (get_torito_desc): Likewise.
18141 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
18143 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
18145 * util/i386/pc/grub-install.in: Move from here ...
18146 * util/grub-install.in: ... to here. Update all users.
18148 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
18150 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
18152 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
18154 Support for El Torito without floppy emulation.
18156 * util/mkisofs/eltorito.c: Include `<errno.h>'.
18157 (init_boot_catalog): Improve error handling.
18158 (get_torito_desc): Don't use floppy emulation unless requested by
18159 user. Patch boot information table when requested via
18160 `-boot-info-table'.
18161 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
18162 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
18163 (use_boot_info_table): New variables.
18164 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
18165 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
18166 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
18167 `--eltorito-emul-floppy'.
18168 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
18169 and `OPTION_ELTORITO_EMUL_FLOPPY'.
18170 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
18171 (use_boot_info_table, get_731): New prototypes.
18172 * util/mkisofs/write.c (get_731): New function.
18174 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
18176 Fix the generation of the man page.
18178 * util/pc/i386/grub-install.in: Source
18179 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
18181 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
18183 Large file support for grub-mkisofs.
18185 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
18186 * util/mkisofs/mkisofs.c (next_extent, last_extent)
18187 (session_start): Upgrade type to `uint64_t'. Update all users.
18188 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
18189 (struct directory_entry): Upgrade type of `starting_block' and
18190 `size' to `uint64_t'. Update all users.
18191 (struct deferred): Remove unused structure.
18192 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
18194 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
18195 file is larger than `UINT32_MAX'.
18196 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
18197 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
18199 (struct deferred_write): Upgrade type of `extent' and `size' to
18200 `uint64_t'. Update all users.
18201 (last_extent_written): Upgrade type to `uint64_t'. Update all
18203 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
18204 Update all users. Upgrade type of `remain' to `int64_t' and
18205 `use' to `size_t'. Use error() to handle fread() errors.
18206 (write_files): Rely on write_one_file() rather than calling
18207 xfwrite() directly.
18209 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
18211 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
18213 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18215 * util/mkisofs/fnmatch.c: Remove.
18216 * util/mkisofs/getopt1.c: Likewise.
18217 * util/mkisofs/getopt.c: Likewise.
18218 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
18219 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
18220 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
18221 `gnulib/getopt1.c' and `gnulib/getopt.c'.
18222 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
18224 * configure.ac: Detect `mingw32msvc' host_os.
18225 Check for lstat(), getuid() and getgid().
18227 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
18228 instances of `u_char' with `uint8_t'.
18230 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
18231 [!HAVE_GETUID] (getuid): New function (stub).
18232 [!HAVE_GETGID] (getgid): Likewise.
18233 [!HAVE_LSTAT] (lstat): Likewise.
18234 [!S_IROTH] (S_IROTH): New macro (dummy).
18235 [!S_IRGRP] (S_IRGRP): Likewise.
18237 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18239 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
18240 conditional expression).
18242 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18244 Import from Gnulib.
18246 * gnulib/fnmatch.c: New file.
18247 * gnulib/fnmatch.h: Likewise.
18248 * gnulib/fnmatch_loop.c: Likewise.
18249 * gnulib/getopt.c: Likewise.
18250 * gnulib/getopt.h: Likewise.
18251 * gnulib/getopt1.c: Likewise.
18252 * gnulib/getopt_int.h: Likewise.
18253 * gnulib/gettext.h: Likewise.
18255 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18257 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
18258 * normal/handler.c (read_handler_list): Likewise.
18260 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18264 * kern/command.c (grub_register_command_prio): Use
18265 grub_zalloc() instead of explicitly zeroing data.
18266 * kern/list.c: Include `<grub/mm.h>'.
18267 (grub_named_list_find): Replace `0' with `NULL'.
18268 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
18269 (fs_module_list): Change type to `grub_named_list_t'. Update all
18271 * normal/dyncmd.c (read_command_list): Add space between function
18272 call and parenthesis.
18273 * normal/handler.c (read_handler_list): Likewise.
18275 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18277 * normal/auth.c (punishment_delay): Moved from here ...
18278 (grub_auth_strcmp): ... to here (inside function).
18280 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18282 * include/grub/list.h (struct grub_named_list): Remove `const'
18283 qualifier from `name'.
18284 (struct grub_prio_list): Likewise.
18286 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18288 * normal/auth.c: Include `<grub/time.h>'.
18289 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
18291 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18293 * normal/auth.c (punishment_delay): New variable.
18294 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
18295 (grub_auth_check_authentication): Punish failed login attempts with
18296 an incremental (2^N) delay.
18298 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18300 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
18301 path with $(srcdir).
18303 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
18305 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
18307 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
18309 * util/i386/coreboot/grub-mkrescue.in: New file.
18310 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
18313 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
18314 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
18315 * configure.ac: Add header and function checks to satisfy grub-mkisofs
18317 * util/mkisofs/defaults.h: New file.
18318 * util/mkisofs/eltorito.c: Likewise.
18319 * util/mkisofs/exclude.h: Likewise.
18320 * util/mkisofs/fnmatch.c: Likewise.
18321 * util/mkisofs/getopt.c: Likewise.
18322 * util/mkisofs/getopt1.c: Likewise.
18323 * util/mkisofs/hash.c: Likewise.
18324 * util/mkisofs/include/fctldefs.h: Likewise.
18325 * util/mkisofs/include/mconfig.h: Likewise.
18326 * util/mkisofs/include/prototyp.h: Likewise.
18327 * util/mkisofs/include/statdefs.h: Likewise.
18328 * util/mkisofs/iso9660.h: Likewise.
18329 * util/mkisofs/joliet.c: Likewise.
18330 * util/mkisofs/match.c: Likewise.
18331 * util/mkisofs/match.h: Likewise.
18332 * util/mkisofs/mkisofs.c: Likewise.
18333 * util/mkisofs/mkisofs.h: Likewise.
18334 * util/mkisofs/multi.c: Likewise.
18335 * util/mkisofs/name.c: Likewise.
18336 * util/mkisofs/rock.c: Likewise.
18337 * util/mkisofs/tree.c: Likewise.
18338 * util/mkisofs/write.c: Likewise.
18340 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
18342 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
18345 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
18347 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
18348 `grub-mkimage' (and use $0 when possible).
18350 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
18352 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
18353 error message for excessively large memory map.
18355 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
18357 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
18360 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
18362 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
18363 message for coreboot users.
18365 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
18367 Fix build with GNU gold.
18369 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
18370 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
18371 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
18373 * aclocal.m4: Likewise.
18375 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
18377 * configure.ac (AC_PREREQ): Bump to 2.59d.
18378 * INSTALL: Make it more clear when Autoconf and Ruby are
18379 needed and when to run `./autogen.sh'.
18381 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18383 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
18386 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18388 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
18390 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18392 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
18393 giving it to GNU Mach.
18395 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18397 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
18398 GNU partition number to get internal GRUB partition number.
18400 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18402 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
18403 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
18405 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
18407 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
18408 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
18411 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
18413 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
18415 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
18419 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
18420 `-isystem=$(srcdir)/include'.
18422 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
18424 * util/i386/pc/grub-install.in: Remove hint that device.map should be
18425 checked (grub-install doesn't currently rely on it).
18427 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
18431 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
18432 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
18433 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
18434 * conf/i386-ieee1275.rmk: Likewise.
18435 * conf/i386-pc.rmk: Likewise.
18436 * conf/powerpc-ieee1275.rmk: Likewise.
18437 * conf/sparc64-ieee1275.rmk: Likewise.
18438 * conf/x86_64-efi.rmk: Likewise.
18440 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
18442 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
18444 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
18446 * include/grub/misc.h: Stop checking for APPLE_CC.
18448 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
18450 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
18451 doesn't cause an infinite call loop.
18453 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
18455 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
18458 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18460 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
18462 * Makefile.in: Likewise.
18464 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18466 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
18468 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18470 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
18472 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18474 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
18476 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18478 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
18480 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
18482 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18484 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
18485 in $(MAKEINFO) invocation. This makes it clear in output that
18486 errors are being ignored.
18488 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18490 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
18492 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
18493 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
18494 * conf/i386-ieee1275.rmk: Likewise.
18495 * conf/i386-pc.rmk: Likewise.
18496 * conf/powerpc-ieee1275.rmk: Likewise.
18497 * conf/sparc64-ieee1275.rmk: Likewise.
18498 * conf/x86_64-efi.rmk: Likewise.
18500 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
18502 * util/grub-editenv.c (main): If only a command is given, use
18503 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
18504 (usage): FILENAME is now optional and has a default.
18506 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
18508 Improve grub-mkconfig performance when there are several menu
18509 entries on a single filesystem.
18511 * util/grub.d/10_linux.in (linux_entry): Cache the output of
18512 prepare_grub_to_access_device.
18513 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
18514 * util/grub.d/30_os-prober.in: Likewise.
18516 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18518 * util/grub.d/10_freebsd.in: Remove.
18519 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
18520 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
18522 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
18524 * docs/grub.cfg: Fix example usage of *BSD loaders.
18526 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18528 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
18529 grub_util_error() call.
18531 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18533 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
18534 `reserved_first_sector' member.
18535 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
18536 `reserved_first_sector' to 1.
18537 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
18538 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
18539 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
18540 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
18541 filesystems which begin at first sector.
18542 (options): New option --skip-fs-probe.
18543 (main): Handle --skip-fs-probe and pass it to setup().
18545 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18547 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
18548 (memset): Fix function prototype.
18550 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18551 2009-10-25 Vasily Averin <vvs@parallels.com>
18553 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
18554 `dirent.direntlen == 0'.
18556 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18558 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
18560 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
18562 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18564 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
18565 `__trampoline_setup' and `__ucmpdi2'.
18566 * include/grub/powerpc/libgcc.h: Only export symbols for functions
18567 that libgcc provides.
18569 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18571 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
18572 * include/grub/sparc64/libgcc.h (memset): Likewise.
18573 * include/grub/misc.h (memset, memcmp): New function prototypes.
18575 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18577 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
18579 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
18581 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
18583 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
18584 * docs/grub.cfg: Compensate for recent change in multiboot
18585 loader (since 2009-08-14 it won't pass filename to payload).
18586 * util/grub.d/10_hurd.in: Likewise.
18588 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
18590 * config.guess: Update to latest version from config git
18592 * config.sub: Likewise.
18594 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
18596 Fix build on sparc64.
18598 * configure.ac: Perform checks for libgcc symbols before
18599 adding `-nostdlib' to LDFLAGS.
18601 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18603 Let user specify OpenBSD root device.
18605 * loader/i386/bsd.c (openbsd_root): New variable.
18606 (openbsd_opts): New option 'root'.
18607 (OPENBSD_ROOT_ARG): New macro.
18608 (grub_openbsd_boot): Use 'openbsd_root'.
18609 (grub_cmd_openbsd): Fill 'openbsd_root'.
18611 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
18613 * NEWS: Misc adjustments.
18615 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18617 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
18619 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
18621 * configure.ac: Bump version to 1.97.
18623 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
18625 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
18626 -mno-3dnow on x86 architectures. Some toolchains enable these
18627 features by default, but they rely on registers that aren't enabled
18628 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
18630 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
18632 Make entry text a bit more readable.
18634 * util/grub.d/10_linux.in: Add `with' before `Linux'.
18636 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18638 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
18640 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18642 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
18645 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18647 * configure.ac: Add missing dollar.
18649 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
18651 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
18653 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
18654 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
18656 * include/grub/sparc64/libgcc.h: Likewise. Use
18657 preprocessor conditionals.
18659 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
18661 * conf/common.rmk (grub-dumpbios): Remove rule.
18662 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
18663 * util/grub-dumpbios.in: Remove file.
18665 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
18667 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
18668 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
18670 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
18671 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
18674 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
18675 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
18676 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
18677 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
18680 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
18682 * term/tparm.c: Switch to GPLv3.
18684 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
18686 * include/grub/i386/cpuid.h: Add header protection.
18688 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
18690 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
18692 * include/grub/i386/cpuid.h: New file.
18693 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
18694 (has_longmode): Rename to ...
18695 (grub_cpuid_has_longmode): ... this. Update all users. Remove
18696 `static' attribute.
18697 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
18698 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
18699 on a CPU that doesn't implement AMD64 instruction set.
18701 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
18703 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
18704 that version.texi is rebuilt on version number changes.
18706 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
18708 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
18711 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
18713 * util/i386/pc/grub-install.in: Source
18714 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
18715 that the --grub-probe option will work.
18716 * util/sparc64/ieee1275/grub-install.in: Likewise.
18718 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
18720 * configure.ac: Bump version to 1.97~beta4.
18722 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
18724 Resync grub-mkdevicemap in x86_64-efi.
18726 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
18727 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
18728 `util/devicemap.c'.
18730 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
18732 * util/grub-editenv.c (create_envblk_file): Write new block with a
18733 .new suffix and then rename it into place, to ensure atomic
18736 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
18738 Do not automatically install headers.
18740 * Makefile.in (include_DATA): Remove. Update all users.
18742 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
18744 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
18745 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
18747 * util/osdetect.lua: Remove.
18748 * script/lua/lauxlib.c: Likewise.
18749 * script/lua/ldebug.c: Likewise.
18750 * script/lua/grub_main.c: Likewise.
18751 * script/lua/lauxlib.h: Likewise.
18752 * script/lua/ldebug.h: Likewise.
18753 * script/lua/ltablib.c: Likewise.
18754 * script/lua/liolib.c: Likewise.
18755 * script/lua/lstrlib.c: Likewise.
18756 * script/lua/lualib.h: Likewise.
18757 * script/lua/ldo.c: Likewise.
18758 * script/lua/ldump.c: Likewise.
18759 * script/lua/ldo.h: Likewise.
18760 * script/lua/loslib.c: Likewise.
18761 * script/lua/lundump.c: Likewise.
18762 * script/lua/grub_lib.c: Likewise.
18763 * script/lua/ldblib.c: Likewise.
18764 * script/lua/lundump.h: Likewise.
18765 * script/lua/lmem.c: Likewise.
18766 * script/lua/grub_lib.h: Likewise.
18767 * script/lua/lmathlib.c: Likewise.
18768 * script/lua/lstate.c: Likewise.
18769 * script/lua/ltm.c: Likewise.
18770 * script/lua/lvm.c: Likewise.
18771 * script/lua/lmem.h: Likewise.
18772 * script/lua/lstate.h: Likewise.
18773 * script/lua/ltm.h: Likewise.
18774 * script/lua/ltable.c: Likewise.
18775 * script/lua/lvm.h: Likewise.
18776 * script/lua/llex.c: Likewise.
18777 * script/lua/lgc.c: Likewise.
18778 * script/lua/grub_lua.h: Likewise.
18779 * script/lua/loadlib.c: Likewise.
18780 * script/lua/lfunc.c: Likewise.
18781 * script/lua/lopcodes.c: Likewise.
18782 * script/lua/lparser.c: Likewise.
18783 * script/lua/ltable.h: Likewise.
18784 * script/lua/llex.h: Likewise.
18785 * script/lua/lgc.h: Likewise.
18786 * script/lua/lfunc.h: Likewise.
18787 * script/lua/lbaselib.c: Likewise.
18788 * script/lua/lopcodes.h: Likewise.
18789 * script/lua/lparser.h: Likewise.
18790 * script/lua/lzio.c: Likewise.
18791 * script/lua/linit.c: Likewise.
18792 * script/lua/lobject.c: Likewise.
18793 * script/lua/llimits.h: Likewise.
18794 * script/lua/lstring.c: Likewise.
18795 * script/lua/lzio.h: Likewise.
18796 * script/lua/lapi.c: Likewise.
18797 * script/lua/lcode.c: Likewise.
18798 * script/lua/lua.h: Likewise.
18799 * script/lua/lobject.h: Likewise.
18800 * script/lua/lstring.h: Likewise.
18801 * script/lua/lapi.h: Likewise.
18802 * script/lua/lcode.h: Likewise.
18803 * script/lua/luaconf.h: Likewise.
18805 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
18807 * docs/grub.texi (Command-line and menu entry commands): Document
18808 date and echo commands.
18810 2009-09-24 Pavel Roskin <proski@gnu.org>
18812 * include/grub/kernel.h (struct grub_module_header): Remove
18813 `grub_module_header_types'. Make `type' unsigned. Make `size'
18814 32-bit on all platforms.
18815 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
18816 8-bit field. Use grub_host_to_target32() for `size'.
18817 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
18818 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
18819 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
18821 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
18823 Fix "lost keypress" bug in at_keyboard.
18825 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
18826 Checks for readyness of input buffer (without flushing it).
18827 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
18828 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
18830 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
18832 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
18833 size check within GRUB_MACHINE_PCBIOS section.
18835 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
18837 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
18839 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
18840 KEYBOARD_ISREADY check.
18841 (grub_at_keyboard_checkkey): Rename to ...
18842 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
18843 Remove gratuitous cast.
18845 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
18847 * configure.ac: Call AC_PROG_MKDIR_P.
18848 * Makefile.in (docs/stamp-vti): Create docs directory. Create
18849 version.texi in $(builddir) rather than $(srcdir).
18850 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
18851 to makeinfo's @include search path.
18853 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
18855 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
18857 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
18859 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
18862 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
18864 Build info documentation. Some code borrowed from Automake.
18866 * configure.ac: Check for makeinfo.
18867 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
18868 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
18870 (MOSTLYCLEANFILES): Add vti.tmp.
18871 (docs/version.texi, docs/stamp-vti): Update automatically.
18872 (docs/grub.info): Build info documentation. Use --force and ignore
18874 (all-local): Add $(INFOS).
18875 (install-local): Install info files.
18876 (uninstall): Uninstall info files.
18877 * docs/version.texi: Remove from revision control. This file is
18878 automatically generated on build now.
18879 * gendistlist.sh: Add `*.info'.
18881 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
18883 * kern/term.c: Fix indentation.
18885 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
18887 * util/hostdisk.c: Fix a comment.
18889 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
18891 Fix regression introduced in r2539.
18893 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
18896 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
18898 * util/grub.d/30_os-prober.in: Don't throw away stderr from
18899 os-prober. Under normal operation, it does not print anything to
18900 stderr; if it does, we need to debug it, and throwing away stderr
18901 makes that excessively difficult.
18903 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
18905 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
18907 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
18909 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
18910 AC_LANG_PROGRAM from autoconf.
18911 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
18912 prototypes (fixes warning).
18914 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
18915 `--disable-werror' was used.
18917 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
18919 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
18920 uninitialized `lastaddr'.
18922 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18924 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
18926 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
18928 * commands/test.c (get_fileinfo): Return immediately if
18929 grub_fs_probe fails.
18931 2009-09-14 José Martínez <xosemp@gmail.com>
18933 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
18935 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
18937 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
18940 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
18942 * configure.ac: Remove --enable-grub-pe2elf. Only build
18943 grub-pe2elf when needed by the build system itself.
18944 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
18946 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
18948 * configure.ac: Bump version to 1.97~beta3.
18949 * docs/version.texi: Likewise.
18951 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
18953 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
18954 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
18956 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
18957 (grub_linux_setup_video): ... to here (with some adjustments).
18959 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
18961 Fix memory corruption issue (spotted by Colin Watson).
18963 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
18964 causing returned size to be stored in an incorrect memory location.
18965 Fix use of uninitialized value when storing the returned size.
18967 2009-09-12 Yves Blusseau <blusseau@zetam.org>
18969 Change clean rules to properly remove files
18971 * genmk.rb: add new clean rules
18972 * Makefile.in (clean): add the new targets
18973 (mostlyclean): likewise
18975 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
18977 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
18979 * fs/ntfs.c (init_file): Understand 64-bit sizes for
18980 non-resident files.
18982 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
18984 * configure.ac: Don't look for help2man when cross-compiling. Fixes
18985 part of bug #27349.
18987 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
18989 * util/grub-mkconfig.in: Make the created config mode 400 and
18990 print a warning if it fails.
18992 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
18994 * util/grub.d/40_custom.in: Ask user to type custom entries below
18995 comment, rather than below 'exec tail' line.
18997 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
18999 * util/grub.d/40_custom.in: Make sure that the explanatory text is
19000 visible in grub.cfg.
19002 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
19004 * util/grub.d/40_custom.in: Make it a little clearer how to use this
19007 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
19009 * docs/grub.cfg: Add an example menu entry for memtest86+.
19011 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
19013 * config.guess: Update to latest version from config git.
19014 * config.sub: Likewise.
19016 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
19018 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
19019 unknown-command case. Fixes bug #27320.
19021 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
19023 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
19024 `help' if the command exists.
19026 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
19028 * INSTALL: Require GCC 4.1.3 or later.
19030 2009-09-06 Yves Blusseau <blusseau@zetam.org>
19032 * Makefile.in (RMKFILES): add i386-qemu.rmk
19033 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
19034 $(srcdir)/stamp-h.in
19036 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
19038 * util/grub-probe.c (probe): Comment out buggy codepath, which
19039 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
19040 should be re-enabled after 1.97.
19042 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
19044 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
19047 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
19049 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
19050 unnecessary calls to grub_error.
19052 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
19054 * NEWS: Mention `keystatus' and Unicode fonts.
19056 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
19058 * configure.ac: Bump version to 1.97~beta2.
19059 * docs/version.texi: Likewise.
19061 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
19063 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
19064 containing unwind information in some cases where it previously did
19065 not. Use -fno-dwarf2-cfi-asm if available to restore the old
19066 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
19069 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
19071 Embedding loadenv module into grub-emu
19073 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
19075 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
19076 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
19077 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
19078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
19079 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
19080 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
19082 2009-09-03 Magnus Granberg <zorry@ume.nu>
19084 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
19085 include -fPIE in the default specs.
19086 * configure.ac: Check if pie_possible is yes and add -fno-PIE
19089 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
19091 * INSTALL: Note that GNU Bison 2.3 or later is required.
19093 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
19095 * kern/i386/pc/startup.S: Fix typo.
19097 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19099 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
19102 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
19104 * docs/grub.texi (Naming convention): Describe one-based partition
19106 (Device syntax): Likewise.
19107 (File name syntax): Likewise.
19108 (Block list syntax): Likewise.
19109 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
19111 (File name syntax): Likewise.
19112 (Command-line and menu entry commands): Document acpi, blocklist,
19113 crc, export, insmod, keystatus, ls, set, and unset commands.
19115 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
19117 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
19118 to avoid implying that only one of --shift, --ctrl, or --alt may be
19121 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
19123 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
19124 rather than comparing against S_IFREG, which will almost never work.
19126 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
19128 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
19129 (write_blocklists): Likewise.
19131 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
19133 * script/lua/grub_lua.h (fputs): Supply a format string as the first
19134 argument to grub_printf.
19136 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
19138 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
19141 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19143 * kern/file.c (grub_file_read): Spelling fix
19145 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19147 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
19148 loading of headers in some cases.
19150 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
19152 * configure.ac: Bump version to 1.97~beta1.
19153 * docs/version.texi: Likewise.
19155 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19157 * include/grub/i386/xnu.h: Add license header.
19158 include grub/err.h explicitly.
19160 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
19162 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
19163 to `ufs' in the vfs.root.mountfrom kernel parameter.
19165 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
19167 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
19169 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
19170 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
19172 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
19173 `ARRAY_SIZE' macro.
19175 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19177 * kern/file.c (grub_file_read): Check offset.
19178 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
19179 * fs/jfs.c (grub_jfs_read_file): Likewise.
19180 * fs/ntfs.c (grub_ntfs_read): Likewise.
19181 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
19182 * fs/minix.c (grub_minix_read_file): Correct offset check.
19183 * fs/ufs.c (grub_ufs_read_file): Likewise.
19185 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
19187 * term/i386/pc/console.c (bios_data_area): Cast
19188 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
19190 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19192 1-bit optimised blitters.
19194 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
19196 (grub_video_fbblit_replace_24bit_1bit): Likewise.
19197 (grub_video_fbblit_replace_16bit_1bit): Likewise.
19198 (grub_video_fbblit_replace_8bit_1bit): Likewise.
19199 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
19200 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
19201 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
19202 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
19204 (grub_video_fbblit_replace_24bit_1bit): Likewise.
19205 (grub_video_fbblit_replace_16bit_1bit): Likewise.
19206 (grub_video_fbblit_replace_8bit_1bit): Likewise.
19207 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
19208 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
19209 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
19210 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
19212 * video/video.c (grub_video_get_blit_format): Return
19213 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
19215 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
19217 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
19218 the first argument to grub_printf.
19220 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
19221 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
19223 Add `getkeystatus' terminal method. Add a new `keystatus' command
19226 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
19227 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
19228 modifier key bitmasks.
19229 (struct grub_term_input): Add `getkeystatus' member.
19230 (grub_getkeystatus): Add prototype.
19231 * kern/term.c (grub_getkeystatus): New function.
19233 * include/grub/i386/pc/memory.h
19234 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
19235 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
19237 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
19238 (grub_console_term_input): Set `getkeystatus' member.
19239 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
19241 (grub_usb_keyboard_getreport): Likewise.
19242 (grub_usb_keyboard_checkkey): Likewise.
19243 (grub_usb_keyboard_getkeystatus): New function.
19244 (grub_usb_keyboard_term): Set `getkeystatus' member.
19246 * commands/keystatus.c: New file.
19247 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
19248 (keystatus_mod_SOURCES): New variable.
19249 (keystatus_mod_CFLAGS): Likewise.
19250 (keystatus_mod_LDFLAGS): Likewise.
19251 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
19252 commands/keystatus.c.
19253 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19254 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19255 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19256 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19257 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19258 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19260 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19262 Split befs.mod and afs.mod into *_be.mod and *.mod
19264 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
19265 (grub_fstest_SOURCES): Likewise.
19266 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
19267 (afs_be_mod_SOURCES): New variable.
19268 (afs_be_mod_CFLAGS): Likewise.
19269 (afs_be_mod_LDFLAGS): Likewise.
19270 (befs_be_mod_SOURCES): Likewise.
19271 (befs_be_mod_CFLAGS): Likewise.
19272 (befs_be_mod_LDFLAGS): Likewise.
19273 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
19274 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19275 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19276 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19277 (grub_emu_SOURCES): Likewise.
19278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19279 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19280 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19281 * fs/afs_be.c: New file.
19282 * fs/befs_be.c: New file.
19283 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
19284 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
19285 (U16): Replaced with ...
19286 (grub_afs_to_cpu16): ...this. All users updated.
19287 (U32): Replaced with ...
19288 (grub_afs_to_cpu32): ...this. All users updated.
19289 (U64): Replaced with ...
19290 (grub_afs_to_cpu64): ...this. All users updated.
19291 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
19292 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
19293 (grub_afs_validate_sblock): Check only one endianness.
19294 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
19295 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
19296 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
19297 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
19298 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
19299 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
19300 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
19301 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
19303 2009-08-26 Bean <bean123ch@gmail.com>
19305 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
19307 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
19308 (grub_xfs_inode_block): Change return type to grub_uint64_t.
19309 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
19311 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19313 NetBSD memory map support.
19315 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
19316 (grub_netbsd_btinfo_mmap_header): New structure.
19317 (grub_netbsd_btinfo_mmap_entry): Likewise.
19318 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
19320 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19322 Enable bsd.mod on coreboot.
19324 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
19325 (bsd_mod_SOURCES): New variable.
19326 (bsd_mod_CFLAGS): Likewise.
19327 (bsd_mod_LDFLAGS): Likewise.
19328 (bsd_mod_ASFLAGS): Likewise.
19329 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
19330 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
19332 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19334 Cleanup NetBSD root support.
19336 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
19337 grub_bsd_get_device.
19340 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
19342 * util/grub.d/00_header.in: Move check for the video backend of
19343 gfxterm from here ...
19344 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
19345 a suitable video backend.
19347 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19349 Fix breakage in grub-setup.
19351 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
19352 "msdos_partition_map".
19354 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19356 Fix breakage in normal/auth.c.
19358 * normal/auth.c (grub_iswordseparator): New function.
19360 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19362 Authentication support.
19364 * commands/password.c: New file.
19365 * conf/common.rmk (pkglib_MODULES): Add password.mod.
19366 (password_mod_SOURCES): New variable.
19367 (password_mod_CFLAGS): Likewise.
19368 (password_mod_LDFLAGS): Likewise.
19369 (normal_mod_SOURCES): Add normal/auth.c.
19370 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
19372 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19373 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19374 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19376 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19377 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19378 * include/grub/auth.h: New file.
19379 * include/grub/err.h (grub_err_t): New enum value
19380 GRUB_ERR_ACCESS_DENIED.
19381 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
19383 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
19384 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
19386 * normal/auth.c: New file.
19387 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
19388 (grub_cmdline_run): Don't allow to go to command line without
19390 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
19391 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
19392 menuentry without superuser rights.
19393 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
19394 user isn't a superuser.
19396 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19398 Save space by inlining misc.c functions.
19400 * kern/misc.c (grub_iswordseparator): Made static.
19401 * kern/misc.c (grub_strcat): Moved from here ...
19402 * include/grub/misc.h (grub_strcat): ... here. Inlined.
19403 * kern/misc.c (grub_strncat): Moved from here ...
19404 * include/grub/misc.h (grub_strncat): ... here. Inlined.
19405 * kern/misc.c (grub_strcasecmp): Moved from here ...
19406 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
19407 * kern/misc.c (grub_strncasecmp): Moved from here ...
19408 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
19409 * kern/misc.c (grub_isalpha): Moved from here ...
19410 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
19411 * kern/misc.c (grub_isdigit): Moved from here ...
19412 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
19413 * kern/misc.c (grub_isgraph): Moved from here ...
19414 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
19415 * kern/misc.c (grub_tolower): Moved from here ...
19416 * include/grub/misc.h (grub_tolower): ... here. Inlined.
19418 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19420 * script/sh/function.c (grub_script_function_find): Cut error message
19421 not to flood terminal.
19422 * script/sh/lexer.c (grub_script_yylex): Remove command line length
19424 * script/sh/script.c (grub_script_arg_add): Duplicate string.
19426 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
19428 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
19429 `report' grub_uint8_t *.
19430 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
19431 Use a 50-millisecond timeout rather than just repeating
19432 grub_usb_keyboard_getreport 50 times.
19433 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
19435 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19437 Rename *_partition_map to part_*
19439 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
19440 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
19441 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
19442 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
19444 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
19446 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
19447 * util/grub-probe.c (probe_partmap): Don't transform partition name
19448 to get module name.
19450 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19452 Fix OpenBSD and NetBSD support.
19454 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
19455 memory address conflict.
19456 (OPENBSD_MMAP_ACPI): New definition.
19457 (OPENBSD_MMAP_NVS): Likewise.
19458 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
19459 and OPENBSD_MMAP_NVS.
19460 Add memory map terminator
19461 Explicit cast when calling grub_unix_real_boot.
19462 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
19464 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19466 Let user specify NetBSD root device.
19468 * loader/i386/bsd.c (netbsd_root): New variable.
19469 (netbsd_opts): New option 'root'.
19470 (NETBSD_ROOT_ARG): New macro.
19471 (grub_netbsd_boot): Use 'netbsd_root'.
19472 (grub_bsd_unload): Free 'netbsd_root'.
19473 (grub_cmd_netbsd): Fill 'netbsd_root'.
19475 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19477 Support for 64-bit NetBSD.
19479 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
19480 point when booting non-FreeBSD.
19482 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
19484 Support --no-smp and --no-acpi for NetBSD.
19486 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
19487 (NETBSD_AB_NOACPI): Likewise.
19488 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
19489 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
19491 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
19493 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
19495 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
19496 errors. Call grub_error when needed.
19498 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
19500 * commands/search.c (search_fs): Try searching without autoload first.
19501 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19502 filesystem module explicitly for faster booting.
19504 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
19506 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
19508 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
19510 * util/grub.d/30_os-prober.in: Disable os-prober if
19511 `GRUB_DISABLE_OS_PROBER' was set to true.
19513 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
19515 * partmap/pc.c: Rename to ...
19516 * partmap/msdos.c: ... this. Update all users.
19517 (grub_pc_partition_map): Rename to ...
19518 (grub_msdos_partition_map): ... this. Update all users.
19520 * parttool/pcpart.c: Rename to ...
19521 * parttool/msdospart.c: ... this. Update all users.
19523 * include/grub/pc_partition.h: Rename to ...
19524 * include/grub/msdos_partition.h: ... this. Update all users.
19525 (grub_pc_partition_bsd_entry): Rename to ...
19526 (grub_msdos_partition_bsd_entry): ... this. Update all users.
19527 (grub_pc_partition_disk_label): Rename to ...
19528 (grub_msdos_partition_disk_label): ... this. Update all users.
19529 (grub_pc_partition_entry): Rename to ...
19530 (grub_msdos_partition_entry): ... this. Update all users.
19531 (grub_pc_partition_mbr): Rename to ...
19532 (grub_msdos_partition_mbr): ... this. Update all users.
19533 (grub_pc_partition): Rename to ...
19534 (grub_msdos_partition): ... this. Update all users.
19535 (grub_pc_partition_is_empty): Rename to ...
19536 (grub_msdos_partition_is_empty): ... this. Update all users.
19537 (grub_pc_partition_is_extended): Rename to ...
19538 (grub_msdos_partition_is_extended): ... this. Update all users.
19539 (grub_pc_partition_is_bsd): Rename to ...
19540 (grub_msdos_partition_is_bsd): ... this. Update all users.
19542 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
19543 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
19544 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
19545 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
19546 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
19547 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
19548 (gpt_mod_LDFLAGS): Rename to ...
19549 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
19550 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
19551 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
19552 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
19553 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
19554 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
19555 (part_gpt_mod_LDFLAGS): ... this.
19556 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
19557 `pcpart.mod' to `msdospart.mod'.
19558 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
19560 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
19561 (msdospart_mod_LDFLAGS): ... this.
19563 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
19565 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
19566 (openbsd_opts): Likewise.
19567 (netbsd_opts): Likewise.
19568 (freebsd_flags): Added 0 terminator.
19569 (openbsd_flags): Likewise.
19570 (netbsd_flags): Likewise.
19571 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
19572 (grub_cmd_freebsd): Transformed into extended command.
19573 (grub_cmd_openbsd): Likewise.
19574 (grub_cmd_netbsd): Likewise.
19575 (cmd_freebsd): Changed type to grub_extcmd_t.
19576 (cmd_openbsd): Likewise.
19577 (cmd_netbsd): Likewise.
19578 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
19579 grub_cmd_openbsd as extended commands.
19580 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
19581 cmd_netbsd and cmd_openbsd
19583 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
19585 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
19587 2009-08-21 Pavel Roskin <proski@gnu.org>
19589 * Makefile.in (install-local): When checking if a file is in the
19590 build directory, use "test -e" to detect symlinks.
19592 * Makefile.in (install-local): Remove all files in
19593 $(DESTDIR)$(pkglibdir) before installing new files there.
19595 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
19597 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
19600 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
19602 * util/grub-mkconfig.in: Don't use gfxterm by default if not
19603 explicitly specified by the user.
19605 2009-08-18 Pavel Roskin <proski@gnu.org>
19607 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
19608 grub_uint8_t pointer for data.
19609 * include/grub/fbutil.h (struct grub_video_fbblit_info):
19611 * video/fb/fbutil.c: Remove unnecessary casts.
19613 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
19617 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
19618 (grub_vbe_set_video_mode): Save active mode info
19619 only after setting the mode.
19620 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
19623 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
19625 Rename variables for clarity.
19627 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
19628 (active_vbe_mode_info): ... this. All users updated.
19629 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
19631 (initial_mode): Rename to ...
19632 (initial_vbe_mode): ... this. All users updated.
19633 (mode_in_use): Rename to ..
19634 (vbe_mode_in_use): ... this. All users updated.
19635 (mode_list): Rename to ..
19636 (vbe_mode_list): ... this. All users updated.
19637 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
19638 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
19639 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
19640 'mode_list_size' to 'vbe_mode_list_size'.
19641 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
19642 'best_mode_info' to 'best_vbe_mode_info' and
19643 'best_mode' to 'best_vbe_mode'
19645 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
19647 Remove duplicate grub_video_fb_get_video_ptr.
19649 * include/grub/fbutil.h (get_data_ptr): Rename to ...
19650 (grub_video_fb_get_video_ptr): ... this.
19651 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
19652 * video/fb/fbutil.c: Add comment about addressing.
19653 (get_data_ptr): Rename to ...
19654 (grub_video_fb_get_video_ptr): ... this. All users updated.
19655 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
19657 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
19659 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
19660 grub_dprintf() that was just added.
19662 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
19664 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
19665 (DEFAULT_VIDEO_MODE): Remove macros.
19666 (grub_linux_boot): Remove assumption that Linux has FB support,
19667 and use "text" as default video mode.
19669 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
19671 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
19673 * fs/fat.c (grub_fat_read_data): Likewise.
19675 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19677 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
19679 (grub_module): Likewise.
19681 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19683 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
19684 mbi->cmdline but free playground.
19686 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19688 Handle group offset on UFS1.
19690 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
19691 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
19693 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19695 Split ufs.mod into ufs1.mod and ufs2.mod.
19697 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
19698 (grub_fstest_SOURCES): Likewise.
19699 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
19700 (ufs_mod_SOURCES): Remove.
19701 (ufs_mod_CFLAGS): Likewise.
19702 (ufs_mod_LDFLAGS): Likewise.
19703 (ufs1_mod_SOURCES): New variable.
19704 (ufs1_mod_CFLAGS): Likewise.
19705 (ufs1_mod_LDFLAGS): Likewise.
19706 (ufs2_mod_SOURCES): New variable.
19707 (ufs2_mod_CFLAGS): Likewise.
19708 (ufs2_mod_LDFLAGS): Likewise.
19709 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
19710 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
19712 (grub_emu_SOURCES): Likewise.
19713 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19714 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19715 (grub_setup_SOURCES): Likewise.
19716 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19717 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
19718 (grub_setup_SOURCES): Likewise.
19719 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
19721 * fs/ufs2.c: New file.
19722 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
19724 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
19728 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
19729 subsystem at the end.
19730 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
19731 (video_fb_mod_SOURCES): New variable.
19732 (video_fb_mod_CFLAGS): Likewise.
19733 (video_fb_mod_LDFLAGS): Likewise.
19734 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
19735 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
19736 * video/i386/pc/vbeblit.c: Moved from here ...
19737 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
19738 * video/i386/pc/vbefill.c: Moved from here ...
19739 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
19740 * video/i386/pc/vbeutil.c: Moved from here ...
19741 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
19742 * include/grub/i386/pc/vbeblit.h: Moved from here ...
19743 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
19744 * include/grub/i386/pc/vbefill.h: Moved from here ...
19745 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
19746 * include/grub/i386/pc/vbeutil.h: Moved from here ...
19747 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
19748 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
19749 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
19750 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
19751 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
19752 (grub_video_adapter): Added 'get_info_and_fini'.
19753 (grub_video_get_info_and_fini): New prototype.
19754 (grub_video_set_mode): make modestring const char *.
19755 * loader/i386/linux.c (grub_linux_setup_video): Use
19756 grub_video_get_info_and_fini.
19757 (grub_linux_boot): Move modesetting just before booting.
19758 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
19759 grub_video_get_info_and_fini.
19760 * video/i386/pc/vbe.c: Moved framebuffer part ...
19761 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
19762 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
19763 grub_video_fbstd_colors and grub_video_fb_set_palette.
19764 (grub_video_vbe_init): Clear 'framebuffer' variable and use
19765 grub_video_fb_init.
19766 (grub_video_vbe_fini): Use grub_video_fb_fini.
19767 (grub_video_vbe_setup): Use framebuffer.render_target instead of
19768 render_target and use grub_video_fb_set_active_render_target and
19769 grub_video_fb_set_palette.
19770 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
19771 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
19772 (grub_video_vbe_adapter): Use framebuffer.
19773 * video/video.c (grub_video_get_info_and_fini): New function.
19774 (grub_video_set_mode): Make modestring const char *.
19775 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
19776 values are already initialised.
19778 2009-08-14 Pavel Roskin <proski@gnu.org>
19780 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
19782 * boot/i386/pc/diskboot.S: Likewise.
19783 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
19784 sectors allow compilation on MacOSX.
19785 * conf/i386-pc.rmk: Enable unconditional compilation of
19788 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
19790 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
19791 * util/grub.d/00_header.in: Enter interruptible sleep if
19792 GRUB_HIDDEN_TIMEOUT is set.
19794 2009-08-13 Yves Blusseau <blusseau@zetam.org>
19796 * include/grub/symbol.h: Add the LOCAL macro.
19797 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
19798 starting with "L_".
19800 2009-08-13 Pavel Roskin <proski@gnu.org>
19802 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
19803 any modern compilers we support.
19805 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
19806 Use local labels starting with "L_" so that Apple assembler
19807 knows they are local.
19809 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
19811 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
19812 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
19813 (bsd_kernel_types): ... this enum.
19815 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
19816 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
19817 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
19819 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
19820 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
19821 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
19824 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
19826 * util/grub-dumpdevtree: Moved from here ...
19827 * util/i386/efi/grub-dumpdevtree: ... to here.
19828 (hexify): New function. Converts a string to its hex version.
19829 Generate hex versions of "efi" and "device-properties" by calling
19830 hexify() on the ASCII strings rather than by hardcoding numbers.
19832 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
19834 * fs/jfs.c: Update copyright year.
19836 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
19838 * util/grub.d/00_header.in: Fix a comment.
19839 * util/grub.d/10_linux.in: Likewise.
19840 * util/grub.d/10_windows.in: Likewise.
19841 * util/grub.d/10_hurd.in: Likewise.
19843 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
19845 * util/grub-mkconfig.in: Allow the user to specify the used font
19848 2009-08-08 Pavel Roskin <proski@gnu.org>
19850 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
19851 available, xfs.mod needs it now.
19853 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
19854 the "g" modifier in sed when the intention is to strip something
19855 once. This fixes comparison of kernels with multiple dashes.
19857 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
19858 on it. Add missing space before closing bracket. Fix
19859 misleading formatting.
19861 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19863 * docs/grub.texi: Major overhaul. Remove all sections that are
19864 specific to GRUB Legacy, or mostly composed of Legacy-specific
19867 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19869 * docs/version.texi: New file. Provides version information for
19872 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19874 * docs/grub.texi: Update CVS information to SVN.
19875 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
19877 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
19879 * util/grub-mkconfig.in: Remove a wrong `fi'.
19881 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
19883 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
19884 (grub_jfs_uuid): New function.
19885 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
19887 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
19889 * util/grub-mkconfig_lib.in (font_path): Move the functionality
19891 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
19892 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
19894 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19896 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
19897 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
19900 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
19901 not just "vmlinu[zx]".
19902 Moved from here ...
19903 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
19906 * util/grub.d/10_linux.in (find_latest): Moved from here ...
19907 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
19910 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
19912 * util/grub.d/10_freebsd.in: Use an absolute device path for
19913 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
19915 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
19917 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
19918 handling of multiple abstraction modules.
19920 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
19922 Fix a bug resulting in black screen when loading Linux using a
19925 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
19928 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
19929 (grub_vbe_bios_getset_dac_palette_width): New function.
19930 (grub_vbe_bios_get_dac_palette_width)
19931 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
19932 grub_vbe_bios_getset_dac_palette_width()).
19934 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
19935 check for return status.
19936 (grub_vbe_get_video_mode_info): When getting information for a packed
19937 mode (<= 8 bpp), obtain DAC palette width using
19938 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
19939 {red,green,blue}_mark_size.
19941 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
19943 * commands/search.c (options): Fix help output to match actual code.
19945 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
19947 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
19950 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19952 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
19953 on XFS or ReiserFS.
19955 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19957 Support Apple partition map with sector size different from 512 bytes.
19959 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
19960 (apple_partition_map_iterate): Respect 'aheader.blocksize'
19961 and 'apart.partmap_size'.
19963 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19964 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
19968 * commands/i386/cpuid.c (options): New variable.
19969 (grub_cmd_cpuid): Return real error.
19970 (GRUB_MOD_INIT(cpuid)): Declare options.
19972 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
19974 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
19977 2009-07-31 Bean <bean123ch@gmail.com>
19979 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
19981 (grub_fshelp_node): Move inode field to the end.
19982 (grub_xfs_data): Remove inode field.
19983 (grub_xfs_inode_block): Calculate inode size using sblock.
19984 (grub_xfs_inode_offset): Likewise.
19985 (grub_xfs_read_inode): Calculate inode size using sblock.
19986 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
19987 (grub_xfs_iterate_dir): Calculate inode size using sblock.
19988 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
19989 to match inode size.
19990 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
19991 not accessible when data is null.
19992 (grub_xfs_open): Likewise.
19994 2009-07-31 Bean <bean123ch@gmail.com>
19996 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
19997 Don't change pv->disk if it's already set.
19999 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
20000 (grub_raid_register): ... here.
20001 (grub_raid_rescan): Removed.
20003 * include/grub/raid.h (grub_raid_rescan): Removed.
20005 * util/grub-fstest.c: Remove include file <grub/raid.h>.
20006 (fstest): Replace grub_raid_rescan with module fini function followed
20009 * util/grub-probe.c: Add include file <grub/raid.h>.
20010 (probe_raid_level): New function.
20011 (probe): Detect abstraction by walking the disk device, support two
20012 level of abstraction (LVM on RAID) when detecting partition map.
20014 2009-07-31 Pavel Roskin <proski@gnu.org>
20016 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
20017 to grub_zalloc(), it was erroneous.
20018 Reported by Bean <bean123ch@gmail.com>
20020 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
20022 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
20023 embedding zone, not only the first one.
20025 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
20027 * term/gfxterm.c (clear_char): New function.
20028 (grub_virtual_screen_setup): Use clear_char.
20029 (scroll_up): Likewise.
20030 (grub_virtual_screen_cls): Likewise.
20032 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
20034 * util/deviceiter.c (get_acceleraid_disk_name): New static
20036 (grub_util_iterate_devices): Handle Accelraid devices.
20037 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
20039 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
20041 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
20042 separator for the suggested gfxpayload string (';' collides with the
20043 parser and needs escaping).
20045 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
20047 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
20048 Clear direction flag before jumping to OS.
20049 (grub_multiboot2_real_boot): Likewise.
20051 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
20053 * util/i386/pc/grub-install: Fix parsing of --disk-module
20056 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
20058 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
20061 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
20063 * util/grub-mkconfig.in (package_version): New variable.
20064 Use it do display the version.
20066 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
20068 * kern/file.c (grub_file_open): Revert to previous check with
20071 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
20073 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
20074 from help line. It's out of sync with code.
20076 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
20078 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
20079 entries on failed boot.
20081 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
20083 * kern/file.c (grub_file_open): Fix an error check.
20085 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
20087 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
20088 partition map couldn't be identified.
20090 2009-07-23 Pavel Roskin <proski@gnu.org>
20092 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
20093 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
20094 case of little endian words becomes just an optimization.
20095 Respect const modifier.
20096 (md5_final): Use code that doesn't depend on endianness.
20098 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
20099 to avoid loss of upper bits if align is unsigned and shorter
20102 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
20104 UUID support for UFS
20106 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
20107 (grub_ufs_uuid): New function.
20108 (grub_ufs_fs): add .uuid
20110 2009-07-21 Pavel Roskin <proski@gnu.org>
20112 * kern/dl.c (grub_dl_check_header): Make static.
20114 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
20116 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
20117 add drivemap for Vista. It breaks Windows 7.
20119 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
20121 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
20124 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20128 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
20129 (grub_fstest_SOURCES): Likewise.
20130 (pkglib_MODULES): Add befs.mod.
20131 (befs_mod_SOURCES): New variable.
20132 (befs_mod_CFLAGS): Likewise.
20133 (befs_mod_LDFLAGS): Likewise.
20134 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
20135 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20136 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20137 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20138 (grub_setup_SOURCES): Likewise.
20139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20140 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20141 (grub_setup_SOURCES): Likewise.
20142 * fs/befs.c: New file.
20143 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
20144 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
20145 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
20146 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
20147 (B_KEY_INDEX_ALIGN): New declaration.
20148 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
20149 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
20150 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
20151 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
20152 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
20153 (grub_afs_mount) [MODE_BFS]: Likewise.
20154 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
20155 (grub_afs_fs): Use GRUB_AFS_FSNAME
20156 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
20157 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
20158 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
20159 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
20161 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
20163 * util/getroot.c (find_root_device): Add support for MacOSX.
20164 * util/hostdisk.c: Likewise.
20166 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20168 * font/font.c (find_glyph): Check whether a font is present to avoid
20169 segmentation fault.
20171 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
20173 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
20175 2009-07-20 Pavel Roskin <proski@gnu.org>
20177 * configure.ac: Trim excessively wordy excuses.
20179 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20181 Add symlink, mtime and label support to AtheFS.
20183 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
20184 (grub_afs_iterate_dir): Handle symlinks.
20185 (grub_afs_open): Use grub_afs_read_symlink.
20186 (grub_afs_dir): Likewise.
20188 (grub_afs_label): New function.
20189 (grub_afs_fs): Add grub_afs_label.
20190 (grub_afs_read_symlink): New function.
20192 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20194 Fix AtheFS support.
20196 * fs/afs.c: Fix comments style.
20197 (grub_afs_blockrun): Declare as packed.
20198 (grub_afs_datastream): Likewise.
20199 (grub_afs_bnode): Likewise.
20200 (grub_afs_btree): Likewise.
20201 (grub_afs_sblock): Likewise.
20202 Declare `name' as char.
20203 (grub_afs_inode): Declare as packed.
20204 Change void *vnode to grub_uint32_t unused.
20205 (grub_afs_iterate_dir): Check that key_size is positive.
20206 (grub_afs_mount): Don't read superblock twice.
20207 (grub_afs_dir): Don't free node in case of error,
20208 grub_fshelp_find_file already handles this.
20209 (grub_afs_open): Likewise.
20211 2009-07-19 Pavel Roskin <proski@gnu.org>
20213 * Makefile.in: Remove LIBLZO and enable_lzo.
20214 * conf/i386-pc.rmk: Remove lzo support.
20215 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
20216 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
20218 * kern/i386/pc/lzo1x.S: Remove.
20219 * kern/i386/pc/startup.S: Remove lzo support.
20220 * util/i386/pc/grub-mkimage.c: Likewise.
20222 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
20224 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
20225 * fs/xfs.c (grub_xfs_dir): Likewise.
20226 * fs/afs.c (grub_afs_dir): Likewise.
20227 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
20228 (grub_iso9660_open): Likewise.
20229 * fs/jfs.c (grub_jfs_open): Likewise.
20230 * fs/ext2.c (grub_ext2_dir): Likewise.
20231 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
20232 * script/sh/lexer.c (grub_script_yylex): Likewise.
20234 2009-07-16 Pavel Roskin <proski@gnu.org>
20236 * configure.ac: Never add "-c" to CFLAGS.
20238 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
20240 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
20241 grub_cv_cc_efiemu should be used.
20243 * configure.ac: Typo fixes.
20245 * kern/mm.c (grub_zalloc): New function.
20246 (grub_debug_zalloc): Likewise.
20247 * include/grub/mm.h: Declare grub_zalloc() and
20248 grub_debug_zalloc().
20249 * util/misc.c (grub_zalloc): New function.
20250 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
20251 instead of grub_malloc(), remove unneeded initializations.
20252 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
20253 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
20254 * commands/parttool.c (grub_cmd_parttool): Likewise.
20255 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
20256 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
20257 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
20258 * disk/usbms.c (grub_usbms_finddevs): Likewise.
20259 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
20260 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
20261 (grub_cmd_efiemu_pnvram): Likewise.
20262 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
20263 * fs/iso9660.c (grub_iso9660_mount): Likewise.
20264 (grub_iso9660_iterate_dir): Likewise.
20265 * fs/jfs.c (grub_jfs_opendir): Likewise.
20266 * fs/ntfs.c (list_file): Likewise.
20267 (grub_ntfs_mount): Likewise.
20268 * kern/disk.c (grub_disk_open): Likewise.
20269 * kern/dl.c (grub_dl_load_core): Likewise.
20270 * kern/elf.c (grub_elf_file): Likewise.
20271 * kern/env.c (grub_env_context_open): Likewise.
20272 (grub_env_set): Likewise.
20273 (grub_env_set_data_slot): Likewise.
20274 * kern/file.c (grub_file_open): Likewise.
20275 * kern/fs.c (grub_fs_blocklist_open): Likewise.
20276 * loader/i386/multiboot.c (grub_module): Likewise.
20277 * loader/xnu.c (grub_xnu_create_key): Likewise.
20278 (grub_xnu_create_value): Likewise.
20279 * normal/main.c (grub_normal_add_menu_entry): Likewise.
20280 (read_config_file): Likewise.
20281 * normal/menu_entry.c (make_screen): Likewise.
20282 * partmap/sun.c (sun_partition_map_iterate): Likewise.
20283 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
20284 * script/sh/script.c (grub_script_parse): Likewise.
20285 * video/bitmap.c (grub_video_bitmap_create): Likewise.
20286 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
20287 * video/readers/png.c (grub_png_output_byte): Likewise.
20288 (grub_video_reader_png): Likewise.
20290 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
20292 Enable all targets that can be built by default
20294 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
20295 grub-mkfont and grub-fstest if they can be built
20297 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
20299 Fix hang and segmentation fault in grub-emu-usb
20301 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
20302 * util/usb.c (grub_libusb_devices): likewise
20303 (grub_libusb_init): rename to ...
20304 (GRUB_MOD_INIT (libusb)):...this
20305 (grub_libusb_fini): rename to ..
20306 (GRUB_MOD_FINI (libusb)):...this
20307 * disk/usbms.c (grub_usbms_transfer): fix retry logic
20308 * include/grub/disk.h (grub_raid_init): removed, it's useless
20309 (grub_raid_fini): likewise
20310 (grub_lvm_init): likewise
20311 (grub_lvm_fini): likewise
20312 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
20315 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
20319 * Makefile.in (LIBUSB): new macro
20320 * genmk.rb (Utility/print_tail): new method
20321 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
20322 (top level): call util.print_tail at the end.
20324 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
20326 Make FreeBSD accept zpool.cache
20328 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
20329 type is /boot/zfs/zpool.cache
20331 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
20335 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
20336 correct wrong typedef
20337 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
20339 2009-07-15 Pavel Roskin <proski@gnu.org>
20341 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
20342 * kern/disk.c (struct grub_disk_cache): Likewise.
20344 * commands/probe.c (options): Typo fix.
20346 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
20347 Increase to 0x5a to accommodate FAT32. Adjust other offsets
20349 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
20351 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
20352 the end of "Error" to make the message more readable.
20354 * boot/i386/pc/boot.S (kernel_segment): Remove.
20355 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
20358 * boot/i386/pc/boot.S (boot_version): Remove.
20359 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
20362 * include/grub/i386/pc/boot.h: Sort all offsets.
20363 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
20364 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
20365 * boot/i386/pc/boot.S: Assert location of every offset listed in
20366 include/grub/i386/pc/boot.h.
20368 2009-07-13 Pavel Roskin <proski@gnu.org>
20370 * include/grub/i386/coreboot/machine.h: Rename
20371 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
20372 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
20373 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
20375 * kern/dl.c: Force native word size to suppress warnings when
20376 compiling grub-emu.
20378 * kern/device.c (grub_device_iterate): Change struct part_ent to
20379 hold the name, not a pointer to it. Use one grub_malloc() per
20380 partition, not two. Free partition_name if grub_malloc() fails.
20381 Set ents to NULL only before grub_partition_iterate() is called.
20383 2009-07-11 Bean <bean123ch@gmail.com>
20385 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
20388 2009-07-10 Bean <bean123ch@gmail.com>
20389 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
20391 * kern/ieee1275/openfw.c (grub_children_iterate)
20392 (grub_devalias_iterate): Fix size evaluation for property or path
20393 strings, which was broken since r2132.
20395 2009-07-07 Pavel Roskin <proski@gnu.org>
20397 * commands/search.c (search_file): Merge into ...
20398 (search_fs): ... this. Accept search type as argument.
20399 (grub_cmd_search): Pass search type to search_fs().
20401 * include/grub/util/console.h: New file.
20402 * util/console.c: Use it instead of grub/machine/console.h.
20403 * util/grub-emu.c: Likewise.
20405 * lib/arg.c (find_long_option): Remove.
20406 (find_long): Add `len' argument, make `s' const char *.
20407 (grub_arg_parse): Parse long options in place, not in a
20410 2009-07-06 Pavel Roskin <proski@gnu.org>
20412 * commands/search.c (search_fs): Fix potential NULL pointer
20415 * commands/search.c (search_fs): Replace QUID macro with quid_fn
20418 2009-07-06 Daniel Mierswa <impulze@impulze.org>
20420 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
20423 2009-07-05 Pavel Roskin <proski@gnu.org>
20425 * include/grub/i386/linux.h (struct linux_kernel_params):
20426 Restore padding3, it's still needed.
20428 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
20430 * util/osdetect.lua: Likewise.
20432 2009-07-05 Bean <bean123ch@gmail.com>
20434 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
20436 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
20437 (grub_lua_getenv): Likewise.
20438 (grub_lua_setenv): Likewise.
20439 (save_errno): New function.
20440 (push_result): Likewise.
20441 (grub_lua_enum_device): Likewise.
20442 (grub_lua_enum_file): Likewise.
20443 (grub_lua_file_open): Likewise.
20444 (grub_lua_file_close): Likewise.
20445 (grub_lua_file_seek): Likewise.
20446 (grub_lua_file_read): Likewise.
20447 (grub_lua_file_getline): Likewise.
20448 (grub_lua_file_getsize): Likewise.
20449 (grub_lua_file_getpos): Likewise.
20450 (grub_lua_file_eof): Likewise.
20451 (grub_lua_file_exist): Likewise.
20452 (grub_lua_add_menu): Likewise.
20454 * script/lua/grub_lua.h (isupper): New inline function.
20455 (islower): Likewise.
20456 (ispunct): Likewise.
20457 (isxdigit): Likewise.
20458 (strcspn): Change to normal function.
20459 (strpbkr): New function declaration.
20460 (memchr): Likewise.
20462 * script/lua/grub_main.c (scan_str): New function.
20463 (strcspn): Likewise.
20464 (strpbrk): Likewise.
20465 (memchr): Likewise.
20467 * script/lua/linit.c (lualibs): Enable the string library.
20469 * util/osdetect.lua: New file.
20471 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
20473 * include/grub/i386/linux.h (struct linux_kernel_params): Add
20474 `capabilities' member.
20476 2009-07-02 Pavel Roskin <proski@gnu.org>
20478 * genparttoollist.sh: Add missing newline at the end.
20480 2009-07-01 Pavel Roskin <proski@gnu.org>
20482 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
20484 * util/hostdisk.c (open_device): Remove `const' from
20485 `sysctl_size', as sysctlbyname() can change it (in this case it
20486 doesn't actually happen).
20488 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
20489 using signed long int constants.
20491 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
20492 constant to avoid a warning on FreeBSD.
20494 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
20497 * Makefile.in: Install include/grub/machine symlink.
20499 * Makefile.in: When installing symlinks, use "cp -fR", which
20500 works on FreeBSD and MacOSX.
20501 From Yves Blusseau <cl7m42e02@sneakemail.com>
20503 * kern/dl.c (grub_dl_resolve_symbol): Make static.
20504 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
20506 * util/misc.c: Move grub_reboot() and grub_halt() ...
20507 * util/grub-emu.c: ... here. Make main_env static.
20508 * include/grub/util/misc.h: Remove main_env.
20510 * kern/mm.c: Use correct format to print size_t.
20512 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
20513 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
20514 * kern/powerpc/dl.c: Likewise.
20515 * kern/sparc64/dl.c: Likewise.
20516 * kern/x86_64/dl.c: Likewise.
20518 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20520 Fix grub-emu build on sparc64-ieee1275.
20522 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
20523 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
20525 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20527 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
20528 (grub_reboot, grub_halt): New functions.
20530 * util/i386/pc/misc.c: Delete. Update all users.
20531 * util/sparc64/ieee1275/misc.c: Likewise.
20532 * util/powerpc/ieee1275/misc.c: Likewise.
20534 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20536 * conf/i386.rmk (setjmp_mod_SOURCES)
20537 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
20538 * conf/common.rmk (setjmp_mod_SOURCES)
20539 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
20540 to use $(target_cpu).
20541 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
20542 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
20543 * conf/powerpc-ieee1275.rmk: Likewise.
20544 * conf/sparc64-ieee1275.rmk: Likewise.
20546 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
20547 $(target_cpu) for kern/$(target_cpu)/dl.c.
20548 * conf/i386-efi.rmk: Likewise.
20549 * conf/i386-ieee1275.rmk: Likewise.
20550 * conf/x86_64-efi.rmk: Likewise.
20551 * conf/i386-coreboot.rmk: Likewise.
20552 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
20553 $(target_cpu) for kern/$(target_cpu)/dl.c and for
20554 kern/$(target_cpu)/cache.S.
20555 * conf/sparc64-ieee1275.rmk: Likewise.
20557 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
20559 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
20560 type to `grub_uint8_t', and adjust `padding9' accordingly.
20562 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
20564 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
20566 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
20567 assembly in final jump, using register constraints.
20569 (grub_linux_boot): For text mode, initialize `have_vga' using
20570 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
20572 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
20573 right before the final jump.
20575 Set `video_mode' to 0x3.
20577 Document initialization of `video_page', `video_mode' and
20580 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
20582 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
20583 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
20584 and set GRUB_LINUX_FLAG_QUIET appropriately.
20586 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
20588 Fix build on Debian / sparc.
20590 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
20592 2009-06-28 Pavel Roskin <proski@gnu.org>
20594 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
20597 * util/grub.d/10_linux.in: Match SUSE style initrd names.
20599 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
20601 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
20604 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
20608 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
20609 file can't be opened. grub_file_open() is already supposed to set
20610 grub_errno / grub_errmsg appropriately.
20611 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20613 2009-06-27 Pavel Roskin <proski@gnu.org>
20614 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
20616 * include/grub/dl.h: Include grub/elf.h.
20617 (struct grub_dl): Add symtab field.
20618 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
20619 GRUB_MODULES_MACHINE_READONLY.
20620 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
20621 of the header for read-only modules.
20622 (grub_dl_unload): Free mod->symtab for read-only modules.
20623 * kern/i386/dl.c: Use mod->symtab.
20624 * kern/powerpc/dl.c: Likewise.
20625 * kern/sparc64/dl.c: Likewise.
20626 * kern/x86_64/dl.c: Likewise.
20628 * conf/i386-qemu.rmk: New file.
20629 * kern/i386/qemu/startup.S: Likewise.
20630 * kern/i386/qemu/mmap.c: Likewise.
20631 * boot/i386/qemu/boot.S: Likewise.
20632 * include/grub/i386/qemu/time.h: Likewise.
20633 * include/grub/i386/qemu/serial.h: Likewise.
20634 * include/grub/i386/qemu/kernel.h: Likewise.
20635 * include/grub/i386/qemu/console.h: Likewise.
20636 * include/grub/i386/qemu/boot.h: Likewise.
20637 * include/grub/i386/qemu/init.h: Likewise.
20638 * include/grub/i386/qemu/machine.h: Likewise.
20639 * include/grub/i386/qemu/loader.h: Likewise.
20640 * include/grub/i386/qemu/memory.h: Likewise.
20642 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
20643 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
20644 [qemu] (pkglib_IMAGES): Add `boot.img'.
20645 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
20646 [qemu] (boot_img_FORMAT): New variables.
20647 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
20648 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
20649 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
20650 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
20651 [qemu] (kernel_img_FORMAT): New variables.
20653 * configure.ac: Recognise `i386-qemu'.
20655 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
20656 (for no compression).
20657 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
20658 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
20659 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
20660 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
20663 2009-06-27 Pavel Roskin <proski@gnu.org>
20665 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
20667 * efiemu/prepare32.c: Likewise.
20668 * efiemu/prepare64.c: Likewise.
20670 2009-06-26 Pavel Roskin <proski@gnu.org>
20672 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
20673 * include/grub/elf.h: Define symbols without "32" or "64" based
20674 on GRUB_TARGET_WORDSIZE.
20675 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
20676 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
20678 * efiemu/loadcore64.c: Likewise.
20679 * loader/i386/bsd32.c: Likewise.
20680 * loader/i386/bsd64.c: Likewise.
20681 * kern/dl.c: Remove own ELF definitions.
20682 * util/i386/efi/grub-mkimage.c: Likewise.
20684 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
20686 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
20687 segment 0x0 unconditionally, because the reference generated by
20688 GAS is an absolute address.
20690 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20692 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
20693 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
20695 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20697 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
20698 indexes. Check for -f explicitly.
20699 (search_file): Improve error message.
20700 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
20702 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20704 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
20705 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
20707 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20709 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
20710 * conf/i386-ieee1275.rmk: Likewise.
20711 * conf/i386-coreboot.rmk: Likewise.
20713 * kern/i386/pc/startup.S (grub_stop): Remove function.
20714 * kern/i386/ieee1275/startup.S: Likewise.
20715 * kern/i386/coreboot/startup.S: Likewise.
20716 * kern/i386/misc.S (grub_stop): New function.
20718 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20720 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
20721 * kern/i386/realmode.S (real_to_prot): ... to here.
20723 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
20725 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
20727 (kernel_elf_SOURCES): Rename to ...
20728 (kernel_img_SOURCES): ... this.
20729 (kernel_elf_HEADERS): Rename to ...
20730 (kernel_img_HEADERS): ... this. Update all users.
20731 (kernel_elf_ASFLAGS): Rename to ...
20732 (kernel_img_ASFLAGS): ... this.
20733 (kernel_elf_CFLAGS): Rename to ...
20734 (kernel_img_CFLAGS): ... this.
20735 (kernel_elf_LDFLAGS): Rename to ...
20736 (kernel_img_LDFLAGS): ... this.
20737 * conf/i386-coreboot.rmk: Likewise.
20738 * conf/powerpc-ieee1275.rmk: Likewise.
20740 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
20743 2009-06-21 Pavel Roskin <proski@gnu.org>
20745 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
20746 to match nested functions.
20747 * loader/sparc64/ieee1275/linux.c: Likewise.
20749 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
20751 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
20753 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
20754 all i386 platforms.
20756 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
20758 Fix asm file handling on ELF, and remove workarounds.
20760 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
20761 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
20762 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
20763 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
20765 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
20767 Load BSD ELF modules
20769 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
20770 and loader/i386/bsd64.c
20771 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
20772 (FREEBSD_MODTYPE_ELF_MODULE): New definition
20773 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
20774 (grub_freebsd_load_elfmodule32): New declaration
20775 (grub_freebsd_load_elfmoduleobj64): Likewise
20776 (grub_freebsd_load_elf_meta32): Likewise
20777 (grub_freebsd_load_elf_meta64): Likewise
20778 (grub_freebsd_add_meta): Likewise
20779 (grub_freebsd_add_meta_module): Likewise
20780 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
20781 (grub_freebsd_add_meta_module): Likewise and move module-specific
20782 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
20783 (grub_cmd_freebsd): Add elf-kernel specific parts
20784 based on grub_freebsd_add_meta_module
20785 (grub_cmd_freebsd_module): Add type parsing moved from
20786 grub_freebsd_add_meta_module
20787 (grub_cmd_freebsd_module_elf): New function
20788 (cmd_freebsd_module_elf): New variable
20789 (GRUB_MOD_INIT): Register freebsd_module_elf
20790 * loader/i386/bsd32.c: New file
20791 * loader/i386/bsd64.c: Likewise
20792 * loader/i386/bsdXX.c: Likewise
20793 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
20794 (grub_elf64_load): Likewise
20795 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
20797 (grub_elf64_load_hook_t): Likewise
20799 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
20801 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
20803 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
20804 don't write a menu entry for recovery mode.
20806 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
20808 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
20809 after it's no longer needed.
20811 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
20813 * include/grub/i386/loader.h (grub_linux_prot_size)
20814 (grub_linux_tmp_addr, grub_linux_real_addr)
20815 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
20816 GRUB_MACHINE_PCBIOS.
20817 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
20818 common grub_util_info() call to ...
20819 (generate_image): ... here.
20820 Fix use of uninitialized memory, comparison of signed with
20821 unsigned integers and memory leak.
20822 Remove bogus module address message.
20824 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20826 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
20828 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
20830 2009-06-19 Pavel Roskin <proski@gnu.org>
20832 * configure.ac: Remove stray AC_MSG_CHECKING.
20834 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
20836 * disk/scsi.c (grub_scsi_open): use continue instead of big if
20838 2009-06-18 Pavel Roskin <proski@gnu.org>
20840 * conf/common.rmk: Add fs_file.mod.
20841 * disk/fs_file.c: New file.
20842 * include/grub/disk.h (enum grub_disk_dev_id): Add
20843 GRUB_DISK_DEVICE_FILE_ID.
20845 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
20847 Fix build with Apple's toolchain. Part 2
20849 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
20852 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
20854 Fix build with Apple's toolchain. Part 1
20856 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
20858 * configure.ac: remove a leftover AC_MSG_RESULT
20859 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
20862 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
20866 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
20867 (decomp_block): initialize ch
20868 use grub_memcpy instead of memcpy
20870 2009-06-17 Pavel Roskin <proski@gnu.org>
20872 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
20873 version, use declarations needed to use vga_text as the startup
20876 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
20877 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
20879 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
20880 and grub_at_keyboard_fini(), it's done on module load and
20883 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
20885 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
20886 file can't be found.
20887 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20889 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
20891 Fix newline handling
20893 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
20894 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
20895 (grub_script_yylex): don't segfault on unterminated script
20896 newline terminates command and variable
20898 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
20900 avoid double grub_adjust_range call. Bug reported by David Simner
20902 * kern/disk.c (grub_disk_write): change to raw disk access before
20905 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
20907 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
20908 spaces, for the benefit of help2man.
20909 * util/i386/efi/grub-mkimage.c (usage): Likewise.
20911 2009-06-16 Pavel Roskin <proski@gnu.org>
20913 * kern/i386/halt.c: Include grub/machine/init.h.
20914 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
20916 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
20918 * util/grub.d/30_os-prober.in: Use ${root} in the generated
20919 drivemap menuentry.
20921 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
20923 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
20926 2009-06-16 Pavel Roskin <proski@gnu.org>
20928 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
20929 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
20930 save %dx, we only need %dl and we never change it.
20931 * boot/i386/pc/cdboot.S: Don't set the root drive.
20932 * boot/i386/pc/pxeboot.S: Likewise.
20933 * include/grub/i386/pc/boot.h: Remove
20934 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
20935 GRUB_BOOT_MACHINE_DRIVE_CHECK.
20936 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
20937 * kern/i386/pc/init.c (make_install_device): Remove references
20938 to grub_root_drive.
20939 * kern/i386/pc/startup.S: Likewise.
20940 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
20942 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
20946 * commands/xnu_uuid.c: new file
20947 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
20948 (xnu_uuid_mod_SOURCES): new variable
20949 (xnu_uuid_mod_CFLAGS): likewise
20950 (xnu_uuid_mod_LDFLAGS): likewise
20951 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
20952 * conf/i386-ieee1275.rmk: likewise
20953 * conf/i386-pc.rmk: likewise
20954 * conf/powerpc-ieee1275.rmk: likewise
20955 * conf/sparc64-ieee1275.rmk: likewise
20956 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
20958 2009-06-16 Pavel Roskin <proski@gnu.org>
20960 * configure.ac: Avoid '==' in test command, it's not portable.
20962 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
20966 * commands/probe.c: new file
20967 * conf/common.rmk (pkglib_MODULES): add probe.mod
20968 (probe_mod_SOURCES): new variable
20969 (probe_mod_CFLAGS): likewise
20970 (probe_mod_LDFLAGS): likewise
20971 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
20972 * conf/i386-ieee1275.rmk: likewise
20973 * conf/i386-pc.rmk: likewise
20974 * conf/powerpc-ieee1275.rmk: likewise
20975 * conf/sparc64-ieee1275.rmk: likewise
20977 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
20979 Fix handling of string like \"hello\" and "a
20982 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
20983 (grub_script_yylex): fix parsing of quoting, escaping and newline
20985 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
20987 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
20990 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
20992 * util/grub-mkconfig.in: Fix parsing of --output option.
20994 2009-06-12 Pavel Roskin <proski@gnu.org>
20996 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
20997 genmk.rb don't need to be generated or installed.
20999 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21001 * commands/i386/pc/drivemap_int13h.S: add more comments
21003 2009-06-11 Pavel Roskin <proski@gnu.org>
21005 * Makefile.in (uninstall): Uninstall manuals.
21007 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
21008 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
21009 and update-grub_lib in two places.
21010 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
21012 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
21013 a compiler warning.
21015 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
21016 `entry_lo' to fix variable shadowing.
21018 2009-06-11 Christian Franke <franke@computer.org>
21020 * kern/misc.c (__enable_execute_stack): Add missing return type
21021 to prevent gcc warning.
21023 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
21025 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
21027 2009-06-11 Pavel Roskin <proski@gnu.org>
21029 * Makefile.in: Don't rely on any scripts being executable.
21030 Always use $(SHELL) to run shell scripts.
21032 * configure.ac: Always define ___main if using -nostdlib. This
21033 fixes tests on Cygwin.
21035 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
21039 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
21040 is in bytes and not in blocks
21042 2009-06-11 Pavel Roskin <proski@gnu.org>
21044 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
21047 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
21049 * util/grub.d/30_os-prober.in: Fix a comment. Source
21050 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
21051 to set the root device. Place drivemap command in the generated
21054 2009-06-11 Pavel Roskin <proski@gnu.org>
21056 * configure.ac: Remove host_m32. Issues with 64-bit utilities
21057 have long been resolved.
21059 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
21061 * util/grub.d/10_linux.in: Capitalise "Linux".
21063 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
21065 2009-06-11 Pavel Roskin <proski@gnu.org>
21067 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
21068 fix a gcc warning and ensure that the function won't ever exit.
21070 * kern/i386/ieee1275/init.c: Add missing prototype for
21071 grub_stop_floppy().
21073 * loader/ieee1275/multiboot2.c [__i386__]: Include
21074 grub/cpu/multiboot.h.
21076 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
21077 casts to short - they are not portable and cause warnings. Fix
21078 use of uninitialized values in input_buf. Use ARRAY_SIZE.
21080 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
21084 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
21086 (grub_get_root_biosnumber_saved): new variable
21087 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
21088 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
21089 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
21090 %dx after the call if necessary
21091 * conf/common.rmk (pkglib_MODULES): remove boot.mod
21092 (boot_mod_SOURCES): remove
21093 (boot_mod_CFLAGS): remove
21094 (boot_mod_LDFLAGS): remove
21095 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
21096 (boot_mod_SOURCES): new variable
21097 (boot_mod_CFLAGS): likewise
21098 (boot_mod_LDFLAGS): likewise
21099 * conf/i386-efi.rmk: likewise
21100 * conf/i386-ieee1275.rmk: likewise
21101 * conf/i386-pc.rmk: likewise
21102 * conf/powerpc-ieee1275.rmk: likewise
21103 * conf/sparc64-ieee1275.rmk: likewise
21104 * conf/x86_64-efi.rmk: likewise
21105 * include/grub/i386/pc/biosnum.h: new file
21106 * lib/i386/pc/biosnum.c: likewise
21107 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
21108 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
21109 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
21111 2009-06-10 Pavel Roskin <proski@gnu.org>
21113 * io/gzio.c (test_header): Don't reuse one buffer for all data.
21114 Use separate variables. Read only the file size at the end, but
21115 not the checksum that we don't use.
21117 * kern/file.c (grub_file_read): Use void pointer for the buffer.
21118 Adjust all callers.
21120 * kern/ieee1275/openfw.c: Remove libc includes.
21121 * kern/ieee1275/cmain.c: Likewise.
21122 * include/grub/ieee1275/ieee1275.h: Likewise.
21124 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
21127 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
21129 * Makefile.in: Remove all trailing whitespace.
21130 * conf/i386-pc.rmk: Likewise.
21131 * conf/powerpc-ieee1275.rmk: Likewise.
21132 * conf/sparc64-ieee1275.rmk: Likewise.
21133 * docs/grub.texi: Likewise.
21134 * docs/texinfo.tex: Likewise.
21135 * disk/fs_uuid.c: Likewise.
21136 * disk/lvm.c: Likewise.
21137 * disk/scsi.c: Likewise.
21138 * disk/ata.c: Likewise.
21139 * disk/ieee1275/ofdisk.c: Likewise.
21140 * disk/i386/pc/biosdisk.c: Likewise.
21141 * disk/host.c: Likewise.
21142 * disk/raid.c: Likewise.
21143 * disk/efi/efidisk.c: Likewise.
21144 * disk/usbms.c: Likewise.
21145 * disk/memdisk.c: Likewise.
21146 * disk/loopback.c: Likewise.
21147 * kern/powerpc/dl.c: Likewise.
21148 * kern/device.c: Likewise.
21149 * kern/dl.c: Likewise.
21150 * kern/sparc64/dl.c: Likewise.
21151 * kern/ieee1275/ieee1275.c: Likewise.
21152 * kern/term.c: Likewise.
21153 * kern/fs.c: Likewise.
21154 * kern/i386/dl.c: Likewise.
21155 * kern/i386/pc/startup.S: Likewise.
21156 * kern/i386/pc/init.c: Likewise.
21157 * kern/i386/pc/mmap.c: Likewise.
21158 * kern/i386/pc/lzo1x.S: Likewise.
21159 * kern/i386/ieee1275/init.c: Likewise.
21160 * kern/i386/realmode.S: Likewise.
21161 * kern/i386/tsc.c: Likewise.
21162 * kern/partition.c: Likewise.
21163 * kern/corecmd.c: Likewise.
21164 * kern/file.c: Likewise.
21165 * kern/efi/efi.c: Likewise.
21166 * kern/efi/init.c: Likewise.
21167 * kern/efi/mm.c: Likewise.
21168 * kern/main.c: Likewise.
21169 * kern/err.c: Likewise.
21170 * kern/env.c: Likewise.
21171 * kern/disk.c: Likewise.
21172 * kern/generic/millisleep.c: Likewise.
21173 * kern/generic/rtc_get_time_ms.c: Likewise.
21174 * kern/misc.c: Likewise.
21175 * kern/parser.c: Likewise.
21176 * genmk.rb: Likewise.
21177 * configure.ac: Likewise.
21178 * boot/i386/pc/diskboot.S: Likewise.
21179 * boot/i386/pc/pxeboot.S: Likewise.
21180 * boot/i386/pc/boot.S: Likewise.
21181 * boot/i386/pc/lnxboot.S: Likewise.
21182 * boot/i386/pc/cdboot.S: Likewise.
21183 * parttool/pcpart.c: Likewise.
21184 * video/readers/tga.c: Likewise.
21185 * video/video.c: Likewise.
21186 * video/bitmap.c: Likewise.
21187 * lib/envblk.c: Likewise.
21188 * lib/i386/setjmp.S: Likewise.
21189 * fs/xfs.c: Likewise.
21190 * fs/afs.c: Likewise.
21191 * fs/fat.c: Likewise.
21192 * fs/ntfs.c: Likewise.
21193 * fs/udf.c: Likewise.
21194 * fs/affs.c: Likewise.
21195 * fs/iso9660.c: Likewise.
21196 * fs/hfs.c: Likewise.
21197 * fs/fshelp.c: Likewise.
21198 * fs/ext2.c: Likewise.
21199 * fs/jfs.c: Likewise.
21200 * fs/reiserfs.c: Likewise.
21201 * fs/hfsplus.c: Likewise.
21202 * fs/minix.c: Likewise.
21203 * fs/cpio.c: Likewise.
21204 * fs/sfs.c: Likewise.
21205 * fs/ufs.c: Likewise.
21206 * efiemu/prepare.c: Likewise.
21207 * efiemu/loadcore_common.c: Likewise.
21208 * efiemu/runtime/efiemu.sh: Likewise.
21209 * efiemu/runtime/efiemu.S: Likewise.
21210 * efiemu/runtime/efiemu.c: Likewise.
21211 * efiemu/pnvram.c: Likewise.
21212 * efiemu/main.c: Likewise.
21213 * efiemu/i386/pc/cfgtables.c: Likewise.
21214 * efiemu/i386/loadcore64.c: Likewise.
21215 * efiemu/i386/loadcore32.c: Likewise.
21216 * efiemu/loadcore.c: Likewise.
21217 * efiemu/symbols.c: Likewise.
21218 * efiemu/mm.c: Likewise.
21219 * include/grub/autoefi.h: Likewise.
21220 * include/grub/datetime.h: Likewise.
21221 * include/grub/term.h: Likewise.
21222 * include/grub/hfs.h: Likewise.
21223 * include/grub/lvm.h: Likewise.
21224 * include/grub/i386/tsc.h: Likewise.
21225 * include/grub/i386/linux.h: Likewise.
21226 * include/grub/i386/xnu.h: Likewise.
21227 * include/grub/i386/efiemu.h: Likewise.
21228 * include/grub/i386/pc/biosdisk.h: Likewise.
21229 * include/grub/i386/pc/memory.h: Likewise.
21230 * include/grub/i386/pc/vbe.h: Likewise.
21231 * include/grub/parttool.h: Likewise.
21232 * include/grub/video.h: Likewise.
21233 * include/grub/memory.h: Likewise.
21234 * include/grub/fs.h: Likewise.
21235 * include/grub/partition.h: Likewise.
21236 * include/grub/xnu.h: Likewise.
21237 * include/grub/efi/api.h: Likewise.
21238 * include/grub/efi/pe32.h: Likewise.
21239 * include/grub/efi/memory.h: Likewise.
21240 * include/grub/multiboot.h: Likewise.
21241 * include/grub/usbdesc.h: Likewise.
21242 * include/grub/multiboot2.h: Likewise.
21243 * include/grub/acpi.h: Likewise.
21244 * include/grub/efiemu/efiemu.h: Likewise.
21245 * include/grub/disk.h: Likewise.
21246 * include/grub/ieee1275/ieee1275.h: Likewise.
21247 * include/grub/net.h: Likewise.
21248 * include/grub/machoload.h: Likewise.
21249 * include/grub/macho.h: Likewise.
21250 * include/multiboot.h: Likewise.
21251 * genmoddep.awk: Likewise.
21252 * normal/main.c: Likewise.
21253 * normal/menu_entry.c: Likewise.
21254 * normal/menu_viewer.c: Likewise.
21255 * normal/completion.c: Likewise.
21256 * normal/cmdline.c: Likewise.
21257 * normal/misc.c: Likewise.
21258 * normal/datetime.c: Likewise.
21259 * bus/usb/usbtrans.c: Likewise.
21260 * bus/usb/ohci.c: Likewise.
21261 * bus/usb/uhci.c: Likewise.
21262 * bus/usb/usb.c: Likewise.
21263 * mmap/efi/mmap.c: Likewise.
21264 * mmap/i386/pc/mmap_helper.S: Likewise.
21265 * mmap/i386/pc/mmap.c: Likewise.
21266 * mmap/i386/mmap.c: Likewise.
21267 * mmap/i386/uppermem.c: Likewise.
21268 * mmap/mmap.c: Likewise.
21269 * commands/acpi.c: Likewise.
21270 * commands/echo.c: Likewise.
21271 * commands/blocklist.c: Likewise.
21272 * commands/loadenv.c: Likewise.
21273 * commands/usbtest.c: Likewise.
21274 * commands/boot.c: Likewise.
21275 * commands/parttool.c: Likewise.
21276 * commands/search.c: Likewise.
21277 * commands/cat.c: Likewise.
21278 * commands/i386/pc/play.c: Likewise.
21279 * commands/i386/pc/drivemap.c: Likewise.
21280 * commands/i386/pc/vbeinfo.c: Likewise.
21281 * commands/i386/pc/acpi.c: Likewise.
21282 * commands/i386/pc/vbetest.c: Likewise.
21283 * commands/ls.c: Likewise.
21284 * commands/cmp.c: Likewise.
21285 * commands/test.c: Likewise.
21286 * commands/efi/acpi.c: Likewise.
21287 * commands/gptsync.c: Likewise.
21288 * commands/help.c: Likewise.
21289 * partmap/amiga.c: Likewise.
21290 * partmap/apple.c: Likewise.
21291 * partmap/acorn.c: Likewise.
21292 * partmap/pc.c: Likewise.
21293 * partmap/sun.c: Likewise.
21294 * partmap/gpt.c: Likewise.
21295 * script/sh/lexer.c: Likewise.
21296 * script/sh/function.c: Likewise.
21297 * font/font.c: Likewise.
21298 * font/font_cmd.c: Likewise.
21299 * loader/powerpc/ieee1275/linux.c: Likewise.
21300 * loader/efi/chainloader.c: Likewise.
21301 * loader/multiboot_loader.c: Likewise.
21302 * loader/macho.c: Likewise.
21303 * loader/i386/multiboot.c: Likewise.
21304 * loader/i386/linux.c: Likewise.
21305 * loader/i386/pc/linux.c: Likewise.
21306 * loader/i386/pc/multiboot2.c: Likewise.
21307 * loader/i386/pc/chainloader.c: Likewise.
21308 * loader/i386/pc/xnu.c: Likewise.
21309 * loader/i386/bsd_trampoline.S: Likewise.
21310 * loader/i386/efi/linux.c: Likewise.
21311 * loader/i386/multiboot_elfxx.c: Likewise.
21312 * loader/i386/bsd_helper.S: Likewise.
21313 * loader/i386/bsd.c: Likewise.
21314 * loader/i386/linux_trampoline.S: Likewise.
21315 * loader/i386/xnu_helper.S: Likewise.
21316 * loader/i386/xnu.c: Likewise.
21317 * loader/i386/bsd_pagetable.c: Likewise.
21318 * loader/i386/multiboot_helper.S: Likewise.
21319 * loader/xnu.c: Likewise.
21320 * loader/xnu_resume.c: Likewise.
21321 * io/gzio.c: Likewise.
21322 * term/efi/console.c: Likewise.
21323 * term/terminfo.c: Likewise.
21324 * term/ieee1275/ofconsole.c: Likewise.
21325 * term/i386/pc/serial.c: Likewise.
21326 * term/i386/pc/vesafb.c: Likewise.
21327 * term/i386/pc/vga.c: Likewise.
21328 * term/usb_keyboard.c: Likewise.
21329 * term/gfxterm.c: Likewise.
21330 * aclocal.m4: Likewise.
21331 * util/lvm.c: Likewise.
21332 * util/grub.d/30_os-prober.in: Likewise.
21333 * util/grub.d/10_hurd.in: Likewise.
21334 * util/console.c: Likewise.
21335 * util/grub-macho2img.c: Likewise.
21336 * util/grub-probe.c: Likewise.
21337 * util/hostfs.c: Likewise.
21338 * util/i386/pc/grub-mkimage.c: Likewise.
21339 * util/i386/pc/grub-setup.c: Likewise.
21340 * util/i386/efi/grub-mkimage.c: Likewise.
21341 * util/grub-mkconfig.in: Likewise.
21342 * util/raid.c: Likewise.
21343 * util/resolve.c: Likewise.
21344 * util/grub-mkdevicemap.c: Likewise.
21345 * util/grub-emu.c: Likewise.
21346 * util/getroot.c: Likewise.
21347 * util/hostdisk.c: Likewise.
21348 * util/usb.c: Likewise.
21349 * util/grub-editenv.c: Likewise.
21350 * util/misc.c: Likewise.
21352 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
21354 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
21355 `genparttoollist.sh'.
21356 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
21357 Add `*.sh' to the list find searches for and change `mdate.sh'
21360 2009-06-10 Pavel Roskin <proski@gnu.org>
21362 * include/grub/multiboot2.h: Provide compatibility defines for
21364 * include/multiboot2.h: Include stdint.h only if needed, using
21366 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
21368 * loader/ieee1275/multiboot2.c: Likewise.
21369 * loader/multiboot2.c: Likewise.
21370 * loader/multiboot_loader.c: Likewise.
21372 * configure.ac: Use -nostdlib when probing for the target. It
21373 should not be required to have libc for the target.
21375 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
21376 they fail without libc headers for the target.
21377 * include/grub/powerpc/libgcc.h: Use weak attribute for all
21379 * include/grub/sparc64/libgcc.h: Likewise. Don't use
21380 preprocessor conditionals.
21382 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
21383 build system doesn't need to be aware of the tar.c internals.
21385 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
21387 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
21389 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
21391 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
21392 disk limit to 26 for IDE, Virtio, Xen and SCSI.
21394 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
21396 * util/i386/pc/grub-install.in: Change the error message if UUIDs
21397 aren't available if ata.mod gets used.
21399 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
21401 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
21402 initialising controller.
21403 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
21405 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21407 * util/i386/pc/grub-install.in: Add a parameter --disk-module
21408 to choose between ata and biosdisk module on i386-pc.
21410 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
21412 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
21413 Subclass and Programming Interface fields in terms of the 3 byte
21414 Class Code register.
21415 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
21417 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
21418 interface is OHCI. Add grub_dprintf for symmetry with
21420 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
21421 interface is UHCI. Add interf variable for programming
21422 interface. Print interface with class/subclass.
21424 * bus/usb/ohci.c: Set interf with correct field.
21426 * bus/usb/uhci.c: Remove unneeded doubled lines.
21427 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
21428 Remove whitespace inside comment.
21430 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
21432 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
21433 as fallback an equivalent option without depth.
21435 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
21437 Not fail if unable to retrieve C/H/S on LBA disks
21439 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
21440 if unable to retrieve C/H/S on LBA disks
21442 2009-06-08 Pavel Roskin <proski@gnu.org>
21444 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
21447 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21449 * Makefile.in (uninstall): Remove all $lib_DATA files.
21451 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
21453 Bugfix: install on partitionless device
21455 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
21458 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21460 * Makefile.in (uninstall): Remove all $include_DATA files.
21462 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
21464 * commands/true.c: New file. Implement the true and false commands.
21465 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
21466 (true_mod_SOURCES): New variable.
21467 (true_mod_CFLAGS): Likewise.
21468 (true_mod_LDFLAGS): Likewise.
21470 2009-06-05 Colin D Bennett <colin@gibibit.com>
21472 Optimized font character lookup using binary search instead of linear
21473 search. Fonts now are required to have the character index ordered by
21476 * font/font.c (load_font_index): Verify that fonts have ordered
21478 (find_glyph): Use binary search instead of linear search to find a
21479 character in a font.
21481 2009-06-05 Michael Scherer <misc@mandriva.org>
21483 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
21484 uses case sensitive btree.
21485 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
21486 only for case insensitive filesystems.
21488 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
21490 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
21491 * conf/common.rmk (search_mod_CFLAGS): likewise
21493 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21495 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
21496 compensate a compiler bug
21498 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21500 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
21503 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21505 Definitions for creating asm symbols with Apple's CC
21507 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
21508 [APPLE_CC] (VARIABLE): likewise
21510 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21512 Disable lnxboot.img when compiled
21515 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
21516 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
21517 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
21518 [! APPLE_CC] (CODE_LENG): skip
21519 [! APPLE_CC] (setup_sects): likewise
21520 [! APPLE_CC]: skip filling
21522 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21524 Address in trampolines based on 32-bit registers when compiled
21527 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
21529 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
21531 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21533 Avoid aliases when compiling with Apple's CC for PCBIOS machine
21535 * kern/misc.c [APPLE_CC] (memcpy): new function
21536 [APPLE_CC] (memmove): likewise
21537 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
21538 (memcpy): define alias conditionally on !APPLE_CC
21541 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
21542 APPLE_CC are defined
21543 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
21544 (grub_assert_fail): make prototype conditional
21546 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21548 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
21550 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
21552 (CLEANFILES): add grub-macho2img
21553 (grub_macho2img_SOURCES): new variable
21554 * kern/i386/pc/startup.S (bss_start): new variable
21555 (bss_end): likewise
21556 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
21557 * util/grub-macho2img.c: new file
21559 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21561 Use objconv when compiling with Apple's CC
21563 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
21564 (efiemu64.o): likewise
21565 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
21566 when compiling with Apple's CC
21567 (efiemu64_s.o): likewise
21568 * configure.ac: check for objconv when compiling with Apple's CC
21569 * genmk.rb: use objconv for modules when compiled with Apple's CC
21571 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21573 Define segment as well as section when compiling with
21576 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
21577 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
21578 (efiemu_convert_pointer): likewise
21579 (efiemu_set_virtual_address_map): likewise
21580 (efiemu_convert_pointer): likewise
21581 (efiemu_getcrc32): likewise
21582 (init_crc32_table): likewise
21583 (reflect): likewise
21584 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
21585 (GRUB_MOD_DEP): likewise
21587 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21589 Allow a compilation without -mcmodel=large
21591 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
21592 when compiled without -mcmodel=large
21593 (filter_memory_map): remove memory post 4 GiB when compiled
21594 without -mcmodel=large
21595 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
21596 TARGET_CFLAGS when -mcmodel=large isn't supported
21598 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21600 Remove nested functions in efiemu core
21602 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
21604 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21606 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
21608 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
21610 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
21612 (grub_cpu_is_tsc_supported): likewise
21613 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
21615 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21617 Absolute addressing through constant with Apple's cc
21619 * kern/i386/pc/startup.S: Define necessary constants
21620 and address through it when using ABS with Apple's CC
21621 * boot/i386/pc/diskboot.S: likewise
21622 * boot/i386/pc/boot.S: likewise
21623 * boot/i386/pc/lnxboot.S: likewise
21624 * boot/i386/pc/cdboot.S: likewise
21625 * mmap/i386/pc/mmap_helper.S: likewise
21626 * commands/i386/pc/drivemap_int13h.S: likewise
21628 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21630 Check if compiler is apple cc
21632 * Makefile.in (ASFLAGS): new variable
21633 (TARGET_ASFLAGS): likewise
21634 (TARGET_MODULE_FORMAT): likewise
21635 (TARGET_APPLE_CC): likewise
21636 (OBJCONV): likewise
21637 (TARGET_IMG_CFLAGS): likewise
21638 (TARGET_CPPFLAGS): add includedir
21639 * configure.ac: call grub_apple_cc and grub_apple_target_cc
21640 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
21641 Check for linker script only if compiler isn't Apple's CC
21642 (TARGET_MODULE_FORMAT): set
21643 (TARGET_APPLE_CC): likewise
21644 (TARGET_ASFLAGS): likewise
21645 (ASFLAGS): likewise
21646 Check for objcopy only if compiler isn't Apple's CC
21647 Check for BSS symbol only if compiler isn't Apple's CC
21648 * genmk.rb: adapt nm options if we use Apple's utils
21649 * aclocal.m4 (grub_apple_cc): new test
21650 (grub_apple_target_cc): likewise
21652 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21654 Simplify sed expressions and improve awk
21656 * Makefile.in (install-local): simplify sed expression
21657 * gencmdlist.sh: likewise
21658 * genmoddep.awk: avoid adding module as a dependency of itself
21660 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21662 Add missing start symbols
21664 * boot/i386/pc/boot.S: add start
21665 * boot/i386/pc/pxeboot.S: likewise
21667 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21669 Fix wrong assumptions with grub-mkimage on EFI
21671 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
21672 (relocate_addresses): consider both r_addend and value at offset
21673 (make_mods_section): zerofill modinfo and header
21674 (convert_elf): write prefix here
21676 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21678 Use .asciz instead of .string
21680 * i386/pc/diskboot.S: use .asciz instead of .string
21681 * i386/pc/boot.S: likewise
21682 * include/grub/dl.h (GRUB_MOD_DEP): likewise
21683 (GRUB_MOD_NAME): likewise
21685 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21689 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
21690 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
21691 (grub_video_setup): remove
21692 (grub_video_set_mode): new prototype
21693 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
21695 (linux_vesafb_res): compile only on PCBIOS
21696 (grub_linux_boot): support gfxpayload
21697 * loader/i386/pc/xnu.c (video_hook): new function
21698 (grub_xnu_set_video): support gfxpayload
21699 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
21700 (DEFAULT_VIDEO_HEIGHT): likewise
21701 (DEFAULT_VIDEO_FLAGS): likewise
21702 (DEFAULT_VIDEO_MODE): new definition
21703 (video_hook): new function
21704 (grub_gfxterm_init): use grub_video_set_mode
21705 * util/grub.d/30_os-prober.in: remove explicit modesetting before
21707 * video/video.c (grub_video_setup): removed
21708 (grub_video_set_mode): new function based on grub_gfxterm_init and
21711 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21713 Avoid calling biosdisk in drivemap
21715 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
21716 (revparse_biosdisk): likewise
21717 (list_mappings): derive name from id directly
21718 (grub_cmd_drivemap): use tryparse_diskstring
21720 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
21724 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
21725 (grub_lexer_param): add tokenonhold
21726 (grub_script_create_cmdline): remove cmdline. All callers updated
21727 (grub_script_function_create): make functionname
21728 grub_script_arg. All callers updated
21729 (grub_script_execute_argument_to_string): new prototype
21730 * kern/parser.c (state_transitions): reorder
21731 (grub_parser_cmdline_state): fix a bug and make more compact
21732 * script/sh/execute.c (grub_script_execute_argument_to_string):
21734 (grub_script_execute_cmdline): use new format
21735 * script/sh/function.c (grub_script_function_create): make functionname
21736 grub_script_arg. All callers updated
21737 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
21738 (grub_script_yylex): remove
21739 (grub_script_yylex2): renamed to ...
21740 (grub_script_yylex): ...renamed
21741 parse the expressions like a${b}c
21742 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
21743 (GRUB_PARSER_TOKEN_VAR): remove
21744 (GRUB_PARSER_TOKEN_NAME): likewise
21745 ("if"): declare as typeless
21746 ("while"): likewise
21747 ("function"): likewise
21752 (argument): likewise
21753 (script): accept empty scripts and make exit on error
21754 (arguments): use GRUB_PARSER_TOKEN_ARG
21755 (function): likewise
21756 (command): move error handling to script
21757 (menuentry): move grub_script_lexer_ref before
21758 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
21759 argument. All callers updated
21761 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
21763 Prevent GRUB from probing floppies during boot.
21765 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
21766 * commands/search.c (options): Add --no-floppy.
21767 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
21768 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
21769 --no-floppy when searching for UUIDs.
21771 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
21773 Simplify the code duplication in commands/search.c.
21775 * commands/search.c (search_label, search_fs_uuid): Merge into ...
21776 (search_fs): ... this. Update all users.
21778 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
21780 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
21782 2009-05-28 Pavel Roskin <proski@gnu.org>
21784 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
21785 Remove the original symlink explicitly.
21787 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
21788 just one slash. That's how grub_fshelp_find_file() does it.
21790 2009-05-26 Pavel Roskin <proski@gnu.org>
21792 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
21795 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
21798 2009-05-25 Christian Franke <franke@computer.org>
21800 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
21802 (grub_atapi_identify): Add wait after drive select.
21803 (grub_ata_identify): Do more strict status register check before
21804 calling grub_atapi_identify (). Suppress error message if status
21805 register is 0x00 after command failure. Add status register
21806 check after PIO read to avoid bogus identify due to stuck DRQ.
21807 Thanks to Pavel Roskin for testing.
21808 (grub_device_initialize): Remove unsafe status register check.
21809 Thanks to 'phcoder' for problem report and patch.
21810 Prevent sign extension in debug message.
21812 2009-05-23 Colin D Bennett <colin@gibibit.com>
21814 Cleaned up `include/grub/normal.h'. Grouped prototypes by
21815 definition file, and functions defined in `normal/menu.c' have had
21816 their prototypes moved to `include/grub/menu.h' for consistency.
21818 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
21820 (grub_menu_get_entry): Likewise.
21821 (grub_menu_get_timeout): Likewise.
21822 (grub_menu_set_timeout): Likewise.
21823 (grub_menu_execute_entry): Likewise.
21824 (grub_menu_execute_with_fallback): Likewise.
21825 (grub_menu_entry_run): Likewise.
21827 * include/grub/normal.h: Re-ordered and grouped function
21828 prototypes by file that the function is defined in.
21829 (grub_menu_execute_callback): Removed; moved to menu.h.
21830 (grub_menu_get_entry): Likewise.
21831 (grub_menu_get_timeout): Likewise.
21832 (grub_menu_set_timeout): Likewise.
21833 (grub_menu_execute_entry): Likewise.
21834 (grub_menu_execute_with_fallback): Likewise.
21835 (grub_menu_entry_run): Likewise.
21836 (grub_menu_addentry): Renamed from this ...
21837 (grub_normal_add_menu_entry): ... to this.
21839 * normal/main.c (grub_menu_addentry): Renamed from this ...
21840 (grub_normal_add_menu_entry): ... to this.
21842 * script/sh/execute.c (grub_script_execute_menuentry): Update
21843 reference to renamed grub_menu_addentry function.
21845 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
21847 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
21849 2009-05-22 Pavel Roskin <proski@gnu.org>
21851 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
21852 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
21853 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
21854 compiling for the i386 targets, but not for the utilities.
21856 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
21858 (grub_root_drive): Likewise.
21859 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
21861 (grub_root_drive): Change size to byte.
21862 (grub_start_addr): Remove.
21863 (grub_end_addr): Likewise.
21864 (grub_apm_bios_info): Likewise.
21866 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
21868 * normal/i386: Remove.
21869 * normal/powerpc: Likewise.
21870 * normal/sparc64: Likewise.
21871 * normal/x86_64: Likewise.
21873 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
21875 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
21876 * loader/i386/linux_trampoline.S: Fix indentation
21877 * loader/i386/xnu_helper.S: Likewise
21879 2009-05-18 Colin D Bennett <colin@gibibit.com>
21881 Display error messages when parsing a Lua statement fails.
21882 Previously, executing a syntactically invalid statement like
21883 ")foo" or "bar;" would silently fail.
21885 * script/lua/grub_main.c (handle_lua_error): New function.
21886 (grub_lua_parse_line): Improved reporting of Lua parser and
21889 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21891 Remove -Werror which causes build to fail on some systems
21893 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
21894 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
21895 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
21897 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21899 trampoline for linux on 64-bit platform
21901 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
21902 loader/i386/efi/linux_trampoline.S
21903 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
21905 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
21907 * loader/i386/linux_trampoline.S: moved here
21908 * loader/i386/efi/linux.c (allocate_pages): reserve space for
21910 (jumpvector): removed
21911 (grub_linux_trampoline_start): new declaration
21912 (grub_linux_trampoline_end): likewise
21913 (grub_linux_boot): use trampoline when on 64-bit platform
21914 * loader/i386/linux.c: likewise
21916 2009-05-16 Pavel Roskin <proski@gnu.org>
21918 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
21919 const to avoid a warning.
21920 (grub_lua_setenv): Likewise.
21921 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
21922 lmsg to fix a warning.
21924 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
21926 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
21927 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21928 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
21929 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21930 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
21931 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21932 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
21933 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
21935 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
21937 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
21939 2009-05-16 Bean <bean123ch@gmail.com>
21941 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
21942 (lua_mod_SOURCES): New variable.
21943 (lua_mod_CFLAGS): Likewise.
21944 (lua_mod_LDFLAGS): Likewise.
21946 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
21947 (setjmp_mod_SOURCES): New variable.
21948 (setjmp_mod_CFLAGS): Likewise.
21949 (setjmp_LDFLAGS): Likewise.
21951 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
21952 (setjmp_mod_SOURCES): New variable.
21953 (setjmp_mod_CFLAGS): Likewise.
21954 (setjmp_LDFLAGS): Likewise.
21956 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
21957 (setjmp_mod_SOURCES): New variable.
21958 (setjmp_mod_CFLAGS): Likewise.
21959 (setjmp_LDFLAGS): Likewise.
21961 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
21962 (setjmp_mod_SOURCES): New variable.
21963 (setjmp_mod_CFLAGS): Likewise.
21964 (setjmp_LDFLAGS): Likewise.
21966 * normal/i386/setjmp.S: Moved from here ...
21967 * lib/i386/setjmp.S: ... Moved here
21968 * normal/x86_64/setjmp.S: Moved from here ...
21969 * lib/x86_64/setjmp.S: ... Moved here
21970 * normal/powerpc/setjmp.S: Moved from here ...
21971 * lib/powerpc/setjmp.S: ... Moved here
21972 * normal/sparc64/setjmp.S: Moved from here ...
21973 * lib/sparc64/setjmp.S: ... Moved here
21975 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
21976 returns_twice in mingw.
21978 * script/lua/grub_lib.c: New file.
21979 * script/lua/grub_lib.h: Likewise.
21980 * script/lua/grub_lua.h: Likewise.
21981 * script/lua/grub_main.c: Likewise.
21982 * script/lua/lapi.c: Likewise.
21983 * script/lua/lapi.h: Likewise.
21984 * script/lua/lauxlib.c: Likewise.
21985 * script/lua/lauxlib.h: Likewise.
21986 * script/lua/lbaselib.c: Likewise.
21987 * script/lua/lcode.c: Likewise.
21988 * script/lua/lcode.h: Likewise.
21989 * script/lua/ldblib.c: Likewise.
21990 * script/lua/ldebug.c: Likewise.
21991 * script/lua/ldebug.h: Likewise.
21992 * script/lua/ldo.c: Likewise.
21993 * script/lua/ldo.h: Likewise.
21994 * script/lua/ldump.c: Likewise.
21995 * script/lua/lfunc.c: Likewise.
21996 * script/lua/lfunc.h: Likewise.
21997 * script/lua/lgc.c: Likewise.
21998 * script/lua/lgc.h: Likewise.
21999 * script/lua/linit.c: Likewise.
22000 * script/lua/liolib.c: Likewise.
22001 * script/lua/llex.c: Likewise.
22002 * script/lua/llex.h: Likewise.
22003 * script/lua/llimits.h: Likewise.
22004 * script/lua/lmathlib.c: Likewise.
22005 * script/lua/lmem.c: Likewise.
22006 * script/lua/lmem.h: Likewise.
22007 * script/lua/loadlib.c: Likewise.
22008 * script/lua/lobject.c: Likewise.
22009 * script/lua/lobject.h: Likewise.
22010 * script/lua/lopcodes.c: Likewise.
22011 * script/lua/lopcodes.h: Likewise.
22012 * script/lua/loslib.c: Likewise.
22013 * script/lua/lparser.c: Likewise.
22014 * script/lua/lparser.h: Likewise.
22015 * script/lua/lstate.c: Likewise.
22016 * script/lua/lstate.h: Likewise.
22017 * script/lua/lstring.c: Likewise.
22018 * script/lua/lstring.h: Likewise.
22019 * script/lua/lstrlib.c: Likewise.
22020 * script/lua/ltable.c: Likewise.
22021 * script/lua/ltable.h: Likewise.
22022 * script/lua/ltablib.c: Likewise.
22023 * script/lua/ltm.c: Likewise.
22024 * script/lua/ltm.h: Likewise.
22025 * script/lua/lua.h: Likewise.
22026 * script/lua/luaconf.h: Likewise.
22027 * script/lua/lualib.h: Likewise.
22028 * script/lua/lundump.c: Likewise.
22029 * script/lua/lundump.h: Likewise.
22030 * script/lua/lvm.c: Likewise.
22031 * script/lua/lvm.h: Likewise.
22032 * script/lua/lzio.c: Likewise.
22033 * script/lua/lzio.h: Likewise.
22035 2009-05-16 Bean <bean123ch@gmail.com>
22037 * include/grub/kernel.h (grub_module_header_types): Add type
22040 * kern/main.c (grub_load_config): New function.
22041 (grub_main): Call grub_load_config to read boot config.
22043 * grub-mkimage (generate_image): New parameter config_path.
22044 (options): New option --config.
22045 (main): Parse --config option, and pass it to generate_image.
22047 2009-05-14 Christian Franke <franke@computer.org>
22049 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
22050 This fixes build on Cygwin.
22052 2009-05-14 Pavel Roskin <proski@gnu.org>
22054 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
22055 jump. This saves two bytes, so the typical case of 2 swapped
22056 drives would fit 32 bytes.
22058 2009-05-13 Pavel Roskin <proski@gnu.org>
22060 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
22061 grub_uint32_t to avoid a warning.
22063 * loader/i386/linux.c (allocate_pages): When assigning
22064 real_mode_mem, cast through grub_size_t to fix a warning. The
22065 code already makes sure that the value would fit a pointer.
22066 (grub_linux_setup_video): Cast render_target->data to
22067 grub_size_t to fix a warning.
22069 2009-05-13 Javier Martín <lordhabbit@gmail.com>
22071 * commands/i386/pc/drivemap.c: New file - implement drivemap
22073 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
22074 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
22076 2009-05-13 Pavel Roskin <proski@gnu.org>
22078 * util/i386/pc/grub-setup.c (setup): Remove unused variable
22079 embedding_area_exists.
22081 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
22083 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
22084 it easier to understand / work with.
22085 Improve warning messages for cases where there's no embedding area,
22086 or when it is too small (or core.img too large).
22088 2009-05-13 Pavel Roskin <proski@gnu.org>
22090 * loader/i386/pc/multiboot2.c: Add necessary includes for
22091 grub_multiboot2_real_boot().
22093 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
22094 PX record is always little-endian. We only need the lower 2
22097 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
22098 facilitate code reuse.
22099 (grub_cpio_mount): Use "struct head", not a char buffer. This
22100 fixes a warning reported by gcc 4.4.
22102 * kernel/disk.c (grub_disk_read): Use void pointer for the
22104 (grub_disk_write): Use const void pointer for the buffer.
22105 Adjust all callers. Remove unnecessary casts.
22107 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
22109 * util/i386/pc/grub-install.in: Update copyright year.
22111 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
22115 * commands/gptsync.c: new file
22116 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
22117 (gptsync_mod_SOURCES): new variable
22118 (gptsync_mod_CFLAGS): likewise
22119 (gptsync_mod_LDFLAGS): likewise
22120 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
22122 (GRUB_PC_PARTITION_TYPE_HFS): likewise
22123 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
22124 * conf/i386-ieee1275.rmk: likewise
22125 * conf/i386-pc.rmk: likewise
22126 * conf/powerpc-ieee1275.rmk: likewise
22128 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
22132 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
22133 (grub_dl_ref): likewise
22135 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
22137 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
22138 split in two functions (one for msdos and one for gpt).
22140 2009-05-08 Pavel Roskin <proski@gnu.org>
22142 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
22145 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
22146 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
22147 Initialize them with -1. Add sanity check for bad1. Eliminate
22150 2009-05-08 David S. Miller <davem@davemloft.net>
22152 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
22154 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
22156 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
22159 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
22161 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
22162 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
22164 2009-05-05 David S. Miller <davem@davemloft.net>
22166 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
22168 2009-05-05 Pavel Roskin <proski@gnu.org>
22170 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
22171 of grub_dl_ref() and grub_dl_unref().
22172 * commands/parttool.c: Remove preprocessor conditionals around
22173 grub_dl_ref() and grub_dl_unref().
22174 * fs/affs.c: Likewise.
22175 * fs/afs.c: Likewise.
22176 * fs/cpio.c: Likewise.
22177 * fs/ext2.c: Likewise.
22178 * fs/fat.c: Likewise.
22179 * fs/hfs.c: Likewise.
22180 * fs/hfsplus.c: Likewise.
22181 * fs/iso9660.c: Likewise.
22182 * fs/jfs.c: Likewise.
22183 * fs/minix.c: Likewise.
22184 * fs/ntfs.c: Likewise.
22185 * fs/reiserfs.c: Likewise.
22186 * fs/sfs.c: Likewise.
22187 * fs/udf.c: Likewise.
22188 * fs/ufs.c: Likewise.
22189 * fs/xfs.c: Likewise.
22190 * include/grub/dl.h: Likewise.
22191 * loader/xnu.c: Likewise.
22193 2009-05-04 Pavel Roskin <proski@gnu.org>
22195 * commands/acpi.c: Remove unused variable my_mod.
22196 * partmap/amiga.c: Likewise.
22197 * partmap/apple.c: Likewise.
22198 * partmap/gpt.c: Likewise.
22199 * partmap/pc.c: Likewise.
22200 * partmap/sun.c: Likewise.
22201 * term/gfxterm.c: Likewise.
22202 * term/i386/pc/vesafb.c: Likewise.
22203 * term/i386/pc/vga.c: Likewise.
22205 2009-05-04 David S. Miller <davem@davemloft.net>
22207 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
22208 pointer args to grub_ieee1275_get_property().
22210 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
22212 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
22213 devices, and do not traverse down under controller nodes.
22215 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
22216 (grub_ofdisk_open): Use it to un-escape "," characters.
22217 * kern/disk.c (find_part_sep): New.
22218 (grub_disk_open): Use it to find the first non-escaped ','
22219 character in the disk name.
22220 * util/ieee1275/devicemap.c (escape_of_path): New.
22221 (grub_util_emit_devicemap_entry): Use it.
22222 * util/sparc64/ieee1275/grub-install.in: Update script to
22223 strip partition specifiers properly by not triggering on
22224 '\' escaped ',' characters.
22226 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
22228 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
22230 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
22232 (linux_vesafb_modes): Add a lot of additional modes to the list (based
22233 on documentation from Wikipedia).
22235 2009-05-04 Pavel Roskin <proski@gnu.org>
22237 * disk/ata.c: Spelling fixes.
22238 * disk/raid.c: Likewise.
22239 * disk/usbms.c: Likewise.
22240 * disk/dmraid_nvidia.c: Likewise.
22241 * kern/ieee1275/openfw.c: Likewise.
22242 * kern/ieee1275/init.c: Likewise.
22243 * kern/ieee1275/cmain.c: Likewise.
22244 * boot/i386/pc/cdboot.S: Likewise.
22245 * video/readers/png.c: Likewise.
22246 * video/i386/pc/vbe.c: Likewise.
22247 * fs/udf.c: Likewise.
22248 * fs/hfs.c: Likewise.
22249 * fs/reiserfs.c: Likewise.
22250 * efiemu/runtime/efiemu.c: Likewise.
22251 * efiemu/main.c: Likewise.
22252 * efiemu/mm.c: Likewise.
22253 * include/grub/elf.h: Likewise.
22254 * include/grub/xnu.h: Likewise.
22255 * include/grub/usbdesc.h: Likewise.
22256 * include/grub/usb.h: Likewise.
22257 * include/grub/script_sh.h: Likewise.
22258 * include/grub/lib/LzmaEnc.h: Likewise.
22259 * include/grub/efiemu/efiemu.h: Likewise.
22260 * include/grub/command.h: Likewise.
22261 * normal/menu.c: Likewise.
22262 * normal/main.c: Likewise.
22263 * normal/datetime.c: Likewise.
22264 * bus/usb/uhci.c: Likewise.
22265 * mmap/i386/uppermem.c: Likewise.
22266 * mmap/mmap.c: Likewise.
22267 * commands/acpi.c: Likewise.
22268 * commands/test.c: Likewise.
22269 * partmap/apple.c: Likewise.
22270 * font/font.c: Likewise.
22271 * loader/sparc64/ieee1275/linux.c: Likewise.
22272 * loader/macho.c: Likewise.
22273 * loader/i386/bsd_trampoline.S: Likewise.
22274 * loader/i386/bsd.c: Likewise.
22275 * loader/xnu.c: Likewise.
22276 * term/i386/pc/vesafb.c: Likewise.
22277 * term/usb_keyboard.c: Likewise.
22278 * util/resolve.c: Likewise.
22279 * util/getroot.c: Likewise.
22281 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
22283 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
22285 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
22287 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
22290 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
22292 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
22293 parameter only available on BIOS.
22295 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
22297 Removed wrong semicolon in declaration
22299 * grub/misc.h (grub_dprintf): remove semicolon
22301 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
22303 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
22304 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
22305 is done by grub_cmd_linux() now).
22306 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
22307 restore video to text mode.
22308 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
22309 indicates lack of "vga=" parameter. "vga=0" is mapped to
22310 `GRUB_LINUX_VID_MODE_NORMAL'.
22312 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
22314 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
22315 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
22316 and `normal/script.c'. Add `kern/rescue_reader.c',
22317 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
22318 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
22319 `grub_script.tab.c'.
22321 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22322 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22323 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22324 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22325 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22327 * Makefile.in: Remove duplicated 2008 in Copyright line.
22329 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
22331 * util/misc.c (grub_util_warn): New function. Emits a warning
22333 * include/grub/util/misc.h (grub_util_warn): New declaration.
22335 * util/i386/pc/grub-install.in: Understand --force and pass it down
22338 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
22340 (setup): Improve error messages and add warnings when requested to
22341 install in odd layouts. Refuse to install using blocklists unless
22344 2009-05-04 martin f. krafft <madduck@madduck.net>
22346 * disk/raid.c (grub_raid_scan_device): Improve debug message.
22348 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
22350 Updated copyright year
22352 * fs/hfsplus.c: updated copyright year
22354 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
22358 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
22359 in the space previously used by unused3
22360 (grub_hfsplus_uuid): new function
22361 (grub_hfsplus_fs): added uuid field
22363 2009-05-03 Pavel Roskin <proski@gnu.org>
22365 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
22366 suppress warnings. It's no longer needed.
22367 * disk/host.c: Likewise.
22368 * disk/ata_pthru.c: Likewise.
22369 * disk/loopback.c: Likewise.
22370 * hook/datehook.c: Likewise.
22371 * parttool/pcpart.c: Likewise.
22372 * fs/i386/pc/pxe.c: Likewise.
22373 * fs/ntfscomp.c: Likewise.
22374 * efiemu/main.c: Likewise.
22375 * mmap/mmap.c: Likewise.
22376 * commands/crc.c: Likewise.
22377 * commands/hexdump.c: Likewise.
22378 * commands/hdparm.c: Likewise.
22379 * commands/acpi.c: Likewise.
22380 * commands/echo.c: Likewise.
22381 * commands/minicmd.c: Likewise.
22382 * commands/blocklist.c: Likewise.
22383 * commands/memrw.c: Likewise.
22384 * commands/loadenv.c: Likewise.
22385 * commands/usbtest.c: Likewise.
22386 * commands/lsmmap.c: Likewise.
22387 * commands/boot.c: Likewise.
22388 * commands/parttool.c: Likewise.
22389 * commands/configfile.c: Likewise.
22390 * commands/search.c: Likewise.
22391 * commands/ieee1275/suspend.c: Likewise.
22392 * commands/cat.c: Likewise.
22393 * commands/i386/pc/pxecmd.c: Likewise.
22394 * commands/i386/pc/play.c: Likewise.
22395 * commands/i386/pc/halt.c: Likewise.
22396 * commands/i386/pc/vbeinfo.c: Likewise.
22397 * commands/i386/pc/vbetest.c: Likewise.
22398 * commands/lspci.c: Likewise.
22399 * commands/date.c: Likewise.
22400 * commands/handler.c: Likewise.
22401 * commands/ls.c: Likewise.
22402 * commands/test.c: Likewise.
22403 * commands/cmp.c: Likewise.
22404 * commands/efi/loadbios.c: Likewise.
22405 * commands/efi/fixvideo.c: Likewise.
22406 * commands/halt.c: Likewise.
22407 * commands/help.c: Likewise.
22408 * commands/reboot.c: Likewise.
22409 * hello/hello.c: Likewise.
22410 * script/sh/main.c: Likewise.
22411 * loader/xnu.c: Likewise.
22412 * term/terminfo.c: Likewise.
22413 * term/i386/pc/serial.c: Likewise.
22414 * term/usb_keyboard.c: Likewise.
22416 2009-05-03 David S. Miller <davem@davemloft.net>
22418 * normal/menu.c: Include grub/parser.h
22420 2009-05-03 Pavel Roskin <proski@gnu.org>
22422 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
22424 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
22425 Suggested by Javier Martín <lordhabbit@gmail.com>
22427 * util/i386/pc/grub-mkrescue.in: Allow for the case when
22428 efiemu??.o doesn't exist.
22429 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
22432 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
22434 FreeBSD 64-bit support
22436 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
22437 and loader/i386/bsd_trampoline.S
22438 (bsd_mod_ASFLAGS): new variable
22439 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
22440 (FREEBSD_MODTYPE_KERNEL64): likewise
22441 (grub_bsd64_trampoline_start): likewise
22442 (grub_bsd64_trampoline_end): likewise
22443 (grub_bsd64_trampoline_selfjump): likewise
22444 (grub_bsd64_trampoline_gdt): likewise
22445 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
22446 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
22447 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
22448 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
22449 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
22451 * loader/i386/bsd_pagetable.c: new file
22452 * loader/i386/bsd_trampoline.S: likewise
22453 * loader/i386/bsd.c (ALIGN_QWORD): new macro
22454 (ALIGN_VAR): likewise
22455 (entry_hi): new variable
22456 (kern_end_mdofs): likewise
22457 (is_64bit): likewise
22458 (grub_freebsd_add_meta): use ALIGN_VAR
22459 (grub_e820_mmap): new declaration
22460 (grub_freebsd_add_mmap): new function
22461 (grub_freebsd_add_meta_module): support 64 bit kernels
22462 (grub_freebsd_list_modules): use ALIGN_VAR
22463 (gdt_descriptor): new declaration
22464 (grub_freebsd_boot): support 64 bit kernels
22465 (grub_bsd_elf64_hook): new function
22466 (grub_bsd_load_elf): support elf64
22468 2009-05-03 Bean <bean123ch@gmail.com>
22470 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
22471 after we get the result of if statement.
22473 2009-05-03 Bean <bean123ch@gmail.com>
22475 * Makefile.in (enable_efiemu): New variable.
22477 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
22479 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
22481 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
22482 path, add -mno-red-zone option.
22483 (efiemu64_s.o): Likewise.
22484 (efiemu64.o): Use macro $^ for source file.
22486 * configure.ac (--enable-efiemu): New option.
22488 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
22492 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
22493 (pkglib_MODULES): add xnu.mod
22494 (xnu_mod_SOURCES): new variable
22495 (xnu_mod_CFLAGS): likewise
22496 (xnu_mod_LDFLAGS): likewise
22497 (xnu_mod_ASFLAGS): likewise
22498 * conf/i386-pc.rmk: likewise
22499 * conf/x86_64-efi.rmk: likewise
22500 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
22502 * include/grub/i386/macho.h: new file
22503 * include/grub/i386/xnu.h: likewise
22504 * include/grub/macho.h: likewise
22505 * include/grub/machoload.h: likewise
22506 * include/grub/x86_64/macho.h: likewise
22507 * include/grub/x86_64/xnu.h: likewise
22508 * include/grub/xnu.h: likewise
22509 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
22510 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
22511 * loader/i386/efi/xnu.c: new file
22512 * loader/i386/pc/xnu.c: likewise
22513 * loader/i386/xnu.c: likewise
22514 * loader/i386/xnu_helper.S: likewise
22515 * loader/macho.c: likewise
22516 * loader/xnu.c: likewise
22517 * loader/xnu_resume.c: likewise
22518 * util/grub-dumpdevtree: likewise
22519 * include/grub/i386/pit.h: include grub/err.h
22520 (grub_pit_wait): export
22521 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
22523 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22527 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
22528 _linux_efi, linux_efi.
22529 new files in grub-emu
22530 new targets efiemu32.o and efiemu64.o
22531 * loader/linux_normal_efiemu.c: likewise
22532 * loader/i386/efi/linux.c: added preliminary efiemu support
22533 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
22535 * include/grub/autoefi.h: new file
22536 * include/grub/i386/efiemu.h: likewise
22537 * include/grub/i386/pc/efiemu.h: likewise
22538 * include/grub/efi/api.h: add LL suffix when necessary
22539 new definitions relating to tables
22540 * include/grub/efiemu/efiemu.h: new file
22541 * include/grub/efiemu/runtime.h: likewise
22542 * efiemu/prepare.c: likewise
22543 * efiemu/loadcore_common.c: likewise
22544 * efiemu/loadcore64.c: likewise
22545 * efiemu/runtime/efiemu.sh: likewise
22546 * efiemu/runtime/efiemu.S: likewise
22547 * efiemu/runtime/efiemu.c: likewise
22548 * efiemu/runtime/config.h: likewise
22549 * efiemu/prepare32.c: likewise
22550 * efiemu/main.c: likewise
22551 * efiemu/modules/pnvram.c: likewise
22552 * efiemu/modules/i386: likewise
22553 * efiemu/modules/i386/pc: likewise
22554 * efiemu/modules/acpi.c: likewise
22555 * efiemu/i386/pc/cfgtables.c: likewise
22556 * efiemu/i386/loadcore64.c: likewise
22557 * efiemu/i386/loadcore32.c: likewise
22558 * efiemu/prepare64.c: likewise
22559 * efiemu/loadcore.c: likewise
22560 * efiemu/symbols.c: likewise
22561 * efiemu/mm.c: likewise
22562 * efiemu/loadcore32.c: likewise
22564 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22568 * commands/acpi.c: new file
22569 * commands/i386/pc/acpi.c: likewise
22570 * commands/efi/acpi.c: likewise
22571 * include/grub/acpi.h: likewise
22572 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
22573 (acpi_mod_SOURCES): new variable
22574 (acpi_mod_CFLAGS): likewise
22575 (acpi_mod_LDFLAGS): likewise
22576 * conf/i386-efi.rmk: likewise
22577 * conf/x86_64-efi.rmk: likewise
22579 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22581 Missing part from mmap patch
22583 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
22584 (grub_mmap_unregister)
22585 (grub_mmap_free_and_unregister): use grub_mmap_register
22587 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22591 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
22592 * loader/i386/linux.c (find_mmap_size): likewise
22593 (allocate_pages): likewise
22594 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
22595 (grub_fill_multiboot_mmap): likewise
22596 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
22597 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
22598 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
22599 (OPENBSD_MMAP_RESERVED): likewise
22600 * include/grub/i386/pc/memory.h: include grub/memory.h
22601 (grub_lower_mem): removed
22602 (grub_upper_mem): likewise
22603 (GRUB_MACHINE_MEMORY_ACPI): new definition
22604 (GRUB_MACHINE_MEMORY_NVS): likewise
22605 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
22606 (GRUB_MACHINE_MEMORY_HOLE): likewise
22607 (grub_machine_mmap_register): likewise
22608 (grub_machine_mmap_unregister): likewise
22609 (grub_machine_get_upper): likewise
22610 (grub_machine_get_lower): likewise
22611 (grub_machine_get_post64): likewise
22612 * include/grub/i386/efi/memory.h: new file
22613 * include/grub/x86_64/efi/memory.h: likewise
22614 * include/grub/efi/memory.h: likewise
22615 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
22616 (mmap_mod_SOURCES): new variable
22617 (mmap_mod_LDFLAGS): likewise
22618 (mmap_mod_ASFLAGS): likewise
22619 * conf/i386-coreboot.rmk: likewise
22620 * conf/i386-ieee1275.rmk: likewise
22621 * conf/i386-efi.rmk: likewise
22622 * conf/x86_64-efi.rmk: likewise
22623 * include/grub/types.h (UINT_TO_PTR): new macro
22624 (PTR_TO_UINT32): likewise
22625 (PTR_TO_UINT64): likewise
22626 * include/grub/memory.h: new file
22627 * mmap/i386/pc/mmap.c: likewise
22628 * mmap/i386/pc/mmap_helper.S: likewise
22629 * mmap/i386/uppermem.c: likewise
22630 * mmap/mmap.c: likewise
22631 * mmap/efi/mmap.c: likewise
22632 * kern/i386/coreboot/init.c (grub_machine_init): don't use
22634 * kern/i386/pc/init.c (grub_lower_mem): removed variable
22635 (grub_upper_mem): likewise
22636 (grub_machine_init): don't use grub_upper_mem,
22637 make grub_lower_mem local
22638 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
22639 grub_mmap_iterate and grub_mmap_get_upper
22640 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
22642 2009-05-02 Bean <bean123ch@gmail.com>
22644 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
22645 script/sh/parser.y.
22646 (pkglib_MODULES): Add normal.mod and sh.mod.
22647 (normal_SOURCES): New variable.
22648 (normal_mod_CFLAGS): Likewise.
22649 (normal_mod_LDFLAGS): Likewise.
22650 (sh_mod_SOURCES): Likewise.
22651 (sh_mod_CFLAGS): Likewise.
22652 (sh_mod_LDFLAGS): Likewise.
22654 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
22655 script/sh/lexer.c_DEPENDENCIES.
22656 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
22657 kern/rescue_reader.c and kern/rescue_parser.c.
22658 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
22659 (grub_emu_SOURCES): Change source files.
22660 (pkglib_MODULES): Remove normal.mod.
22661 (normal_SOURCES): Removed.
22662 (normal_mod_CFLAGS): Likewise.
22663 (normal_mod_LDFLAGS): Likewise.
22664 * conf/i386-coreboot.rmk: Likewise.
22665 * conf/i386-efi.rmk: Likewise.
22666 * conf/i386-ieee1276.rmk: Likewise.
22667 * conf/powerpc-ieee1275.rmk: Likewise.
22668 * conf/sparc64-ieee1275.rmk: Likewise.
22669 * conf/x86_64-efi.rmk: Likewise.
22671 * include/grub/command.h (grub_command_execute): New inline function.
22673 * include/grub/menu.h (grub_menu_entry): Removed commands field.
22675 * include/grub/normal.h: Remove <grub/setjmp.h>.
22676 (grub_fs_module_list): Moved to normal/autofs.c.
22677 (grub_exit_env): Removed.
22678 (grub_command_execute): Likewise.
22679 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
22681 (read_command_list): New function declaration.
22682 (read_fs_list): Likewise.
22684 * include/parser.h: Include <grub/reader.h>.
22685 (grub_parser_split_cmdline): Change type of getline parameter.
22686 (grub_parser): New structure.
22687 (grub_parser_class): New variable.
22688 (grub_parser_execute): New function declaration.
22689 (grub_register_rescue_parser): Likewise.
22690 (grub_parser_register): New inline function.
22691 (grub_parser_unregister): Likewise.
22692 (grub_parser_get_current): Likewise.
22693 (grub_parser_set_current): Likewise.
22695 * include/grub/reader.h: New file.
22696 * kern/reader.c: Likewise.
22697 * kern/rescue_parser.c: Likewise.
22698 * kern/rescue_reader.c: Likewise.
22699 * normal/autofs.c: Likewise.
22700 * normal/dyncmd.c: Likewise.
22702 * include/grub/rescue.h: Removed.
22703 * normal/command.h: Likewise.
22705 * include/grub/script.h: Moved to ...
22706 * include/grub/script_sh.h: ... Moved here.
22707 * normal/execute.c: Moved to ...
22708 * script/sh/execute.c: ... Moved here.
22709 * normal/function.c: Moved to ...
22710 * script/sh/function.c: ... Moved here.
22711 * normal/lexer.c: Moved to ...
22712 * script/sh/lexer.c: ... Moved here.
22713 * normal/parser.y: Moved to ...
22714 * script/sh/parser.y: ... Moved here.
22715 * normal/script.c: Moved to ...
22716 * script/sh/script.c: ... Moved here.
22718 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
22720 (grub_exit_env): Removed.
22721 (fs_module_list): Moved to normal/autofs.c.
22722 (grub_file_getline): Don't handle comment here.
22723 (free_menu): Skip removed field entry->commands.
22724 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
22726 (read_config_file): Removed nested parameter, change getline function.
22727 (grub_enter_normal_mode): Removed.
22728 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
22729 (read_command_list): Likewise.
22730 (autoload_fs_module): Moved to normal/autofs.c.
22731 (read_fs_list): Likewise.
22732 (reader_nested): New variable.
22733 (grub_normal_execute): Run parser.sh to switch to sh parser.
22734 (grub_cmd_rescue): Removed.
22735 (cmd_normal): Removed.
22736 (grub_cmd_normal): Unregister itself at the beginning. Don't register
22738 (grub_cmdline_run): New function.
22739 (grub_normal_reader_init): Likewise.
22740 (grub_normal_read_line): Likewise.
22741 (grub_env_write_pager): Likewise.
22742 (cmdline): New variable.
22743 (grub_normal_reader): Likewise.
22744 (GRUB_MOD_INIT): Register normal reader and set as current, register
22745 pager hook, register normal command with grub_register_command_prio,
22746 so that it won't show up in command.lst.
22747 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
22748 grub_fs_autoload_hook.
22750 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
22751 (grub_menu_execute_entry): Replace grub_script_execute with
22752 grub_parser_execute, change parameter to grub_command_execute.
22754 * normal/menu_text.c: Remove <grub/script.h>.
22756 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
22757 and <grub/parser.h>.
22758 (run): Change editor_getline to use new parser interface. Change
22759 parameter to grub_command_execute.
22761 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
22762 <grub/reader.h> and <grub/parser.h>.
22763 (grub_load_normal_mode): Execute normal command.
22764 (grub_main): Call grub_register_core_commands,
22765 grub_register_rescue_parser and grub_register_rescue_reader, use
22766 grub_reader_loop to enter input loop.
22768 * kern/parser.c (grub_parser_split_cmdline): Change type of
22770 (grub_parser_class): New variable.
22771 (grub_parser_execute): New function.
22773 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
22774 * loader/multiboot2.c: Likewise.
22775 * loader/sparc64/ieee1275/linux.c: Likewise.
22777 * util/grub-emu.c (read_command_list): New dummy function.
22779 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
22781 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
22782 count to 16 for CCISS and IDA.
22784 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
22786 * normal/menu_text.c (grub_wait_after_message): Print a newline
22787 after waiting for user input.
22789 * loader/i386/linux.c: Include `<grub/normal.h>'.
22790 (grub_cmd_linux): Improve the error message about `ask' mode, by
22791 waiting for user input so it's not missed (we can do this, since
22792 user requested interaction).
22794 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
22796 Added missing lst to grub-mkrescue
22798 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
22799 and ${input_dir}/parttool.lst
22801 2009-04-30 David S. Miller <davem@davemloft.net>
22803 * util/hostdisk.c (device_is_wholedisk): New function.
22804 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
22805 zero only if device_is_wholedisk() returns true.
22807 * util/hostdisk.c (convert_system_partition_to_system_disk):
22808 Handle virtual disk devices named /dev/vdiskX as found on sparc
22811 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
22812 lettered partition specifier is found, convert to numbered.
22814 2009-04-29 David S. Miller <davem@davemloft.net>
22816 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
22817 * include/grub/sparc64/ieee1275/memory.h: Likewise.
22819 * normal/command.c: Add missing newline at end of file.
22821 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
22823 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
22824 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
22825 grub_ofdisk_read): Likewise, and deal similarly with the fact that
22826 ihandles have a 32-bit type but need to be stored in a "void *".
22828 2009-04-28 Pavel Roskin <proski@gnu.org>
22830 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
22831 not disk. Adjust all dependencies.
22832 (grub_fs_uuid_close): Use grub_device_close(), not
22835 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
22836 parent's partition, don't copy it by reference, as it gets freed
22839 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22841 Preboot hooks support
22843 * commands/boot.c (struct grub_preboot_t): new declaration
22844 (preboots_head): new variable
22845 (preboots_tail): likewise
22846 (grub_loader_register_preboot_hook): new function
22847 (grub_loader_unregister_preboot_hook): likewise
22848 (grub_loader_set): launch preboot hooks
22849 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
22850 (grub_loader_register_preboot_hook): new declaration
22851 (grub_loader_unregister_preboot_hook): likewise
22853 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22857 * disk/scsi.c (grub_scsi_open): added missing cast when
22858 calling grub_dprintf
22860 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
22862 Bug and warning fixes
22864 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
22866 * commands/test.c (test_parse): fixed bug with file tests and corrected
22867 declaration of find_file
22869 2009-04-26 Pavel Roskin <proski@gnu.org>
22871 * Makefile.in: Don't install empty manual pages if help2man is
22872 missing. Use help2man option for output, not shell redirection.
22874 2009-04-26 David S. Miller <davem@davemloft.net>
22876 * util/grub-mkdevicemap.c (make_device_map): Add missing
22877 NESTED_FUNC_ATTR to process_device().
22879 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
22883 * commands/test.c: rewritten to use bash-like test
22885 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
22887 Parttool autoloading and improvements
22889 * Makefile.in (pkglib_DATA): add parttool.lst
22890 (parttool.lst): new target
22891 * genmk.rb: generate parttool-*
22892 (CLEANFILES): add #{parttool}
22893 (PARTTOOLFILES): new variable
22894 * genparttoollist.sh: new file
22895 * parttool/pcpart.c (grub_pcpart_boot): more feedback
22896 (grub_pcpart_type): likewise
22897 * commands/parttool.c (helpmsg): new variable
22898 (grub_cmd_parttool): output help if not enough arguments are supplied
22900 (GRUB_MOD_INIT(parttool)): use helpmsg
22902 2009-04-24 David S. Miller <davem@davemloft.net>
22904 Avoiding opening same device multiple times in device iterator.
22906 * kern/device.c: (grub_device_iterate): Define struct part_ent,
22907 and use it to build a list of partitions in iterate_disk() and
22908 iterate_partition().
22910 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
22913 * disk/ieee1275/nand.c (grub_nand_iterate): Return
22914 grub_devalias_iterate() result instead of unconditional 0.
22915 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
22916 Also, capture hook return value, either directly or via
22917 grub_children_iterate(), and propagate to caller.
22918 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
22919 grub_children_iterate): Return value is now 'int' instead of
22921 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
22922 like a proper iterator, stopping when hooks return non-zero.
22923 (grub_devalias_iterate): Likewise.
22925 2009-04-23 David S. Miller <davem@davemloft.net>
22927 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
22929 2009-04-22 David S. Miller <davem@davemloft.net>
22931 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
22932 is larger than address_cells, use that value for address_cells too.
22934 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
22935 IEEE1275_MAX_PATH_LEN): Define.
22936 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
22937 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
22938 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
22939 'devtype'. Explicitly NULL terminate devalias expansion.
22941 * util/sparc64/ieee1275/misc.c: New file.
22942 * util/sparc64/ieee1275/grub-setup.c: New file.
22943 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
22944 * util/sparc64/ieee1275/grub-mkimage.c: New file.
22945 * util/sparc64/ieee1275/grub-install.in: New file.
22946 * util/ieee1275/ofpath.c: New file.
22947 * util/ieee1275/devicemap.c: New file.
22948 * util/devicemap.c: New file.
22949 * util/deviceiter.c: New file.
22950 * kern/sparc64/ieee1275/init.c: New file.
22951 * include/grub/util/ofpath.h: New file.
22952 * include/grub/util/deviceiter.h: New file.
22953 * util/grub-mkdevicemap.c: Include deviceiter.h.
22954 Implement using grub_util_emit_devicemap_entry and
22955 grub_util_iterate_devices.
22956 * conf/i386-corebook.rmk: Build util/deviceiter.c and
22957 util/devicemap.c into grub-mkdevicemap
22958 * conf/i386-efi.rmk: Likewise.
22959 * conf/i386-ieee1275.rmk: Likewise.
22960 * conf/i386-pc.rmk: Likewise.
22961 * conf/powerpc-ieee1275.rmk: Likewise.
22962 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
22963 images and installation utilities. Build kernel as image
22964 instead of as elf binary. Use common rules as much as possible.
22966 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
22968 Correct GPT definition
22970 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
22973 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
22975 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
22977 2009-04-19 David S. Miller <davem@davemloft.net>
22979 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
22980 (grub_rescue_cmd_linux): Rename to...
22981 (grub_cmd_linux): and fix prototype.
22982 (grub_rescue_cmd_initrd): Rename to...
22983 (grub_cmd_initrd): and fix prototype.
22984 (cmd_linux, cmd_initrd): New.
22985 (GRUB_MOD_INIT(linux)): Use grub_register_command().
22986 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
22988 2009-04-17 Pavel Roskin <proski@gnu.org>
22990 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
22992 (grub_ohci_transfer): Likewise.
22994 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
22996 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
22997 return without a value. Fix inconsistent indentation.
22999 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
23000 match struct grub_fs.
23002 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
23003 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
23004 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23005 * commands/lspci.c (grub_lspci_iter): Likewise.
23007 2009-04-16 Bean <bean123ch@gmail.com>
23009 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
23012 2009-04-15 Pavel Roskin <proski@gnu.org>
23014 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
23015 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
23016 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
23019 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
23021 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
23022 that no multiple data or metadata areas are supported and `Unknown
23025 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
23027 Move loader out of the kernel
23029 * kern/loader.c: moved to ...
23030 * commands/boot.c: ... moved here
23031 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
23032 * commands/boot.c (grub_cmd_boot): moved here. All users updated
23033 * include/grub/kernel.h (grub_machine_fini): export
23034 * include/grub/loader.h (grub_loader_is_loaded): update declaration
23035 (grub_loader_set): likewise
23036 (grub_loader_unset): likewise
23037 (grub_loader_boot): likewise
23038 * conf/common.rmk: new module boot.mod
23039 (pkglib_MODULES): add boot.mod
23040 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
23041 (grub_emu_SOURCES): likewise
23042 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
23043 (grub_emu_SOURCES): likewise
23044 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
23045 (grub_emu_SOURCES): likewise
23046 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
23047 (grub_emu_SOURCES): likewise
23048 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
23049 (grub_emu_SOURCES): likewise
23050 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
23051 (grub_emu_SOURCES): likewise
23052 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
23053 (grub_emu_SOURCES): likewise
23055 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
23057 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
23059 * kern/misc.c (grub_itoa): Removed function
23060 (grub_ltoa): likewise
23061 (grub_vsprintf): use grub_lltoa
23063 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
23067 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
23068 * conf/i386-coreboot.rmk: likewise
23069 * conf/i386-ieee1275.rmk: likewise
23070 * conf/powerpc-ieee1275.rmk: likewise
23072 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
23074 * INSTALL: Add that `./autogen.sh' needs to be run before
23077 2009-04-14 Bean <bean123ch@gmail.com>
23079 * Makefile.in (pkglib_DATA): Add handler.lst.
23080 (handler.lst): New rule.
23082 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
23083 * conf/i386-coreboot.rmk: Likewise.
23084 * conf/i386-ieee1275.rmk: Likewise.
23085 * conf/i386-efi.rmk: Likewise.
23086 * conf/x86_64-efi.rmk: Likewise.
23087 * conf/powerpc-ieee1275.rmk: Likewise.
23088 * conf/sparc64-ieee1275.rmk: Likewise.
23090 * genhandlerlist.sh: New file.
23092 * genmk.rb: Add rules to generate handler.lst.
23094 * include/grub/normal.h (grub_file_getline): New function definition.
23095 (read_handler_list): Likewise.
23096 (free_handler_list): Likewise.
23098 * include/grub/term.h (grub_term_register_input): Add name parameter
23099 for auto generation of handler.lst.
23100 (grub_term_register_output): Likewise.
23102 * normal/handler.c: New file.
23104 * normal/main.c (get_line): Renamed to grub_file_getline.
23105 (read_config_file): Use the newly renamed grub_file_getline.
23106 (read_command_list): Likewise.
23107 (read_fs_list): Likewise.
23108 (grub_normal_execute): Call read_handler_list to parse handler.lst.
23109 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
23111 * term/efi/console.c (grub_console_init): Add name parameter for auto
23112 generation of handler.lst.
23113 * term/gfxterm.c: Likewise.
23114 * term/i386/pc/at_keyboard.c: Likewise.
23115 * term/i386/pc/console.c: Likewise.
23116 * term/i386/pc/serial.c: Likewise.
23117 * term/i386/pc/vesafb.c: Likewise.
23118 * term/i386/pc/vga.c: Likewise.
23119 * term/i386/pc/vga_text.c: Likewise.
23120 * term/ieee1275/ofconsole.c: Likewise.
23121 * term/usb_keyboard.c: Likewise.
23123 2009-04-14 Bean <bean123ch@gmail.com>
23125 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
23126 properly with null character.
23128 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
23130 * configure: Remove.
23131 * config.h.in: Likewise.
23132 * stamp-h.in: Likewise.
23133 * DISTLIST: Likewise.
23134 * conf/common.mk: Likewise.
23135 * conf/i386-coreboot.mk: Likewise.
23136 * conf/i386-efi.mk: Likewise.
23137 * conf/i386-ieee1275.mk: Likewise.
23138 * conf/i386.mk: Likewise.
23139 * conf/i386-pc.mk: Likewise.
23140 * conf/powerpc-ieee1275.mk: Likewise.
23141 * conf/sparc64-ieee1275.mk: Likewise.
23142 * conf/x86_64-efi.mk: Likewise.
23144 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
23147 2009-04-14 John Stanley <jpsinthemix@verizon.net>
23148 David S. Miller <davem@davemloft.net>
23150 * util/hostdisk.c (make_device_name): Fix buffer length
23153 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
23155 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
23156 <sys/param.h> and <sys/sysctl.h>.
23157 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
23158 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
23159 opening the device and reset them afterwards.
23161 2009-04-13 Pavel Roskin <proski@gnu.org>
23163 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
23164 Reported by John Stanley <jpsinthemix@verizon.net>
23166 2009-04-13 Robert Millan <rmh@aybabtu.com>
23168 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
23169 that name for menuentries when appropriate.
23171 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
23173 * util/grub.d/10_freebsd.in: Add a missing `fi'.
23175 2009-04-13 Robert Millan <rmh@aybabtu.com>
23177 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
23178 to Linux, simply abort telling the user it's no longer supported.
23180 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
23182 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
23183 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
23184 `freebsd_loadenv' only when devices.hints exist.
23186 2009-04-13 Pavel Roskin <proski@gnu.org>
23188 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
23190 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
23192 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
23194 (grub_drive): Likewise.
23196 2009-04-13 David S. Miller <davem@davemloft.net>
23198 * kern/sparc64/ieee1275/ieee1275.c: New file.
23199 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
23200 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
23201 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
23202 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
23203 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
23204 grub_ieee1275_alloc_physmem): Declare new exported functions.
23206 * include/grub/sparc64/ieee1275/loader.h: New file.
23207 * include/grub/sparc64/ieee1275/memory.h: Likewise.
23208 * include/grub/sparc64/kernel.h: Likewise.
23209 * loader/sparc64/ieee1275/linux.c: Likewise.
23211 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
23212 (grub_fstest_SOURCES): Likewise.
23214 * util/hostdisk.c (make_device_name): Do not make any assumptions
23215 about the length of drive names.
23217 * kern/dl.c (grub_dl_load_file): Close file immediately when
23218 we are done using it.
23220 2009-04-12 David S. Miller <davem@davemloft.net>
23222 * kern/misc.c (grub_ltoa): Fix cast when handling negative
23223 values. Noticed by Pavel Roskin.
23225 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
23228 * genmk.rb: Add more flexible image type specification, also
23229 pass --strip-unneeded to objcopy.
23230 * conf/i386-pc.rmk: Use *_FORMAT.
23231 * conf/i386-pc.mk: Rebuilt.
23233 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
23234 (OFDISK_HASH_SZ): Define.
23235 (ofdisk_hash): New hash table.
23236 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
23237 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
23238 instead of device phandle which is not unique.
23240 * kern/sparc64/ieee1275/init.c: Delete, replace with...
23241 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
23242 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
23243 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
23244 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
23245 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
23246 GRUB_KERNEL_MACHINE_DATA_END): Define.
23247 (grub_kernel_image_size, grub_total_module_size): Declare.
23249 2009-04-12 Pavel Roskin <proski@gnu.org>
23251 * configure.ac: Change the logic when we check for target tools.
23252 Do it when the target is specified and it's different from the
23253 specified value of the host.
23255 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
23257 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
23258 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
23259 GNU/kFreeBSD. Check if a device is a character device. Use
23260 DIOCGMEDIASIZE to get the size.
23261 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
23262 support for GNU/kFreeBSD.
23263 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
23264 is a character device instead of a block device. Add support for
23265 FreeBSD device names.
23267 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
23268 is a character device instead of a block device.
23270 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
23271 is a character device instead of a block device.
23273 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
23275 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
23276 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
23277 FreeBSD. Check if a device is a character device. Use
23278 DIOCGMEDIASIZE to get the size.
23279 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
23280 support for FreeBSD.
23281 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
23282 is a character device instead of a block device. Add support for
23283 FreeBSD device names.
23285 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
23286 a character device instead of a block device.
23287 (grub_util_check_char_device): New function.
23289 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
23290 a character device instead of a block device.
23292 * include/grub/util/getroot.h (grub_util_check_char_device): New
23295 2009-04-11 David S. Miller <davem@davemloft.net>
23297 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
23299 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
23300 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
23301 function, if present.
23302 (__bswapdi2): Likewise.
23304 * include/grub/sparc64/ieee1275/boot.h: New file.
23305 * boot/sparc64/ieee1275/boot.S: Likewise.
23306 * boot/sparc64/ieee1275/diskboot.S: Likewise.
23308 * kern/misc.c (grub_ltoa): New function.
23309 (grub_vsprintf): Use it to format 'long' integers.
23311 2009-04-10 David S. Miller <davem@davemloft.net>
23313 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
23314 slots are of type grub_ieee1275_cell_t.
23315 (grub_nand_read): Likewise.
23316 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
23317 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
23318 macros are used to compare values in arg/ret block of the call.
23319 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
23320 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
23321 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
23322 grub_ieee1275_instance_to_path, grub_ieee1275_write,
23323 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
23324 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
23325 grub_ieee1275_close, grub_ieee1275_set_property,
23326 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
23327 grub_ieee1275_cell_t.
23328 * kern/ieee1275/openfw.c (grub_map): Likewise.
23329 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
23330 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
23332 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
23333 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
23334 (grub_devalias_iterate): Likewise.
23336 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23340 * fs/ufs.c (INODE_NBLOCKS): new definition
23341 (struct grub_ufs_dirent): added fields for non-BSD dirents
23342 (grub_ufs_get_file_block): fixed double indirect handling
23343 (grub_ufs_lookup_symlink): use more robust way to determine whether
23345 (grub_ufs_find_file): support for non-BSD dirents
23346 (grub_ufs_dir): support for non-BSD dirents
23348 2009-04-10 Bean <bean123ch@gnail.com>
23350 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
23351 attribute, otherwise the size would be wrong for i386 platform.
23353 * include/grub/pci.h (grub_pci_read_word): New inline function.
23354 (grub_pci_read_byte): Likewise.
23355 (grub_pci_write): Likewise.
23356 (grub_pci_write_word): Likewise.
23357 (grub_pci_write_byte): Likewise.
23359 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
23361 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
23362 (find_framebuf): Scan pci to locate the frame buffer address.
23364 * commands/efi/fixvideo.c: New file.
23366 * commands/efi/loadbios.c: Likewise.
23368 * commands/memrw.c: Likewise.
23370 * util/grub-dumpbios.in: Likewise.
23372 * conf/common.rmk (grub-dumpbios): New utility.
23373 (pkglib_MODULES): New module memrw.mod.
23374 (memrw_mod_SOURCE): New macro.
23375 (memrw_mod_CFLAGS): Likewise.
23376 (memrw_mod_LDFLAGS): Likewise.
23378 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
23380 (loadbios_mod_SOURCE): New macro.
23381 (loadbios_mod_CFLAGS): Likewise.
23382 (loadbios_mod_LDFLAGS): Likewise.
23383 (fixvideo_mod_SOURCE): Likewise.
23384 (fixvideo_mod_CFLAGS): Likewise.
23385 (fixvideo_mod_LDFLAGS): Likewise.
23387 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
23389 (loadbios_mod_SOURCE): New macro.
23390 (loadbios_mod_CFLAGS): Likewise.
23391 (loadbios_mod_LDFLAGS): Likewise.
23392 (fixvideo_mod_SOURCE): Likewise.
23393 (fixvideo_mod_CFLAGS): Likewise.
23394 (fixvideo_mod_LDFLAGS): Likewise.
23396 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
23398 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
23400 2009-04-07 David S. Miller <davem@davemloft.net>
23402 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
23403 support for R_SPARC_OLO10 relocations. Fix compile warning for
23404 R_SPARC_WDISP30 case.
23405 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
23407 2009-04-06 Pavel Roskin <proski@gnu.org>
23409 * include/grub/misc.h (ARRAY_SIZE): New macro.
23410 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
23412 * loader/i386/linux.c (allocate_pages): Use free_pages().
23413 (grub_linux_unload): Don't use free_pages().
23414 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
23415 wrong index. Treat all other modes as text modes.
23416 (grub_cmd_linux): Initialize vid_mode unconditionally to
23417 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
23419 * commands/help.c (print_command_help): Use cmd->prio, not
23420 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
23422 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
23426 * parttool/pcpart.c: new file
23427 * commands/parttool.c: likewise
23428 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
23429 (parttool_mod_SOURCES): new variable
23430 (parttool_mod_CFLAGS): likewise
23431 (parttool_mod_LDFLAGS): likewise
23432 (pcpart_mod_SOURCES): likewise
23433 (pcpart_mod_CFLAGS): likewise
23434 (pcpart_mod_LDFLAGS): likewise
23435 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
23436 and parttool/pcpart.c
23437 * conf/i386-efi.rmk: likewise
23438 * conf/i386-ieee1275.rmk: likewise
23439 * conf/i386-pc.rmk: likewise
23440 * conf/powerpc-ieee1275.rmk: likewise
23441 * conf/sparc64-ieee1275.rmk: likewise
23442 * conf/x86_64-ieee1275.rmk: likewise
23444 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23446 Support for mtime and further expandability of dir command
23448 * include/grub/lib/datetime.h: moved to ...
23449 * include/grub/datetime.h: ... moved here and added
23450 declaration of grub_unixtime2datetime. All users updated
23451 * include/grub/fs.h: new syntax for dir and mtime functions in
23453 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
23454 and GRUB_FSHELP_FLAGS_MASK
23455 * commands/ls.c (grub_ls_list_files): Write mtime in long format
23456 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
23457 (grub_ext2_mtime): new function
23458 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
23459 (grub_hfsplus_mtime): new function
23460 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
23461 (GRUB_UFS_ATTR_FILE): likewise
23462 (GRUB_UFS_ATTR_LNK): likewise
23463 (struct grub_ufs_sblock): new fields mtime
23464 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
23466 (grub_ufs_dir): mtime support
23467 (grub_ufs_mtime): new function
23468 * fs/affs.c (grub_affs_dir): use new dir syntax
23469 * fs/afs.c (grub_afs_dir): likewise
23470 * fs/cpio.c (grub_cpio_dir): likewise
23471 * fs/fat.c (grub_fat_find_dir): likewise
23472 * fs/hfs.c (grub_hfs_dir): likewise
23473 * fs/iso9660.c (grub_iso9660_dir): likewise
23474 * fs/jfs.c (grub_jfs_dir): likewise
23475 * fs/minix.c (grub_minix_dir): likewise
23476 * fs/ntfs.c (grub_ntfs_dir): likewise
23477 * fs/reiserfs.c (grub_reiserfs_dir): likewise
23478 * fs/sfs.c (grub_sfs_dir): likewise
23479 * fs/xfs.c (grub_xfs_dir): likewise
23480 * util/hostfs.c (grub_hostfs_dir): likewise
23481 * lib/datetime.c: moved to ...
23482 * normal/datetime.c: ... moved here
23483 (grub_unixtime2datetime): new function
23484 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
23485 * normal/completion.c (iterate_dir): use new dir syntax
23486 * normal/misc.c (grub_normal_print_device_info): tell the
23487 last modification time of a volume
23488 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
23489 * conf/common.rmk: added lib/datetime.c to ls.mod
23490 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
23491 (normal_mod_SOURCES): likewise
23492 (datetime_mod_SOURCES): Removed lib/datetime.c
23493 * conf/i386-efi.rmk: likewise
23494 * conf/i386-ieee1275.rmk: likewise
23495 * conf/i386-pc.rmk: likewise
23496 * conf/powerpc-ieee1275.rmk: likewise
23497 * conf/sparc64-ieee1275.rmk: likewise
23498 * conf/x86_64-efi.rmk: likewise
23500 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23502 Trim trailing spaces in FAT label and support mtools-like labels
23504 * fs/fat.c (grub_fat_iterate_dir): New function based
23505 on grub_fat_find_dir
23506 (grub_fat_find_dir): use grub_fat_iterate_dir
23507 (grub_fat_label): likewise
23509 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
23511 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
23513 remove extraneous kernel_elf_HEADERS
23515 2009-04-04 Bean <bean123ch@gnail.com>
23517 * include/grub/util/misc.h: Add dummy function fsync for mingw.
23519 * util/misc.c: Likewise.
23521 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
23523 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
23524 instead of grub_printf.
23526 2009-04-03 Robert Millan <rmh@aybabtu.com>
23528 * loader/i386/linux.c (grub_linux_setup_video): Fill
23529 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
23530 values from `mode info' structure instead of hardcoded
23533 2009-04-01 Pavel Roskin <proski@gnu.org>
23535 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
23537 * genmk.rb: Likewise.
23538 * configure.ac: Likewise.
23540 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
23542 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
23543 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
23545 2009-04-01 David S. Miller <davem@davemloft.net>
23547 * normal/sparc64/setjmp.S: Fix setjmp implementation.
23548 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
23549 (grub_setjmp): Mark with 'returns_twice' attribute.
23550 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
23551 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
23552 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
23554 2009-04-01 Robert Millan <rmh@aybabtu.com>
23556 Reapply fix from 2008-07-28 which was accidentally reverted; also
23557 perform the same fix to a similar check in same function.
23559 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
23560 with the same number are found, just use issue a warning with
23561 grub_dprintf(), as this error has been reported to be non-fatal.
23563 2009-03-31 Pavel Roskin <proski@gnu.org>
23565 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
23566 for cross-compilation.
23568 2009-03-30 Robert Millan <rmh@aybabtu.com>
23570 Fix i386-ieee1275 build.
23572 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
23573 Remove declaration.
23575 2009-03-30 Pavel Roskin <proski@gnu.org>
23577 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
23578 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
23579 zero-terminated, rely only on the strlen value. Fix comparison
23580 of strings differing in length.
23582 2009-03-30 Robert Millan <rmh@aybabtu.com>
23584 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
23585 checking for abi version. Improve error messages on BIOS to notify
23586 user about `linux16' command.
23588 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
23592 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
23593 in case of collision
23594 * disk/scsi.c (grub_scsi_open): free scsi in case of error
23596 2009-03-29 Robert Millan <rmh@aybabtu.com>
23598 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
23599 set `vid_mode' accordingly.
23600 (grub_linux_boot): Process `vid_mode' and set video mode.
23602 2009-03-29 Robert Millan <rmh@aybabtu.com>
23604 * util/grub.d/10_linux.in (linux_entry): New function.
23605 Factorize generation of Linux boot entries.
23607 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
23609 Make the format of Environment Block plain text. The boot loader
23610 part is not tested well yet.
23612 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
23614 (envblk): Likewise.
23615 (usage): Remove "info" and "clear". Add "unset". Update the
23616 description of "set", as this does not delete variables any
23618 (create_envblk_file): Complete rewrite.
23619 (open_envblk_file): Likewise.
23620 (cmd_info): Removed.
23621 (cmd_list): Likewise.
23622 (cmd_set): Likewise.
23623 (cmd_clear): Likewise.
23624 (list_variables): New function.
23625 (write_envblk): Likewise.
23626 (set_variables): Likewise.
23627 (unset_variables): Likewise.
23628 (main): Complete rewrite.
23630 * commands/loadenv.c (buffer): Removed.
23631 (envblk): Likewise.
23632 (open_envblk_file): New function.
23633 (read_envblk_file): Complete rewrite.
23634 (grub_cmd_load_env): Likewise.
23635 (grub_cmd_list_env): Likewise.
23636 (struct blocklist): New struct.
23637 (free_blocklists): New function.
23638 (check_blocklists): Likewise.
23639 (write_blocklists): Likewise.
23640 (grub_cmd_save_env): Complete rewrite.
23642 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
23643 a plain text signature.
23644 (GRUB_ENVBLK_MAXLEN): Removed.
23645 (struct grub_envblk): Complete rewrite.
23646 (grub_envblk_find): Removed.
23647 (grub_envblk_insert): Likewise.
23648 (grub_envblk_open): New prototype.
23649 (grub_envblk_set): Likewise.
23650 (grub_envblk_delete): Put const to VALUE.
23651 (grub_envblk_iterate): Put const to NAME and VALUE.
23652 (grub_envblk_close): New prototype.
23653 (grub_envblk_buffer): New inline function.
23654 (grub_envblk_size): Likewise.
23656 * lib/envblk.c: Include grub/mm.h.
23657 (grub_env_find): Removed.
23658 (grub_envblk_open): New function.
23659 (grub_envblk_close): Likewise.
23660 (escaped_value_len): Likewise.
23661 (find_next_line): Likewise.
23662 (grub_envblk_insert): Removed.
23663 (grub_envblk_set): New function.
23664 (grub_envblk_delete): Complete rewrite.
23665 (grub_envblk_iterate): Likewise.
23667 2009-03-28 Robert Millan <rmh@aybabtu.com>
23669 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
23670 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
23671 variables. Use 16-bit loader.
23672 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
23674 * kern/i386/loader.S (grub_linux_boot): Rename to ...
23675 (grub_linux16_boot): ... this. Update all users.
23676 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
23677 (grub_linux_boot): ... this. Update all users.
23679 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
23680 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
23681 commands to `linux16' and `initrd16'.
23682 (GRUB_MOD_FINI(linux)): Rename to ...
23683 (GRUB_MOD_FINI(linux16)): ... this.
23685 2009-03-24 Pavel Roskin <proski@gnu.org>
23687 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
23688 not just for compilation.
23690 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
23692 Move multiboot helper out of kernel
23694 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
23695 `loader/i386/multiboot_helper.S'.
23696 * conf/i386-coreboot.rmk: Likewise
23697 * conf/i386-ieee1275.rmk: Likewise
23699 * kern/i386/loader.S: Move multiboot helpers from here...
23700 * loader/i386/multiboot_helper.S: ...moved here
23701 * include/grub/i386/loader.h: Move declarations of multiboot
23702 helpers from here...
23703 * include/grub/i386/multiboot.h: ...moved here
23704 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
23706 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
23708 * kern/env.c (grub_env_context_open): Added an argument to specify
23709 whether a new context inherits exported variables from current
23710 one. This is useful when making a sandbox to interpret a config
23712 All callers updated.
23714 * include/grub/env.h (grub_env_context_open): Updated the prototype.
23716 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
23718 * kern/env.c (grub_env_context_close): Fix memory leaks.
23720 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
23722 * normal/main.c (grub_normal_execute): Added an argument
23723 BATCH to specify if an interactive interface should be provided
23724 after reading a config file.
23725 All callers updated.
23726 (read_command_list): Prevent being executed twice.
23727 (read_fs_list): Likewise.
23729 * include/grub/normal.h (grub_normal_execute): Updated the
23732 2009-03-22 Pavel Roskin <proski@gno.org>
23734 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
23736 * kern/i386/pc/startup.S: Likewise.
23737 * kern/i386/efi/startup.S: Likewise.
23738 * kern/i386/ieee1275/startup.S: Likewise.
23739 * kern/i386/coreboot/startup.S: Likewise.
23740 * kern/x86_64/efi/startup.S: Likewise.
23742 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
23743 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
23744 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
23746 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
23748 Bugfixes in multiboot for bugs uncovered by solaris kernel.
23750 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
23752 Use vaddr of correct segment for entry_point.
23754 2009-03-21 Bean <bean123ch@gmail.com>
23756 * commands/blocklist.c: Add include file <grub/command.h>, remove
23757 <grub/normal.h> and <grub/arg.h>.
23758 (grub_cmd_blocklist): Use the new command interface.
23759 (GRUB_MOD_INIT): Likewise.
23760 (GRUB_MOD_FINI): Likewise.
23761 * commands/boot.c: Likewise.
23762 * commands/cat.c: Likewise.
23763 * commands/cmp.c: Likewise.
23764 * commands/configfile.c: Likewise.
23765 * commands/crc.c: Likewise.
23766 * commands/echo.c: Likewise.
23767 * commands/halt.c: Likewise.
23768 * commands/handler.c: Likewise.
23769 * commands/hdparm.c: Likewise.
23770 * commands/help.c: Likewise.
23771 * commands/hexdump.c: Likewise.
23772 * commands/loadenv.c: Likewise.
23773 * commands/ls.c: Likewise.
23774 * commands/lsmmap.c: Likewise.
23775 * commands/lspci.c: Likewise.
23776 * commands/loadenv.c: Likewise.
23777 * commands/read.c: Likewise.
23778 * commands/reboot.c: Likewise.
23779 * commands/search.c: Likewise.
23780 * commands/sleep.c: Likewise.
23781 * commands/test.c: Likewise.
23782 * commands/usbtest.c: Likewise.
23783 * commands/videotest.c: Likewise.
23784 * commands/i386/cpuid.c: Likewise.
23785 * commands/i386/pc/halt.c: Likewise.
23786 * commands/i386/pc/play.c: Likewise.
23787 * commands/i386/pc/pxecmd.c: Likewise.
23788 * commands/i386/pc/vbeinfo.c: Likewise.
23789 * commands/i386/pc/vbetest.c: Likewise.
23790 * commands/ieee1275/suspend.c: Likewise.
23791 * disk/loopback.c: Likewise.
23792 * font/font_cmd.c: Likewise.
23793 * hello/hello.c: Likewise.
23794 * loader/efi/appleloader.c: Likewise.
23795 * loader/efi/chainloader.c: Likewise.
23796 * loader/i386/bsd.c: Likewise.
23797 * loader/i386/efi/linux.c: Likewise.
23798 * loader/i386/ieee1275/linux.c: Likewise.
23799 * loader/i386/linux.c: Likewise.
23800 * loader/i386/pc/chainloader.c: Likewise.
23801 * loader/i386/pc/linux.c: Likewise.
23802 * loader/powerpc/ieee1275/linux.c: Likewise.
23803 * loader/multiboot_loader.c: Likewise.
23804 * term/gfxterm.c: Likewise.
23805 * term/i386/pc/serial.c: Likewise.
23806 * term/terminfo.c: Likewise.
23808 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
23809 * term/i386/pc/vga.c: Likewise.
23810 * video/readers/jpeg.c: Likewise.
23811 * video/readers/png.c: Likewise.
23812 * video/readers/tga.c: Likewise.
23814 * util/grub-fstest (cmd_loopback): Removed.
23815 (cmd_blocklist): Likewise.
23816 (cmd_ls): Likewise.
23817 (grub_register_command): Likewise.
23818 (grub_unregister_command): Likewise.
23819 (execute_command): Use grub_command_find to locate command and execute
23822 * include/grub/efi/chainloader.h: Removed.
23823 * loader/efi/chainloader_normal.c: Likewise.
23824 * loader/i386/bsd_normal.c: Likewise.
23825 * loader/i386/pc/chainloader_normal.c: Likewise.
23826 * loader/i386/pc/multiboot_normal.c: Likewise.
23827 * loader/linux_normal.c: Likewise.
23828 * loader/multiboot_loader_normal.c: Likewise.
23829 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
23831 * gencmdlist.sh: Scan new registration command grub_register_extcmd
23832 and grub_register_command_p1.
23834 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
23835 kern/command.c, lib/arg.c and commands/extcmd.c.
23836 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
23837 (minicmd_mod_SOURCES): New variable.
23838 (minicmd_mod_CFLAGS): Likewise.
23839 (minicmd_mod_LDFLAGS): Likewise.
23840 (extcmd_mod_SOURCES): Likewise.
23841 (extcmd_mod_CFLAGS): Likewise.
23842 (extcmd_mod_LDFLAGS): Likewise.
23843 (boot_mod_SOURCES): Removed.
23844 (boot_mod_CFLAGS): Likewise.
23845 (boot_mod_LDFLAGS): Likewise.
23847 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
23849 (kernel_img_HEADERS): Add command.h.
23850 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
23851 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
23853 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
23854 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
23855 remove the corresponding normal mode command.
23856 (normal_mod_SOURCES): Remove normal/arg.c.
23857 * conf/i386-coreboot.rmk: Likewise.
23858 * conf/i386-efi.rmk: Likewise.
23859 * conf/i386-ieee1275.rmk: Likewise.
23860 * conf/powerpc-ieee1275.rmk: Likewise.
23861 * conf/x86_64-efi.rmk: Likewise.
23863 * include/grub/arg.h: Move from here ...
23864 * include/grub/lib/arg.h: ... to here.
23866 * normal/arg.c: Move from here ...
23867 * lib/arg.c: ... to here.
23869 * commands/extcmd.c: New file.
23870 * commands/minicmd.c: Likewise.
23871 * include/grub/command.h: Likewise.
23872 * include/grub/extcmd.h: Likewise.
23873 * kern/command.c: Likewise.
23874 * kern/corecmd.c: Likewise.
23876 * kern/list.c (grub_list_iterate): Return int instead of void.
23877 (grub_list_insert): New function.
23878 (grub_prio_list_insert): Likewise.
23880 * kern/rescue.c (grub_rescue_command): Removed.
23881 (grub_rescue_command_list): Likewise.
23882 (grub_rescue_register_command): Likewise.
23883 (grub_rescue_unregister_command): Likewise.
23884 (grub_rescue_cmd_boot): Move to minicmd.c
23885 (grub_rescue_cmd_help): Likewise.
23886 (grub_rescue_cmd_info): Likewise.
23887 (grub_rescue_cmd_boot): Likewise.
23888 (grub_rescue_cmd_testload): Likewise.
23889 (grub_rescue_cmd_dump): Likewise.
23890 (grub_rescue_cmd_rmmod): Likewise.
23891 (grub_rescue_cmd_lsmod): Likewise.
23892 (grub_rescue_cmd_exit): Likewise.
23893 (grub_rescue_print_devices): Moved to corecmd.c.
23894 (grub_rescue_print_files): Likewise.
23895 (grub_rescue_cmd_ls): Likewise.
23896 (grub_rescue_cmd_insmod): Likewise.
23897 (grub_rescue_cmd_set): Likewise.
23898 (grub_rescue_cmd_unset): Likewise.
23899 (attempt_normal_mode): Use grub_command_find to get normal module.
23900 (grub_enter_rescue_mode): Use grub_register_core_commands to register
23901 commands, remove grub_rescue_register_command calls.
23903 * normal/command.c (grub_register_command): Removed.
23904 (grub_unregister_command): Likewise.
23905 (grub_command_find): Likewise.
23906 (grub_iterate_commands): Likewise.
23907 (rescue_command): Likewise.
23908 (export_command): Moved to corecmd.c.
23909 (set_command): Removed.
23910 (unset_command): Likewise.
23911 (insmod_command): Likewise.
23912 (rmmod_command): Likewise.
23913 (lsmod_command): Likewise.
23914 (grub_command_init): Likewise.
23916 * normal/completion.c (iterate_command): Use cmd->prio to check for
23918 (complete_arguments): Use grub_extcmd_t structure to find options.
23919 (grub_normal_do_completion): Change function grub_iterate_commands to
23920 grub_command_iterate.
23922 * normal/execute.c (grub_script_execute_cmd): No need to parse
23925 * normal/main.c (grub_dyncmd_dispatcher): New function.
23926 (read_command_list): Register unload commands as dyncmd.
23927 (grub_cmd_normal): Use new command interface, register rescue,
23928 unregister normal at entry, register normal, unregister rescue at exit.
23930 * include/grub/list.h (grub_list_test_t): New type.
23931 (grub_list_iterate): Return int instead of void.
23932 (grub_list_insert): New function.
23933 (GRUB_AS_NAMED_LIST_P): New macro.
23934 (GRUB_AS_PRIO_LIST): Likewise.
23935 (GRUB_AS_PRIO_LIST_P): Likewise.
23936 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
23937 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
23938 (grub_prio_list): New structure.
23939 (grub_prio_list_insert): New function.
23940 (grub_prio_list_remove): New inline function.
23942 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
23943 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
23944 (GRUB_COMMAND_FLAG_MENU): Likewise.
23945 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23946 (GRUB_COMMAND_FLAG_TITLE): Likewise.
23947 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23948 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
23949 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
23950 (grub_command): Likewise.
23951 (grub_register_command): Likewise.
23952 (grub_command_find): Likewise.
23953 (grub_iterate_commands): Likewise.
23954 (grub_command_init): Likewise.
23955 (grub_arg_parse): Likewise.
23956 (grub_arg_show_help): Likewise.
23958 * include/grub/rescue.h (grub_rescue_register_command): Removed.
23959 (grub_rescue_unregister_command): Likewise.
23961 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
23962 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
23963 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
23965 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
23966 grub_rescue_cmd_initrd.
23967 * include/grub/i386/loader.h: Likewise.
23968 * include/grub/x86_64/loader.h: Likewise.
23970 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
23972 2009-03-21 Bean <bean123ch@gmail.com>
23974 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
23975 instead of stat in mingw environment.
23977 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
23979 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
23981 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
23984 2009-03-21 Bean <bean123ch@gmail.com>
23986 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
23987 out of range error.
23989 2009-03-18 Michel Dänzer <michel@daenzer.net>
23991 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
23992 checking inode flags for EXT4_EXTENTS_FLAG.
23994 2009-03-18 Robert Millan <rmh@aybabtu.com>
23996 * loader/i386/linux.c: Include `<grub/video.h>' and
23997 `<grub/i386/pc/vbe.h>'..
23998 (grub_linux_setup_video): New function. Loosely based on the EFI one.
23999 (grub_linux32_boot): Attempt to configure video settings with
24000 grub_linux_setup_video().
24001 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
24002 to avoid grub_console_fini() which would step out of graphical mode
24005 2009-03-14 Robert Millan <rmh@aybabtu.com>
24007 Fix build on powerpc.
24008 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
24010 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
24012 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
24013 background image command.
24015 2009-03-12 Colin D Bennett <colin@gibibit.com>
24017 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
24018 (grub_gfxterm_putchar): Extract pairs of identical calls to
24019 draw_cursor out of conditional blocks.
24021 2009-03-11 Pavel Roskin <proski@gnu.org>
24023 * fs/hfs.c (grub_hfs_strncasecmp): New function.
24024 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
24026 2009-03-11 Robert Millan <rmh@aybabtu.com>
24028 * loader/i386/multiboot_elfxx.c
24029 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
24031 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
24033 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
24036 2009-03-11 Robert Millan <rmh@aybabtu.com>
24038 * loader/i386/multiboot.c (code_size): New variable.
24039 (grub_multiboot): Define offsets by adding to `code_size' rather
24040 than subtracting from `grub_multiboot_payload_size'. Provide
24041 4-byte alignment to MBI and others by increasing
24042 `boot_loader_name_length' appropriately.
24044 * loader/i386/multiboot_elfxx.c
24045 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
24047 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
24049 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
24052 2009-03-08 Robert Millan <rmh@aybabtu.com>
24054 Make loader/i386/linux.c usable on i386-pc again.
24056 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
24058 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
24061 2009-03-07 Bean <bean123ch@gmail.com>
24063 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
24066 2009-03-06 Robert Millan <rmh@aybabtu.com>
24068 Fix display issue on terminals with screen size other than 80x25
24069 (e.g. gfxterm with resolution higher than 640x480).
24071 * normal/main.c (grub_normal_init_page): Display title text in a
24072 position relative to the center of the terminal instead of relying
24073 on a hardcoded offset.
24075 2009-03-04 Robert Millan <rmh@aybabtu.com>
24077 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
24080 * Makefile.in (host_kernel): New variable.
24081 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
24082 scripts instead of just the windows one.
24083 * configure.ac: Initialize and AC_SUBST `host_kernel'.
24085 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
24087 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
24089 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24090 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24091 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24092 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24093 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24094 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24096 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
24098 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
24099 or if there's no space for the disk label and print the partition number on a
24102 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
24104 * util/misc.c: Include <time.h>.
24105 (grub_millisleep): New function.
24107 2009-03-04 Bean <bean123ch@gmail.com>
24109 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
24110 another option -mno-red-zone.
24112 * commands/handler.c: Change module description.
24114 * kern/handler.c: Add missing space at the end of description line.
24116 * kern/list.c: Likewise.
24118 2009-03-03 Robert Millan <rmh@aybabtu.com>
24120 Move more components to the relocation area, and fix mbi pointer
24121 handling to use the destination rather than the origin (thanks to
24122 Vladimir Serbinenko for spotting).
24124 * loader/i386/multiboot.c (mbi_dest): New variable.
24125 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
24126 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
24129 2009-03-01 Bean <bean123ch@gmail.com>
24131 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
24132 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
24133 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
24134 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
24136 * loader/i386/efi/linux.c (acpi_guid): New variable.
24137 (acpi_guid): Likewise.
24138 (EBDA_SEG_ADDR): New constant.
24139 (LOW_MEM_ADDR): Likewise.
24140 (FAKE_EBDA_SEG): Likewise.
24141 (fake_bios_data): New function.
24142 (grub_linux_boot): Call fake_bios_data.
24144 2009-03-01 Bean <bean123ch@gmail.com>
24146 * commands/terminal.c: Removed.
24148 * commands/handler.c: New file.
24150 * include/grub/list.h: Likewise.
24152 * include/grub/handler.h: Likewise.
24154 * kern/list.c: Likewise.
24156 * kern/handler.c: Likewise.
24158 * kern/term.h: Include header file <grub/handler.h>.
24159 (grub_term_input): Move next field to the beginning.
24160 (grub_term_output): Likewise.
24161 (grub_term_input_class): New variable.
24162 (grub_term_output_class): Likewise.
24163 (grub_term_register_input): Changed to inline function.
24164 (grub_term_register_output): Likewise.
24165 (grub_term_unregister_input): Likewise.
24166 (grub_term_unregister_output): Likewise.
24167 (grub_term_set_current_input): Likewise.
24168 (grub_term_set_current_output): Likewise.
24169 (grub_term_get_current_input): Likewise.
24170 (grub_term_get_current_output): Likewise.
24171 (grub_term_iterate_input): Removed.
24172 (grub_term_iterate_output): Likewise.
24174 * kern/term.c (grub_term_list_input): Removed.
24175 (grub_term_list_output): Likewise.
24176 (grub_term_input_class): New variable.
24177 (grub_term_output_class): Likewise.
24178 (grub_cur_term_input): Change variable as macro.
24179 (grub_cur_term_output): Likewise.
24180 (grub_term_register_input): Removed.
24181 (grub_term_register_output): Likewise.
24182 (grub_term_unregister_input): Likewise.
24183 (grub_term_unregister_output): Likewise.
24184 (grub_term_set_current_input): Likewise.
24185 (grub_term_set_current_output): Likewise.
24186 (grub_term_iterate_input): Likewise.
24187 (grub_term_iterate_output): Likewise.
24188 (grub_term_get_current_input): Likewise.
24189 (grub_term_get_current_output): Likewise.
24191 * util/grub-editenv.c: Include header file <grub/handler.h>.
24192 (grub_term_get_current_input): Removed.
24193 (grub_term_get_current_output): Likewise.
24194 (grub_term_input_class): New variable.
24195 (grub_term_output_class): Likewise.
24197 * util/grub-fstest.c (grub_term_get_current_input): Removed.
24198 (grub_term_get_current_output): Likewise.
24199 (grub_term_input_class): New variable.
24200 (grub_term_output_class): Likewise.
24202 * util/grub-probe.c (grub_term_get_current_input): Removed.
24203 (grub_term_get_current_output): Likewise.
24204 (grub_term_input_class): New variable.
24205 (grub_term_output_class): Likewise.
24207 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
24208 (grub_term_get_current_output): Likewise.
24209 (grub_term_input_class): New variable.
24210 (grub_term_output_class): Likewise.
24212 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
24213 (terminal_mod_SOURCES): Likewise.
24214 (terminal_mod_CFLAGS): Likewise.
24215 (terminal_mod_LDFLAGS): Likewise.
24217 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
24219 (kernel_img_SOURCES): Add list.c and handler.c.
24220 (kernel_img_HEADERS): Add list.h and handler.h.
24222 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
24224 (kernel_mod_SOURCES): Add list.c and handler.c.
24225 (kernel_mod_HEADERS): Add list.h and handler.h.
24227 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
24229 (kernel_elf_SOURCES): Add list.c and handler.c.
24230 (kernel_elf_HEADERS): Add list.h and handler.h.
24232 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
24234 (kernel_elf_SOURCES): Add list.c and handler.c.
24235 (kernel_elf_HEADERS): Add list.h and handler.h.
24237 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
24239 (kernel_mod_SOURCES): Add list.c and handler.c.
24240 (kernel_mod_HEADERS): Add list.h and handler.h.
24242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
24244 (kernel_elf_SOURCES): Add list.c and handler.c.
24245 (kernel_elf_HEADERS): Add list.h and handler.h.
24247 2009-02-27 Robert Millan <rmh@aybabtu.com>
24249 Factorize elf32 / elf64 code in Multiboot loader. This will
24250 prevent it from getting out of sync again.
24252 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
24253 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
24254 grub_multiboot_load_elf64): Move from here ...
24255 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
24256 grub_multiboot_load_elf): ... to here (new file).
24258 2009-02-27 Robert Millan <rmh@aybabtu.com>
24260 * util/grub.d/10_linux.in: Rename "single-user mode" to
24263 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
24265 Don't leak in SCSI code.
24266 * disk/scsi.c (grub_scsi_close): free `scsi'.
24268 2009-02-27 Robert Millan <rmh@aybabtu.com>
24270 * loader/i386/pc/multiboot.c: Move from here ...
24271 * loader/i386/multiboot.c: ... to here. Update all users.
24273 2009-02-27 Robert Millan <rmh@aybabtu.com>
24275 Patch from Alexandre Bique <bique.alexandre@gmail.com>
24276 * util/i386/pc/grub-setup.c (setup): Fix directory path.
24278 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
24280 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
24283 2009-02-27 Robert Millan <rmh@aybabtu.com>
24285 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
24286 `0x' qualifier as 0 when base is specified as parameter).
24288 2009-02-24 Bean <bean123ch@gmail.com>
24290 * configure.ac: Check for -mcmodel=large in x86_64 target.
24292 * include/grub/efi/api.h (efi_call_10): New macro.
24293 (efi_wrap_10): New function.
24295 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
24296 (GRUB_PE32_REL_BASED_HIGH): Likewise.
24297 (GRUB_PE32_REL_BASED_LOW): Likewise.
24298 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
24299 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
24300 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
24301 (GRUB_PE32_REL_BASED_SECTION): Likewise.
24302 (GRUB_PE32_REL_BASED_REL): Likewise.
24303 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
24304 (GRUB_PE32_REL_BASED_DIR64): Likewise.
24305 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
24307 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
24310 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
24311 (efi_wrap_10): New function.
24313 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
24315 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
24316 MB/MBP model (NV chipset).
24317 (devdata_devs): Add devpath_5 to the list.
24319 * load/i386/efi/linux.c (video_base): Remove variable.
24320 (RGB_MASK): New macro.
24321 (RGB_MAGIC): Likewise.
24322 (LINE_MIN): Likewise.
24323 (LINE_MAX): Likewise.
24324 (FBTEST_STEP): Likewise.
24325 (FBTEST_COUNT): Likewise.
24326 (fb_list): New variable.
24327 (grub_find_video_card): Remove function.
24328 (find_framebuf): New function.
24329 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
24332 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
24333 problem for x86_64.
24335 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
24337 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
24339 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
24342 2009-02-22 Robert Millan <rmh@aybabtu.com>
24344 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
24345 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
24346 in our relocation, instead of using it directly from heap. Also
24347 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
24349 2009-02-21 Robert Millan <rmh@aybabtu.com>
24351 Implement USB keyboard support (based on patch by Marco Gerards)
24353 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
24354 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
24355 (usb_keyboard_mod_LDFLAGS): New variables.
24357 * term/usb_keyboard.c: New file.
24359 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24361 Corrected wrong declaration
24363 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
24365 2009-02-14 Christian Franke <franke@computer.org>
24367 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
24368 (grub_lspci_iter): Print class code and programming interface byte.
24370 2009-02-14 Christian Franke <franke@computer.org>
24372 * gendistlist.sh: Ignore `.svn' directories.
24374 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
24376 * fs/fat.c: Add 2009 to Copyright line.
24378 2009-02-14 Christian Franke <franke@computer.org>
24380 * commands/hdparm.c: New file. Provides `hdparm' command
24381 which sends ATA commands via grub_disk_ata_pass_through ().
24383 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
24385 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
24386 and <grub/cpu/io.h> to include/grub/ata.h.
24387 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
24388 (GRUB_CDROM_SECTOR_SIZE): Remove.
24389 (GRUB_ATA_*): Move to include/grub/ata.h.
24390 (GRUB_ATAPI_*): Likewise.
24391 (enum grub_ata_commands): Likewise.
24392 (enum grub_ata_timeout_milliseconds): Likewise.
24393 (struct grub_ata_device): Likewise.
24394 (grub_ata_regset): Likewise.
24395 (grub_ata_regget): Likewise.
24396 (grub_ata_regset2): Likewise.
24397 (grub_ata_regget2): Likewise.
24398 (grub_ata_check_ready): Likewise.
24399 (grub_ata_wait_not_busy): Remove static, exported in
24400 include/grub/ata.h.
24401 (grub_ata_wait_drq): Likewise.
24402 (grub_ata_pio_read): Likewise.
24404 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
24405 function for hdparm.mod.
24407 * include/grub/ata.h: New file, contains declarations from
24409 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
24411 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
24412 (grub_disk_ata_pass_through): New exported variable.
24414 * kern/disk.c (grub_disk_ata_pass_through): New variable.
24416 2009-02-13 Colin D Bennett <colin@gibibit.com>
24418 Support multiple fallback entries, and provide an API to support
24419 executing default+fallback menu entries. Renamed the `terminal' menu
24422 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
24423 variable declaration.
24424 (grub_menu_execute_callback): New structure declaration.
24425 (grub_menu_execute_callback_t): New typedef.
24426 (grub_menu_execute_with_fallback): New function declaration.
24427 (grub_menu_get_entry): Likewise.
24428 (grub_menu_get_timeout): Likewise.
24429 (grub_menu_set_timeout): Likewise.
24431 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
24433 * normal/menu.c (grub_wait_after_message): Moved to
24434 `normal/menu_text.c'.
24435 (draw_border): Likewise.
24436 (print_message): Likewise.
24437 (print_entry): Likewise.
24438 (print_entries): Likewise.
24439 (grub_menu_init_page): Likewise.
24440 (get_entry_number): Likewise.
24441 (print_timeout): Likewise.
24442 (run_menu): Likewise.
24443 (grub_menu_execute_entry): Likewise.
24444 (show_text_menu): Likewise.
24445 (get_and_remove_first_entry_number): New function.
24446 (grub_menu_execute_with_fallback): Likewise.
24447 (get_entry): Renamed to ...
24448 (grub_menu_get_entry): .. this and made it global.
24449 (get_timeout): Renamed to ...
24450 (grub_menu_get_timeout): ... this and made it global.
24451 (set_timeout): Renamed to ...
24452 (grub_menu_set_timeout): ... this and made it global.
24453 (grub_normal_terminal_menu_viewer): Renamed to ...
24454 (grub_normal_text_menu_viewer): ... this.
24456 * normal/menu_text.c: New file. Extracted text-menu-specific code
24457 from normal/menu.c.
24459 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
24460 (normal_mod_SOURCES): Likewise.
24462 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24463 (normal_mod_SOURCES): Likewise.
24465 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24466 (normal_mod_SOURCES): Likewise.
24468 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
24469 (normal_mod_SOURCES): Likewise.
24471 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24472 (normal_mod_SOURCES): Likewise.
24474 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24475 (normal_mod_SOURCES): Likewise.
24477 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24478 (normal_mod_SOURCES): Likewise.
24480 2009-02-11 Robert Millan <rmh@aybabtu.com>
24482 * util/grub.d/00_header.in: Update old reference to `font' command.
24484 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
24486 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
24488 Based on patch from Javier Martín.
24490 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
24492 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
24493 to avoid false positives with FAT.
24494 (grub_fstest_SOURCES): Likewise.
24495 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24496 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24497 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24498 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24499 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24500 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24502 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
24504 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
24505 bpb.version_specific.fat12_or_fat16.fstype and
24506 bpb.version_specific.fat32.fstype.
24508 2009-02-08 Robert Millan <rmh@aybabtu.com>
24510 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
24512 2009-02-08 Robert Millan <rmh@aybabtu.com>
24514 * Makefile.in (host_os, host_cpu): New variables.
24515 (target_os): Remove. Update all users.
24517 2009-02-08 Marco Gerards <marco@gnu.org>
24519 * Makefile.in (enable_grub_emu_usb): New variable.
24520 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
24521 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
24522 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
24523 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
24524 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
24525 `usbtest.mod' and `usbms.mod'.
24526 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
24527 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
24528 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
24529 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
24530 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
24533 * disk/usbms.c: New file.
24535 * include/grub/usb.h: Likewise.
24537 * include/grub/usbtrans.h: Likewise.
24539 * include/grub/usbdesc.h: Likewise.
24541 * bus/usb/usbtrans.c: Likewise.
24543 * bus/usb/ohci.c: Likewise.
24545 * bus/usb/uhci.c: Likewise.
24547 * bus/usb/usbhub.c: Likewise.
24549 * bus/usb/usb.c: Likewise.
24551 * commands/usbtest.c: Likewise.
24553 * util/usb.c: Likewise.
24555 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
24557 * configure.ac: Test for libusb presence.
24559 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
24561 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
24563 * kern/mm.c: Add more comments.
24565 2009-02-08 Robert Millan <rmh@aybabtu.com>
24567 Patch from Javier Martín.
24568 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
24569 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
24571 2009-02-08 Robert Millan <rmh@aybabtu.com>
24573 * fs/cpio.c: Split tar functionality to ...
24574 * fs/tar.c: ... here (new file). Update all users.
24576 2009-02-07 Robert Millan <rmh@aybabtu.com>
24578 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
24579 backward-incompatible features.
24581 Based on patch from Javier Martín, with some adjustments.
24583 2009-02-07 Michael Scherer <misc@mandriva.org>
24585 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
24587 2009-02-07 Robert Millan <rmh@aybabtu.com>
24589 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
24590 position of `disk/lvm.c' to ensure grub_init_all() always picks it
24591 after the RAID stuff.
24593 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
24595 Fixes problem when running vbetest command as reported by
24596 Vladimir Serbinenko <phcoder@gmail.com>.
24598 * (grub_vbe_set_video_mode): Fixed problem with text modes.
24600 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
24602 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
24603 /dev/md/NpN style mdraid devices.
24605 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
24607 * util/unifont2pff.rb: Remove.
24609 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
24611 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
24614 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
24616 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
24617 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24618 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24619 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24620 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24621 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24622 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24624 2009-02-02 Christian Franke <franke@computer.org>
24626 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
24628 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
24630 * INSTALL: Note that we now require at least autoconf 2.59 and
24631 that LZO is optional.
24633 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
24635 Base on patch on bug #24154 created by Tomas Tintera
24636 <trosos@seznam.cz>.
24638 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
24640 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
24642 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
24643 <bero@arklinux.org>.
24645 * normal/parser.y (script_init): Add missing semicolon.
24647 2009-01-31 Colin D Bennett <colin@gibibit.com>
24649 * normal/main.c: Add include to grub/menu_viewer.h.
24650 (free_menu_entry_classes): Added.
24651 (grub_normal_menu_addentry): Added class property handling.
24652 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
24653 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
24655 * normal/menu_viewer.c: New file.
24657 * normal/menu.c (run_menu_entry): Renamed to ...
24658 (grub_menu_execute_entry): ... this and made it as global.
24659 (grub_menu_run): Renamed to ...
24660 (show_text_menu): ... this and made it local.
24661 (show_text_menu): Adapt to new function names.
24662 (grub_normal_terminal_menu_viewer): New global variable.
24664 * include/grub/menu.h: New file.
24666 * include/grub/menu_viewer.h: New file.
24668 * include/grub/normal.h: Added include to grub/menu.h.
24669 (grub_menu_entry): Moved to include/grub/menu.h.
24670 (grub_menu_entry_t): Likewise.
24671 (grub_menu): Likewise.
24672 (grub_menu_t): Likewise.
24673 (grub_normal_terminal_menu_viewer): Added.
24674 (grub_menu_execute_entry): Likewise.
24675 (grub_menu_run): Removed.
24677 * DISTLIST: Added include/grub/menu.h.
24678 Added include/grub/menu_viewer.h.
24679 Added normal/menu_viewer.c.
24681 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
24683 * normal/execute.c (grub_script_execute_menuentry): Changed to use
24684 arglist for menutitle arguments.
24686 * normal/main.c (grub_normal_menu_addentry): Likewise.
24688 * normal/parser.y (menuentry): Likewise.
24690 * normal/script.c (grub_script_create_cmdmenu): Likewise.
24692 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
24693 (grub_script_create_cmdmenu): Likewise.
24695 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
24697 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
24700 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
24702 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
24704 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
24706 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
24708 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
24710 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
24712 2009-01-30 Christian Franke <franke@computer.org>
24714 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
24715 in option help text.
24717 2009-01-27 Pavel Roskin <proski@gnu.org>
24719 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
24721 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
24723 * commands/lsmmap.c: Add include to grub/machine/memory.h.
24725 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
24727 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
24728 unregister function.
24730 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
24732 * disk/scsi.c (grub_scsi_read): Fix sign problem.
24734 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
24736 * util/grub-mkfont.c (usage): Fix typo.
24738 * util/elf/grub-mkimage.c (load_modules): Fix warning.
24740 2009-01-26 Daniel Mierswa <impulze@impulze.org>
24742 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
24744 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
24746 * kern/misc.c (grub_strcasecmp): New function.
24747 (grub_strcasecmp): Use grub_size_t instead of int for length.
24749 * include/grub/misc.h: Update function prototypes.
24751 2009-01-26 Robert Millan <rmh@aybabtu.com>
24753 * configure.ac: Fix cross-compilation check.
24755 2009-01-22 Christian Franke <franke@computer.org>
24757 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
24758 (precision) digit string. Allow `.format2' without `format1' (width).
24759 Limit input chars for `%s' output to `format2' if specified. This is
24760 compatible with standard printf ().
24762 2009-01-22 Christian Franke <franke@computer.org>
24764 * disk/ata.c (grub_ata_wait_status): Replace by ...
24765 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
24766 other status bits may be invalid while BSY is asserted.
24767 (grub_ata_check_ready): New function.
24768 (grub_ata_cmd): Removed.
24769 (grub_ata_wait_drq): New function.
24770 (grub_ata_strncpy): Remove inline.
24771 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
24772 and error check now done by grub_ata_wait_drq ().
24773 (grub_ata_pio_write): Likewise.
24774 (grub_atapi_identify): Set DEV before check for !BSY. Use
24775 grub_ata_wait_drq () to wait for data.
24776 (grub_ata_device_initialize): Add status register check to
24777 detect missing SATA slave devices. Add debug messages.
24778 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
24779 (grub_atapi_packet): Set DEV before check for !BSY. Replace
24780 transfer loop by grub_ata_pio_write ().
24781 (grub_ata_identify): Set DEV before check for !BSY. Use
24782 grub_ata_wait_drq () to wait for data.
24783 (grub_ata_setaddress): Set DEV before check for !BSY.
24784 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
24785 read/write in one loop. Fix invalid command on write. Fix incomplete
24786 command on (size % batch) == 0. Add missing error check after write of
24787 last block. Add debug messages.
24788 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
24790 2009-01-19 Christian Franke <franke@computer.org>
24792 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
24793 (GRUB_ATAPI_IREASON_*): Likewise.
24794 (grub_ata_pio_write): Fix timeout error return.
24795 (grub_atapi_identify): Add grub_ata_wait () after cmd.
24796 (grub_atapi_wait_drq): New function.
24797 (grub_atapi_packet): New parameter `size'.
24798 Use grub_atapi_wait_drq () and direct write instead of
24799 grub_ata_pio_write ().
24800 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
24801 reads the number of bytes requested by the device for each DRQ
24803 (grub_atapi_write): Remove old implementation, return not
24804 implemented instead.
24806 2009-01-19 Christian Franke <franke@computer.org>
24808 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
24809 of 512 to calculate data size.
24810 (grub_scsi_read12): Likewise.
24811 (grub_scsi_write10): Likewise.
24812 (grub_scsi_write12): Likewise.
24813 (grub_scsi_read): Adjust size according to blocksize.
24814 Add checks for invalid blocksize and unaligned transfer.
24816 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
24818 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
24820 * term/gfxterm.c (write_char): Fix background rendering for wide
24823 2009-01-19 Robert Millan <rmh@aybabtu.com>
24825 * config.guess: Update to latest version from config git.
24826 * config.sub: Likewise.
24828 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
24830 * Makefile.in: Change font compilation to use new grub-mkfont instead
24833 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
24834 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
24835 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
24836 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
24837 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
24838 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
24839 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
24840 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
24841 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
24843 2009-01-16 Christian Franke <franke@computer.org>
24845 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
24846 (enum grub_ata_timeout_milliseconds): New enum.
24847 (grub_ata_wait_status): Add parameter milliseconds.
24848 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
24849 recovery from timed-out commands.
24850 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
24851 return grub_errno instead of REG_ERROR.
24852 (grub_ata_pio_write): Add parameter milliseconds.
24853 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
24854 Pass milliseconds to grub_ata_wait_status () and
24855 grub_ata_pio_read ().
24856 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
24857 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
24858 grub_ata_wait_status (). Fix IDENTIFY timeout check.
24859 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
24860 It is not suitable for device detection, because DEV bit is ignored,
24861 the command may run too long, and not all devices set the signature
24863 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
24864 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
24865 Fix device selection, DEV bit must be set first to address the registers
24866 of the correct device.
24867 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
24868 grub_ata_pio_read/write ().
24869 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
24870 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
24872 2009-01-13 Carles Pina i Estany <carles@pina.cat>
24874 * util/grub-editenv.c (main): Use fseeko(), not fseek().
24876 2009-01-13 Bean <bean123ch@gmail.com>
24878 * util/grub-mkfont.c (write_font): forget to remove some debug code.
24880 2009-01-13 Bean <bean123ch@gmail.com>
24882 * Makefile.in: (enable_grub_mkfont): New variable.
24883 (freetype_cflags): Likewise.
24884 (freetype_libs): Likewise.
24886 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
24887 (grub_mkfont_SOURCES): New variable.
24888 (grub_mkfont_CFLAGS): Likewise.
24889 (grub_mkfont_LDFLAGS): Likewise.
24891 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
24892 library if `--enable-grub-mkfont' is requested.
24893 (enable_grub_mkfont): New variable.
24894 (freetype_cflags): Likewise.
24895 (freetype_libs): Likewise.
24897 * util/grub-mkfont.c: New file.
24899 2009-01-12 Christian Franke <franke@computer.org>
24901 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
24902 mode check. Fix setting of compat_use[].
24904 2009-01-10 Robert Millan <rmh@aybabtu.com>
24906 Update a few copyright years which we forgot to do in 2008 (only for
24907 files whose changes made in 2008 were copyright-significant)
24909 * Makefile.in: Add 2008 to Copyright line.
24910 * disk/ieee1275/ofdisk.c: Likewise.
24911 * disk/efi/efidisk.c: Likewise.
24912 * kern/dl.c: Likewise.
24913 * kern/sparc64/ieee1275/init.c: Likewise.
24914 * kern/mm.c: Likewise.
24915 * kern/efi/mm.c: Likewise.
24916 * boot/i386/pc/boot.S: Likewise.
24917 * genfslist.sh: Likewise.
24918 * fs/iso9660.c: Likewise.
24919 * fs/hfs.c: Likewise.
24920 * fs/jfs.c: Likewise.
24921 * fs/minix.c: Likewise.
24922 * fs/ufs.c: Likewise.
24923 * gensymlist.sh.in: Likewise.
24924 * genkernsyms.sh.in: Likewise.
24925 * include/grub/misc.h: Likewise.
24926 * include/grub/types.h: Likewise.
24927 * include/grub/symbol.h: Likewise.
24928 * include/grub/elf.h: Likewise.
24929 * include/grub/kernel.h: Likewise.
24930 * include/grub/disk.h: Likewise.
24931 * include/grub/dl.h: Likewise.
24932 * include/grub/i386/linux.h: Likewise.
24933 * include/grub/i386/pc/biosdisk.h: Likewise.
24934 * include/grub/efi/api.h: Likewise.
24935 * include/grub/efi/pe32.h: Likewise.
24936 * include/grub/util/misc.h: Likewise.
24937 * normal/execute.c: Likewise.
24938 * normal/arg.c: Likewise.
24939 * normal/completion.c: Likewise.
24940 * normal/lexer.c: Likewise.
24941 * normal/parser.y: Likewise.
24942 * normal/misc.c: Likewise.
24943 * commands/i386/pc/vbeinfo.c: Likewise.
24944 * commands/hexdump.c: Likewise.
24945 * commands/terminal.c: Likewise.
24946 * commands/ls.c: Likewise.
24947 * commands/help.c: Likewise.
24948 * partmap/pc.c: Likewise.
24949 * loader/efi/chainloader.c: Likewise.
24950 * loader/multiboot_loader.c: Likewise.
24951 * loader/i386/pc/multiboot2.c: Likewise.
24952 * term/efi/console.c: Likewise.
24953 * term/i386/pc/serial.c: Likewise.
24954 * util/lvm.c: Likewise.
24955 * util/console.c: Likewise.
24956 * util/i386/efi/grub-mkimage.c: Likewise.
24957 * util/raid.c: Likewise.
24959 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
24961 * commands/videotest.c: Removed include to grub/machine/memory.h.
24963 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
24964 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
24965 (video_mod_SOURCES): Removed.
24966 (video_mod_CFLAGS): Likewise.
24967 (video_mod_LDFLAGS): Likewise.
24968 (gfxterm_mod_SOURCES): Likewise.
24969 (gfxterm_mod_CFLAGS): Likewise.
24970 (gfxterm_mod_LDFLAGS): Likewise.
24971 (videotest_mod_SOURCES): Likewise.
24972 (videotest_mod_CFLAGS): Likewise.
24973 (videotest_mod_LDFLAGS): Likewise.
24974 (bitmap_mod_SOURCES): Likewise.
24975 (bitmap_mod_CFLAGS): Likewise.
24976 (bitmap_mod_LDFLAGS): Likewise.
24977 (tga_mod_SOURCES): Likewise.
24978 (tga_mod_CFLAGS): Likewise.
24979 (tga_mod_LDFLAGS): Likewise.
24980 (jpeg_mod_SOURCES): Likewise.
24981 (jpeg_mod_CFLAGS): Likewise.
24982 (jpeg_mod_LDFLAGS): Likewise.
24983 (png_mod_SOURCES): Likewise.
24984 (png_mod_CFLAGS): Likewise.
24985 (png_mod_LDFLAGS): Likewise.
24987 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
24988 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
24989 (video_mod_SOURCES): Added.
24990 (video_mod_CFLAGS): Likewise.
24991 (video_mod_LDFLAGS): Likewise.
24992 (videotest_mod_SOURCES): Likewise.
24993 (videotest_mod_CFLAGS): Likewise.
24994 (videotest_mod_LDFLAGS): Likewise.
24995 (bitmap_mod_SOURCES): Likewise.
24996 (bitmap_mod_CFLAGS): Likewise.
24997 (bitmap_mod_LDFLAGS): Likewise.
24998 (tga_mod_SOURCES): Likewise.
24999 (tga_mod_CFLAGS): Likewise.
25000 (tga_mod_LDFLAGS): Likewise.
25001 (jpeg_mod_SOURCES): Likewise.
25002 (jpeg_mod_CFLAGS): Likewise.
25003 (jpeg_mod_LDFLAGS): Likewise.
25004 (png_mod_SOURCES): Likewise.
25005 (png_mod_CFLAGS): Likewise.
25006 (png_mod_LDFLAGS): Likewise.
25007 (gfxterm_mod_SOURCES): Likewise.
25008 (gfxterm_mod_CFLAGS): Likewise.
25009 (gfxterm_mod_LDFLAGS): Likewise.
25011 * term/gfxterm.c: Removed include to grub/machine/memory.h,
25012 grub/machine/console.h.
25014 2009-01-04 Jerone Young <jerone@gmail.com>
25016 Make on screen instructions clearer
25018 Based on patch created by Jidanni <jidanni@jidanni.org>
25020 * normal/menu.c: print clearer instructions on the screen
25022 2009-01-02 Colin D Bennett <colin@gibibit.com>
25026 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
25027 build system and fixed gfxterm.c to work with different sized fonts.
25029 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
25031 * configure: Re-generated.
25033 * DISTLIST: Removed font/manager.c.
25035 Added font/font_cmd.c.
25037 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
25040 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
25042 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
25044 * kern/term.c: Changed users of grub_utf8_to_ucs4.
25046 * normal/menu.c: Likewise.
25048 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
25049 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
25051 * include/grub/font.h: Replaced with new file.
25053 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
25054 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
25055 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
25056 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
25057 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
25058 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
25059 fg_red, fg_green, fg_blue, fg_alpha.
25060 (grub_video_adapter): Removed blit_glyph.
25061 (grub_video_blit_glyph): Removed.
25063 * font/manager.c: Removed file.
25065 * font/font.c: New file.
25067 * font/font_cmd.c: Likewise.
25069 * video/video.c (grub_video_blit_glyph): Removed.
25071 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
25072 (grub_video_vbe_map_rgba): Likewise.
25073 (grub_video_vbe_unmap_color_int): Likewise.
25074 (grub_video_vbe_blit_glyph): Removed.
25075 (grub_video_vbe_adapter): Removed blit_glyph.
25077 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
25078 (get_pixel): Likewise.
25079 (set_pixel): Likewise.
25081 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
25083 * term/gfxterm.c: Adapted to new font engine.
25085 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
25087 * term/i386/pc/vga.c: Likewise.
25089 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
25091 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
25093 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
25095 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
25097 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
25099 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
25101 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
25103 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
25105 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
25107 * util/grub.d/00_header.in: Changed to use new loadfont command.
25109 * util/grub-mkconfig_lib.in: Changed font extension.
25111 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
25113 * util/getroot.c (grub_util_get_grub_dev): Add support for
25114 /dev/md/dNNpNN style partitionable mdraid devices.
25116 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
25118 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
25119 at a time limit of the PXE TFTP API correctly.
25120 (grub_pxefs_close): Likewise.
25122 2008-11-29 Robert Millan <rmh@aybabtu.com>
25124 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
25125 grub_ata_device_initialize() calls.
25127 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
25129 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
25131 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
25133 2008-11-28 Robert Millan <rmh@aybabtu.com>
25135 Fix build on powerpc-ieee1275. Based on patch created by
25136 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
25137 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
25138 `kern/ieee1275/mmap.c'.
25139 * include/grub/powerpc/ieee1275/memory.h: New file.
25141 Provide grub-install on coreboot.
25142 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
25143 (grub_install_SOURCES): New variable.
25144 * util/i386/pc/grub-install.in: Add a few condition checks to make it
25145 usable on coreboot.
25147 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
25149 * util/grub-fstest.c (grub_term_get_current_input): Change return type
25150 to `grub_term_input_t'.
25151 (grub_term_get_current_output): Change return type to
25152 `grub_term_output_t'.
25154 2008-11-22 Robert Millan <rmh@aybabtu.com>
25156 Fix breakage on coreboot due to declaration mismatch.
25157 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
25158 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
25159 grub_vga_text_cls().
25161 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
25162 comments. Avoid copying one more byte than necessary (just in case).
25164 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
25165 to 0x200000 (avoids trouble with some OFW implementations, and matches
25166 with the one in Yaboot).
25167 Reported by Manoel Abranches
25169 2008-11-20 Robert Millan <rmh@aybabtu.com>
25171 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
25172 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
25174 * util/grub-mkconfig_lib.in (grub_warn): New function.
25175 (convert_system_path_to_grub_path): Use grub_warn() when issuing
25176 warnings, to obtain consistent formatting.
25177 * util/grub.d/00_header.in: Likewise.
25178 * util/update-grub_lib.in: Likewise.
25180 * loader/i386/linux.c (allocate_pages): Fix a warning.
25181 Move comment text to `#error' stanza.
25183 Harmonize ieee1275's grub_available_iterate() with the generic
25184 grub_machine_mmap_iterate() interface (fixes a recently-introduced
25185 build problem on i386-ieee1275):
25186 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
25187 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
25188 parameter `type'. Update all users of this function.
25189 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
25190 `kern/ieee1275/mmap.c'.
25191 * kern/ieee1275/init.c
25192 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
25194 (grub_machine_mmap_iterate): ... this.
25195 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
25196 return type to `grub_err_t'. Update all implementations of this
25197 function prototype.
25198 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
25201 Add `lsmmap' command (lists firmware-provided memory map):
25202 * commands/lsmmap.c: New file.
25203 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
25204 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
25206 * conf/powerpc-ieee1275.rmk: Likewise.
25207 * conf/i386-coreboot.rmk: Likewise.
25208 * conf/i386-ieee1275.rmk: Likewise.
25210 2008-11-19 Robert Millan <rmh@aybabtu.com>
25212 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
25213 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
25214 constraints to initrd allocation (based on code from
25215 loader/i386/pc/linux.c). Without them, initrd was allocated too high
25216 for Linux to find it.
25218 2008-11-14 Robert Millan <rmh@aybabtu.com>
25220 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
25221 order to cope with duplicate slashes.
25223 2008-11-14 Robert Millan <rmh@aybabtu.com>
25225 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
25226 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
25227 don't want to mess with lower memory, because it is used in the Linux
25230 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
25231 an appropriate place in lower memory, between 0x10000 and 0x90000,
25232 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
25233 is in our heap (probably as a result of it being corrupted during
25234 decompression). Add #error instance with comment to explain why this
25235 loader isn't currently usable on PC/BIOS.
25237 2008-11-14 Robert Millan <rmh@aybabtu.com>
25239 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
25240 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
25242 2008-11-12 Robert Millan <rmh@aybabtu.com>
25244 Make loader/i386/linux.c buildable on i386-pc (although disabled).
25246 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
25247 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
25249 * include/grub/i386/pc/memory.h: ... to here.
25251 2008-11-12 Robert Millan <rmh@aybabtu.com>
25253 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
25256 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
25257 (grub_console_cur_color, grub_console_real_putchar)
25258 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
25259 (grub_console_setcolorstate, grub_console_setcolor)
25260 (grub_console_getcolor): Move from here ...
25261 * include/grub/i386/vga_common.h: ... to here (new file).
25263 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
25264 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
25265 `<grub/i386/io.h>'.
25266 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
25267 `<grub/i386/vga_common.h>'.
25269 2008-11-12 Robert Millan <rmh@aybabtu.com>
25271 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
25272 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
25273 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
25275 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
25276 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
25278 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
25279 grub_console_init() with call to grub_vga_text_init().
25280 (grub_machine_fini): Replace call to
25281 grub_console_fini() with call to grub_vga_text_fini() and
25282 grub_at_keyboard_fini().
25284 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
25285 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
25286 (grub_console_setcolorstate, grub_console_setcolor)
25287 (grub_console_getcolor): New function prototypes.
25289 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
25290 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
25291 (grub_vga_text_setcursor): Static-ize.
25292 (grub_vga_text_term): New structure.
25293 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
25295 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
25296 (grub_console_cur_color, grub_console_standard_color)
25297 (grub_console_normal_color, grub_console_highlight_color)
25298 (map_char, grub_console_putchar, grub_console_getcharwidth)
25299 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
25300 (grub_console_getcolor): Move from here ...
25301 * term/i386/vga_common.c: ... to here (same function names).
25303 2008-11-12 Robert Millan <rmh@aybabtu.com>
25305 Use newly-added Multiboot support in coreboot.
25307 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
25308 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
25310 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
25311 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
25312 (codestart): Store the MBI in `startup_multiboot_info' when we're
25313 being loaded using Multiboot.
25315 * kern/i386/coreboot/init.c (grub_machine_init): Move
25316 grub_at_keyboard_init() call to beginning of function (useful for
25317 debugging). Call grub_machine_mmap_init() before attempting to use
25318 grub_machine_mmap_iterate().
25319 (grub_lower_mem, grub_upper_mem): Move from here ...
25320 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
25323 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
25324 function prototype.
25326 2008-11-12 Robert Millan <rmh@aybabtu.com>
25328 Fix a regression introduced by the at_keyboard.mod split. Because
25329 some terminals are default on some platforms and non-default on
25330 others, the first terminal being registered determines which is
25331 going to be default.
25333 * kern/term.c (grub_term_register_input): If this is the first
25334 terminal being registered, set it as the current one.
25335 (grub_term_register_output): Likewise.
25337 * term/efi/console.c (grub_console_init): Do not call
25338 grub_term_set_current_output() or grub_term_set_current_input().
25339 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
25340 * term/i386/pc/console.c (grub_console_init): Likewise.
25341 (grub_console_fini): Do not call grub_term_set_current_input()
25342 (but leave grub_term_set_current_output() to restore text mode).
25344 2008-11-10 Robert Millan <rmh@aybabtu.com>
25346 * util/grub.d/00_header.in: Add backward compatibility check for
25347 versions of terminal.mod that don't understand `terminal_input' or
25350 2008-11-09 Robert Millan <rmh@aybabtu.com>
25352 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
25353 `terminal_input' / `terminal_output', not `terminal'.
25355 2008-11-08 Robert Millan <rmh@aybabtu.com>
25357 * Makefile.in (include_DATA): Fix srcdir=. assumption.
25358 (DISTCLEANFILES): Add `build_env.mk'.
25360 2008-11-08 Robert Millan <rmh@aybabtu.com>
25362 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
25363 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
25364 members. Update all users.
25365 * util/console.c (grub_ncurses_term): Split in ...
25366 (grub_ncurses_term_input): ... this, and ...
25367 (grub_ncurses_term_output): ... this. Update all users.
25368 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
25370 2008-11-08 Robert Millan <rmh@aybabtu.com>
25372 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
25373 (PKGDATA): Add $(pkgdata_SRCDIR).
25374 (pkglib_BUILDDIR): New variable.
25375 (pkgdata_SRCDIR): New variable.
25376 (build_env.mk): New target.
25377 (include_DATA): New variable.
25378 (install-local): Install $(include_DATA) files in $(includedir).
25380 2008-11-07 Pavel Roskin <proski@gnu.org>
25382 * gendistlist.sh: Use C locale for sorting to ensure consistent
25383 output on all systems.
25385 * util/grub.d/00_header.in: Remove incorrect space before
25388 2008-11-07 Robert Millan <rmh@aybabtu.com>
25390 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
25392 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
25393 * loader/multiboot_loader.c (find_multi_boot2_header): New function
25394 (based on find_multi_boot1_header).
25395 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
25396 using find_multi_boot2_header(), and abort if neither Multiboot or
25397 Multiboot headers were found.
25399 2008-11-07 Robert Millan <rmh@aybabtu.com>
25401 Modularize at_keyboard.mod:
25403 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
25404 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
25405 (at_keyboard_mod_LDFLAGS): New variables.
25407 Actual terminal split:
25409 * include/grub/term.h (struct grub_term): Split in ...
25410 (struct grub_term_input): ... this, and ...
25411 (struct grub_term_output): ... this. Update all users.
25412 (grub_term_set_current): Split in ...
25413 (grub_term_set_current_input): ... this, and ...
25414 (grub_term_set_current_output): ... this.
25415 (grub_term_get_current): Split in ...
25416 (grub_term_get_current_input): ... this, and ...
25417 (grub_term_get_current_output): ... this.
25418 (grub_term_register): Split in ...
25419 (grub_term_register_input): ... this, and ...
25420 (grub_term_register_output): ... this.
25421 (grub_term_unregister): Split in ...
25422 (grub_term_unregister_input): ... this, and ...
25423 (grub_term_unregister_output): ... this.
25424 (grub_term_iterate): Split in ...
25425 (grub_term_iterate_input): ... this, and ...
25426 (grub_term_iterate_output): ... this.
25428 * kern/term.c (grub_term_list): Split in ...
25429 (grub_term_list_input): ... this, and ...
25430 (grub_term_list_output): ... this. Update all users.
25431 (grub_cur_term): Split in ...
25432 (grub_cur_term_input): ... this, and ...
25433 (grub_cur_term_output): ... this. Update all users.
25434 (grub_term_set_current): Split in ...
25435 (grub_term_set_current_input): ... this, and ...
25436 (grub_term_set_current_output): ... this.
25437 (grub_term_get_current): Split in ...
25438 (grub_term_get_current_input): ... this, and ...
25439 (grub_term_get_current_output): ... this.
25440 (grub_term_register): Split in ...
25441 (grub_term_register_input): ... this, and ...
25442 (grub_term_register_output): ... this.
25443 (grub_term_unregister): Split in ...
25444 (grub_term_unregister_input): ... this, and ...
25445 (grub_term_unregister_output): ... this.
25446 (grub_term_iterate): Split in ...
25447 (grub_term_iterate_input): ... this, and ...
25448 (grub_term_iterate_output): ... this.
25450 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
25451 a check for input and one for output (and only attempt to get keys
25452 from user when input works).
25454 * util/grub-probe.c (grub_term_get_current): Split in ...
25455 (grub_term_get_current_input): ... this, and ...
25456 (grub_term_get_current_output): ... this.
25457 * util/grub-fstest.c: Likewise.
25458 * util/i386/pc/grub-setup.c: Likewise.
25459 * util/grub-editenv.c: Likewise.
25461 Portability adjustments:
25463 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
25464 `term/i386/pc/at_keyboard.c'.
25465 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
25466 grub_keyboard_controller_init() (now handled by terminal .init).
25467 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
25468 grub_at_keyboard_init().
25469 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
25470 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
25471 at_keyboard.mod via input terminal interface).
25472 * include/grub/i386/coreboot/console.h: Convert into a stub for
25473 `<grub/i386/pc/console.h>'.
25475 Migrate full terminals to new API:
25477 * term/efi/console.c (grub_console_term): Split into ...
25478 (grub_console_term_input): ... this, and ...
25479 (grub_console_term_output): ... this. Update all users.
25480 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
25481 (grub_ofconsole_init): Split into ...
25482 (grub_ofconsole_init_input): ... this, and ...
25483 (grub_ofconsole_init_output): ... this.
25484 (grub_ofconsole_term): Split into ...
25485 (grub_ofconsole_term_input): ... this, and ...
25486 (grub_ofconsole_term_output): ... this. Update all users.
25487 * term/i386/pc/serial.c (grub_serial_term): Split into ...
25488 (grub_serial_term_input): ... this, and ...
25489 (grub_serial_term_output): ... this. Update all users.
25490 * term/i386/pc/console.c (grub_console_term): Split into ...
25491 (grub_console_term_input): ... this, and ...
25492 (grub_console_term_output): ... this. Update all users.
25493 (grub_console_term_input): Only enable it on PC/BIOS platform.
25494 (grub_console_init): Remove grub_keyboard_controller_init() call.
25496 Migrate input terminals to new API:
25498 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
25499 `i386' and `i386/pc' to enable build on x86_64 (this driver is
25500 i386-specific anyway).
25501 (grub_console_checkkey): Rename to ...
25502 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
25504 (grub_keyboard_controller_orig): New variable.
25505 (grub_console_getkey): Rename to ...
25506 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
25508 (grub_keyboard_controller_init): Static-ize. Save original
25509 controller value so that it can be restored ...
25510 (grub_keyboard_controller_fini): ... here (new function).
25511 (grub_at_keyboard_term): New structure.
25512 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
25515 Migrate output terminals to new API:
25517 * term/i386/pc/vga.c (grub_vga_term): Change type to
25518 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
25519 members. Update all users.
25520 * term/gfxterm.c (grub_video_term): Change type to
25521 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
25522 members. Update all users.
25523 * include/grub/i386/pc/console.h (grub_console_checkkey)
25524 (grub_console_getkey): Do not export (no longer needed by gfxterm,
25527 Migrate `terminal' command and userland tools to new API:
25529 * commands/terminal.c (grub_cmd_terminal): Split into ...
25530 (grub_cmd_terminal_input): ... this, and ...
25531 (grub_cmd_terminal_output): ... this.
25532 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
25533 `terminal_input' and `terminal_output'.
25534 * util/grub.d/00_header.in: Adjust `terminal' calls to new
25535 `terminal_input' / `terminal_output' API.
25536 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
25537 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
25538 provided ${GRUB_TERMINAL}, convert it).
25540 2008-11-04 Robert Millan <rmh@aybabtu.com>
25542 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
25544 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
25546 2008-11-03 Bean <bean123ch@gmail.com>
25548 * kern/elf.c (grub_elf32_load): Revert to previous code.
25549 (grub_elf64_load): Likewise.
25551 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
25553 2008-11-01 Robert Millan <rmh@aybabtu.com>
25555 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
25556 (TARGET_CPPFLAGS): Likewise.
25557 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
25559 2008-11-01 Carles Pina i Estany <carles@pina.cat>
25561 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
25563 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
25565 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
25566 addition of objects until the code is not going to be able to fail.
25568 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
25570 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
25571 (add a missing NULL check, and correct them by moving the pointer
25572 operations after the actual check).
25574 2008-10-29 Robert Millan <rmh@aybabtu.com>
25576 * util/i386/pc/grub-install.in: Handle empty string as output from
25577 make_system_path_relative_to_its_root().
25579 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
25581 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
25582 circular metadata worst case scenario. If the metadata is circular
25583 then copy the wrap in place.
25584 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
25585 project lib/format_text/layout.h
25586 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
25588 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
25590 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
25592 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
25594 * util/update-grub_lib.in: Mention filename in warning message.
25596 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
25598 * NEWS: Update for rename of update-grub to grub-mkconfig.
25600 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
25602 * util/update-grub_lib.in: Copy to ...
25603 * util/grub-mkconfig_lib.in: ... this. Update all users.
25604 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
25605 * util/update-grub.in: Rename to ...
25606 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
25607 option. Add `--output' option to allow users to specify the generated
25608 configuration file. Default to stdout.
25609 (update_grub_dir): Rename to ...
25610 (grub_mkconfig_dir): ... this.
25611 (grub_cfg): Default to an empty string.
25612 * conf/common.rmk (update-grub): Rename to ...
25613 (grub-mkconfig): ... this.
25614 (update-grub_lib): Copy to ...
25615 (grub-mkconfig_lib): ... this.
25616 (update-grub_SCRIPTS): Copy to ...
25617 (grub-mkconfig_SCRIPTS): ... this. Update all users.
25618 (update-grub_DATA): Rename to ...
25619 (grub-mkconfig_DATA): ... this.
25621 2008-09-28 Robert Millan <rmh@aybabtu.com>
25623 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
25624 to `modified'. Add the real `created' field.
25625 (grub_iso9660_uuid): Use `modified' rather than `created' for
25626 constructing the UUID.
25628 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
25630 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
25631 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
25633 2008-09-28 Bean <bean123ch@gmail.com>
25635 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
25636 Thanks to Christian Franke for finding this bug.
25638 2008-09-25 Robert Millan <rmh@aybabtu.com>
25640 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
25641 instances of grub_util_get_disk_name() (see previous commit).
25643 2008-09-25 Robert Millan <rmh@aybabtu.com>
25645 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
25646 `util/i386/get_disk_name.c'.
25647 * conf/i386-efi.rmk: Likewise.
25648 * conf/x86_64-efi.rmk: Likewise.
25649 * conf/i386-coreboot.rmk: Likewise.
25650 * conf/i386-ieee1275.rmk: Likewise.
25651 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
25652 `util/ieee1275/get_disk_name.c'.
25653 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
25654 * util/ieee1275/get_disk_name.c: Remove file.
25655 * util/i386/get_disk_name.c: Remove file.
25656 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
25657 "hd%d" for device.map entries, rather than using
25658 grub_util_get_disk_name().
25660 2008-09-24 Carles Pina i Estany <carles@pina.cat>
25662 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
25664 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
25666 2008-09-24 Carles Pina i Estany <carles@pina.cat>
25668 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
25670 (GRUB_TERM_PPAGE): Changed to 0x4900.
25672 2008-09-24 Robert Millan <rmh@aybabtu.com>
25674 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
25675 macros (they were i386-pc specific).
25676 * include/grub/sparc64/ieee1275/console.h: Likewise.
25677 * include/grub/efi/console.h: Likewise.
25679 2008-09-22 Bean <bean123ch@gmail.com>
25681 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
25682 resident and in attribute list.
25684 * include/grub/ntfs.h (BMP_LEN): Removed.
25686 2008-09-22 Bean <bean123ch@gmail.com>
25688 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
25689 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
25691 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
25692 error occurs, as grub_disk_open will call grub_disk_close, which will
25693 call p->close (scsi).
25695 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
25697 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
25698 (AC_PREREQ): Bumped to 2.59.
25699 (AC_TRY_COMPILE): Replace obsolete macro with ...
25700 (AC_COMPILE_IFELSE): ... this.
25701 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
25702 (AC_LINK_IFELSE): ... this.
25704 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
25706 * autogen.sh: Add a call to `gendistlist.sh'.
25708 2008-09-19 Christian Franke <franke@computer.org>
25710 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
25711 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
25712 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
25713 Export __enable_execute_stack() to modules.
25714 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
25717 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
25719 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
25722 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
25724 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
25725 #include <grub/util/hostdisk.h>.
25727 2008-09-08 Robert Millan <rmh@aybabtu.com>
25729 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
25730 segments when their filesz is zero (grub_file_read() interprets
25731 zero-size as "read until EOF", which results in memory corruption).
25732 Use `lowest_segment' rather than 0 for calculating the current
25733 segment load address.
25735 2008-09-08 Robert Millan <rmh@aybabtu.com>
25737 * util/hostdisk.c (open_device): Replace a grub_util_info() call
25738 with grub_dprintf("hostdisk", ...), as it was so verbose that it
25739 clobbered useful information.
25741 2008-09-08 Robert Millan <rmh@aybabtu.com>
25743 * include/grub/util/biosdisk.h: Move to ...
25744 * include/grub/util/hostdisk.h: ... here. Update all users.
25745 * util/biosdisk.c: Move to ...
25746 * util/hostdisk.c: ... here. Update all users.
25748 2008-09-07 Robert Millan <rmh@aybabtu.com>
25750 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
25752 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
25753 and length can be stored directly in the `mbi->mmap_addr' and
25754 `mbi->mmap_length' struct fields.
25756 2008-09-07 Robert Millan <rmh@aybabtu.com>
25758 * conf/i386.rmk: New file. Provides declaration for building
25760 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
25761 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
25763 Include `conf/i386.mk'.
25764 * conf/i386-efi.rmk: Likewise.
25765 * conf/x86_64-efi.rmk: Likewise.
25766 * conf/i386-coreboot.rmk: Likewise.
25767 * conf/i386-ieee1275.rmk: Likewise.
25769 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
25771 Based on patch created by Colin D Bennett <colin@gibibit.com>.
25772 Adds optimization support for BGR based modes.
25774 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
25775 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
25776 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
25777 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
25778 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
25779 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
25780 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
25781 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
25782 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
25783 (grub_video_i386_vbeblit_index_index): Likewise.
25784 (grub_video_i386_vbeblit_replace_directN): Added.
25785 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
25786 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
25787 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
25788 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
25789 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
25790 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
25791 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
25792 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
25793 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
25794 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
25795 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
25796 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
25797 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
25799 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
25800 (grub_video_i386_vbefill_R8G8B8): Likewise.
25801 (grub_video_i386_vbefill_index): Likewise.
25802 (grub_video_i386_vbefill_direct32): Added.
25803 (grub_video_i386_vbefill_direct24): Likewise.
25804 (grub_video_i386_vbefill_direct16): Likewise.
25805 (grub_video_i386_vbefill_direct8): Likewise.
25807 * include/grub/video.h (grub_video_blit_format): Removed
25808 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
25809 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
25810 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
25811 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
25812 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
25814 * video/video.c (grub_video_get_blit_format): Updated to use new
25815 blit formats. Added handling for 16 bit color modes.
25817 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
25819 (common_blitter): Updated to use new blitters.
25821 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
25823 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
25824 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
25825 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
25826 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
25827 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
25828 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
25829 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
25830 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
25831 (grub_video_i386_vbeblit_index_index): Likewise.
25832 (grub_video_i386_vbeblit_replace_directN): Added.
25833 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
25834 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
25835 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
25836 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
25837 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
25838 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
25839 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
25840 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
25841 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
25842 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
25843 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
25844 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
25845 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
25847 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
25848 (grub_video_i386_vbefill_R8G8B8): Likewise.
25849 (grub_video_i386_vbefill_index): Likewise.
25850 (grub_video_i386_vbefill_direct32): Added.
25851 (grub_video_i386_vbefill_direct24): Likewise.
25852 (grub_video_i386_vbefill_direct16): Likewise.
25853 (grub_video_i386_vbefill_direct8): Likewise.
25855 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
25858 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
25861 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
25864 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
25867 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
25869 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
25872 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
25874 * fs/iso9660.c (grub_iso9660_date): New structure.
25875 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
25876 (grub_iso9660_uuid): New function.
25878 2008-09-05 Bean <bean123ch@gmail.com>
25880 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
25882 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
25883 insensitive bit for names in Win32 and Win32 & DOS namespace.
25885 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
25887 * include/grub/types.h (LONG_MAX): Likewise.
25889 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
25891 * util/getroot.c: Include <config.h>.
25892 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
25893 add support for /dev/md/N devices and handle LVM double dash escaping.
25895 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
25897 * config.guess: Update to latest version from config git.
25898 * config.sub: Likewise.
25900 2008-09-03 Robert Millan <rmh@aybabtu.com>
25902 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
25903 `disk->total_sectors'.
25905 2008-09-01 Colin D Bennett <colin@gibibit.com>
25907 * include/grub/normal.h: Fixed incorrect comment for
25908 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
25910 2008-09-01 Colin D Bennett <colin@gibibit.com>
25912 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
25913 values with defines.
25915 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
25916 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
25917 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
25918 (GRUB_VBE_MODEATTR_COLOR): Likewise.
25919 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
25920 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
25921 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
25922 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
25923 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
25924 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
25925 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
25926 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
25927 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
25928 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
25929 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
25930 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
25931 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
25932 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
25933 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
25935 2008-08-31 Robert Millan <rmh@aybabtu.com>
25937 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
25939 (grub_multiboot): Fix a few warnings.
25941 2008-08-31 Robert Millan <rmh@aybabtu.com>
25943 * loader/i386/pc/multiboot.c: Update comment not to say that
25944 boot_device support is unimplemented.
25946 2008-08-31 Robert Millan <rmh@aybabtu.com>
25948 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
25949 or memory map support are unimplemented.
25951 2008-08-31 Colin D Bennett <colin@gibibit.com>
25953 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
25955 2008-08-31 Colin D Bennett <colin@gibibit.com>
25957 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
25958 total video memory in 'vbeinfo' output; show color format details for
25961 2008-08-30 Pavel Roskin <proski@gnu.org>
25963 * util/genmoddep.c: Remove for real this time.
25964 * DISTLIST: Remove util/genmoddep.c.
25966 2008-08-30 Robert Millan <rmh@aybabtu.com>
25968 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
25969 as required by Multiboot spec (it was already 4-byte aligned, but
25972 2008-08-29 Pavel Roskin <proski@gnu.org>
25974 * kern/powerpc/ieee1275/crt0.S: Rename to ...
25975 * kern/powerpc/ieee1275/startup.S: ... this.
25976 * conf/powerpc-ieee1275.rmk: Adjust for the above.
25977 * DISTLIST: Likewise.
25979 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
25980 grub/cpu/kernel.h. Add start label for consistency with other
25981 platforms. Add grub_prefix immediately after start. Add jump
25982 to the code after grub_prefix.
25983 * include/grub/powerpc/kernel.h: Provide valid values for
25984 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
25986 2008-08-29 Bean <bean123ch@gmail.com>
25988 * configure.ac: Change host_os to cygwin for mingw.
25989 (asprintf): New check for function.
25991 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
25992 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
25994 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
25995 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
25996 sync, sleep and grub_util_get_disk_size for mingw.
25998 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
25999 to get size in mingw.
26000 (open_device): Use flag O_BINARY if it's defined.
26001 (find_root_device): Add dummy code for mingw.
26003 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
26004 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
26005 (get_scsi_disk_name): Return 0 for mingw.
26007 * util/hostfs.c: #include <grub/util/misc.h>.
26008 (grub_hostfs_open): Use "rb" flag to open file, use
26009 grub_util_get_disk_size to get disk size for mingw.
26011 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
26012 (asprintf): New function if HAVE_ASPRINTF is not set.
26013 (sync): New function for mingw.
26015 (grub_util_get_disk_size): Likewise.
26017 2008-08-28 Pavel Roskin <proski@gnu.org>
26019 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
26022 2008-08-28 Robert Millan <rmh@aybabtu.com>
26024 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
26026 2008-08-28 Robert Millan <rmh@aybabtu.com>
26028 Change find_grub_drive() syntax so it doesn't prevent it from
26029 detecting NULL names as errors.
26031 * util/biosdisk.c (find_grub_drive): Move free slot search code
26033 (find_free_slot): ... to here.
26034 (read_device_map): Use find_free_slot() to search for free slots.
26036 2008-08-27 Marco Gerards <marco@gnu.org>
26038 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
26039 (scsi_mod_SOURCES): New variable.
26040 (scsi_mod_CFLAGS): Likewise
26041 (scsi_mod_LDFLAGS): Likewise.
26043 * disk/scsi.c: New file.
26045 * include/grub/scsi.h: Likewise.
26047 * include/grub/scsicmd.h: Likewise.
26049 * disk/ata.c: Include <grub/scsi.h>.
26050 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
26052 (grub_ata_iterate): Skip ATAPI devices.
26053 (grub_ata_open): Only handle ATAPI devices.
26054 (struct grub_atapi_read): Removed.
26055 (grub_atapi_readsector): Likewise.
26056 (grub_ata_read): No longer handle ATAPI devices.
26057 (grub_ata_write): Likewise.
26058 (grub_atapi_iterate): New function.
26059 (grub_atapi_read): Likewise.
26060 (grub_atapi_write): Likewise.
26061 (grub_atapi_open): Likewise.
26062 (grub_atapi_close): Likewise.
26063 (grub_atapi_dev): New variable.
26064 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
26065 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
26067 * include/grub/disk.h (enum grub_disk_dev_id): Add
26068 `GRUB_DISK_DEVICE_SCSI_ID'.
26070 2008-08-26 Robert Millan <rmh@aybabtu.com>
26072 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
26073 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
26076 2008-08-23 Bean <bean123ch@gmail.com>
26078 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
26079 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
26080 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
26081 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
26083 (raid5rec_mod_SOURCES): New macro.
26084 (raid5rec_mod_CFLAGS): Likewise.
26085 (raid5rec_mod_LDFLAGS): Likewise.
26086 (raid6rec_mod_SOURCES): Likewise.
26087 (raid6rec_mod_CFLAGS): Likewise.
26088 (raid6rec_mod_LDFLAGS): Likewise.
26089 (mdraid_mod_SOURCES): Likewise.
26090 (mdraid_mod_CFLAGS): Likewise.
26091 (mdraid_mod_LDFLAGS): Likewise.
26092 (dm_nv_mod_SOURCES): Likewise.
26093 (dm_nv_mod_CFLAGS): Likewise.
26094 (dm_nv_mod_LDFLAGS): Likewise.
26096 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
26097 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
26098 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
26100 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
26101 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
26103 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26105 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26107 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26109 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26111 * disk/raid5_recover.c: New file.
26113 * disk/raid6_recover.c: Likewise.
26115 * disk/mdraid_linux.c: Likewise.
26117 * disk/dmraid_nvidia.c: Likewise.
26119 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
26122 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
26123 calculate the size of raid device.
26124 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
26125 different layout of raid5.
26126 (grub_raid_scan_device): Remove code specific to mdraid.
26127 (grub_raid_list): New variable.
26128 (free_array): New function.
26129 (grub_raid_register): Likewise.
26130 (grub_raid_unregister): Likewise.
26131 (grub_raid_rescan): Likewise.
26132 (GRUB_MOD_INIT): Don't iterate device here.
26133 (GRUB_MOD_FINI): Use free_array to release resource.
26135 * include/grub/raid.h: Remove macro and structure specific to mdraid.
26136 (grub_raid5_recover_func_t): New function variable type.
26137 (grub_raid6_recover_func_t): Likewise.
26138 (grub_raid5_recover_func): New variable.
26139 (grub_raid6_recover_func): Likewise.
26140 (grub_raid_register): New function.
26141 (grub_raid_unregister): Likewise.
26142 (grub_raid_rescan): Likewise.
26143 (grub_raid_block_xor): Likewise.
26145 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
26146 (CMD_CRC): New macro.
26148 (read_file): Handle device as well as file.
26149 (cmd_crc): New function.
26150 (fstest): Handle multiple disks.
26151 (options): Remove part, raw and long, add root and diskcount.
26152 (usage): Add crc, remove -p, -r, -l, add -r and -c.
26153 (main): Find the first non option entry and ignore subsequent options,
26154 add handling for the new options, support multiple disks.
26156 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
26158 2008-08-23 Bean <bean123ch@gmail.com>
26160 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
26162 * genfslist.sh: Ignore kernel.mod.
26164 * genpartmaplist.sh: Likewise.
26166 2008-08-23 Robert Millan <rmh@aybabtu.com>
26168 * util/getroot.c (find_root_device): Skip anything that starts with
26169 a dot, not just directories. This avoids things like /dev/.tmp.md0.
26171 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
26173 * util/update-grub.in (GRUB_GFXMODE): Export variable.
26174 * util/grub.d/00_header.in: Allow the administrator to change default
26175 gfxmode via ${GRUB_GFXMODE}.
26177 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
26179 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
26181 2008-08-21 Robert Millan <rmh@aybabtu.com>
26183 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
26185 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
26186 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
26188 2008-08-20 Carles Pina i Estany <carles@pina.cat>
26190 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
26191 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
26193 2008-08-19 Robert Millan <rmh@aybabtu.com>
26195 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
26196 (struct grub_virtual_screen): Remove `cursor_color'.
26197 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
26199 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
26201 2008-08-18 Robert Millan <rmh@aybabtu.com>
26203 Unify (identical) linux_normal.c files.
26204 * loader/i386/efi/linux_normal.c: Move from here ...
26205 * loader/linux_normal.c: ... to here. Update all users.
26206 * loader/i386/pc/linux_normal.c: Delete. Update all users.
26207 * loader/i386/ieee1275/linux_normal.c: Likewise.
26209 2008-08-18 Robert Millan <rmh@aybabtu.com>
26211 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
26212 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
26213 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
26214 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
26215 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
26217 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
26218 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
26219 (GRUB_LINUX_CL_END_OFFSET): ... to here.
26220 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
26221 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
26222 (GRUB_EFI_CL_END_OFFSET): Rename to ...
26223 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
26224 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
26225 Initialize `params->video_cursor_x' and `params->video_cursor_y'
26226 portably using grub_getxy().
26227 Replace `-EFI' with `-bzImage' in boot message.
26229 2008-08-17 Robert Millan <rmh@aybabtu.com>
26231 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
26233 2008-08-17 Robert Millan <rmh@aybabtu.com>
26235 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
26237 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
26238 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
26239 (grub_machine_mmap_iterate): New function declaration.
26240 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
26242 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
26245 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
26246 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
26247 Move e820 parsing from here ...
26248 * kern/i386/pc/mmap.c: New file.
26249 (grub_machine_mmap_iterate): ... to here.
26251 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
26252 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
26253 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
26254 (grub_available_iterate): Redeclare to return `void', and redeclare
26255 its hook to use grub_uint64_t as addr and size parameters, and rename
26257 (grub_machine_mmap_iterate): ... this. Update all users.
26259 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
26260 to make it more readable. Rename to ...
26261 (grub_machine_mmap_iterate): ... this.
26263 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
26264 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
26265 (grub_multiboot): Allocate an extra region after the payload, and fill
26266 it with a Multiboot memory map. Adjust a.out loader to calculate size
26267 with the extra space.
26268 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
26269 with the extra space.
26271 2008-08-17 Carles Pina i Estany <carles@pina.cat>
26273 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
26275 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
26277 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
26278 mdate-sh to the list `find' searches for.
26279 * DISTLIST: Regenerated.
26281 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
26283 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
26284 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
26285 genmoddep.awk, gensymlist.sh.in.
26286 (DISTDIRS): Add bus, docs, hook, lib.
26287 * DISTLIST: Regenerated.
26288 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
26290 2008-08-16 Robert Millan <rmh@aybabtu.com>
26292 * disk/raid.c (grub_raid_init): Handle/report errors set by
26293 grub_device_iterate().
26294 * disk/lvm.c (grub_lvm_init): Likewise.
26296 2008-08-15 Bean <bean123ch@gmail.com>
26298 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
26300 (datetime_mod_SOURCES): New macro.
26301 (datetime_mod_CFLAGS): Likewise.
26302 (datetime_mod_LDFLAGS): Likewise.
26303 (date_mod_SOURCES): Likewise.
26304 (date_mod_CFLAGS): Likewise.
26305 (date_mod_LDFLAGS): Likewise.
26306 (datehook_mod_SOURCES): Likewise.
26307 (datehook_mod_CFLAGS): Likewise.
26308 (datehook_mod_LDFLAGS): Likewise.
26310 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
26312 (datetime_mod_SOURCES): New macro.
26313 (datetime_mod_CFLAGS): Likewise.
26314 (datetime_mod_LDFLAGS): Likewise.
26315 (date_mod_SOURCES): Likewise.
26316 (date_mod_CFLAGS): Likewise.
26317 (date_mod_LDFLAGS): Likewise.
26318 (datehook_mod_SOURCES): Likewise.
26319 (datehook_mod_CFLAGS): Likewise.
26320 (datehook_mod_LDFLAGS): Likewise.
26322 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
26324 (datetime_mod_SOURCES): New macro.
26325 (datetime_mod_CFLAGS): Likewise.
26326 (datetime_mod_LDFLAGS): Likewise.
26327 (date_mod_SOURCES): Likewise.
26328 (date_mod_CFLAGS): Likewise.
26329 (date_mod_LDFLAGS): Likewise.
26330 (datehook_mod_SOURCES): Likewise.
26331 (datehook_mod_CFLAGS): Likewise.
26332 (datehook_mod_LDFLAGS): Likewise.
26334 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
26336 (datetime_mod_SOURCES): New macro.
26337 (datetime_mod_CFLAGS): Likewise.
26338 (datetime_mod_LDFLAGS): Likewise.
26339 (date_mod_SOURCES): Likewise.
26340 (date_mod_CFLAGS): Likewise.
26341 (date_mod_LDFLAGS): Likewise.
26342 (datehook_mod_SOURCES): Likewise.
26343 (datehook_mod_CFLAGS): Likewise.
26344 (datehook_mod_LDFLAGS): Likewise.
26346 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
26348 (datetime_mod_SOURCES): New macro.
26349 (datetime_mod_CFLAGS): Likewise.
26350 (datetime_mod_LDFLAGS): Likewise.
26351 (date_mod_SOURCES): Likewise.
26352 (date_mod_CFLAGS): Likewise.
26353 (date_mod_LDFLAGS): Likewise.
26354 (datehook_mod_SOURCES): Likewise.
26355 (datehook_mod_CFLAGS): Likewise.
26356 (datehook_mod_LDFLAGS): Likewise.
26358 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
26360 * commands/date.c: New file.
26362 * hook/datehook.c: Likewise.
26364 * include/grub/lib/datetime.h: Likewise.
26366 * include/grub/i386/cmos.h: Likewise.
26368 * lib/datetime.c: Likewise.
26370 * lib/i386/datetime.c: Likewise.
26372 * lib/efi/datetime.c: Likewise.
26374 2008-08-14 Robert Millan <rmh@aybabtu.com>
26376 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
26377 (grub_mkelfimage_SOURCES): New variable.
26378 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
26380 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
26381 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
26382 * conf/powerpc-ieee1275.rmk: Likewise.
26383 * conf/i386-ieee1275.rmk: Likewise.
26385 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
26386 * kern/i386/coreboot/init.c: Likewise.
26388 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
26389 with `<grub/cpu/kernel.h>'.
26390 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
26392 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
26393 * kern/i386/coreboot/startup.S: Likewise.
26395 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
26396 (GRUB_MOD_GAP): Remove.
26397 * include/grub/powerpc/kernel.h: New file.
26398 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
26399 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
26400 * include/grub/i386/kernel.h: New file.
26401 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
26402 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
26403 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
26405 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
26407 Use --directory when invoking grub_mkimage.
26409 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
26410 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
26411 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
26412 and GRUB_KERNEL_CPU_PREFIX.
26414 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
26416 * include/grub/err.h (grub_err_printf): New function prototype.
26417 * util/misc.c (grub_err_printf): New function.
26418 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
26420 * kern/err.c (grub_print_error): Use grub_err_printf.
26422 2008-08-13 Robert Millan <rmh@aybabtu.com>
26424 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
26426 2008-08-13 Robert Millan <rmh@aybabtu.com>
26428 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
26431 2008-08-12 Robert Millan <rmh@aybabtu.com>
26433 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
26434 of the relocation code from here ...
26435 (grub_multiboot): ... to here.
26436 (forward_relocator, backward_relocator): Move from here ...
26437 * kern/i386/loader.S (grub_multiboot_forward_relocator)
26438 (grub_multiboot_backward_relocator): ... to here.
26439 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
26440 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
26441 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
26442 (grub_multiboot_forward_relocator_end)
26443 (grub_multiboot_backward_relocator)
26444 (grub_multiboot_backward_relocator_end): New variables.
26446 2008-08-12 Bean <bean123ch@gmail.com>
26448 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
26450 2008-08-11 Robert Millan <rmh@aybabtu.com>
26452 * kern/i386/linuxbios/startup.S: Move from here ...
26453 * kern/i386/coreboot/startup.S: ... to here.
26455 * kern/i386/linuxbios/init.c: Move from here ...
26456 * kern/i386/coreboot/init.c: ... to here.
26458 * kern/i386/linuxbios/table.c: Move from here ...
26459 * kern/i386/coreboot/mmap.c: ... to here.
26461 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
26463 2008-08-11 Robert Millan <rmh@aybabtu.com>
26465 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
26466 errors. Leave it to the upper layer to handle them.
26468 2008-08-09 Christian Franke <franke@computer.org>
26470 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
26471 * conf/common.rmk: Install `grub-pe2elf' only if requested.
26472 Install `grub.d/10_windows' only on Cygwin.
26473 * configure.ac: Add subst of `target_os'.
26474 Check `target_os' also before setting TARGET_OBJ2ELF.
26475 Add `--enable-grub-pe2elf'.
26477 2008-08-08 Robert Millan <rmh@aybabtu.com>
26479 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
26480 (grub_last_time): Change type to grub_uint64_t.
26481 (grub_disk_open): Migrate code from to using grub_get_time_ms().
26482 (grub_disk_close): Likewise.
26484 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
26485 (run_menu): Migrate code from to using grub_get_time_ms().
26487 * util/misc.c (grub_get_time_ms): New function.
26489 2008-08-08 Marco Gerards <marco@gnu.org>
26491 * disk/ata.c (grub_ata_regget): Change return type to
26493 (grub_ata_regget2): Likewise.
26494 (grub_ata_wait_status): New function.
26495 (grub_ata_wait_busy): Removed function, updated all users to use
26496 `grub_ata_wait_status'.
26497 (grub_ata_wait_drq): Likewise.
26498 (grub_ata_cmd): New function.
26499 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
26501 (grub_ata_pio_write): Add error handling.
26502 (grub_atapi_identify): Likewise.
26503 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
26505 (grub_ata_identify): Use `grub_ata_cmd' and improve error
26506 handling. Actually use the detected registers. Reorder the
26507 detection logic such that it is easier to read.
26508 (grub_ata_pciinit): Do not assign the same ID to each controller.
26509 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
26511 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
26513 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
26515 2008-08-08 Marco Gerards <marco@gnu.org>
26519 2008-08-07 Bean <bean123ch@gmail.com>
26521 * include/grub/x86_64/pci.h: New file.
26523 2008-08-07 Christian Franke <franke@computer.org>
26525 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
26526 (TIMER2_GATE): Likewise.
26527 (grub_pit_wait): Add enable/disable of the timer2 gate
26528 bit of port 0x61. This fixes a possible infinite loop.
26530 2008-08-07 Bean <bean123ch@gmail.com>
26532 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
26533 kern/i386/tsc.c and kern/i386/pit.c.
26535 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
26538 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
26541 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
26543 2008-08-07 Bean <bean123ch@gmail.com>
26545 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
26547 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
26549 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
26550 multiple inclusion. Add #include <grub/types.h>.
26552 2008-08-06 Christian Franke <franke@computer.org>
26554 * conf/common.rmk: Build and install `10_windows'.
26555 * util/grub.d/10_windows.in: New script.
26557 2008-08-06 Pavel Roskin <proski@gnu.org>
26559 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
26561 2008-08-06 Robert Millan <rmh@aybabtu.com>
26563 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
26564 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
26566 2008-08-06 Bean <bean123ch@gmail.com>
26568 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
26569 (grub_pxefs_fs_int): Remove dummy definition.
26570 (grub_pxefs_open): Use data->block_size to store the current block
26572 (grub_pxefs_read): Use block size stored in data->block_size. As the
26573 value of grub_pxe_blksize can be changed after the file is opened.
26575 2008-08-06 Bean <bean123ch@gmail.com>
26577 * fs/i386/pc/pxe.c (curr_file): new variable.
26578 (grub_pxefs_open): Simply the handling of pxe file system. Don't
26579 require the dummy internal file system anymore.
26580 (grub_pxefs_read): Removed.
26581 (grub_pxefs_close): Likewise.
26582 (grub_pxefs_fs_int): Likewise.
26583 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
26584 connection when we switch file.
26585 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
26587 2008-08-06 Robert Millan <rmh@aybabtu.com>
26589 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
26591 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
26592 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
26594 * kern/i386/halt.c: New file.
26595 * kern/i386/reboot.c: Likewise.
26596 * include/grub/i386/reboot.h: Likewise.
26597 * include/grub/i386/halt.h: Likewise.
26599 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
26600 Include `<grub/cpu/halt.h>'.
26601 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
26602 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
26604 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
26605 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
26606 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
26607 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
26608 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
26609 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
26611 * include/grub/i386/at_keyboard.h: ... to here.
26613 2008-08-05 Robert Millan <rmh@aybabtu.com>
26615 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
26616 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
26617 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
26618 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
26619 `kern/generic/millisleep.c'.
26621 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
26622 instead of grub_get_rtc().
26623 (grub_tsc_init): Initialize `tsc_boot_time'.
26625 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
26626 (grub_machine_init): Use grub_tsc_init() rather than
26627 installing an RTC-based handler via grub_install_get_time_ms().
26629 * kern/i386/pit.c: New file.
26630 * include/grub/i386/pit.h: Likewise.
26632 2008-08-05 Bean <bean123ch@gmail.com>
26634 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
26636 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
26637 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
26638 (pxe_mod_SOURCES): New macro.
26639 (pxe_mod_CFLAGS): Likewise.
26640 (pxe_mod_LDFLAGS): Likewise.
26641 (pxecmd_mod_SOURCES): Likewise.
26642 (pxecmd_mod_CFLAGS): Likewise.
26643 (pxecmd_mod_LDFLAGS): Likewise.
26645 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
26646 (grub_pxe_call): Likewise.
26648 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
26650 * commands/i386/pc/pxecmd.c: New file.
26652 * fs/i386/pc/pxe.c: Likewise.
26654 * include/grub/i386/pc/pxe.h: Likewise.
26656 2008-08-05 Bean <bean123ch@gmail.com>
26658 * util/console.c (grub_console_cur_color): New variable.
26659 (grub_console_standard_color): Likewise.
26660 (grub_console_normal_color): Likewise.
26661 (grub_console_highlight_color): Likewise.
26662 (color_map): Likewise.
26663 (use_color): Likewise.
26664 (NUM_COLORS): New macro.
26665 (grub_ncurses_setcolorstate): Handle color properly.
26666 (grub_ncurses_setcolor): Don't change color here, just remember the
26667 settings, color will be set in grub_ncurses_setcolorstate.
26668 (grub_ncurses_getcolor): New function.
26669 (grub_ncurses_init): Initialize color pairs.
26670 (grub_ncurses_term): New member grub_ncurses_getcolor.
26672 2008-08-05 Colin D Bennett <colin@gibibit.com>
26674 High resolution timer support. Implemented for x86 CPUs using TSC.
26675 Extracted generic grub_millisleep() so it's linked in only as needed.
26676 This requires a Pentium compatible CPU; if the RDTSC instruction is
26677 not supported, then it falls back on the generic grub_get_time_ms()
26678 implementation that uses the machine's RTC.
26680 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
26681 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
26682 `kern/generic/millisleep.c'.
26684 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
26685 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
26687 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
26688 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
26690 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
26692 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
26693 `kern/generic/millisleep.c'.
26695 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
26697 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
26699 * kern/generic/rtc_get_time_ms.c: New file.
26701 * kern/generic/millisleep.c: New file.
26703 * kern/misc.c: Don't include
26704 <kern/time.h> anymore.
26705 (grub_millisleep_generic): Removed.
26707 * commands/sleep.c (grub_interruptible_millisleep): Uses
26708 grub_get_time_ms() instead of grub_get_rtc().
26710 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
26712 (grub_cpu_is_cpuid_supported): New inline function.
26713 (grub_cpu_is_tsc_supported): New inline function.
26714 (grub_tsc_init): New function prototype.
26715 (grub_tsc_get_time_ms): New function prototype.
26717 * kern/i386/tsc.c (grub_get_time_ms): New file.
26719 * include/grub/time.h: Include <grub/types.h.
26720 (grub_millisleep_generic): Removed.
26721 (grub_get_time_ms): New prototype.
26722 (grub_install_get_time_ms): New prototype.
26723 (grub_rtc_get_time_ms): New prototype.
26725 * kern/time.c (grub_get_time_ms): New function.
26726 (grub_install_get_time_ms): New function.
26728 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
26729 <grub/time.h> anymore.
26730 (grub_millisleep): Removed.
26731 (grub_machine_init): Call grub_tsc_init.
26733 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
26734 get_time_ms() implementation.
26736 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
26737 (ieee1275_get_time_ms): New function.
26738 (grub_machine_init): Install get_time_ms() implementation.
26740 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
26741 (grub_machine_init): Call grub_tsc_init().
26742 (grub_millisleep): Removed.
26744 * kern/ieee1275/init.c (grub_millisleep): Removed.
26745 (grub_machine_init): Install ieee1275_get_time_ms()
26747 (ieee1275_get_time_ms): New function.
26748 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
26751 2008-08-05 Marco Gerards <marco@gnu.org>
26753 * disk/ata.c: Include <grub/pci.h>.
26754 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
26755 (grub_ata_initialize): Rewritten.
26756 (grub_ata_device_initialize): New function.
26758 2008-08-04 Pavel Roskin <proski@gnu.org>
26760 * kern/main.c: Include grub/mm.h.
26762 2008-08-04 Robert Millan <rmh@aybabtu.com>
26764 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
26765 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
26766 corruption problem).
26768 2008-08-04 Robert Millan <rmh@aybabtu.com>
26770 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
26771 warnings introduced in my last commit.
26773 2008-08-03 Robert Millan <rmh@aybabtu.com>
26775 Make PCI available on all i386 architectures.
26777 * include/grub/i386/pc/pci.h: Move from here ...
26778 * include/grub/i386/pci.h: ... to here.
26780 * include/grub/i386/pc/pci.h: Remove.
26781 * include/grub/i386/efi/pci.h: Remove.
26782 * include/grub/x86_64/efi/pci.h: Remove.
26784 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
26785 `<grub/cpu/pci.h>'.
26787 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
26788 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
26789 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
26791 * conf/i386-ieee1275.rmk: Likewise.
26793 2008-08-03 Robert Millan <rmh@aybabtu.com>
26795 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
26796 (grub_console_setcursor): Make it possible to set cursor off.
26798 2008-08-03 Robert Millan <rmh@aybabtu.com>
26800 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
26801 of modules instead of assuming which platform provides what.
26802 * util/update-grub.in: Likewise.
26804 2008-08-03 Robert Millan <rmh@aybabtu.com>
26806 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
26807 instead of `grub_install_dos_part' to determine whether a drive needs
26808 to be prepended to prefix (`grub_install_dos_part' is not reliable,
26809 because it can be overridden when loading GRUB via Multiboot).
26811 2008-08-02 Robert Millan <rmh@aybabtu.com>
26813 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
26815 2008-08-02 Robert Millan <rmh@aybabtu.com>
26817 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
26818 of informational grub_dprintf() calls.
26820 2008-08-02 Robert Millan <rmh@aybabtu.com>
26822 * disk/memdisk.c (memdisk_size): Don't initialize.
26823 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
26825 * include/grub/i386/pc/kernel.h
26826 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
26827 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
26828 (grub_memdisk_image_size, grub_arch_memdisk_addr)
26829 (grub_arch_memdisk_size): Remove.
26831 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
26832 field (was only used to transfer a constant). Add `type' field to
26833 support multiple module types.
26834 (grub_module_iterate): New function.
26836 * kern/device.c (grub_device_open): Do not hide error messages
26837 when grub_disk_open() fails. Use grub_print_error() instead.
26839 * kern/i386/pc/init.c (grub_arch_modules_addr)
26840 (grub_arch_memdisk_size): Remove functions.
26841 (grub_arch_modules_addr): Return the module address in high memory
26842 (now that it isn't copied anymore).
26844 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
26845 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
26846 decompression routine (grub_total_module_size already includes that
26847 now). Don't copy modules back to low memory.
26849 * kern/main.c: Include `<grub/mm.h>'.
26850 (grub_load_modules): Split out (and use) ...
26851 (grub_module_iterate): ... this function, which iterates through
26852 module objects and runs a hook.
26853 Comment out grub_mm_init_region() call, as it would cause non-ELF
26854 modules to be overwritten.
26856 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
26857 the memdisk image in its own region, make it part of the module list.
26858 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
26859 (main): Parse --memdisk|-m option, and pass user-provided path as
26860 parameter to generate_image().
26861 (add_segments): Pass `memdisk_path' down to load_modules().
26862 (load_modules): Embed memdisk image in module section when requested.
26863 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
26864 `header.type' instead of `header.offset'.
26866 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
26867 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
26868 (memdisk_mod_LDFLAGS): New variables.
26869 * conf/i386-coreboot.rmk: Likewise.
26870 * conf/i386-ieee1275.rmk: Likewise.
26872 2008-08-02 Robert Millan <rmh@aybabtu.com>
26874 * loader/i386/pc/multiboot.c (playground, forward_relocator)
26875 (backward_relocator): New variables. Used to allocate and relocate
26876 the payload, respectively.
26877 (grub_multiboot_load_elf32): Load into heap instead of requested
26878 address, install the appropriate relocator code in each bound of
26879 the payload, and set the entry point such that
26880 grub_multiboot_real_boot() will jump to one of them.
26882 * kern/i386/loader.S (grub_multiboot_payload_size)
26883 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
26884 (grub_multiboot_payload_entry_offset): New variables.
26885 (grub_multiboot_real_boot): Set cpu context to what the relocator
26886 expects, and jump to the relocator instead of the payload.
26888 * include/grub/i386/loader.h (grub_multiboot_payload_size)
26889 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
26890 (grub_multiboot_payload_entry_offset): Export.
26892 2008-08-01 Bean <bean123ch@gmail.com>
26894 * normal/menu_entry.c (editor_getline): Don't return the original
26895 string as result, as it will be released by lexer once it has done
26898 2008-08-01 Robert Millan <rmh@aybabtu.com>
26900 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
26901 within menuentries, not before them.
26902 util/grub.d/10_hurd.in: Likewise.
26904 2008-08-01 Bean <bean123ch@gmail.com>
26906 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
26907 (bufio_mod_SOURCES): New macro.
26908 (bufio_mod_CFLAGS): Likewise.
26909 (bufio_mod_LDFLAGS): Likewise.
26911 * include/grub/bufio.h: New file.
26913 * io/bufio.c: Likewise.
26915 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
26916 (grub_video_reader_png): Use grub_buffile_open to open file.
26918 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
26919 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
26921 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
26922 (grub_video_reader_tga): Use grub_buffile_open to open file.
26924 * font/manager.c: Include <grub/bufio.h>.
26925 (add_font): Use grub_buffile_open to open file.
26927 2008-07-31 Robert Millan <rmh@aybabtu.com>
26929 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
26930 ELF segments, use a macro for arbitrarily accessing any of them instead
26931 of preparing a pointer that allows access to one at a time.
26932 (grub_multiboot_load_elf64): Likewise.
26934 2008-07-31 Bean <bean123ch@gmail.com>
26936 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
26937 GRUB_KERNEL_MACHINE_DATA_END.
26939 2008-07-30 Robert Millan <rmh@aybabtu.com>
26941 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
26942 Increase from 0x50 to 0x60.
26943 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
26944 use UUIDs to identify the root drive for them. If that's not
26946 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
26947 check, for cross-disk installs.
26949 2008-07-30 Robert Millan <rmh@aybabtu.com>
26951 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
26952 is non-empty, use it to set the `prefix' environment variable instead
26953 of the usual approach.
26954 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
26955 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
26956 environment variable instead of dummy make_install_device().
26958 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
26959 (start): Insert a data section, with `grub_prefix' variable.
26960 * kern/i386/linuxbios/startup.S: Likewise.
26962 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
26963 New variable reference.
26964 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
26965 New macro. Defines offset of `grub_prefix' within startup.S (relative
26967 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
26968 section within startup.S (relative to `start').
26969 * include/grub/i386/coreboot/kernel.h: Likewise.
26971 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
26972 Overwrite grub_prefix with its contents, at the beginning of the
26974 (main): Understand -p|--prefix.
26976 2008-07-30 Robert Millan <rmh@aybabtu.com>
26978 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
26980 2008-07-30 Robert Millan <rmh@aybabtu.com>
26982 * term/i386/pc/vga_text.c (grub_console_cls): Use
26983 grub_console_gotoxy() to go back to beginning of the screen.
26984 Found by Patrick Georgi <patrick.georgi@coresystems.de>
26986 2008-07-29 Christian Franke <franke@computer.org>
26988 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
26989 Add conversion of emulated mount points on Cygwin.
26991 2008-07-29 Christian Franke <franke@computer.org>
26993 * util/update-grub.in: Add a check for admin
26995 Remove old `grub.cfg.new' before creation.
26996 Add `-f' to `mv' to handle the different filesystem
26997 semantics of Windows.
26999 2008-07-29 Bean <bean123ch@gmail.com>
27001 * normal/main.c (get_line): Fix buffer overflow bug.
27003 2008-07-28 Robert Millan <rmh@aybabtu.com>
27005 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
27006 (struct grub_apple_header): New struct. Describes the layout of
27007 the partmap header.
27008 (apple_partition_map_iterate): Check the header magic as well as the
27009 partition magic (which was already being checked).
27011 2008-07-28 Pavel Roskin <proski@gnu.org>
27013 * genmk.rb: Add a warning to the beginning of the output that
27014 it's a generated file and should not be edited.
27016 2008-07-28 Robert Millan <rmh@aybabtu.com>
27018 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
27019 with the same number are found, just use issue a warning with
27020 grub_dprintf(), as this error has been reported to be non-fatal.
27022 2008-07-27 Robert Millan <rmh@aybabtu.com>
27024 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
27027 2008-07-27 Bean <bean123ch@gmail.com>
27029 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
27030 (grub_fat_find_dir): Ignore case when comparing filename.
27032 2008-07-27 Bean <bean123ch@gmail.com>
27034 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
27035 smallino, as it's more descriptive, and i8count can be confused with
27036 the other field count.
27037 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
27040 2008-07-27 Bean <bean123ch@gmail.com>
27042 * commands/crc.c: New file.
27044 * lib/crc.c: Likewise.
27046 * include/grub/lib/crc.h: Likewise.
27048 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
27050 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
27051 (hexdump): Move this function to ...
27053 * lib/hexdump.c: ... here.
27055 * include/grub/hexdump.h: Renamed to ...
27057 * include/grub/lib/hexdump.h: ... this.
27059 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
27061 * util/grub-editenv.c: Likewise.
27063 * include/envblk.h: Renamed to ...
27065 * include/lib/envblk.h: ... this.
27067 * util/envblk.c: Renamed to ...
27069 * lib/envblk.c: ... this.
27071 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
27073 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
27074 (pkglib_MODULES): Add crc.mod.
27075 (hexdump_mod_SOURCES): Add lib/hexdump.c.
27076 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
27077 (crc_mod_SOURCES): New macro.
27078 (crc_mod_CFLAGS): Likewise.
27079 (crc_mod_LDFLAGS): Likewise.
27081 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
27083 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27085 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27089 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27091 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
27093 * commands/help.c: Include <grub/term.h>.
27094 (TERM_WIDTH): Removed. Updated all users.
27096 2008-07-27 Pavel Roskin <proski@gnu.org>
27098 * util/getroot.c (find_root_device): Rephrase a comment to avoid
27099 spurious warnings about a comment within a comment.
27101 2008-07-25 Robert Millan <rmh@aybabtu.com>
27103 * util/getroot.c (find_root_device): Skip devices that match
27104 /dev/dm-[0-9]. This lets the real device be found for any type of
27105 abstraction (LVM, EVMS, RAID..).
27106 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
27107 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
27108 device is found first, find_root_device() will now skip it.
27110 2008-07-24 Pavel Roskin <proski@gnu.org>
27112 * include/grub/types.h: Use __builtin_bswap32() and
27113 __builtin_bswap64() with gcc 4.3 and newer.
27115 2008-07-24 Christian Franke <franke@computer.org>
27117 * util/i386/pc/grub-install.in: If `--debug' is specified,
27118 pass `--verbose' to grub-setup.
27119 Abort script if make_system_path_relative_to_its_root() fails.
27121 2008-07-24 Bean <bean123ch@gmail.com>
27123 * configure.ac: Fixed a bug caused by the previous cygwin patch,
27124 variable `target_platform' should be `platform'.
27126 2008-07-24 Bean <bean123ch@gmail.com>
27128 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
27129 (grub_png_init_fixed_block): New function.
27130 (grub_png_decode_image_data): Handle fixed huffman code compression.
27132 2008-07-24 Bean <bean123ch@gmail.com>
27134 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
27135 (grub_pe2elf_SOURCES): New macro.
27136 (CLEANFILES): Add grub-pe2elf.
27138 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
27139 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
27140 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
27141 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
27142 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
27143 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
27144 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
27145 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
27146 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
27147 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
27148 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
27149 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
27150 (GRUB_PE32_DT_FUNCTION): Likewise.
27151 (GRUB_PE32_REL_I386_DIR32): Likewise.
27152 (GRUB_PE32_REL_I386_REL32): Likewise.
27153 (grub_pe32_symbol): New structure.
27154 (grub_pe32_reloc): Likewise.
27156 * util/grub-pe2elf.c: New file.
27158 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
27159 start symbol in non pc platform.
27161 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
27163 The following patches are from Christian Franke.
27165 * include/grub/dl.h: Remove .previous, gas supports this only
27168 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
27169 Remove .type, gas supports this only for ELF format.
27171 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
27172 nullbytes in symbol table. This fixes an infinite loop if table is
27175 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
27176 TARGET_IMG_LDFLAGS and EXEEXT.
27178 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
27179 TARGET_IMG_LDFLAGS_AC.
27180 (grub_CHECK_STACK_ARG_PROBE): New function.
27182 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
27184 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
27186 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
27187 to set TARGET_IMG_LD* accordingly.
27188 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
27189 Add call to grub_CHECK_STACK_ARG_PROBE.
27190 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
27192 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
27194 * genmk.rb: Add EXEEXT to CLEANFILES.
27196 2008-07-23 Robert Millan <rmh@aybabtu.com>
27198 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
27199 define the codes for arrows and lines used for the menu).
27200 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
27203 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
27204 fonts, because the latter are too slow.
27206 2008-07-21 Bean <bean123ch@gmail.com>
27208 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
27209 a20. Run keyboard test last, as it will cause macbook to halt.
27211 2008-07-18 Pavel Roskin <proski@gnu.org>
27213 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
27214 load foreign architecture modules correctly anyway. Keep
27215 support for loading host architecture modules, whether we
27216 compile them or not.
27218 2008-07-17 Pavel Roskin <proski@gnu.org>
27220 * configure.ac: Use -m32 or -m64 regardless of whether we had to
27221 change target_cpu. The compiler default can mismatch target_cpu
27224 * disk/efi/efidisk.c: Fix format warnings on x86_64.
27225 * kern/efi/efi.c: Likewise.
27227 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
27228 target compiler is functional.
27229 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
27232 * configure.ac: Default to efi platform for x86_64-apple. Allow
27233 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
27234 adjustments from the rest, only do them if target is not
27235 explicitly given. Merge other adjustments with the final sanity
27236 check. Remove an extraneous check for supported CPU. Be
27237 specific which CPU and which platform is not supported.
27239 * configure.ac: Default to pc platform for x86_64.
27241 2008-07-17 Robert Millan <rmh@aybabtu.com>
27243 Partial LinuxBIOS -> Coreboot rename.
27245 * conf/i386-linuxbios.rmk: Renamed to ...
27246 * conf/i386-coreboot.rmk: ... this.
27247 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
27248 * configure.ac: Accept "coreboot" as input platform (but maintain
27249 compatibility with "linuxbios").
27250 * include/grub/i386/linuxbios: Renamed to ...
27251 * include/grub/i386/coreboot: ... this.
27253 2008-07-17 Bean <bean123ch@gmail.com>
27255 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
27256 (appleldr_mod_SOURCE): New variable.
27257 (appleldr_mod_CFLAGS): Likewise.
27258 (appleldr_mod_LDFLAGS): Likewise.
27259 (pci_mod_SOURCES): Likewise.
27260 (pci_mod_CFLAGS): Likewise.
27261 (pci_mod_LDFLAGS): Likewise.
27262 (lspci_mod_SOURCES): Likewise.
27263 (lspci_mod_CFLAGS): Likewise.
27264 (lspci_mod_LDFLAGS): Likewise.
27266 * conf/x86_64-efi.rmk: New file.
27268 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
27270 (grub_efidisk_write): Likewise.
27272 * include/efi/api.h (efi_call_0): New macro.
27273 (efi_call_1): Likewise.
27274 (efi_call_2): Likewise.
27275 (efi_call_3): Likewise.
27276 (efi_call_4): Likewise.
27277 (efi_call_5): Likewise.
27278 (efi_call_6): Likewise.
27280 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
27281 grub_rescue_cmd_chainloader.
27283 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
27284 (grub_pe32_optional_header): Change some fields based on i386 or
27286 (GRUB_PE32_PE32_MAGIC): Likewise.
27288 * include/grub/efi/uga_draw.h: New file.
27290 * include/grub/elf.h (STN_ABS): New constant.
27291 (R_X86_64_NONE): Relocation constant for x86_64.
27292 (R_X86_64_64): Likewise.
27293 (R_X86_64_PC32): Likewise.
27294 (R_X86_64_GOT32): Likewise.
27295 (R_X86_64_PLT32): Likewise.
27296 (R_X86_64_COPY): Likewise.
27297 (R_X86_64_GLOB_DAT): Likewise.
27298 (R_X86_64_JUMP_SLOT): Likewise.
27299 (R_X86_64_RELATIVE): Likewise.
27300 (R_X86_64_GOTPCREL): Likewise.
27301 (R_X86_64_32): Likewise.
27302 (R_X86_64_32S): Likewise.
27303 (R_X86_64_16): Likewise.
27304 (R_X86_64_PC16): Likewise.
27305 (R_X86_64_8): Likewise.
27306 (R_X86_64_PC8): Likewise.
27308 * include/grub/i386/efi/pci.h: New file.
27310 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
27311 Change it value based on platform.
27312 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
27313 (GRUB_E820_RAM): Likewise.
27314 (GRUB_E820_RESERVED): Likewise.
27315 (GRUB_E820_ACPI): Likewise.
27316 (GRUB_E820_NVS): Likewise.
27317 (GRUB_E820_EXEC_CODE): Likewise.
27318 (GRUB_E820_MAX_ENTRY): Likewise.
27319 (grub_e820_mmap): New structure.
27320 (linux_kernel_header): Change the efi field according to different
27321 kernel version, also field from linux_kernel_header.
27323 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
27325 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
27326 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
27327 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
27328 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
27329 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
27330 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
27331 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
27332 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
27333 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
27334 (GRUB_PCI_ADDR_IO_MASK): Likewise.
27336 * include/grub/x86_64/efi/kernel.h: New file.
27338 * include/grub/x86_64/efi/loader.h: Likewise.
27340 * include/grub/x86_64/efi/machine.h: Likewise.
27342 * include/grub/x86_64/efi/pci.h: Likewise.
27344 * include/grub/x86_64/efi/time.h: Likewise.
27346 * include/grub/x86_64/linux.h: Likewise.
27348 * include/grub/x86_64/setjmp.h: Likewise.
27350 * include/grub/x86_64/time.h: Likewise.
27352 * include/grub/x86_64/types.h: Likewise.
27354 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
27355 GRUB_TARGET_SIZEOF_VOID_P.
27357 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
27358 (grub_efi_locate_handle): Likewise.
27359 (grub_efi_open_protocol): Likewise.
27360 (grub_efi_set_text_mode): Likewise.
27361 (grub_efi_stall): Likewise.
27362 (grub_exit): Likewise.
27363 (grub_reboot): Likewise.
27364 (grub_halt): Likewise.
27365 (grub_efi_exit_boot_services): Likewise.
27366 (grub_get_rtc): Likewise.
27368 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
27369 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
27370 (grub_efi_allocate_pages): Wrap efi calls.
27371 (grub_efi_free_pages): Wrap efi calls.
27372 (grub_efi_get_memory_map): Wrap efi calls.
27374 * kern/x86_64/dl.c: New file.
27376 * kern/x86_64/efi/callwrap.S: Likewise.
27378 * kern/x86_64/efi/startup.S: Likewise.
27380 * loader/efi/appleloader.c: Likewise.
27382 * loader/efi/chainloader.c (cmdline): New variable.
27383 (grub_chainloader_unload): Wrap efi calls.
27384 (grub_chainloader_boot): Likewise.
27385 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
27388 * loader/efi/chainloader_normal.c (chainloader_command):
27389 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
27392 * loader/i386/efi/linux.c (allocate_pages): Change allocation
27394 (grub_e820_add_region): New function.
27395 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
27397 (grub_find_video_card): New function.
27398 (grub_linux_setup_video): New function.
27399 (grub_rescue_cmd_linux): Probe for video information.
27401 * normal/x86_64/setjmp.S: New file.
27403 * term/efi/console.c (map_char): New function.
27404 (grub_console_putchar): Map unicode char.
27405 (grub_console_checkkey): Wrap efi calls.
27406 (grub_console_getkey): Likewise.
27407 (grub_console_getwh): Likewise.
27408 (grub_console_gotoxy): Likewise.
27409 (grub_console_cls): Likewise.
27410 (grub_console_setcolorstate): Likewise.
27411 (grub_console_setcursor): Likewise.
27413 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
27415 2008-07-16 Pavel Roskin <proski@gnu.org>
27417 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
27420 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
27421 pointer, not an integer. This fixes a warning and prevents
27422 precision loss on 64-bit systems.
27423 (relocate_addresses): Remove unneeded cast.
27425 2008-07-15 Pavel Roskin <proski@gnu.org>
27427 * kern/i386/ieee1275/init.c: Include grub/cache.h.
27429 * term/ieee1275/ofconsole.c: Disable code unused on i386.
27431 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
27432 Fix comparison between signed and unsigned.
27434 * include/grub/i386/ieee1275/console.h: Declare
27435 grub_console_init() and grub_console_fini().
27437 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
27438 It's empty and unused.
27440 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
27441 beginning to avoid warnings with some compilers.
27443 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
27444 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
27446 2008-07-14 Pavel Roskin <proski@gnu.org>
27448 * kern/env.c (grub_register_variable_hook): Don't copy empty
27449 string, it leaks memory. Pass "" to grub_env_set(), it should
27450 handle constant strings.
27452 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
27453 * commands/cmp.c (grub_cmd_cmp): Likewise.
27454 * kern/dl.c (grub_dl_flush_cache): Likewise.
27455 (grub_dl_load_core): Likewise.
27456 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
27457 (grub_elf64_load_phdrs): Likewise.
27459 2008-07-13 Pavel Roskin <proski@gnu.org>
27461 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
27462 between signed and unsigned.
27463 (LzmaEnc_Finish): Fix warning about an unused parameter.
27465 2008-07-13 Bean <bean123ch@gmail.com>
27467 * Makefile.in (enable_lzo): New rule.
27469 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
27471 * configure.ac (ENABLE_LZO): New option --enable-lzo.
27473 * boot/i386/pc/lnxboot.S: #include <config.h>.
27475 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
27476 its value according to the compression algorithm used, lzo or lzma.
27478 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
27479 compression algorithm according to configure macro.
27481 * kern/i386/pc/startup.S (codestart): Likewise.
27483 * kern/i386/pc/lzma_decode.S: New file.
27485 * include/grub/lib/LzFind.h: Likewise.
27487 * include/grub/lib/LzHash.h: Likewise.
27489 * include/grub/lib/LzmaDec.h: Likewise.
27491 * include/grub/lib/LzmaEnc.h: Likewise.
27493 * include/grub/lib/LzmaTypes.h: Likewise.
27495 * lib/LzFind.c: Likewise.
27497 * lib/LzmaDec.c: Likewise.
27499 * lib/LzmaEnc.c: Likewise.
27501 2008-07-13 Bean <bean123ch@gmail.com>
27503 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
27504 (grub_ext4_extent_header): New structure.
27505 (grub_ext4_extent): Likewise.
27506 (grub_ext4_extent_idx): Likewise.
27507 (grub_ext4_find_leaf): New function.
27508 (grub_ext2_read_block): Handle extents.
27510 2008-07-12 Robert Millan <rmh@aybabtu.com>
27512 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
27514 2008-07-11 Robert Millan <rmh@aybabtu.com>
27516 * util/grub.d/40_custom.in: New file. Example on how to add custom
27517 entries to /etc/grub.d.
27518 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
27519 40_custom (implicitly, by merging all the grub.d rules).
27521 2008-07-11 Pavel Roskin <proski@gnu.org>
27523 * commands/read.c (grub_getline): Fix invalid memory access.
27524 Don't add newline to the variable value.
27526 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
27527 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
27528 (serial_hw_get_port): Check validity of the port number.
27529 (grub_cmd_serial): Check return value of serial_hw_get_port().
27531 2008-07-07 Pavel Roskin <proski@gnu.org>
27533 * boot/i386/pc/diskboot.S (notification_string): Replace
27534 "Loading kernel" with just "loading". This is shorter, less
27535 confusing and saves a few bytes for possible future changes.
27537 2008-07-05 Pavel Roskin <proski@gnu.org>
27539 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
27540 size for ATAPI devices, they are undefined. Output sector
27541 number in decimal form.
27543 * disk/ata.c: Use named constants for status bits.
27545 2008-07-04 Pavel Roskin <proski@gnu.org>
27547 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
27548 grub_addr_t before casting it to the void pointer to fix a
27549 warning. Non-addressable regions are discarded earlier.
27550 (grub_arch_modules_addr): Cast _end to grub_addr_t.
27551 * kern/i386/linuxbios/table.c: Include grub/misc.h.
27552 (check_signature): Don't shadow table_header.
27553 (grub_linuxbios_table_iterate): Cast numeric constants to
27554 grub_linuxbios_table_header_t.
27555 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
27558 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
27561 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
27562 pointer, which can cause warnings. Support 64-bit addresses.
27564 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
27565 of sizeof(long). This fixes PowerPC image generation on x86_64.
27567 2008-07-04 Robert Millan <rmh@aybabtu.com>
27569 This fixes a performance issue when pc & gpt partmap iterators
27570 didn't abort iteration even after our hook found what it was
27571 looking for (often causing expensive probes of non-existent drives).
27573 Some callers relied on previous buggy behaviour, since they would
27574 raise an error when their own hooks caused early abortion of its
27577 * kern/device.c (grub_device_open): Improve error message.
27578 * disk/lvm.c (grub_lvm_open): Likewise.
27579 * disk/raid.c (grub_raid_open): Likewise.
27581 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
27582 when hook requests it, independently of grub_errno.
27583 (pc_partition_map_probe): Do not fail when find_func() caused
27584 early abortion of pc_partition_map_iterate().
27586 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
27587 when hook requests it, independently of grub_errno.
27588 (gpt_partition_map_probe): Do not fail when find_func() caused
27589 early abortion of gpt_partition_map_iterate().
27591 * kern/partition.c (grub_partition_iterate): Abort parent iteration
27592 when hook requests it, independently of grub_errno. Do not fail when
27593 part_map_iterate_hook() caused early abortion of p->iterate().
27595 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
27596 when grub_partition_iterate() returned with non-zero.
27598 2008-07-03 Pavel Roskin <proski@gnu.org>
27600 * disk/ata.c (grub_ata_pio_write): Check status before writing,
27601 like we do in grub_ata_pio_read().
27602 (grub_ata_readwrite): Always write individual sectors. Fix the
27603 sector count for the remainder.
27604 (grub_ata_write): Enable writing to ATA devices. Correctly
27605 report error for ATAPI devices.
27607 2008-07-02 Pavel Roskin <proski@gnu.org>
27609 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
27612 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
27613 for every read sector, we already increment it for the whole
27614 batch. This fixes reading more than 256 sectors at once.
27616 * util/grub-editenv.c (cmd_info): Cast argument to long
27617 explicitly. ptrdiff_t reduces to int on i386.
27619 * util/grub-editenv.c (main): Be specific which parameter is
27622 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
27623 (memdisk): Make memdisk_orig_addr a pointer.
27625 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
27626 for file offsets, use grub_off_t instead. Fix printf format
27629 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
27630 there. Real unexpected warnings should not drown in the noise
27631 about known problems.
27633 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
27634 grub_disk_addr_t for memory addresses.
27636 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
27637 explicitly to fix a warning.
27639 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
27641 * Makefile.in (MODULE_LDFLAGS): New variable.
27642 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
27643 the linker accepts --build-id=none.
27644 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
27646 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
27648 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
27649 those in Linux XFS code. Provide a way to access 64-bit parent
27651 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
27652 the end of struct grub_xfs_dir_header.
27654 2008-07-02 Bean <bean123ch@gmail.com>
27656 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
27657 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
27658 and GRUB_IEEE1275_FLAG_NO_ANSI.
27660 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
27661 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
27662 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
27664 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
27665 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
27667 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
27668 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
27670 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
27671 esc sequence on non ANSI terminal.
27672 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
27674 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
27677 2008-07-02 Bean <bean123ch@gmail.com>
27679 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
27680 (grub_editenv_SOURCES): New variable.
27681 (pkglib_MODULES): Add loadenv.mod.
27682 (loadenv_mod_SOURCES): New variable.
27683 (loadenv_mod_CFLAGS): Likewise.
27684 (loadenv_mod_LDFLAGS): Likewise.
27686 * include/grub/envblk.h: New file.
27688 * util/envblk.c: New file.
27690 * util/grub-editenv.c: New file.
27692 * commands/loadenv.c: New file.
27694 2008-07-01 Pavel Roskin <proski@gnu.org>
27696 * include/multiboot2.h (struct multiboot_tag_module): Use char,
27697 not unsigned char. This fixes warnings and is consistent with
27700 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
27702 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
27704 * term/tparm.c (analyze): Always set *popcount.
27706 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
27707 cast to fix a warning.
27709 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
27710 cast to suppress a warning.
27712 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
27713 grub_fshelp_read_file() expects.
27715 * fs/fat.c: Fix UUID calculation on big-endian systems. We
27716 write uuid as a 32-bit value in CPU byte order, so declare and
27719 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
27720 long if the format specifier expects it.
27721 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
27722 * partmap/pc.c (pc_partition_map_iterate): Likewise.
27723 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
27724 long to fix a warning.
27725 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
27726 grub_dprintf() arguments to fix warnings.
27728 2008-06-30 Pavel Roskin <proski@gnu.org>
27730 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
27731 install_bsd_part immediately before core.img is embedded or
27732 modified on disk. This fixes core.img verification if core.img
27733 cannot be embedded.
27735 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
27736 core_path to calculate the blocklist.
27737 Patch from Javier Martín <lordhabbit@gmail.com>
27739 2008-06-29 Robert Millan <rmh@aybabtu.com>
27741 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
27742 block to disk block.
27743 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
27744 Patch from Niels Böhm <bitbucket@arcor.de>
27746 2008-06-29 Robert Millan <rmh@aybabtu.com>
27748 * util/update-grub_lib.in (font_path): Search for fonts in
27749 /boot/grub first, which is more likely to be readable (we aren't
27750 deciding where fonts live, just looking for them).
27752 2008-06-26 Pavel Roskin <proski@gnu.org>
27754 * util/biosdisk.c (read_device_map): Don't leave dead map
27755 entries for devices failing stat() check.
27757 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
27758 core_path_dev for the core.img path on the target device.
27760 2008-06-26 Robert Millan <rmh@aybabtu.com>
27762 * disk/fs_uuid.c: New file.
27763 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
27764 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
27765 (fs_uuid_mod_LDFLAGS): New variables.
27766 * include/grub/disk.h (grub_disk_dev_id): Add
27767 `GRUB_DISK_DEVICE_UUID_ID'.
27768 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
27769 implement iterate().
27771 2008-06-26 Robert Millan <rmh@aybabtu.com>
27773 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
27774 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
27775 Linux image includes no initrd.
27777 2008-06-21 Javier Martín <lordhabbit@gmail.com>
27779 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
27780 call to resolve the core image location that effectively appended the
27783 2008-06-21 Robert Millan <rmh@aybabtu.com>
27785 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
27788 * util/grub.d/10_hurd.in: ... to here ...
27789 * util/grub.d/10_linux.in: ... and here.
27791 2008-06-19 Robert Millan <rmh@aybabtu.com>
27793 * kern/main.c (grub_main): Export `prefix' variable immediately
27794 after it has been set by grub_machine_set_prefix().
27796 2008-06-19 Robert Millan <rmh@aybabtu.com>
27798 * commands/search.c (search_label, search_fs_uuid, search_file): Print
27799 search result when not saving to variable, not the other way around.
27800 When saving to variable, abort iteration as soon as a match is found.
27802 2008-06-19 Robert Millan <rmh@aybabtu.com>
27804 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
27805 check for partition that provides /boot/grub. Its logic is flawed,
27806 as it prevents prepare_grub_to_access_device() from being called
27809 2008-06-19 Robert Millan <rmh@aybabtu.com>
27811 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
27812 "insmod" command directly when abstraction modules are needed,
27813 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
27814 since it had already been processed).
27816 2008-06-19 Pavel Roskin <proski@gnu.org>
27818 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
27819 changed. This is needed in case GRUB_LIBDIR changes.
27820 * conf/i386-ieee1275.rmk: Likewise.
27821 * conf/i386-linuxbios.rmk: Likewise.
27822 * conf/i386-pc.rmk: Likewise.
27823 * conf/powerpc-ieee1275.rmk: Likewise.
27825 2008-06-18 Pavel Roskin <proski@gnu.org>
27827 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
27828 kernel_elf_symlist.c to symlist.c for consistency with other
27829 architectures. Update all users.
27830 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
27832 2008-06-18 Robert Millan <rmh@aybabtu.com>
27834 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
27837 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
27838 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
27839 a RAID device, run setup() for all members independently on whether
27840 LVM abstraction is being used.
27841 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
27842 If grub-mkimage has set `*install_dos_part == -2', don't override this
27844 Perform *install_dos_part adjustments independently on whether
27845 we're embedding or not.
27846 Clarify error message when image is too big for embedding.
27847 Remove duplicate *install_dos_part stanza.
27849 2008-06-17 Robert Millan <rmh@aybabtu.com>
27851 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
27852 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
27854 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
27855 values in grub_ofconsole_normal_color and
27856 grub_ofconsole_highlight_color (they're not directly related to
27857 background and foreground).
27858 (grub_ofconsole_setcolorstate): Extract background and foreground
27859 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
27861 2008-06-17 Robert Millan <rmh@aybabtu.com>
27863 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
27864 /boot/grub for the check in last commit, not /boot (they could be
27865 different partitions).
27867 2008-06-16 Robert Millan <rmh@aybabtu.com>
27869 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
27870 asked to setup access for the same partition that provides /boot,
27871 don't bother using UUIDs since our root already has the value we
27874 2008-06-16 Robert Millan <rmh@aybabtu.com>
27876 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
27878 Patch from Sven Mueller <sven@debian.org>.
27880 2008-06-16 Robert Millan <rmh@aybabtu.com>
27882 * util/update-grub.in: Check for $EUID instead of $UID.
27883 Reported by Vincent Zweije.
27885 2008-06-16 Bean <bean123ch@gmail.com>
27887 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
27888 (grub_ext2_read_block): Likewise.
27889 (grub_ext2_read_inode): Likewise.
27890 (grub_ext2_mount): Likewise.
27891 (grub_ext2_close): Likewise.
27892 (grub_ext3_get_journal): Removed.
27894 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
27895 (grub_reiserfs_read_symlink): Likewise.
27896 (grub_reiserfs_mount): Likewise.
27897 (grub_reiserfs_open): Likewise.
27898 (grub_reiserfs_read): Likewise.
27899 (grub_reiserfs_close): Likewise.
27900 (grub_reiserfs_get_journal): Removed.
27902 * fs/fshelp.c (grub_fshelp_read): Removed.
27903 (grub_fshelp_map_block): Likewise.
27905 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
27906 (grub_fshelp_journal): Likewise.
27907 (grub_fshelp_read): Likewise.
27908 (grub_fshelp_map_block): Likewise.
27910 2008-06-16 Pavel Roskin <proski@gnu.org>
27912 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
27913 floating point anymore.
27914 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
27916 2008-06-15 Pavel Roskin <proski@gnu.org>
27918 * commands/ls.c (grub_ls_list_files): Use integer calculations
27919 for human readable format, avoid floating point use.
27920 * kern/misc.c (grub_ftoa): Remove.
27921 (grub_vsprintf): Remove floating point support.
27923 2008-06-15 Robert Millan <rmh@aybabtu.com>
27925 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
27927 Reported by Max Vozeler.
27929 2008-06-15 Robert Millan <rmh@aybabtu.com>
27931 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
27932 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
27934 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
27935 the beginning of the prefix.
27937 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
27938 It is assumed that if we have a memdisk, grub-mkimage has set
27939 grub_prefix to include the "(memdisk)" drive in it.
27941 2008-06-15 Robert Millan <rmh@aybabtu.com>
27943 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
27944 Initialize keyboard controller after registering the terminal, so that
27945 grub_printf() can be called from grub_keyboard_controller_init().
27947 2008-06-15 Robert Millan <rmh@aybabtu.com>
27949 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
27950 extent-btree which is written as big endian on disk.
27951 Reported by Alain Greppin <al@chilibi.org>.
27953 2008-06-14 Robert Millan <rmh@aybabtu.com>
27955 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
27956 * util/i386/pc/grub-install.in (modules): Likewise.
27958 2008-06-13 Pavel Roskin <proski@gnu.org>
27960 * commands/ls.c (grub_ls_list_files): Fix format warnings.
27962 2008-06-13 Bean <bean123ch@gmail.com>
27964 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
27966 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
27968 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
27969 to indicate sparse block.
27971 2008-06-12 Pavel Roskin <proski@gnu.org>
27973 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
27974 number, grub_fshelp_read() does it for us.
27976 * fs/fshelp.c (grub_fshelp_read): New function. Implement
27977 linear disk read with journal translation.
27978 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
27979 * include/grub/fshelp.h: Declare grub_fshelp_read().
27981 2008-06-09 Pavel Roskin <proski@gnu.org>
27983 * fs/minix.c (grub_minix_mount): Handle error reading
27986 2008-06-08 Robert Millan <rmh@aybabtu.com>
27988 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
27989 don't append the RAID prefix afterwards.
27990 Reported by Clint Adams.
27992 2008-06-08 Robert Millan <rmh@aybabtu.com>
27994 Based on description from Pavel:
27995 * kern/disk.c (grub_disk_check_range): Rename to ...
27996 (grub_disk_adjust_range): ... this. Add a comment explaining the
27997 tasks performed by this function.
27999 2008-06-08 Robert Millan <rmh@aybabtu.com>
28001 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
28002 `num_serial' (for consistency with other variables).
28003 (struct grub_ntfs_data): Add `uuid' member.
28004 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
28005 (grub_ntfs_uuid): New function.
28006 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
28008 2008-06-07 Pavel Roskin <proski@gnu.org>
28010 * util/biosdisk.c (open_device): Revert last change to the
28011 function, it broke installation. The sector needs to be
28012 different dependent on which device is opened.
28014 2008-06-06 Robert Millan <rmh@aybabtu.com>
28016 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
28017 rest of GRUB, and breakage doesn't happen if its value were modified.
28019 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
28020 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
28021 a constant (same value).
28022 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
28023 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
28025 2008-06-06 Robert Millan <rmh@aybabtu.com>
28027 * util/biosdisk.c (open_device): Do not modify sector offset when
28028 accessing a partition. kern/disk.c already handles this for us.
28030 2008-06-06 Robert Millan <rmh@aybabtu.com>
28032 * util/grub-emu.c (grub_machine_init): Move code in this function from
28034 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
28035 segfault in case grub_printf() is called).
28037 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
28038 grub_probe. Update all users not to explicitly add it again.
28039 (grub_device): New variable; contains corresponding device for grubdir.
28040 (fs_module, partmap_module, devabstraction_module): Pass
28041 `--device ${grub_device}' to grub_probe to avoid traversing /dev
28044 2008-06-05 Robert Millan <rmh@aybabtu.com>
28046 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
28047 is found, print it (same layout as with labels).
28049 2008-06-04 Robert Millan <rmh@aybabtu.com>
28051 * util/biosdisk.c (get_drive): Rename to ...
28052 (find_grub_drive): ... this. Update all users.
28054 (get_os_disk): Rename to ...
28055 (convert_system_partition_to_system_disk): ... this. Update all users.
28057 (find_drive): Rename to ...
28058 (find_system_device): ... this. Update all users.
28060 2008-06-04 Robert Millan <rmh@aybabtu.com>
28062 * util/biosdisk.c (get_os_disk): Handle IDA devices.
28063 * util/grub-mkdevicemap.c (get_mmc_disk_name)
28064 (make_device_map): Likewise.
28066 2008-06-01 Robert Millan <rmh@aybabtu.com>
28068 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
28069 before dereferencing it.
28071 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
28072 union with fat12/fat16-specific ones. Add some new fields, including
28073 `num_serial' for both versions.
28074 (struct grub_fat_data): Add `uuid' member.
28075 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
28076 names. Initialize `data->uuid' using `num_serial'.
28077 (grub_fat_uuid): New function.
28078 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
28080 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
28081 (grub_reiserfs_uuid): New function.
28082 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
28085 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
28086 (grub_xfs_uuid): New function.
28087 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
28089 2008-06-01 Robert Millan <rmh@aybabtu.com>
28091 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
28092 code that is backward compatible with pre-uuid search command.
28094 2008-05-31 Robert Millan <rmh@aybabtu.com>
28096 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
28097 floppies after everything else, to ensure floppy drive isn't accessed
28098 unnecessarily (patch from Bean).
28100 2008-05-31 Robert Millan <rmh@aybabtu.com>
28102 * commands/search.c (search_label, search_fs_uuid, search_file): Do
28103 not print device names when we were asked to set a variable.
28105 2008-05-31 Robert Millan <rmh@aybabtu.com>
28107 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
28108 using "cursor-on" and "cursor-off" commands (understood at least by
28109 the Open Firmware flavour on OLPC).
28111 2008-05-31 Michael Gorven <michael@gorven.za.net>
28113 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
28114 on and off sequences.
28116 2008-05-31 Robert Millan <rmh@aybabtu.com>
28118 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
28119 * util/update-grub.in: Likewise.
28121 2008-05-30 Pavel Roskin <proski@gnu.org>
28123 * util/biosdisk.c (linux_find_partition): Simplify logic and
28124 make the code more universal. Keep special processing for
28125 devfs, but use a simple rule for all other devices. If the
28126 device ends with a number, append 'p' and the partition number.
28127 Otherwise, append only the partition number.
28129 2008-05-30 Robert Millan <rmh@aybabtu.com>
28131 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
28132 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
28133 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
28134 the `root' parameter to Linux.
28136 2008-05-30 Robert Millan <rmh@aybabtu.com>
28138 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
28139 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
28140 --fs_uuid with --fs-uuid.
28141 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
28142 all filesystems support them).
28144 2008-05-30 Robert Millan <rmh@aybabtu.com>
28146 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
28147 grub_printf() flags, since we're printing in units of 2 bytes.
28149 2008-05-30 Robert Millan <rmh@aybabtu.com>
28151 * util/grub.d/00_header.in: Remove obsolete comment referencing
28152 convert_system_path_to_grub_path().
28153 * util/update-grub.in: Likewise.
28154 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
28155 (convert_system_path_to_grub_path): Add a warning message explaining
28156 that this function is deprecated. Rely on is_path_readable_by_grub()
28157 for the readability checks.
28158 (font_path): Use is_path_readable_by_grub() for the readability
28159 check rather than convert_system_path_to_grub_path().
28161 2008-05-30 Robert Millan <rmh@aybabtu.com>
28163 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
28164 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
28165 converting it first.
28166 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
28167 grub.cfg for access to font file, and afterwards call it again to set
28170 2008-05-30 Robert Millan <rmh@aybabtu.com>
28172 * commands/search.c (options): Add --fs_uuid option.
28173 (search_fs_uuid): New function.
28174 (grub_cmd_search): Fix --set argument passing.
28175 Use search_fs_uuid() when requested via --fs_uuid.
28176 (grub_search_init): Update help message.
28177 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
28178 and redeclare it as an array of 16-bit words.
28179 (grub_ext2_uuid): New function.
28180 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
28181 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
28182 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
28183 (GRUB_DEVICE_BOOT_UUID): New variables.
28184 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
28185 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
28187 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
28188 just assume `root' variable has the right value.
28189 * util/grub.d/10_linux.in: Likewise.
28190 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
28192 (main): Recognise `-t fs_uuid' argument.
28194 2008-05-30 Robert Millan <rmh@aybabtu.com>
28196 * util/biosdisk.c (map): Redefine structure to hold information
28197 about GRUB drive name.
28198 (get_drive): Reimplement without assuming (and verifying) BIOS-like
28200 (call_hook): Remove.
28201 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
28202 member. Assume drive has partitions.
28203 (grub_util_biosdisk_open): Access device names via `.device' struct
28205 (open_device): Likewise.
28206 (find_drive): Likewise.
28207 (read_device_map): Adjust map[] usage to match the new struct
28208 definition. Don't check for duplicates (still possible, but not cheap
28210 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
28211 (make_device_name): Remove assumption of BIOS-like drive names.
28213 2008-05-30 Pavel Roskin <proski@gnu.org>
28215 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
28216 compiling execute.c doesn't need grub_script.tab.h anymore.
28217 (normal/command.c_DEPENDENCIES): Likewise.
28218 (normal/function.c_DEPENDENCIES): Likewise.
28219 * conf/i386-ieee1275.rmk: Likewise.
28220 * conf/i386-linuxbios.rmk: Likewise.
28221 * conf/i386-pc.rmk: Likewise.
28222 * conf/powerpc-ieee1275.rmk: Likewise.
28223 * conf/sparc64-ieee1275.rmk: Likewise.
28225 2008-05-29 Pavel Roskin <proski@gnu.org>
28227 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
28228 when scanning metadata for volume group name.
28230 * include/grub/script.h: Don't include grub_script.tab.h. It's
28231 a generated file, which may only be included from the files with
28232 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
28233 use union YYSTYPE, as the later allows forward declaration.
28234 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
28236 2008-05-29 Robert Millan <rmh@aybabtu.com>
28238 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
28239 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
28240 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
28241 (grub_console_checkkey): Add grub_dprintf() call to report unknown
28244 2008-05-29 Robert Millan <rmh@aybabtu.com>
28246 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
28247 control key combinations.
28249 2008-05-29 Robert Millan <rmh@aybabtu.com>
28251 * util/powerpc/ieee1275/grub-install.in: Move from here ...
28252 * util/ieee1275/grub-install.in: ... to here.
28253 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
28254 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
28255 (grub_install_SOURCES): Likewise.
28257 2008-05-29 Robert Millan <rmh@aybabtu.com>
28259 * fs/affs.c: Update copyright year.
28260 * fs/ext2.c: Likewise.
28261 * fs/fshelp.c: Likewise.
28262 * fs/hfsplus.c: Likewise.
28263 * fs/ntfs.c: Likewise.
28264 * fs/xfs.c: Likewise.
28265 * include/grub/fshelp.h: Likewise.
28266 * util/grub-mkdevicemap.c: Likewise.
28268 2008-05-28 Robert Millan <rmh@aybabtu.com>
28270 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
28271 might need to be fatfs to support some firmware implementations
28274 2008-05-28 Robert Millan <rmh@aybabtu.com>
28276 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
28278 * util/grub-mkdevicemap.c (get_mmc_disk_name)
28279 (make_device_map): Likewise.
28281 2008-05-20 Bean <bean123ch@gmail.com>
28283 * fs/fshelp.c (grub_fshelp_map_block): New function.
28284 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
28285 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
28287 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
28288 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
28289 (grub_fshelp_journal): New structure.
28290 (grub_fshelp_map_block): New function prototype.
28291 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
28292 (grub_fshelp_map_block): Likewise.
28294 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
28295 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
28296 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
28297 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
28298 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
28299 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
28300 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
28301 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
28302 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
28303 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
28304 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
28305 (grub_ext2_sblock): New members for journal support.
28306 (grub_ext3_journal_header): New structure.
28307 (grub_ext3_journal_revoke_header): Likewise.
28308 (grub_ext3_journal_block_tag): Likewise.
28309 (grub_ext3_journal_sblock): Likewise.
28310 (grub_fshelp_node): New members logfile and journal.
28311 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
28312 grub_fshelp_map_block to get real block number.
28313 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
28315 (grub_ext2_read_inode): Likewise.
28316 (grub_ext3_get_journal): New function.
28317 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
28318 (grub_ext2_close): Release memory used by journal.
28320 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
28321 (REISERFS_MAGIC_DESC_BLOCK): New macro.
28322 (grub_reiserfs_transaction_header): Renamed to
28323 grub_reiserfs_description_block, replace field data with real_blocks.
28324 (grub_reiserfs_commit_block): New structure.
28325 (grub_reiserfs_data): New member journal.
28326 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
28328 (grub_reiserfs_read_symlink): Likewise.
28329 (grub_reiserfs_iterate_dir): Likewise.
28330 (grub_reiserfs_open): Likewise.
28331 (grub_reiserfs_read): Likewise.
28332 (grub_reiserfs_get_journal): New function.
28333 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
28334 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
28335 using grub_reiserfs_get_journal.
28336 (grub_reiserfs_close): Release memory used by journal.
28338 * fs/affs.c (grub_affs_read_block): Change block type to
28339 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
28341 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
28343 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
28345 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
28347 * fs/udf.c (grub_udf_read_block): Change block type to
28348 grub_disk_addr_t. Use type cast to avoid warning.
28350 * fs/xfs.c (grub_xfs_read_block): Likewise.
28352 2008-05-16 Christian Franke <franke@computer.org>
28354 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
28355 to ensure that break with ESC will always work.
28356 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
28357 Remove ESC from keyboard queue.
28359 2008-05-16 Christian Franke <franke@computer.org>
28361 * util/biosdisk.c: [__CYGWIN__] Add includes.
28362 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
28363 (get_os_disk): Move variable declarations to OS specific
28364 parts to avoid warning.
28365 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
28366 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
28367 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
28369 * util/getroot.c: [__CYGWIN__] Add includes.
28370 (strip_extra_slashes): Fix "/" case.
28371 [__CYGWIN__] (get_win32_path): New function.
28372 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
28373 [__CYGWIN__] (find_root_device): Disable.
28374 [__CYGWIN__] (get_bootsec_serial): New function.
28375 [__CYGWIN__] (find_cygwin_root_device): Likewise.
28376 [__linux__] (grub_guess_root_device): Add early returns to simplify
28378 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
28379 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
28380 check for Linux only.
28382 2008-05-15 Bean <bean123ch@gmail.com>
28384 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
28385 keyboard hang problem in apple's intel mac.
28387 2008-05-09 Robert Millan <rmh@aybabtu.com>
28389 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
28391 * util/grub-mkdevicemap.c (get_virtio_disk_name)
28392 (make_device_map): Likewise.
28393 Reported by Aurelien Jarno <aurel32@debian.org>
28395 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
28397 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
28398 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
28399 (make_device_map): Output entries for xvd type disks.
28401 2008-05-07 Robert Millan <rmh@aybabtu.com>
28403 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
28405 * util/grub-mkdevicemap.c (get_cciss_disk_name)
28406 (make_device_map): Likewise.
28407 Reported by Roland Dreier <rdreier@cisco.com>
28409 2008-05-07 Robert Millan <rmh@aybabtu.com>
28411 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
28412 grub_strstr() call. Correct a few mistakes in failure path handling.
28414 2008-05-06 Robert Millan <rmh@aybabtu.com>
28416 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
28417 Do not print a trailing slash (therefore, the root directory is an
28419 (convert_system_path_to_grub_path): Do not remove trailing slash
28420 from make_system_path_relative_to_its_root() output.
28422 * util/i386/pc/grub-install.in: Add trailing slash to output from
28423 make_system_path_relative_to_its_root().
28425 2008-05-06 Robert Millan <rmh@aybabtu.com>
28427 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
28428 ensures that output lines aren't intermangled with those sent to
28429 stderr (via grub_util_info()).
28430 * util/grub-probe.c (grub_refresh): Likewise.
28431 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
28433 2008-05-05 Christian Franke <franke@computer.org>
28435 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
28436 Add Cygwin device names.
28437 (get_ide_disk_name) [__CYGWIN__]: Likewise.
28438 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
28439 (check_device): Return error instead of success on empty name.
28440 (make_device_map): Move label inside linux specific code to
28441 prevent compiler warning.
28443 2008-04-30 Robert Millan <rmh@aybabtu.com>
28445 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
28446 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
28448 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
28450 2008-04-29 Robert Millan <rmh@aybabtu.com>
28452 * docs/grub.cfg: New file (example GRUB configuration).
28454 2008-04-26 Robert Millan <rmh@aybabtu.com>
28456 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
28457 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
28458 and `disk/ieee1275/nand.c'.
28460 2008-04-25 Bean <bean123ch@gmail.com>
28462 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
28465 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
28466 change the buffer size to 4096 for cdrom device.
28468 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
28470 (_linux_mod_SOURCES): New variable.
28471 (_linux_mod_CFLAGS): Likewise.
28472 (_linux_mod_LDFLAGS): Likewise.
28473 (linux_mod_SOURCES): Likewise.
28474 (linux_mod_CFLAGS): Likewise.
28475 (linux_mod_LDFLAGS): Likewise.
28476 (nand_mod_SOURCES): Likewise.
28477 (nand_mod_CFLAGS): Likewise.
28478 (nand_mod_LDFLAGS): Likewise.
28480 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
28481 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
28482 type property. (nand device in olpc don't have this property)
28484 * include/grub/disk.h (grub_disk_dev_id): New macro
28485 GRUB_DISK_DEVICE_NAND_ID.
28487 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
28488 function prototype.
28489 (grub_rescue_cmd_initrd): Likewise.
28491 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
28492 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
28493 ofw_cif_handler and ofw_idt, adjust padding number.
28495 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
28496 GRUB_MACHINE_IEEE1275 is defined.
28498 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
28499 Use NESTED_FUNC_ATTR attribute on the hook parameter.
28501 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
28502 on nested function heap_init.
28503 (grub_upper_mem): New variable for i386-ieee1275.
28504 (grub_get_extended_memory): New function for i386-ieee1275.
28505 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
28507 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
28508 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
28511 * loader/i386/ieee1275/linux.c: New file.
28513 * loader/i386/ieee1275/linux_normal.c: New file.
28515 * disk/ieee1275/nand.c: New file.
28517 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
28519 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
28521 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
28523 2008-04-18 Robert Millan <rmh@aybabtu.com>
28525 Restructures early code path on ieee1275 to unify grub_main() as
28526 the first C function that is executed in every platform.
28528 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
28529 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
28531 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
28532 * kern/ieee1275/cmain.c (cmain): Rename to ...
28533 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
28534 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
28537 2008-04-18 Robert Millan <rmh@aybabtu.com>
28539 * util/update-grub.in: Fix syntax error when setting
28540 `GRUB_PRELOAD_MODULES'.
28541 Reported by Stephane Chazelas <stephane@artesyncp.com>
28543 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
28545 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
28546 section into account, newer toolchains generate unique build ids
28547 * configure.ac: remove the test for --build-id=none acceptance,
28548 we want build ids to be preserved
28549 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
28550 far from other sections don't cause the raw binary images grow
28553 2008-04-15 Robert Millan <rmh@aybabtu.com>
28555 * disk/lvm.c: Update copyright year.
28556 * kern/misc.c: Likewise.
28558 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
28560 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
28561 there is no memory left for physical volume name.
28563 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
28565 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
28566 volume name mapping to support bigger than 9 character names properly.
28568 2008-04-13 Robert Millan <rmh@aybabtu.com>
28570 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
28571 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
28573 2008-04-13 Christian Franke <franke@computer.org>
28575 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
28576 to create a floppy emulation boot CD when non emulation mode
28578 Enable Joliet CD filesystem extension.
28580 2008-04-13 Robert Millan <rmh@aybabtu.com>
28582 * kern/misc.c (grub_strncat): Fix off-by-one error.
28583 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
28585 * kern/env.c (grub_env_context_close): Clear current context, not
28587 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
28589 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
28591 2008-04-13 Robert Millan <rmh@aybabtu.com>
28593 Improve robustness when handling LVM.
28595 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
28596 (and leave `*p' unmodified).
28597 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
28599 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
28600 iterating through it.
28601 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
28603 (grub_lvm_scan_device): Check the return value (and fail gracefully
28604 when due) on each grub_lvm_getvalue() or grub_strstr() call.
28605 Don't assume `vg->pvs != NULL' when iterating through it.
28607 2008-04-13 Robert Millan <rmh@aybabtu.com>
28609 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
28610 * genmk.rb (partmap): New variable.
28611 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
28612 (#{partmap}): New target rule.
28613 * genpartmaplist.sh: New file.
28614 * Makefile.in (pkglib_DATA): Add partmap.lst.
28615 (partmap.lst): New target rule.
28616 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
28617 modules (including all partition maps), instead of preloading them.
28619 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
28621 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
28622 `linux-boot-prober' (if installed) to detect other operating
28623 systems which are installed on the computer and add them to
28625 * conf/common.rmk: Build and install 30_os-prober.
28627 2008-04-12 Robert Millan <rmh@aybabtu.com>
28629 * kern/powerpc/ieee1275/init.c: Move from here ...
28630 * kern/ieee1275/init.c: ... to here. Update all users.
28632 * kern/powerpc/ieee1275/cmain.c: Move from here ...
28633 * kern/ieee1275/cmain.c: ... to here. Update all users.
28635 * kern/powerpc/ieee1275/openfw.c: Move from here ...
28636 * kern/ieee1275/openfw.c: ... to here. Update all users.
28638 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
28639 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
28641 2008-04-10 Pavel Roskin <proski@gnu.org>
28643 * configure.ac: Always use "_cv_" in cache variables for
28644 compatibility with Autoconf 2.62.
28646 2008-04-07 Robert Millan <rmh@aybabtu.com>
28648 Revert grub/machine/init.h addition by Pavel (since it breaks on
28649 i386-ieee1275 and others):
28650 * util/i386/pc/misc.c: Remove grub/machine/init.h.
28651 * util/powerpc/ieee1275/misc.c: Likewise.
28653 2008-04-07 Robert Millan <rmh@aybabtu.com>
28655 * util/grub-probe.c (probe): Improve error message.
28657 2008-04-07 Robert Millan <rmh@aybabtu.com>
28659 * util/biosdisk.c (read_device_map): Skip devices that don't exist
28660 (this prevents the presence of a bogus entry from ruining the whole
28663 2008-04-06 Pavel Roskin <proski@gnu.org>
28665 * util/biosdisk.c: Include grub/util/biosdisk.h.
28666 * util/grub-fstest.c (execute_command): Make static.
28667 * util/grub-mkdevicemap.c (check_device): Likewise.
28668 * util/i386/pc/misc.c: Include grub/machine/init.h.
28669 * util/powerpc/ieee1275/misc.c: Likewise.
28670 * util/lvm.c: Include grub/util/lvm.h.
28671 * util/misc.c: Include grub/kernel.h, grub/misc.h and
28673 * util/raid.c: Include grub/util/raid.h.
28674 (grub_util_getdiskname): Make static.
28676 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
28677 grub_hostfs_fini(), as they are called from grub_init_all() and
28678 grub_fini_all() respectively. This fixes an infinite loop in
28679 grub-fstest due to double registration of hostfs.
28680 Reported by Christian Franke <Christian.Franke@t-online.de>
28682 2008-04-05 Pavel Roskin <proski@gnu.org>
28684 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
28685 all 8 functions. Otherwise, probe function 0 only.
28687 2008-04-04 Pavel Roskin <proski@gnu.org>
28689 * commands/lspci.c (grub_lspci_iter): Print the bus number
28692 * commands/lspci.c (grub_pci_classes): Fix typos.
28693 (grub_lspci_iter): Don't print func twice. Print vendor ID
28694 before device ID, as it's normally done.
28696 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
28697 Fix signedness warnings.
28698 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
28700 * util/ieee1275/get_disk_name.c: Include config.h so that
28701 _GNU_SOURCE is defined and getline() is declared. Mark an
28702 unused argument as such. Fix a signedness warning.
28704 2008-04-02 Pavel Roskin <proski@gnu.org>
28706 * genkernsyms.sh.in: Use more robust assignments for CC and
28707 srcdir. Quote srcdir.
28708 * gensymlist.sh.in: Likewise. Assert at the compile time that
28709 the symbol table is not empty.
28711 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
28712 * fs/cpio.c (grub_cpio_read): Likewise.
28714 2008-04-01 Pavel Roskin <proski@gnu.org>
28716 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
28717 * disk/host.c (grub_host_open): Likewise.
28718 * disk/loopback.c (grub_loopback_open): Likewise.
28719 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
28720 disk->id as in disk/host.c, not a multi-character constant.
28722 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
28723 later is obsolete, potentially dangerous and sets a bad example.
28724 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
28725 * util/misc.c (grub_util_get_image_size): Likewise.
28727 * disk/loopback.c (options): Improve help for "--partitions".
28729 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
28730 options to align them with the short options, e.g. "echo -e".
28732 2008-03-31 Bean <bean123ch@gmail.com>
28734 * video/reader/png.c (grub_png_data): New member is_16bit and
28736 (grub_png_decode_image_header): Detect 16 bit png image.
28737 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
28738 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
28739 (grub_video_reader_png): Release memory occupied by image_data.
28741 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
28743 (grub_nfs_mount): Skip the test for sector per cluster.
28745 * include/grub/ntfs.h (MAX_SPC): Removed.
28747 2008-03-31 Bean <bean123ch@gmail.com>
28749 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
28750 (grub_probe_SOURCES): Add fs/afs.c.
28751 (grub_fstest_SOURCES): Likewise.
28752 (afs_mod_SOURCES): New variable.
28753 (afs_mod_CFLAGS): Likewise.
28754 (afs_mod_LDFLAGS): Likewise.
28756 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
28757 (grub_emu_SOURCES): Likewise.
28759 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28761 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28763 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28765 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28767 * fs/afs.c: New file.
28769 2008-03-30 Pavel Roskin <proski@gnu.org>
28771 * disk/host.c: Include grub/misc.h to fix a warning.
28772 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
28773 warnings about implicit declarations.
28775 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
28777 * include/grub/i386/loader.h: Change declaration of
28778 grub_linux_boot() to match what grub_loader_set() expects.
28779 * util/getroot.c (grub_guess_root_device): Return const char* to
28781 * util/grub-probe.c (probe): Fix a warning about uninitialized
28782 abstraction_name variable.
28783 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
28784 second argument as unused to fix a warning.
28786 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
28787 missing grub_error() call.
28789 * util/update-grub_lib.in: Define datarootdir, since Autoconf
28790 2.60 and newer uses it to define datadir.
28792 * commands/sleep.c: Fix warning about implicit declaration.
28793 * disk/memdisk.c: Likewise.
28794 * loader/aout.c: Likewise.
28795 * loader/i386/bsd_normal.c: Likewise.
28796 * util/grub-probe.c: Likewise.
28798 * commands/i386/cpuid.c (has_longmode): Make static.
28799 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
28800 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
28802 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
28803 GDT. This is more robust, as %ds can change.
28804 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
28805 calling real_to_prot().
28806 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
28808 2008-03-28 Pavel Roskin <proski@gnu.org>
28810 * kern/i386/pc/startup.S: Assert that uncompressed functions
28811 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
28812 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
28813 code, as they push parts of the code (error handlers) beyond
28814 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
28815 code as correctness and size.
28817 2008-03-28 Pavel Roskin <proski@gnu.org>
28819 * kern/i386/pc/startup.S
28820 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
28821 data block address to the real mode, keep offset minimal. This
28822 works around a bug in AWARD BIOS on old Athlon systems, which
28823 makes CD detection hang.
28825 2008-03-26 Pavel Roskin <proski@gnu.org>
28827 * normal/color.c (grub_parse_color_name_pair): Make `name' a
28829 * include/grub/normal.h: Add grub_parse_color_name_pair()
28832 2008-03-24 Bean <bean123ch@gmail.com>
28834 * disk/i386/pc/biosdisk.c (cd_start): Removed.
28835 (cd_count): Removed.
28836 (cd_drive): New variable.
28837 (grub_biosdisk_get_drive): Don't check for (cdN) device.
28838 (grub_biosdisk_call_hook): Likewise.
28839 (grub_biosdisk_iterate): Change cdrom detection method.
28840 (grub_biosdisk_open): Replace cd_start with cd_drive.
28841 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
28842 detect cdrom device.
28844 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
28846 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
28847 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
28848 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
28849 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
28850 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
28851 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
28852 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
28853 (grub_biosdisk_cdrp): New structure.
28854 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
28856 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
28858 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
28861 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
28864 2008-03-20 Robert Millan <rmh@aybabtu.com>
28866 Remove 2 TiB limit in ata.mod.
28867 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
28868 (grub_ata_dumpinfo): Print sector count with 0x%llx.
28869 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
28870 grub_uint64_t instead of grub_uint32_t.
28872 2008-03-05 Bean <bean123ch@gmail.com>
28874 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
28875 (grub_multiboot): Set boot device.
28877 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
28879 2008-03-02 Bean <bean123ch@gmail.com>
28881 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
28884 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
28886 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
28889 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
28892 * docs/fdl.texi: New file.
28894 * docs/mdate-sh: New file. Copied from gnulib.
28895 * docs/texinfo.tex: Likewise.
28897 * config.guess: Updated from gnulib.
28898 * install-sh: Likewise.
28900 2008-02-28 Robert Millan <rmh@aybabtu.com>
28902 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
28903 (aout_mod_SOURCES): New variable.
28904 (aout_mod_CFLAGS): Likewise.
28905 (aout_mod_LDFLAGS): Likewise.
28907 * conf/i386-ieee1275.rmk: Likewise.
28909 2008-02-28 Robert Millan <rmh@aybabtu.com>
28911 * util/update-grub.in: Reorganise terminal validity check. Accept
28912 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
28913 Based on suggestion by Franklin PIAT.
28915 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
28917 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
28919 * util/getroot.c (grub_util_check_block_device): New function that
28920 returns the given argument if it is a block device and returns NULL else.
28921 * util/grub-probe.c (argument_is_device): New variable.
28922 (probe): Promote device_name from a variable to an argument. Receive
28923 device_name from grub_util_check_block_device() if path is NULL and from
28924 grub_guess_root_device() else. Do not free() device_name anymore.
28925 (options): Introduce new parameter '-d, --device'.
28926 (main): Add description of the new parameter to the help screen.
28927 Rename path variable to argument. Set argument_is_device if the '-d'
28928 option is given. Pass argument to probe() depending on
28929 argument_is_device.
28931 2008-02-24 Bean <bean123ch@gmail.com>
28933 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
28934 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
28935 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
28936 (GRUB_ISO9660_VOLDESC_PART): Likewise.
28937 (GRUB_ISO9660_VOLDESC_END): Likewise.
28938 (grub_iso9660_primary_voldesc): New member escape.
28939 (grub_iso9660_data): New member joliet.
28940 (grub_iso9660_convert_string): New function.
28941 (grub_iso9660_mount): Detect joliet extension.
28942 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
28943 (grub_iso9660_iso9660_label): Likewise.
28945 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
28946 (grub_setup_SOURCES): Add fs/udf.c.
28947 (grub_fstest_SOURCES): Likewise.
28948 (udf_mod_SOURCES): New variable.
28949 (udf_mod_CFLAGS): Likewise.
28950 (udf_mod_LDFLAGS): Likewise.
28952 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
28953 (grub_emu_SOURCES): Likewise.
28955 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28957 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28959 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28961 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28963 * fs/udf.c: New file.
28965 2008-02-24 Robert Millan <rmh@aybabtu.com>
28967 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
28968 (normal/lexer.c_DEPENDENCIES): New variables.
28969 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
28970 (normal/lexer.c_DEPENDENCIES): Likewise.
28971 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
28972 (normal/lexer.c_DEPENDENCIES): Likewise.
28973 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
28974 (normal/lexer.c_DEPENDENCIES): Likewise.
28975 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
28976 (normal/lexer.c_DEPENDENCIES): Likewise.
28977 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
28978 (normal/lexer.c_DEPENDENCIES): Likewise.
28980 2008-02-23 Robert Millan <rmh@aybabtu.com>
28982 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
28983 since they were intended to be in hex. This didn't break previously
28984 because of a bug in gpt_partition_map_iterate() (see below).
28986 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
28987 when checking the validity of GPT header.
28988 Remove `partno', since it always provides the same information as `i'.
28990 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
28992 * include/grub/efi/time.h: Fix a wrong comment.
28994 2008-02-19 Pavel Roskin <proski@gnu.org>
28996 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
28999 2008-02-19 Bean <bean123ch@gmail.com>
29001 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
29002 (aout_mod_SOURCES): New variable.
29003 (aout_mod_CFLAGS): Likewise.
29004 (aout_mod_LDFLAGS): Likewise.
29005 (_bsd_mod_SOURCES): New variable.
29006 (_bsd_mod_CFLAGS): Likewise.
29007 (_bsd_mod_LDFLAGS): Likewise.
29008 (bsd_mod_SOURCES): New variable.
29009 (bsd_mod_CFLAGS): Likewise.
29010 (bsd_mod_LDFLAGS): Likewise.
29012 * include/grub/aout.h: New file.
29014 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
29016 * include/grub/i386/bsd.h: New file.
29018 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
29021 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
29022 function is called, so that it's possible to change it inside the hook.
29023 (grub_elf64_load): Likewise.
29024 (grub_elf_file): Don't close the file if elf header is not found.
29025 (grub_elf_close): Close the file if grub_elf_file fails (The new
29026 grub_elf_file won't close it).
29027 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
29028 (grub_elf64_size): Likewise.
29030 * kern/i386/loader.S (grub_unix_real_boot): New function.
29032 * loader/aout.c: New file.
29034 * loader/i386/bsd.c: New file.
29036 * loader/i386/bsd_normal.c: New file.
29038 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
29040 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
29041 can test other formats.
29043 2008-02-19 Robert Millan <rmh@aybabtu.com>
29045 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
29046 (grub_gpt_partition_type_empty): Redefine with macro from
29047 `<grub/gpt_partition.h>'.
29048 (gpt_partition_map_iterate): Adjust partition type comparison.
29050 Export `entry' as partmap-specific `part.data' struct.
29051 (grub_gpt_header, grub_gpt_partentry): Move from here ...
29053 * include/grub/gpt_partition.h (grub_gpt_header)
29054 (grub_gpt_partentry): ... to here (new file).
29056 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
29058 (grub_gpt_partition_type_bios_boot): New const variable, defined
29059 with macro from `<grub/gpt_partition.h>'.
29061 (setup): Replace `first_start' with `embed_region', which keeps
29062 track of the embed region (and is partmap-agnostic).
29064 Replace find_first_partition_start() with find_usable_region(),
29065 which finds a usable region for embedding using partmap-specific
29066 knowledge (supports PC/MSDOS and GPT).
29068 Fix all assumptions that the embed region start at sector 1, using
29069 `embed_region.start' from now on. Similarly, use `embed_region.end'
29070 rather than `first_start' to calculate available size.
29072 In grub_util_info() message, replace "into after the MBR" with an
29073 indication of the specific sector our embed region starts at.
29075 2008-02-19 Robert Millan <rmh@aybabtu.com>
29077 * DISTLIST: Replace `commands/ieee1275/halt.c' and
29078 `commands/ieee1275/reboot.c' with `commands/halt.c' and
29079 `commands/reboot.c'.
29080 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
29081 (halt_mod_SOURCES): Likewise.
29082 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
29083 (halt_mod_SOURCES): Likewise.
29085 2008-02-17 Christian Franke <franke@computer.org>
29087 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
29089 2008-02-17 Robert Millan <rmh@aybabtu.com>
29091 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
29092 set `first_start' to 0 for non-PC/MSDOS partition maps.
29094 2008-02-16 Robert Millan <rmh@aybabtu.com>
29096 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
29097 do not assume partition map is PC/MSDOS before performing checks that
29098 are specific to that layout.
29100 2008-02-13 Robert Millan <rmh@aybabtu.com>
29102 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
29103 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
29104 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
29106 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
29108 * configure.ac: Only a cosmetic change on the handling of
29109 -fno-stack-protector.
29111 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
29113 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
29114 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
29116 (grub_install_SOURCES): Add halt.mod and reboot.mod.
29117 (halt_mod_SOURCES): New variable.
29118 (halt_mod_CFLAGS): Likewise.
29119 (halt_mod_LDFLAGS): Likewise.
29120 (reboot_mod_SOURCES): Likewise.
29121 (reboot_mod_CFLAGS): Likewise.
29122 (reboot_mod_LDFLAGS): Likewise.
29124 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
29125 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
29127 (halt_mod_SOURCES): Likewise.
29128 (reboot_mod_SOURCES): Likewise.
29130 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
29131 commands/i386/pc/reboot.c by commands/reboot.c.
29132 (reboot_mod_SOURCES): Likewise.
29134 * commands/i386/pc/reboot.c: merge this file ...
29136 * commands/ieee1275/reboot.c: ... and this file ...
29138 * commands/reboot.c: ... to this file.
29139 Add some precompiler directive to include the correct header for
29142 * commands/ieee1275/halt.c: move this file ...
29144 * commands/halt.c: ... to here.
29145 Add some precompiler directive to include the correct header for
29148 * include/grub/efi/efi.h (grub_reboot): New function declaration.
29149 (grub_halt): Likewise.
29151 * kern/efi/efi.c (grub_reboot): New function.
29152 (grub_halt): Likewise.
29154 2008-02-12 Robert Millan <rmh@aybabtu.com>
29156 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
29157 /dev (like it is done for /dev/mapper). This doesn't provide support
29158 for EVMS, but at least it is now easy to identify the problem when it
29161 2008-02-11 Robert Millan <rmh@aybabtu.com>
29163 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
29164 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
29165 comparing it with -1, not 0.
29167 2008-02-10 Robert Millan <rmh@aybabtu.com>
29169 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
29171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29172 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29174 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
29175 `disk/lvm.c' to the end of the list.
29176 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
29177 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29179 2008-02-10 Robert Millan <rmh@aybabtu.com>
29181 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
29182 grub_print_error() instead. This will let user know why we're entering
29184 Based on suggestions from Sam Morris.
29186 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
29188 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
29189 on remaining N args, instead of "--" arg N times.
29191 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
29193 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
29194 (fill_with_default_glyph): Changed to use unknown_glyph for fill
29195 pattern for unknown glyphs.
29197 2008-02-09 Robert Millan <rmh@aybabtu.com>
29199 * configure.ac: Probe for `help2man'.
29200 * Makefile.in (builddir): New variable.
29201 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
29202 or otherwise add a few flags/options to it.
29203 (install-local): For every executable utility or script that is
29204 installed, invoke $(HELP2MAN) to install a manpage based on --help
29207 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
29208 that it doesn't prevent --help from working in build tree.
29210 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
29211 with `bug-grub@gnu.org'.
29212 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
29213 * util/update-grub.in (usage): New function.
29214 Implement proper argument check, with support for --help and --version
29215 (as well as existing -y).
29217 2008-02-09 Christian Franke <franke@computer.org>
29219 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
29220 avoid overwriting previous output.
29221 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
29223 2008-02-09 Robert Millan <rmh@aybabtu.com>
29225 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
29228 2008-02-09 Robert Millan <rmh@aybabtu.com>
29230 * commands/sleep.c: New file.
29231 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
29232 (sleep_mod_SOURCES): New variable.
29233 (sleep_mod_CFLAGS): Likewise.
29234 (sleep_mod_LDFLAGS): Likewise.
29236 2008-02-09 Robert Millan <rmh@aybabtu.com>
29238 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
29239 situations in which we can deduce the RAID size and the superblock
29242 2008-02-09 Robert Millan <rmh@aybabtu.com>
29244 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
29245 and return a grub_diskmemberlist_t composed of LVM physical volumes.
29246 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
29248 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
29249 and return a grub_diskmemberlist_t composed of physical array members.
29250 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
29252 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
29254 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
29255 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
29256 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
29258 * util/grub-probe.c (probe): Move partmap probing code from here ...
29259 (probe_partmap): ... to here.
29260 (probe): Use probe_partmap() once for the disk we're probing, and
29261 additionally, when such disk contains a memberlist() struct member,
29262 once for each disk that is contained in the structure returned by
29265 2008-02-09 Robert Millan <rmh@aybabtu.com>
29267 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
29268 environment variable to 'all' in order to obtain debug output from
29270 * util/i386/pc/grub-setup.c (main): Likewise.
29272 2008-02-08 Robert Millan <rmh@aybabtu.com>
29274 * disk/raid.c (grub_raid_scan_device): Check for
29275 `array->device[sb.this_disk.number]' rather than for
29276 `array->device[sb.this_disk.number]->name', since the latter is not
29277 guaranteed to be accessible.
29279 2008-02-08 Robert Millan <rmh@aybabtu.com>
29281 * disk/raid.c: Update copyright.
29282 * fs/cpio.c: Likewise.
29283 * include/grub/raid.h: Likewise.
29284 * loader/i386/pc/multiboot.c: Likewise.
29285 * util/hostfs.c: Likewise.
29287 2008-02-08 Robert Millan <rmh@aybabtu.com>
29289 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
29290 to a grub_disk_t array.
29291 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
29293 (grub_raid_scan_device): Replace `device[x].name' accesses with
29294 `device[x]->name'. Simplify initialization of `array->device[x]'.
29296 2008-02-08 Robert Millan <rmh@aybabtu.com>
29298 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
29299 grub_dprintf() calls.
29300 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
29303 2008-02-07 Christian Franke <franke@computer.org>
29305 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
29306 instead of fseek and ftell to support large files.
29307 (grub_hostfs_read): Likewise.
29309 2008-02-07 Robert Millan <rmh@aybabtu.com>
29311 Patch from Jeroen Dekkers.
29312 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
29313 failure, since successfully reading all array members might not be
29316 2008-02-06 Robert Millan <rmh@aybabtu.com>
29318 * util/grub-probe.c (probe): Simplify partmap probing (with the
29319 assumption that the first word up to the underscore equals to
29322 2008-02-06 Christian Franke <franke@computer.org>
29324 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
29325 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
29326 last block of a cpio or tar stream.
29327 Check for "TRAILER!!!" instead of any empty data
29328 block to detect last block of a cpio stream.
29329 (grub_cpio_dir): Fix constness of variable np.
29330 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
29331 cpio or tar trailer is detected. This fixes a crash
29332 on open of a non existing file.
29334 2008-02-05 Bean <bean123ch@gmail.com>
29336 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
29338 (grub_multiboot_load_elf64): Likewise.
29339 (grub_multiboot): Initialize mbi structure.
29341 * util/grub-fstest.c: Don't include unused header file script.h.
29343 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
29345 (grub_fstest_SOURCES): Likewise.
29347 2008-02-05 Robert Millan <rmh@aybabtu.com>
29349 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
29350 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
29351 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
29352 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
29354 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
29355 (translation_table): Replace hardcoded values with macros
29356 provided by `<grub/term.h>'.
29358 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
29359 (keyboard_map): Correct/add a few values, with macros provided
29360 by `<grub/term.h>'.
29361 (keyboard_map_shift): Zero values that don't differ from their
29362 `keyboard_map' equivalents.
29363 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
29364 Discard the second scan code that is always sent by Caps lock.
29365 Only use `keyboard_map_shift' when it provides a non-zero value,
29366 otherwise fallback to `keyboard_map'.
29368 2008-02-04 Bean <bean123ch@gmail.com>
29370 * Makefile.in (enable_grub_fstest): New variable.
29372 * conf/common.rmk (grub_fstest_init.lst): New rule.
29373 (grub_fstest_init.h): Likewise.
29374 (grub_fstest_init.c): Likewise.
29375 (util/grub-fstest.c_DEPENDENCIES): New variable.
29376 (grub_fstest_SOURCES): Likewise.
29378 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
29380 * util/grub-fstest.c: New file.
29382 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
29384 Make grub-setup handle a separate root device.
29386 * util/i386/pc/grub-setup.c (setup): Always open the root device,
29387 so that the root device can be compared with the destination
29389 When embedding the core image, if the root and destination devices
29390 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
29392 When not embedding, set ROOT_DRIVE to 0xFF.
29394 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
29396 Add support for having a grub directory in a different drive. This
29397 is still only the data handling part.
29399 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
29400 (codestart): Save %dh in GRUB_ROOT_DRIVE.
29401 (grub_root_drive): New variable.
29403 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
29404 instead of GRUB_BOOT_DRIVE to construct a device name. Set
29405 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
29408 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
29410 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
29412 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
29414 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
29415 is bogus, because PXE booting does not specify any drive
29418 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
29419 am not sure if this is really correct.
29421 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
29422 is always identical to the boot drive when booting from a CD.
29424 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
29426 (root_drive): New variable.
29427 (real_start): Unconditionally set %dh to ROOT_DRIVE.
29428 (setup_sectors): Push %dx right after popping it, because %dh will
29430 (copy_buffer): Restore %dx.
29432 2008-02-03 Robert Millan <rmh@aybabtu.com>
29434 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
29435 use `cdboot.img' for cdrom images.
29437 2008-02-03 Robert Millan <rmh@aybabtu.com>
29439 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
29440 only setup gfxterm when `font' command has succeeded.
29442 2008-02-03 Robert Millan <rmh@aybabtu.com>
29444 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
29445 (grub_rescue_cmd_multiboot_loader)
29446 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
29448 2008-02-03 Pavel Roskin <proski@gnu.org>
29450 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
29451 %edx and %esi from stack only after grub_gate_a20() is called.
29452 grub_gate_a20() clobbers %edx.
29454 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
29456 * configure.ac (AC_INIT): Bumped to 1.96.
29458 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
29459 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
29460 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
29461 video/readers/png.c.
29463 2008-02-03 Bean <bean123ch@gmail.com>
29465 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
29466 (cdboot_img_SOURCES): New variable.
29467 (cdboot_img_ASFLAGS): New variable.
29468 (cdboot_img_LDFLAGS): New variable.
29470 * boot/i386/pc/cdboot.S: New file.
29472 * disk/i386/pc/biosdisk.c (cd_start): New variable.
29473 (cd_count): Likewise.
29474 (grub_biosdisk_get_drive): Add support for cd device.
29475 (grub_biosdisk_call_hook): Likewise.
29476 (grub_biosdisk_iterate): Likewise.
29477 (grub_biosdisk_open): Likewise.
29478 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
29479 (grub_biosdisk_rw): Support reading from cd device.
29480 (GRUB_MOD_INIT): Iterate cd devices.
29482 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
29483 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
29484 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
29486 * kern/i386/pc/init.c (make_install_device): Check for cd device.
29488 2008-02-02 Robert Millan <rmh@aybabtu.com>
29490 * commands/read.c: New file.
29491 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
29492 (read_mod_SOURCES): New variable.
29493 (read_mod_CFLAGS): Likewise.
29494 (read_mod_LDFLAGS): Likewise.
29496 2008-02-02 Robert Millan <rmh@aybabtu.com>
29498 * normal/main.c (grub_normal_execute): Check for `menu->size' when
29499 determining whether menu has to be displayed.
29501 2008-02-02 Marco Gerards <marco@gnu.org>
29503 * bus/pci.c: New file.
29505 * include/grub/pci.h: Likewise.
29507 * include/grub/i386/pc/pci.h: Likewise.
29509 * commands/lspci.c: Likewise.
29511 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
29513 (pci_mod_SOURCES): New variable.
29514 (pci_mod_CFLAGS): Likewise.
29515 (pci_mod_LDFLAGS): Likewise.
29516 (lspci_mod_SOURCES): Likewise.
29517 (lspci_mod_CFLAGS): Likewise.
29518 (lspci_mod_LDFLAGS): Likewise.
29520 2008-02-02 Bean <bean123ch@gmail.com>
29522 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
29523 (grub_ufs_get_file_block): Fix indirect block calculation problem.
29525 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
29526 (grub_xfs_btree_node): New structure.
29527 (grub_xfs_btree_root): New structure.
29528 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
29529 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
29530 (GRUB_XFS_EXTENT_BLOCK): Likewise.
29531 (GRUB_XFS_EXTENT_SIZE): Likewise.
29532 (grub_xfs_read_block): Support btree format type.
29533 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
29534 Use directory block as basic unit.
29536 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
29538 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
29539 __attribute__ ((__regparm__ (1))).
29541 2008-02-01 Robert Millan <rmh@aybabtu.com>
29543 Correct a mistake in previous commit.
29545 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
29547 (normal/command.c_DEPENDENCIES): New variable.
29549 2008-02-01 Robert Millan <rmh@aybabtu.com>
29551 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
29553 (normal/command.c_DEPENDENCIES): New variable.
29554 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
29555 * conf/i386-ieee1275.rmk: Likewise.
29556 * conf/i386-linuxbios.rmk: Likewise.
29557 * conf/i386-pc.rmk: Likewise.
29558 * conf/sparc64-ieee1275.rmk: Likewise.
29559 * conf/powerpc-ieee1275.rmk: Likewise.
29560 (grub_emu_SOURCES): Add `fs/fshelp.c'.
29562 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
29564 2008-02-01 Robert Millan <rmh@aybabtu.com>
29566 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
29567 call at beginning of function.
29569 2008-01-31 Pavel Roskin <proski@gnu.org>
29571 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
29572 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
29573 (grub_mkrescue_SOURCES): Likewise.
29574 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
29576 2008-01-30 Robert Millan <rmh@aybabtu.com>
29578 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
29579 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
29580 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
29581 (grub_probe_SOURCES): ... to here.
29583 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
29584 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
29585 * conf/i386-ieee1275.rmk: Likewise.
29586 * conf/i386-linuxbios.rmk: Likewise.
29587 * conf/powerpc-ieee1275.rmk: Likewise.
29589 2008-01-30 Tristan Gingold <gingold@free.fr>
29591 * kern/rescue.c: Silently accept empty lines.
29593 2008-01-29 Bean <bean123ch@gmail.com>
29595 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
29596 (real_code_2): Code cleanup and change comment style.
29597 (move_memory): Avoid using 32-bit address mode.
29599 2008-01-29 Bean <bean123ch@gmail.com>
29601 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
29602 (png_mod_SOURCES): New variable.
29603 (png_mod_CFLAGS): Likewise.
29604 (png_mod_LDFLAGS): Likewise.
29606 * video/readers/png.c: New file.
29608 2008-01-28 Robert Millan <rmh@aybabtu.com>
29610 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
29611 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
29612 `ifndef GRUB_MOD_GAP' hack.
29613 * util/elf/grub-mkimage.c (add_segments): Likewise.
29615 2008-01-27 Robert Millan <rmh@aybabtu.com>
29617 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
29618 `GRUB_MOD_GAP' for platforms in which it's not defined.
29619 * util/elf/grub-mkimage.c (add_segments): Likewise.
29621 2008-01-27 Robert Millan <rmh@aybabtu.com>
29623 Get grub-emu to build again (including parallel builds).
29625 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
29627 (util/grub-emu.c_DEPENDENCIES): ... this, ...
29628 (normal/execute.c_DEPENDENCIES): ... this, ...
29629 (grub-emu_DEPENDENCIES): ... and this.
29631 * conf/i386-efi.rmk: Likewise.
29632 * conf/i386-linuxbios.rmk: Likewise.
29633 * conf/i386-ieee1275.rmk: Likewise.
29634 * conf/powerpc-ieee1275.rmk: Likewise.
29635 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
29637 2008-01-27 Robert Millan <rmh@aybabtu.com>
29639 * NEWS: Add a few items.
29641 2008-01-27 Robert Millan <rmh@aybabtu.com>
29643 Fix parallel builds with grub-emu. Based on earlier commit for
29644 grub-probe and grub-setup.
29646 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29647 (util/grub-emu.c_DEPENDENCIES): ... this.
29648 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29649 (util/grub-emu.c_DEPENDENCIES): ... this.
29650 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29651 (util/grub-emu.c_DEPENDENCIES): ... this.
29652 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29653 (util/grub-emu.c_DEPENDENCIES): ... this.
29654 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
29655 (util/grub-emu.c_DEPENDENCIES): ... this.
29657 2008-01-27 Pavel Roskin <proski@gnu.org>
29659 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
29660 to create a gap between _end and the modules added to the image
29661 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
29662 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
29663 * util/elf/grub-mkimage.c (add_segments): Likewise.
29665 2008-01-26 Pavel Roskin <proski@gnu.org>
29667 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
29668 just return an error.
29670 2008-01-26 Bean <bean123ch@gmail.com>
29672 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
29673 (grub_reiserfs_get_item): Save offset of the next item.
29674 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
29676 2008-01-25 Robert Millan <rmh@aybabtu.com>
29678 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
29679 make all filesystem sources appear together (possibly fixing omissions
29681 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29682 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29683 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
29684 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29686 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
29688 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
29689 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
29690 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
29691 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
29693 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
29694 (probe): Add a sanity check to make sure of our ability to read
29695 requested files when probing for filesystem type.
29697 * genmk.rb: Update copyright year (2007).
29699 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
29700 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
29701 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
29702 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
29703 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
29704 : Remove function prototypes.
29706 2008-01-25 Robert Millan <rmh@aybabtu.com>
29708 Revert my previous commits (based on wrong assumption of how grub_errno
29711 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
29712 * kern/file.c (grub_file_open): Likewise.
29714 2008-01-24 Pavel Roskin <proski@gnu.org>
29716 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
29717 that hang if GRUB tries to setup colors.
29718 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
29719 colors for firmwares that don't support it.
29720 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
29721 Recognize Open Hack'Ware, set flags to work around its
29724 2008-01-24 Robert Millan <rmh@aybabtu.com>
29726 * kern/file.c (grub_file_open): Do not account previous failures of
29727 unrelated functions when grub_errno is checked for.
29728 Reported by Oleg Strikov.
29730 2008-01-24 Bean <bean123ch@gmail.com>
29732 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
29733 (grub_ufs_sblock): New member volume name.
29734 (grub_ufs_find_file): Fix string copy bug.
29735 (grub_ufs_label): Implement this function properly.
29737 * fs/hfs.c (grub_hfs_cnid_type): New enum.
29738 (grub_hfs_iterate_records): Use the correct file number for extents
29739 and catalog file. Fix problem in next index calculation.
29740 (grub_hfs_find_node): Replace recursive function call with loop.
29741 (grub_hfs_iterate_dir): Replace recursive function call with loop.
29743 2008-01-23 Robert Millan <rmh@aybabtu.com>
29745 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
29746 `<grub/symbol.h>' and `<grub/multiboot.h>'.
29747 (grub_multiboot2_real_boot): New function prototype.
29749 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
29750 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
29752 * kern/i386/ieee1275/init.c (grub_os_area_addr)
29753 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
29755 2008-01-23 Robert Millan <rmh@aybabtu.com>
29757 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
29758 #ifdef'ed out grub_printf().
29760 2008-01-23 Robert Millan <rmh@aybabtu.com>
29762 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
29763 grub_dprintf calls, since they make "debug=all" mode unusable.
29764 (grub_console_checkkey): Likewise.
29766 2008-01-23 Robert Millan <rmh@aybabtu.com>
29768 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
29769 `term/i386/pc/at_keyboard.c'.
29770 (pkglib_MODULES): Add `serial.mod'.
29771 (serial_mod_SOURCES): New variable.
29772 (serial_mod_CFLAGS): Likewise.
29773 (serial_mod_LDFLAGS): Likewise.
29775 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
29776 `<grub/powerpc/ieee1275/console.h>'.
29777 (grub_keyboard_controller_init): New function prototype.
29778 (grub_console_checkkey): Likewise.
29779 (grub_console_getkey): Likewise.
29781 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
29784 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
29785 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
29787 2008-01-23 Robert Millan <rmh@aybabtu.com>
29789 * kern/i386/pc/init.c (make_install_device): When memdisk image is
29790 present, "(memdisk)/boot/grub" becomes the default prefix.
29792 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
29793 a memdisk tarball with all the modules. Add --overlay=DIR option that
29794 allows users to overlay additional files into the image.
29796 2008-01-23 Robert Millan <rmh@aybabtu.com>
29798 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
29799 and `machine/memory.h'.
29800 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
29801 (_multiboot_mod_SOURCES): New variable.
29802 (_multiboot_mod_CFLAGS): Likewise.
29803 (_multiboot_mod_LDFLAGS): Likewise.
29804 (multiboot_mod_SOURCES): Likewise.
29805 (multiboot_mod_CFLAGS): Likewise.
29806 (multiboot_mod_LDFLAGS): Likewise.
29808 * include/grub/i386/ieee1275/loader.h: New file.
29810 * include/grub/i386/ieee1275/machine.h: Likewise.
29812 * include/grub/i386/ieee1275/memory.h: Likewise.
29814 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
29815 variable declaration.
29816 (grub_os_area_size): Likewise.
29818 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
29819 (grub_lower_mem, grub_upper_mem): New variables.
29820 (grub_stop_floppy): New function (just to make
29821 grub_multiboot2_real_boot() happy).
29823 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
29824 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
29825 (grub_stop): New function.
29826 Include `"../realmode.S"' and `"../loader.S"'.
29828 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
29829 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
29831 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
29832 rely on grub_multiboot2_real_boot() for final boot.
29834 2008-01-22 Robert Millan <rmh@aybabtu.com>
29836 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
29837 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
29838 device that doesn't look like an SD card.
29839 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
29840 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
29841 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
29842 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
29845 2008-01-22 Robert Millan <rmh@aybabtu.com>
29847 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
29848 avoid claiming over our own code.
29850 2008-01-22 Bean <bean123ch@gmail.com>
29852 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
29853 (jpeg_mod_SOURCES): New variable.
29854 (jpeg_mod_CFLAGS): Likewise.
29855 (jpeg_mod_LDFLAGS): Likewise.
29857 * video/readers/jpeg.c : New file.
29859 2008-01-22 Bean <bean123ch@gmail.com>
29861 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
29862 there are no more items.
29864 2008-01-21 Robert Millan <rmh@aybabtu.com>
29866 * kern/mm.c (grub_mm_init_region): Improve debug message.
29868 2008-01-21 Robert Millan <rmh@aybabtu.com>
29870 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
29871 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
29873 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
29875 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
29876 Indicates start of upper memory.
29877 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
29878 (generate_image): Abort when image size is big enough to corrupt
29881 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
29882 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
29883 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
29884 instead of hardcoding 0xA0000.
29885 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
29886 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
29887 instead of hardcoding 0xA0000.
29889 2008-01-21 Robert Millan <rmh@aybabtu.com>
29891 * disk/memdisk.c (memdisk_size): New variable.
29892 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
29894 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
29895 image to dynamic memory.
29896 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
29897 `memdisk_size'. Free memdisk block.
29899 2008-01-21 Robert Millan <rmh@aybabtu.com>
29901 Fix detection of very small filesystems (like tar).
29903 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
29904 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
29905 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
29906 a problem with this disk).
29908 2008-01-21 Robert Millan <rmh@aybabtu.com>
29910 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
29911 on grub_biosdisk_rw_standard() error.
29913 2008-01-21 Robert Millan <rmh@aybabtu.com>
29915 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
29917 * kern/elf.c: Likewise.
29918 * kern/ieee1275/ieee1275.c: Likewise.
29919 * kern/powerpc/ieee1275/openfw.c: Likewise.
29920 * term/ieee1275/ofconsole.c: Likewise.
29922 2008-01-21 Robert Millan <rmh@aybabtu.com>
29924 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
29926 * include/grub/kernel.h (grub_arch_memdisk_addr)
29927 (grub_arch_memdisk_size): Moved from here ...
29929 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
29930 (grub_arch_memdisk_size): ... to here.
29932 2008-01-21 Robert Millan <rmh@aybabtu.com>
29934 Mostly based on bugfix from Bean.
29936 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
29937 attribute with hook() parameter.
29938 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
29940 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
29941 attribute with hook() parameter.
29942 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
29945 2008-01-21 Robert Millan <rmh@aybabtu.com>
29947 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
29948 (pkglib_MODULES): Add `memdisk.mod'.
29949 (memdisk_mod_SOURCES): New variable.
29950 (memdisk_mod_CFLAGS): Likewise.
29951 (memdisk_mod_LDFLAGS): Likewise.
29953 * disk/memdisk.c: New file.
29955 * include/grub/disk.h (grub_disk_dev_id): Add
29956 `GRUB_DISK_DEVICE_MEMDISK_ID'.
29958 * include/grub/i386/pc/kernel.h
29959 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
29960 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
29961 (grub_kernel_image_size): New variable declaration.
29962 (grub_total_module_size): Likewise.
29963 (grub_memdisk_image_size): Likewise.
29965 * include/grub/i386/pc/memory.h
29966 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
29968 * include/grub/kernel.h: Include `<grub/symbol.h>'.
29969 (grub_arch_memdisk_addr): New variable declaration.
29970 (grub_arch_memdisk_size): Likewise.
29972 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
29973 (grub_arch_memdisk_size): Likewise.
29975 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
29976 (codestart): Replace hardcoded `0x100000' with
29977 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
29979 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
29980 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
29981 not NULL, append the contents of the file it refers to, at the end of
29982 the compressed kernel image. Initialize `grub_memdisk_image_size'
29983 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
29984 (options): Add "memdisk"|'m' option.
29985 (main): Parse --memdisk|-m option, and pass user-provided path as
29986 parameter to generate_image().
29988 2008-01-20 Robert Millan <rmh@aybabtu.com>
29990 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
29991 grub_dprintf() calls from here ...
29992 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
29994 2008-01-20 Robert Millan <rmh@aybabtu.com>
29996 Fix detection of "real mode" when /options/real-mode? doesn't exist.
29998 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
30000 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
30001 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
30002 `GRUB_IEEE1275_FLAG_REAL_MODE'.
30003 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
30005 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
30006 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
30008 2008-01-19 Robert Millan <rmh@aybabtu.com>
30010 Get rid of confusing function (superseded by
30011 `grub_ieee1275_get_integer_property')
30012 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
30014 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
30016 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
30017 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
30018 in native endianness from grub_ieee1275_get_integer_property().
30020 2008-01-19 Robert Millan <rmh@aybabtu.com>
30022 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
30023 command after "shut-down", since implementations differ on which
30024 the command for halt is.
30026 2008-01-19 Robert Millan <rmh@aybabtu.com>
30028 * include/grub/i386/linuxbios/console.h: Add header protection.
30029 (grub_keyboard_controller_init): New function prototype.
30030 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
30031 (KEYBOARD_COMMAND_READ): Likewise.
30032 (KEYBOARD_COMMAND_WRITE): Likewise.
30033 (KEYBOARD_SCANCODE_SET1): Likewise.
30034 (grub_keyboard_controller_write): New function.
30035 (grub_keyboard_controller_read): Likewise.
30036 (grub_keyboard_controller_init): Likewise.
30038 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
30039 (grub_console_init): On coreboot/LinuxBIOS, call
30040 grub_keyboard_controller_init().
30042 2008-01-19 Robert Millan <rmh@aybabtu.com>
30044 PowerPC changes provided by Pavel Roskin.
30046 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
30047 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
30048 don't rely on cmain() doing it.
30049 * kern/i386/ieee1275/startup.S (_start): Store %eax in
30050 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
30052 2008-01-16 Robert Millan <rmh@aybabtu.com>
30054 * include/grub/i386/linuxbios/memory.h
30055 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
30056 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
30057 receive `table_header' as argument. Instead, probe for it in the
30058 known memory ranges where it can be present.
30059 (grub_available_iterate): Do not pass a fixed `table_header' address
30060 to grub_linuxbios_table_iterate().
30062 2008-01-15 Robert Millan <rmh@aybabtu.com>
30064 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
30065 * conf/i386-ieee1275.rmk: New file.
30066 * include/grub/i386/ieee1275/console.h: Likewise.
30067 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
30068 * include/grub/i386/ieee1275/kernel.h: Likewise.
30069 * include/grub/i386/ieee1275/time.h: Likewise.
30070 * kern/i386/ieee1275/init.c: Likewise.
30071 * kern/i386/ieee1275/startup.S: Likewise.
30073 2008-01-15 Robert Millan <rmh@aybabtu.com>
30075 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
30076 when pointers are 32-bit (but still do set it to one when they are
30079 2008-01-15 Robert Millan <rmh@aybabtu.com>
30081 * include/grub/ieee1275/ieee1275.h
30082 (grub_ieee1275_get_integer_property): New function prototype.
30084 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
30085 (grub_ieee1275_get_integer_property): New function. Wraps around
30086 grub_ieee1275_get_property() to handle endianness.
30088 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
30089 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
30091 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
30092 (grub_map): Likewise.
30093 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
30095 2008-01-15 Bean <bean123ch@gmail.com>
30097 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
30098 (grub_script_execute_cmdline): Reset grub_errno.
30100 * normal/main.c (read_config_file): Reset grub_errno.
30102 * normal/parse.y (script_init): New.
30103 (script): Move function and menuentry here.
30105 (command): Add delimiter at the end of command.
30106 (commands): Adjust to match the new command.
30107 (commandblock): Remove grub_script_lexer_record_start.
30108 (menuentry): Add grub_script_lexer_record_start, use the new commands.
30109 (if): Use the new commands.
30111 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
30113 2008-01-15 Robert Millan <rmh@aybabtu.com>
30115 * normal/menu.c (run_menu): Move timeout message from here ...
30116 (print_timeout): ... to here.
30117 (run_menu): Use print_timeout() once during initial draw to print
30118 the whole message, and again in every clock tick to update only
30119 the number of seconds.
30121 2008-01-15 Robert Millan <rmh@aybabtu.com>
30123 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
30124 actual size of `available' from grub_ieee1275_get_property(), and
30125 restrict parsing to that bound.
30127 2008-01-15 Christian Franke <franke@computer.org>
30129 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
30130 (argp_program_version): Remove variable.
30131 (argp_program_bug_address): Likewise.
30132 (options): Convert from struct argp_option to struct option.
30133 (struct arguments): Remove.
30134 (parse_opt): Remove.
30135 (usage): New function.
30136 (main): Replace struct args members by simple variables.
30137 Replace argp_parse() by getopt_long().
30138 Add switch to evaluate options.
30139 Add missing "(...)" around root_dev in prefix string.
30141 2008-01-14 Robert Millan <rmh@aybabtu.com>
30143 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
30144 for grub_ieee1275_exit(), in order to improve portability.
30146 2008-01-14 Robert Millan <rmh@aybabtu.com>
30148 * util/grub.d/10_linux.in (prefix): Define.
30149 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
30151 2008-01-13 Pavel Roskin <proski@gnu.org>
30153 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
30154 grub_errno if no errors have been detected.
30156 2008-01-12 Robert Millan <rmh@aybabtu.com>
30158 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
30159 (grub_util_get_dev_abstraction): New function prototype.
30161 * util/getroot.c: Include `<grub/util/getroot.h>'
30162 (grub_util_get_grub_dev): Move detection of abstraction type to ...
30163 (grub_util_get_dev_abstraction): ... here (new function).
30165 * util/grub-probe.c: Convert PRINT_* to an enum. Add
30166 `PRINT_ABSTRACTION'.
30167 (probe): Probe for abstraction type when requested.
30168 (main): Understand `--target=abstraction'.
30170 * util/i386/efi/grub-install.in: Add abstraction module to core
30171 image when it is found to be necessary.
30172 * util/i386/pc/grub-install.in: Likewise.
30173 * util/powerpc/ieee1275/grub-install.in: Likewise.
30175 * util/update-grub_lib.in (font_path): Return system path without
30176 converting to GRUB path.
30177 * util/update-grub.in: Convert system path returned by font_path()
30178 to a GRUB path. Use `grub-probe -t abstraction' to determine what
30179 abstraction module is needed for loading fonts (if any). Export
30180 that as `GRUB_PRELOAD_MODULES'.
30181 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
30184 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
30186 Remove some unused code from reiserfs.
30188 * fs/reiserfs.c (struct grub_reiserfs_key)
30189 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
30190 (struct grub_reiserfs_node_body): Removed.
30191 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
30193 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
30195 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
30197 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
30199 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
30201 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
30203 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
30204 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
30205 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
30207 2008-01-10 Robert Millan <rmh@aybabtu.com>
30209 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
30210 Determines if a file is garbage left by packaging systems, etc.
30211 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
30212 for processing /etc/grub.d scripts.
30213 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
30214 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
30215 as a condition for processing Linux images.
30217 2008-01-10 Pavel Roskin <proski@gnu.org>
30219 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
30220 to compile reiserfs.c on PowerPC.
30222 2008-01-10 Robert Millan <rmh@aybabtu.com>
30224 * kern/device.c (grub_device_iterate): Do not abort device iteration
30225 when one of the devices cannot be opened.
30226 * kern/disk.c (grub_disk_open): Do not account previous failures of
30227 unrelated functions when grub_errno is checked for.
30229 2008-01-08 Robert Millan <rmh@aybabtu.com>
30231 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
30232 `! grub_linux_is_bzimage', change order of address comparison to make
30233 it more intuitive, and improve "too big zImage" error message.
30235 2008-01-08 Robert Millan <rmh@aybabtu.com>
30237 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
30238 `$(update-grub_DATA)'.
30239 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
30242 2008-01-07 Robert Millan <rmh@aybabtu.com>
30244 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
30245 which instruction is modified by grub-setup during installation
30246 (since it wasn't obvious by only looking at this file).
30248 2008-01-07 Robert Millan <rmh@aybabtu.com>
30250 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
30251 listing actual TODO items.
30253 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
30255 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
30257 (grub_reiserfs_get_key_offset): Likewise.
30258 (grub_reiserfs_set_key_offset): Likewise.
30259 (grub_reiserfs_set_key_type): Likewise.
30260 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
30262 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
30263 better to remove the bitfield version completely.
30265 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
30267 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
30268 allocated from the heap, due to the fshelp implementation.
30269 (grub_reiserfs_dir): Free NODE, due to the same reason.
30271 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
30273 Mostly from Vincent Pelletier:
30275 * fs/reiserfs.c: New file.
30277 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
30278 (reiserfs_mod_SOURCES): New variable.
30279 (reiserfs_mod_CFLAGS): Likewise.
30280 (reiserfs_mod_LDFLAGS): Likewise.
30282 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
30283 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
30284 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
30287 2008-01-06 Robert Millan <rmh@aybabtu.com>
30289 * normal/color.c: Remove `<grub/env.h>'.
30291 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
30293 * include/grub/normal.h: Include <grub/env.h>.
30295 2008-01-05 Robert Millan <rmh@aybabtu.com>
30297 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
30298 usage example with `(hd0,1)'.
30299 Reported by Samuel Thibault.
30301 2008-01-05 Robert Millan <rmh@aybabtu.com>
30303 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
30304 (grub_linux_boot_zimage): Rename to ...
30305 (grub_linux_boot): ... this.
30306 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
30307 (grub_linux_boot_zimage): Conditionalize zImage copy.
30309 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
30310 (grub_linux_boot_bzimage): Remove prototype.
30311 (grub_linux_boot_zimage): Rename to ...
30312 (grub_linux_boot): ... this.
30314 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
30315 (grub_linux_boot): Remove function.
30317 2008-01-05 Robert Millan <rmh@aybabtu.com>
30319 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
30320 (grub_env_write_color_highlight): Likewise.
30321 (grub_wait_after_message): Likewise.
30323 * normal/color.c: New file.
30325 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
30326 (normal_mod_DEPENDENCIES): Likewise.
30328 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
30329 (normal_mod_DEPENDENCIES): Likewise.
30331 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
30332 (normal_mod_DEPENDENCIES): Likewise.
30334 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
30335 (normal_mod_DEPENDENCIES): Likewise.
30337 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
30338 for waiting after a message is printed.
30339 * normal/main.c (read_config_file): Likewise.
30340 (grub_normal_init): Register grub_env_write_color_normal() and
30341 grub_env_write_color_highlight() hooks. Mark `color_normal' and
30342 `color_highlight' variables as global.
30344 * normal/menu.c (grub_wait_after_message): New function.
30345 (grub_color_menu_normal): New variable. Replaces ...
30346 (GRUB_COLOR_MENU_NORMAL): ... this macro.
30347 (grub_color_menu_highlight): New variable. Replaces ...
30348 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
30349 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
30350 `GRUB_TERM_COLOR_STANDARD'.
30351 (print_message): Use `grub_setcolorstate' to reload colors. Rename
30352 `normal_code' and `highlight_code' to `old_color_normal' and
30353 `old_color_highlight', respectively.
30354 (grub_menu_init_page): Update colors when drawing the menu, based on
30355 `menu_color_normal' and `menu_color_highlight' variables.
30356 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
30357 a message is printed.
30359 2008-01-05 Robert Millan <rmh@aybabtu.com>
30361 * kern/env.c (grub_env_context_open): Propagate hooks for global
30362 variables to new context.
30364 * kern/main.c (grub_set_root_dev): Export `root' variable.
30366 2008-01-05 Robert Millan <rmh@aybabtu.com>
30368 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
30369 discs unconditionally, since udev and others have options to provide
30372 2008-01-05 Robert Millan <rmh@aybabtu.com>
30374 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
30376 2008-01-04 Christian Franke <franke@computer.org>
30378 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
30381 2008-01-03 Pavel Roskin <proski@gnu.org>
30383 * kern/i386/linuxbios/init.c: Put "void" to all function
30384 declarations with no arguments.
30385 * kern/powerpc/ieee1275/init.c: Likewise.
30386 * term/i386/pc/at_keyboard.c: Likewise.
30387 * term/i386/pc/vga_text.c: Likewise.
30388 * util/grub-mkdevicemap.c: Likewise.
30390 2008-01-02 Robert Millan <rmh@aybabtu.com>
30392 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
30393 message when loaded image is out of bounds.
30394 (grub_multiboot_load_elf64): Likewise.
30396 2008-01-02 Pavel Roskin <proski@gnu.org>
30398 * util/grub.d/10_linux.in: Try version without ".old" when
30399 looking for initrd. It's better to use initrd from the newer
30400 kernel of the same version than no initrd at all.
30402 2008-01-01 Robert Millan <rmh@aybabtu.com>
30404 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
30406 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
30408 * include/grub/video.h: Added grub_video_unmap_color and
30409 grub_video_get_active_render_target.
30410 (grub_video_adapter): Added unmap_color and get_active_render_target.
30412 * video/video.c: Added grub_video_unmap_color and
30413 grub_video_get_active_render_target.
30414 (grub_video_get_info): Changed method to accept NULL pointer as an
30415 argument to allow detection of active video adapter.
30417 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
30418 grub_video_vbe_unmap_color_int.
30419 Added grub_video_vbe_unmap_color and
30420 grub_video_vbe_get_active_render_target.
30421 (grub_video_vbe_adapter): Added unmap_color and
30422 get_active_render_target.
30424 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
30425 with grub_video_vbe_unmap_color_int.
30427 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
30428 (DEFAULT_NORMAL_COLOR): Likewise.
30429 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
30430 (DEFAULT_FG_COLOR): Removed.
30431 (DEFAULT_BG_COLOR): Likewise.
30432 (DEFAULT_CURSOR_COLOR): Changed value.
30433 (grub_virtual_screen): Added standard_color_setting,
30434 normal_color_setting, highlight_color_setting and term_color.
30435 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
30436 (bitmap_width): Added.
30437 (bitmap_height): Likewise.
30438 (bitmap): Likewise.
30439 (set_term_color): Likewise.
30440 (grub_virtual_screen_setup): Changed to use new terminal coloring
30442 (grub_gfxterm_init): Added init for bitmap.
30443 (grub_gfxterm_fini): Added destroy for bitmap.
30444 (redraw_screen_rect): Updated to use background bitmap and new
30446 (scroll_up): Added optimization for case when there is no bitmap.
30447 (grub_gfxterm_cls): Fixed to use correct background color.
30448 (grub_virtual_screen_setcolorstate): Changed to use new terminal
30450 (grub_virtual_screen_setcolor): Likewise.
30451 (grub_virtual_screen_getcolor): Added.
30452 (grub_gfxterm_background_image_cmd): Likewise.
30453 (grub_video_term): Added setcolor and getcolor.
30454 (MOD_INIT): Added registration of background_image command.
30455 (MOD_TERM): Added unregistration for background_image command.
30457 2007-12-30 Pavel Roskin <proski@gnu.org>
30459 * loader/multiboot_loader.c: Fix multiboot command
30460 unregistration. Fix all typos in the word "multiboot".
30462 2007-12-29 Pavel Roskin <proski@gnu.org>
30464 * util/grub.d/10_linux.in: Refactor search for initrd. Add
30465 support for initrd names used in Fedora.
30467 2007-12-26 Bean <bean123ch@gmail.com>
30469 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
30470 (cpio_mod_SOURCES): New variable.
30471 (cpio_mod_CFLAGS): Likewise.
30472 (cpio_mod_LDFLAGS): Likewise.
30474 * fs/cpio.c: New file.
30476 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
30478 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30480 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30482 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30484 2007-12-25 Robert Millan <rmh@aybabtu.com>
30486 * include/grub/term.h (struct grub_term): Add `getcolor' function.
30487 (grub_getcolor): New function.
30489 * kern/term.c (grub_getcolor): New function.
30490 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
30491 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
30492 (print_entry): Set normal and highlight colors to
30493 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
30494 respectively, before printing and restore them to old
30496 (grub_menu_init_page): Likewise. Fill an additional colored space
30497 that would otherwise be left blank.
30499 * term/efi/console.c (grub_console_getcolor): New function.
30500 (struct grub_console_term.getcolor): New variable.
30501 * term/i386/pc/console.c (grub_console_getcolor): New function.
30502 (struct grub_console_term.getcolor): New variable.
30503 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
30504 (struct grub_console_term.getcolor): New variable.
30506 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
30507 (struct grub_console_term.setcolor): Remove variable.
30508 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
30509 (struct grub_console_term.setcolor): Remove variable.
30510 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
30511 (struct grub_console_term.setcolor): Remove variable.
30512 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
30513 (struct grub_console_term.setcolor): Remove variable.
30515 2007-12-25 Robert Millan <rmh@aybabtu.com>
30517 * configure.ac: Search for possible unifont.hex locations, and
30518 define UNIFONT_HEX if found.
30520 * Makefile.in (UNIFONT_HEX): Define variable.
30521 (DATA): Rename to ...
30522 (PKGLIB): ... this. Update all users.
30523 (PKGDATA): New variable.
30524 (pkgdata_IMAGES): Rename to ...
30525 (pkglib_IMAGES): ... this. Update all users.
30526 (pkgdata_MODULES): Rename to ...
30527 (pkglib_MODULES): ... this. Update all users.
30528 (pkgdata_PROGRAMS): Rename to ...
30529 (pkglib_PROGRAMS): ... this. Update all users.
30530 (pkgdata_DATA): Rename to ...
30531 (pkglib_DATA): ... this. Update all users.
30532 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
30533 (unicode.pff, ascii.pff): New rules.
30534 (all-local): Add `$(PKGDATA)' dependency.
30535 (install-local): Process `$(PKGDATA)'.
30537 * util/update-grub_lib.in (font_path): Search for *.pff files in
30538 a few more locations, including `${pkgdata}'.
30540 2007-12-23 Robert Millan <rmh@aybabtu.com>
30542 Patch from Bean <bean123ch@gmail.com>:
30543 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
30546 2007-12-21 Bean <bean123ch@gmail.com>
30548 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
30549 (ntfscomp_mod_SOURCES): New variable.
30550 (ntfscomp_mod_CFLAGS): Likewise.
30551 (ntfscomp_mod_LDFLAGS): Likewise.
30553 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
30554 (grub_probe_SOURCES): Likewise.
30555 (grub_emu_SOURCES): Likewise.
30557 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
30558 (grub_emu_SOURCES): Likewise.
30560 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
30561 (grub_emu_SOURCES): Likewise.
30563 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
30564 (grub_emu_SOURCES): Likewise.
30566 * fs/ntfs.c (grub_ntfscomp_func): New variable.
30567 (read_run_list): Renamed to grub_ntfs_read_run_list.
30568 (decomp_nextvcn): Moved to ntfscomp.c.
30569 (decomp_getch): Likewise.
30570 (decomp_get16): Likewise.
30571 (decomp_block): Likewise.
30572 (read_block): Likewise.
30573 (read_data): Partially moved to ntfscomp.c.
30574 (fixup): Change unsigned to grub_uint16_t.
30575 (read_mft): Change unsigned long to grub_uint32_t.
30576 (read_attr): Likewise.
30577 (read_data): Likewise.
30578 (read_run_data): Likewise.
30579 (read_run_list): Likewise.
30580 (read_mft): Likewise.
30582 * fs/ntfscomp.c: New file.
30584 * include/grub/ntfs.h: New file.
30586 2007-12-16 Robert Millan <rmh@aybabtu.com>
30588 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
30589 IDE disk check, since Linux is known to support 20 IDE disks.
30590 Reported by Colin Watson.
30592 2007-12-15 Bean <bean123ch@gmail.com>
30594 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
30595 (lnxboot_img_SOURCES): New variable.
30596 (lnxboot_img_ASFLAGS): Likewise.
30597 (lnxboot_img_LDFLAGS): Likewise.
30599 * boot/i386/pc/lnxboot.S: New file.
30601 2007-11-24 Pavel Roskin <proski@gnu.org>
30603 * configure.ac: Test if '--build-id=none' is supported by the
30604 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
30605 objcopy to generate incorrect binary files (binutils
30606 2.17.50.0.18-1 as shipped by Fedora 8).
30607 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
30608 linking, so that build ID doesn't break the test.
30610 2007-11-24 Pavel Roskin <proski@gnu.org>
30612 * include/grub/i386/time.h: use "void" in the argument list
30613 of grub_cpu_idle().
30614 * include/grub/powerpc/time.h: Likewise.
30615 * include/grub/sparc64/time.h: Likewise.
30617 2007-11-18 Christian Franke <franke@computer.org>
30619 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
30620 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
30621 This fixes the problem that function keys did not work in grub-emu.
30623 2007-11-18 Christian Franke <franke@computer.org>
30625 * disk/host.c (grub_host_open): Remove attribute unused from
30626 name parameter. Add check for "host". This fixes the problem
30627 that grub-emu does not find partitions.
30629 2007-11-18 Christian Franke <franke@computer.org>
30631 * util/hostfs.c (is_dir): New function.
30632 (grub_hostfs_dir): Handle missing dirent.d_type case.
30633 (grub_hostfs_read): Add missing fseek().
30634 (grub_hostfs_label): Clear label pointer. This fixes a crash
30635 of grub-emu on "ls (host)".
30637 2007-11-18 Christian Franke <franke@computer.org>
30639 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
30640 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
30641 to 64 bit boundary by default.
30643 2007-11-18 Bean <bean123ch@gmail.com>
30645 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
30646 (hexdump_mod_SOURCES): New variable.
30647 (hexdump_mod_CFLAGS): Likewise.
30648 (hexdump_mod_LDFLAGS): Likewise.
30650 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30652 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30654 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30656 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
30658 * include/grub/hexdump.h: New file.
30660 * commands/hexdump.c: New file.
30662 2007-11-10 Robert Millan <rmh@aybabtu.com>
30664 * commands/i386/pc/play.c (beep_off): Switch order of arguments
30665 in grub_outb() calls.
30666 (beep_on): Likewise.
30668 2007-11-10 Christian Franke <franke@computer.org>
30670 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
30671 (grub_menu_run): Likewise.
30673 2007-11-10 Robert Millan <rmh@aybabtu.com>
30675 * include/grub/i386/efi/machine.h: New file.
30676 * include/grub/i386/linuxbios/machine.h: Likewise.
30677 * include/grub/i386/pc/machine.h: Likewise.
30678 * include/grub/powerpc/ieee1275/machine.h: Likewise.
30679 * include/grub/sparc64/ieee1275/machine.h: Likewise.
30681 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
30682 (serial_hw_io_addr): New variable.
30683 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
30684 instead of `(unsigned short *) 0x400'.
30686 2007-11-10 Bean <bean123ch@gmail.com>
30688 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
30690 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
30692 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
30693 (vga_mod_SOURCES): Added.
30694 (vga_mod_CFLAGS): Likewise.
30695 (vga_mod_LDFLAGS): Likewise.
30697 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
30699 (set_map_mask): Likewise.
30700 (set_read_map): Likewise.
30701 (set_read_address): Likewise.
30702 (vga_font): Removed variable.
30703 (get_vga_glyph): Removed function.
30704 (invalidate_char): Likewise.
30705 (write_char): Changed to use grub_font_get_glyph() for font
30707 (grub_vga_putchar): Likewise.
30708 (grub_vga_getcharwidth): Likewise.
30710 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
30712 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
30714 (pxeboot_img_LDFLAGS): Likewise.
30715 (diskboot_img_LDFLAGS): Likewise.
30716 (kernel_img_LDFLAGS): Likewise.
30718 2007-11-06 Robert Millan <rmh@aybabtu.com>
30720 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
30721 in grub_outb() calls.
30722 (serial_hw_init): Likewise.
30724 2007-11-05 Robert Millan <rmh@aybabtu.com>
30726 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
30727 spaces. Skip non-regular files.
30729 2007-11-05 Robert Millan <rmh@aybabtu.com>
30731 * kern/disk.c (grub_disk_firmware_fini)
30732 (grub_disk_firmware_is_tainted): New variables.
30734 * include/grub/disk.h (grub_disk_firmware_fini)
30735 (grub_disk_firmware_is_tainted): Likewise.
30737 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
30738 (grub_disk_biosdisk_fini): ... to here.
30739 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
30740 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
30741 is set. Register grub_disk_biosdisk_fini() in
30742 `grub_disk_firmware_fini'.
30744 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
30745 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
30746 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
30747 to finish existing firmware disk interface.
30749 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
30750 (ata_mod_SOURCES): New variable.
30751 (ata_mod_CFLAGS): Likewise.
30752 (ata_mod_LDFLAGS): Likewise.
30754 2007-11-05 Robert Millan <rmh@aybabtu.com>
30756 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
30757 (grub_ata_wait): Reimplement using grub_millisleep().
30759 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
30760 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
30762 2007-11-03 Marco Gerards <marco@gnu.org>
30764 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
30765 (CRTC_ADDR_PORT): New macro.
30766 (CRTC_DATA_PORT): Likewise.
30767 (CRTC_CURSOR): Likewise.
30768 (CRTC_CURSOR_ADDR_HIGH): Likewise.
30769 (CRTC_CURSOR_ADDR_LOW): Likewise.
30770 (update_cursor): New function.
30771 (grub_console_real_putchar): Call `update_cursor'.
30772 (grub_console_gotoxy): Likewise.
30773 (grub_console_cls): Set the default color when clearing the
30775 (grub_console_setcursor): Implemented.
30777 2007-11-03 Marco Gerards <marco@gnu.org>
30779 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
30781 (grub_ata_pio_write): Likewise.
30783 (grub_atapi_identify): Wait after issuing an ATA command.
30784 (grub_atapi_packet): Likewise.
30785 (grub_ata_identify): Likewise.
30786 (grub_ata_readwrite): Likewise.
30788 2007-11-03 Marco Gerards <marco@gnu.org>
30790 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
30791 (grub_ata_pio_write): Likewise.
30792 (grub_ata_readwrite): Use `grub_error', instead of
30793 returning `grub_errno'.
30795 2007-11-03 Marco Gerards <marco@gnu.org>
30797 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
30798 grub_ata_pio_write once for every single sector, instead of for
30801 2007-10-31 Robert Millan <rmh@aybabtu.com>
30803 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
30805 * conf/i386-linuxbios.rmk: New file.
30807 * kern/i386/pc/hardware.c: Likewise.
30808 * term/i386/pc/at_keyboard.c: Likewise.
30809 * term/i386/pc/vga_text.c: Likewise.
30811 * include/grub/i386/linuxbios/boot.h: Likewise.
30812 * include/grub/i386/linuxbios/console.h: Likewise.
30813 * include/grub/i386/linuxbios/init.h: Likewise.
30814 * include/grub/i386/linuxbios/kernel.h: Likewise.
30815 * include/grub/i386/linuxbios/loader.h: Likewise.
30816 * include/grub/i386/linuxbios/memory.h: Likewise.
30817 * include/grub/i386/linuxbios/serial.h: Likewise.
30818 * include/grub/i386/linuxbios/time.h: Likewise.
30820 * kern/i386/linuxbios/init.c: Likewise.
30821 * kern/i386/linuxbios/startup.S: Likewise.
30822 * kern/i386/linuxbios/table.c: Likewise.
30824 2007-10-31 Marco Gerards <marco@gnu.org>
30826 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
30827 (ata_mod_SOURCES): New variable.
30828 (ata_mod_CFLAGS): Likewise.
30829 (ata_mod_LDFLAGS): Likewise.
30831 * disk/ata.c: New file.
30833 * include/grub/disk.h (grub_disk_dev_id): Add
30834 `GRUB_DISK_DEV_ATA_ID'.
30836 2007-10-31 Robert Millan <rmh@aybabtu.com>
30838 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
30839 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
30841 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
30842 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
30844 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
30847 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
30849 2007-10-27 Robert Millan <rmh@aybabtu.com>
30851 * include/grub/types.h (ULONG_MAX): Define macro.
30853 2007-10-22 Robert Millan <rmh@aybabtu.com>
30855 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
30857 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
30859 2007-10-22 Robert Millan <rmh@aybabtu.com>
30861 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
30862 (pkgdata_MODULES): Add `biosdisk.mod'.
30863 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
30866 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
30867 (grub_biosdisk_init): Replace with ...
30868 (GRUB_MOD_INIT(biosdisk)): ... this.
30869 (grub_biosdisk_fini): Replace with ...
30870 (GRUB_MOD_FINI(biosdisk)): ... this.
30872 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
30873 (grub_machine_init): Remove call to grub_biosdisk_init().
30874 (grub_machine_fini): Remove call to grub_machine_fini().
30876 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
30878 2007-10-22 Robert Millan <rmh@aybabtu.com>
30880 * include/grub/time.h: New file.
30881 * include/grub/i386/time.h: Likewise.
30882 * include/grub/powerpc/time.h: Likewise.
30883 * include/grub/sparc64/time.h: Likewise.
30885 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
30887 (KERNEL_MACHINE_TIME_HEADER): ... this.
30888 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
30890 (KERNEL_MACHINE_TIME_HEADER): ... this.
30891 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
30893 (KERNEL_MACHINE_TIME_HEADER): ... this.
30895 * kern/i386/efi/init.c: Include `<grub/time.h>'.
30896 (grub_millisleep): New function.
30897 * kern/i386/pc/init.c: Include `<grub/time.h>'.
30898 (grub_millisleep): New function.
30899 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
30900 Remove `grub/machine/time.h' include.
30901 (grub_millisleep): New function.
30902 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
30903 Remove `grub/machine/time.h' include.
30904 (grub_millisleep): New function.
30906 * include/grub/misc.h (grub_div_roundup): New function.
30908 * kern/misc.c: Include `<grub/time.h>'.
30909 (grub_millisleep_generic): New function.
30911 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
30913 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
30915 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
30916 `machine/time.h'. Add `time.h'.
30917 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
30919 2007-10-21 Robert Millan <rmh@aybabtu.com>
30921 * include/grub/misc.h (grub_max): New function.
30923 2007-10-21 Robert Millan <rmh@aybabtu.com>
30925 * util/misc.c (grub_util_info): Call fflush() before returning.
30927 2007-10-20 Robert Millan <rmh@aybabtu.com>
30929 * genmk.rb (Image): Copy `extra_flags' from here ...
30930 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
30932 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
30933 to `argc' and `args' arguments.
30935 2007-10-17 Robert Millan <rmh@aybabtu.com>
30937 * kern/i386/loader.S: New file.
30939 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
30940 * kern/i386/loader.S (grub_linux_prot_size)... to here.
30941 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
30942 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
30943 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
30944 * kern/i386/loader.S (grub_linux_real_addr)... to here.
30945 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
30946 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
30947 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
30948 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
30949 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
30950 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
30951 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
30952 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
30954 * kern/i386/realmode.S: New file.
30956 * kern/i386/pc/startup.S (protstack): Moved from here ...
30957 * kern/i386/realmode.S (protstack)... to here.
30958 * kern/i386/pc/startup.S (gdt): Moved from here ...
30959 * kern/i386/realmode.S (gdt)... to here.
30960 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
30961 * kern/i386/realmode.S (prot_to_real)... to here.
30963 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
30964 `kern/i386/realmode.S'.
30966 2007-10-17 Robert Millan <rmh@aybabtu.com>
30968 * include/grub/i386/loader.h: New file.
30970 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
30971 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
30972 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
30973 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
30974 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
30975 * include/grub/i386/loader.h (grub_linux_prot_size)
30976 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
30977 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
30978 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
30979 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
30981 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
30983 2007-10-15 Robert Millan <rmh@aybabtu.com>
30985 * normal/misc.c (grub_normal_print_device_info): Do not probe for
30986 filesystem when dev->disk is unset.
30987 Do probe for filesystem even when dev->disk->has_partitions is set.
30988 In case a filesystem is found, always report it.
30989 In case it isn't, if dev->disk->has_partitions is set, report that
30990 a partition table was found instead of reporting that no filesystem
30991 could be identified.
30993 2007-10-12 Robert Millan <rmh@aybabtu.com>
30995 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
30996 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
30998 * include/grub/types.h (grub_host_to_target16): New macro.
30999 (grub_host_to_target32): Likewise.
31000 (grub_host_to_target64): Likewise.
31001 (grub_target_to_host16): Likewise.
31002 (grub_target_to_host32): Likewise.
31003 (grub_target_to_host64): Likewise.
31005 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
31006 Renamed from to ...
31007 (GRUB_MOD_ALIGN): ...this. Update all users.
31009 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
31010 grub_host_to_target32.
31011 Replace grub_be_to_cpu32 with grub_target_to_host32.
31012 (load_modules): Likewise.
31013 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
31014 Replace grub_be_to_cpu32 with grub_target_to_host32.
31015 Replace grub_cpu_to_be16 with grub_host_to_target16.
31016 Replace grub_cpu_to_be32 grub_host_to_target32.
31018 2007-10-12 Robert Millan <rmh@aybabtu.com>
31020 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
31021 * util/elf/grub-mkimage.c: ... here.
31023 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
31024 `util/powerpc/ieee1275/grub-mkimage.c'.
31026 2007-10-07 Robert Millan <rmh@aybabtu.com>
31028 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
31029 and make it easier to figure out.
31030 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
31031 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
31032 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
31033 leave us with less than HEAP_MIN_SIZE total heap.
31034 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
31036 2007-10-03 Robert Millan <rmh@aybabtu.com>
31038 * include/grub/i386/io.h: New file.
31039 * commands/i386/pc/play.c (inb): Removed.
31041 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
31043 * term/i386/pc/serial.c (inb): Removed.
31045 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
31047 * term/i386/pc/vga.c (inb): Removed.
31049 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
31052 2007-10-02 Robert Millan <rmh@aybabtu.com>
31054 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
31055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31056 Reported by Marcin Kurek.
31058 2007-09-07 Robert Millan <rmh@aybabtu.com>
31060 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
31061 SmartFirmware version updates (as released by Sven Luther), and avoid
31062 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
31063 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
31066 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
31068 From Hitoshi Ozeki:
31069 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
31070 when merging two regions.
31072 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
31074 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
31075 * normal/completion.c (grub_normal_do_completion): Likewise.
31076 Reported by Hitoshi Ozeki.
31078 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
31080 Do not use devices at boot in chainloading.
31082 * loader/i386/pc/chainloader.c (boot_drive): New variable.
31083 (boot_part_addr): Likewise.
31084 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
31085 with BOOT_DRIVE and BOOT_PART_ADDR.
31086 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
31087 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
31089 2007-08-29 Robert Millan <rmh@aybabtu.com>
31091 Patch from Simon Peter <dn.tlp@gmx.net>:
31092 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
31093 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
31094 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
31095 util/i386/pc/grub-setup.c_DEPENDENCIES.
31096 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
31097 util/grub-probe.c_DEPENDENCIES.
31098 * conf/powerpc-ieee1275.rmk: Likewise.
31100 2007-08-28 Robert Millan <rmh@aybabtu.com>
31102 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
31103 to tell grub-mkdevicemap how to name devices.
31104 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
31107 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
31108 util/i386/get_disk_name.c.
31109 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
31110 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
31111 util/ieee1275/get_disk_name.c.
31113 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
31115 * DISTLIST: Add util/i386/get_disk_name.c and
31116 util/ieee1275/get_disk_name.c.
31118 * util/grub-mkdevicemap.c: Replace device naming logic with
31119 grub_util_get_disk_name() calls.
31121 2007-08-20 Robert Millan <rmh@aybabtu.com>
31123 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
31124 (so that it works for both plural and singular quantities).
31126 2007-08-05 Robert Millan <rmh@aybabtu.com>
31128 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
31129 so that [xz] isn't taken into account when determining order.
31131 2007-08-02 Marco Gerards <marco@gnu.org>
31133 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
31134 `include/multiboot2.h', `include/grub/elfload.h',
31135 `include/multiboot.h', `include/grub/multiboot.h',
31136 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
31137 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
31138 `kern/elf.c', `loader/multiboot_loader.c',
31139 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
31140 `loader/i386/pc/multiboot2.c',
31141 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
31142 `util/i386/pc/grub-mkrescue.in'. Remove
31143 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
31144 `include/grub/i386/pc/util/biosdisk.h' and
31145 `include/grub/powerpc/ieee1275/multiboot.h'.
31147 2007-08-02 Bean <bean123ch@gmail.com>
31149 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
31150 (ntfs_mod_SOURCES): New variable.
31151 (ntfs_mod_CFLAGS): Likewise.
31152 (ntfs_mod_LDFLAGS): Likewise.
31154 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
31155 (grub_probe_SOURCES): Likewise.
31156 (grub_emu_SOURCES): Likewise.
31158 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
31159 (grub_emu_SOURCES): Likewise.
31161 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
31162 (grub_emu_SOURCES): Likewise.
31164 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
31166 * fs/ntfs.c: New file.
31168 2007-08-02 Bean <bean123ch@gmail.com>
31170 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
31172 * file.h (grub_file): Likewise.
31174 * fshelp.h (grub_fshelp_read_file): Likewise.
31176 * util/i386/pc/grub-setup.c (setup): Likewise.
31177 (save_first_sector): Likewise.
31178 (save_blocklists): Likewise.
31180 * fs/affs.c (grub_affs_read_file): Likewise.
31182 * fs/ext2.c (grub_ext2_read_file): Likewise.
31184 * fs/fat.c (grub_fat_read_data): Likewise.
31186 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
31188 * fs/hfs.c (grub_hfs_read_file): Likewise.
31190 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
31192 * fs/jfs.c (grub_jfs_read_file): Likewise.
31194 * fs/minix.c (grub_minix_read_file): Likewise.
31196 * fs/sfs.c (grub_sfs_read_file): Likewise.
31198 * fs/ufs.c (grub_ufs_read_file): Likewise.
31200 * fs/xfs.c (grub_xfs_read_file): Likewise.
31202 * command/blocklist.c (read_blocklist): Likewise.
31203 (print_blocklist): Likewise.
31205 2007-08-02 Marco Gerards <marco@gnu.org>
31207 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
31210 * disk/host.c: New file.
31212 * util/hostfs.c: Likewise.
31214 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
31215 return `GRUB_ERR_BAD_FS'.
31216 * fs/sfs.c (grub_sfs_mount): Likewise.
31217 * fs/xfs.c (grub_xfs_mount): Likewise.
31219 * include/grub/disk.h (enum grub_disk_dev_id): Add
31220 `GRUB_DISK_DEVICE_HOST_ID'.
31222 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
31224 2007-07-24 Jerone Young <jerone@gmail.com>
31226 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
31227 modules for compilation.
31228 * conf/powerpc-ieee1275.rmk: Likewise.
31230 * include/multiboot.h: Move multiboot definitions to one file. Rename
31231 many definitions to not get grub specific.
31232 * include/multiboot2.h: Create header with multiboot 2 definitions.
31233 * include/grub/multiboot.h: Header for grub specific function
31234 prototypes and definitions.
31235 * include/grub/multiboot2.h: Likewise.
31236 * include/grub/multiboot_loader.h: Likewise.
31237 * include/grub/i386/pc/multiboot.h: Removed.
31238 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
31240 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
31241 and 2 to allow for one multiboot and module commands.
31242 * loader/multiboot2.c: Add multiboot2 functionality.
31243 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
31244 and definition names.
31245 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
31247 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
31248 ieee1275 specific multiboot2 code.
31250 * kern/i386/pc/startup.S: Change headers and definition names for
31251 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
31253 2007-07-22 Robert Millan <rmh@aybabtu.com>
31255 * geninitheader.sh: Process file specified in first parameter rather
31256 than hardcoding grub_modules_init.lst.
31257 * geninit.sh: Likewise. Also, construct header name dynamically rather
31258 than hardcoding grub_modules_init.h.
31260 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
31261 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
31262 grub_probe_init.[ch] and grub_setup_init.[ch].
31264 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
31265 grub_modules_init.h with grub_emu_init.h.
31266 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
31267 grub_probe_init.[ch] files.
31268 * conf/i386-efi.rmk: Likewise.
31269 * conf/i386-pc.rmk: Likewise.
31270 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
31271 grub_setup_init.[ch] files.
31273 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
31274 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
31275 to initialize modules rather than a list of hardcoded functions.
31276 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
31277 grub_init_all() to initialize modules rather than a list of hardcoded
31280 2007-07-22 Robert Millan <rmh@aybabtu.com>
31282 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
31283 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
31285 2007-07-22 Robert Millan <rmh@aybabtu.com>
31287 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
31288 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
31289 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
31290 flag when running on SmartFirmware.
31291 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
31292 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
31295 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
31296 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
31297 rather than decreasing it.
31299 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
31300 there's not enough space to do it, fail in the same way as when it
31301 can't be done because there are no partitions.
31303 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
31304 when nvsetenv failed.
31306 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
31308 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
31309 because this rule is automatically generated.
31310 (grub-mkrescue): Removed for the same reason as above.
31312 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
31314 Migrate to GNU General Public License Version 3.
31316 * COPYING: Replaced with the plain text version of GPLv3.
31318 * config.guess: Updated from gnulib.
31319 * config.sub: Likewise.
31321 * geninit.sh: Output a GPLv3 copyright notice.
31322 * geninitheader.sh: Likewise.
31323 * genmodsrc.sh: Likewise.
31324 * gensymlist.sh.in: Likewise.
31326 * boot/i386/pc/boot.S: Upgraded to GPLv3.
31327 * boot/i386/pc/diskboot.S: Likewise.
31328 * boot/i386/pc/pxeboot.S: Likewise.
31329 * commands/blocklist.c: Likewise.
31330 * commands/boot.c: Likewise.
31331 * commands/cat.c: Likewise.
31332 * commands/cmp.c: Likewise.
31333 * commands/configfile.c: Likewise.
31334 * commands/echo.c: Likewise.
31335 * commands/help.c: Likewise.
31336 * commands/ls.c: Likewise.
31337 * commands/search.c: Likewise.
31338 * commands/terminal.c: Likewise.
31339 * commands/test.c: Likewise.
31340 * commands/videotest.c: Likewise.
31341 * commands/i386/cpuid.c: Likewise.
31342 * commands/i386/pc/halt.c: Likewise.
31343 * commands/i386/pc/play.c: Likewise.
31344 * commands/i386/pc/reboot.c: Likewise.
31345 * commands/i386/pc/vbeinfo.c: Likewise.
31346 * commands/i386/pc/vbetest.c: Likewise.
31347 * commands/ieee1275/halt.c: Likewise.
31348 * commands/ieee1275/reboot.c: Likewise.
31349 * commands/ieee1275/suspend.c: Likewise.
31350 * disk/loopback.c: Likewise.
31351 * disk/lvm.c: Likewise.
31352 * disk/raid.c: Likewise.
31353 * disk/efi/efidisk.c: Likewise.
31354 * disk/i386/pc/biosdisk.c: Likewise.
31355 * disk/ieee1275/ofdisk.c: Likewise.
31356 * font/manager.c: Likewise.
31357 * fs/affs.c: Likewise.
31358 * fs/ext2.c: Likewise.
31359 * fs/fat.c: Likewise.
31360 * fs/fshelp.c: Likewise.
31361 * fs/hfs.c: Likewise.
31362 * fs/hfsplus.c: Likewise.
31363 * fs/iso9660.c: Likewise.
31364 * fs/jfs.c: Likewise.
31365 * fs/minix.c: Likewise.
31366 * fs/sfs.c: Likewise.
31367 * fs/ufs.c: Likewise.
31368 * fs/xfs.c: Likewise.
31369 * hello/hello.c: Likewise.
31370 * include/grub/acorn_filecore.h: Likewise.
31371 * include/grub/arg.h: Likewise.
31372 * include/grub/bitmap.h: Likewise.
31373 * include/grub/boot.h: Likewise.
31374 * include/grub/cache.h: Likewise.
31375 * include/grub/device.h: Likewise.
31376 * include/grub/disk.h: Likewise.
31377 * include/grub/dl.h: Likewise.
31378 * include/grub/elfload.h: Likewise.
31379 * include/grub/env.h: Likewise.
31380 * include/grub/err.h: Likewise.
31381 * include/grub/file.h: Likewise.
31382 * include/grub/font.h: Likewise.
31383 * include/grub/fs.h: Likewise.
31384 * include/grub/fshelp.h: Likewise.
31385 * include/grub/gzio.h: Likewise.
31386 * include/grub/hfs.h: Likewise.
31387 * include/grub/kernel.h: Likewise.
31388 * include/grub/loader.h: Likewise.
31389 * include/grub/lvm.h: Likewise.
31390 * include/grub/misc.h: Likewise.
31391 * include/grub/mm.h: Likewise.
31392 * include/grub/net.h: Likewise.
31393 * include/grub/normal.h: Likewise.
31394 * include/grub/parser.h: Likewise.
31395 * include/grub/partition.h: Likewise.
31396 * include/grub/pc_partition.h: Likewise.
31397 * include/grub/raid.h: Likewise.
31398 * include/grub/rescue.h: Likewise.
31399 * include/grub/script.h: Likewise.
31400 * include/grub/setjmp.h: Likewise.
31401 * include/grub/symbol.h: Likewise.
31402 * include/grub/term.h: Likewise.
31403 * include/grub/terminfo.h: Likewise.
31404 * include/grub/tparm.h: Likewise.
31405 * include/grub/types.h: Likewise.
31406 * include/grub/video.h: Likewise.
31407 * include/grub/efi/api.h: Likewise.
31408 * include/grub/efi/chainloader.h: Likewise.
31409 * include/grub/efi/console.h: Likewise.
31410 * include/grub/efi/console_control.h: Likewise.
31411 * include/grub/efi/disk.h: Likewise.
31412 * include/grub/efi/efi.h: Likewise.
31413 * include/grub/efi/pe32.h: Likewise.
31414 * include/grub/efi/time.h: Likewise.
31415 * include/grub/i386/linux.h: Likewise.
31416 * include/grub/i386/setjmp.h: Likewise.
31417 * include/grub/i386/types.h: Likewise.
31418 * include/grub/i386/efi/kernel.h: Likewise.
31419 * include/grub/i386/efi/loader.h: Likewise.
31420 * include/grub/i386/efi/time.h: Likewise.
31421 * include/grub/i386/pc/biosdisk.h: Likewise.
31422 * include/grub/i386/pc/boot.h: Likewise.
31423 * include/grub/i386/pc/chainloader.h: Likewise.
31424 * include/grub/i386/pc/console.h: Likewise.
31425 * include/grub/i386/pc/init.h: Likewise.
31426 * include/grub/i386/pc/kernel.h: Likewise.
31427 * include/grub/i386/pc/loader.h: Likewise.
31428 * include/grub/i386/pc/memory.h: Likewise.
31429 * include/grub/i386/pc/multiboot.h: Likewise.
31430 * include/grub/i386/pc/serial.h: Likewise.
31431 * include/grub/i386/pc/time.h: Likewise.
31432 * include/grub/i386/pc/vbe.h: Likewise.
31433 * include/grub/i386/pc/vbeblit.h: Likewise.
31434 * include/grub/i386/pc/vbefill.h: Likewise.
31435 * include/grub/i386/pc/vbeutil.h: Likewise.
31436 * include/grub/i386/pc/vga.h: Likewise.
31437 * include/grub/ieee1275/ieee1275.h: Likewise.
31438 * include/grub/ieee1275/ofdisk.h: Likewise.
31439 * include/grub/powerpc/libgcc.h: Likewise.
31440 * include/grub/powerpc/setjmp.h: Likewise.
31441 * include/grub/powerpc/types.h: Likewise.
31442 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
31443 * include/grub/powerpc/ieee1275/console.h: Likewise.
31444 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
31445 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
31446 * include/grub/powerpc/ieee1275/loader.h: Likewise.
31447 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
31448 * include/grub/powerpc/ieee1275/time.h: Likewise.
31449 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
31450 * include/grub/sparc64/libgcc.h: Likewise.
31451 * include/grub/sparc64/setjmp.h: Likewise.
31452 * include/grub/sparc64/types.h: Likewise.
31453 * include/grub/sparc64/ieee1275/console.h: Likewise.
31454 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
31455 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
31456 * include/grub/sparc64/ieee1275/time.h: Likewise.
31457 * include/grub/util/biosdisk.h: Likewise.
31458 * include/grub/util/getroot.h: Likewise.
31459 * include/grub/util/lvm.h: Likewise.
31460 * include/grub/util/misc.h: Likewise.
31461 * include/grub/util/raid.h: Likewise.
31462 * include/grub/util/resolve.h: Likewise.
31463 * io/gzio.c: Likewise.
31464 * kern/device.c: Likewise.
31465 * kern/disk.c: Likewise.
31466 * kern/dl.c: Likewise.
31467 * kern/elf.c: Likewise.
31468 * kern/env.c: Likewise.
31469 * kern/err.c: Likewise.
31470 * kern/file.c: Likewise.
31471 * kern/fs.c: Likewise.
31472 * kern/loader.c: Likewise.
31473 * kern/main.c: Likewise.
31474 * kern/misc.c: Likewise.
31475 * kern/mm.c: Likewise.
31476 * kern/parser.c: Likewise.
31477 * kern/partition.c: Likewise.
31478 * kern/rescue.c: Likewise.
31479 * kern/term.c: Likewise.
31480 * kern/efi/efi.c: Likewise.
31481 * kern/efi/init.c: Likewise.
31482 * kern/efi/mm.c: Likewise.
31483 * kern/i386/dl.c: Likewise.
31484 * kern/i386/efi/init.c: Likewise.
31485 * kern/i386/efi/startup.S: Likewise.
31486 * kern/i386/pc/init.c: Likewise.
31487 * kern/i386/pc/lzo1x.S: Likewise.
31488 * kern/i386/pc/startup.S: Likewise.
31489 * kern/ieee1275/ieee1275.c: Likewise.
31490 * kern/powerpc/cache.S: Likewise.
31491 * kern/powerpc/dl.c: Likewise.
31492 * kern/powerpc/ieee1275/cmain.c: Likewise.
31493 * kern/powerpc/ieee1275/crt0.S: Likewise.
31494 * kern/powerpc/ieee1275/init.c: Likewise.
31495 * kern/powerpc/ieee1275/openfw.c: Likewise.
31496 * kern/sparc64/cache.S: Likewise.
31497 * kern/sparc64/dl.c: Likewise.
31498 * kern/sparc64/ieee1275/init.c: Likewise.
31499 * kern/sparc64/ieee1275/openfw.c: Likewise.
31500 * loader/efi/chainloader.c: Likewise.
31501 * loader/efi/chainloader_normal.c: Likewise.
31502 * loader/i386/efi/linux.c: Likewise.
31503 * loader/i386/efi/linux_normal.c: Likewise.
31504 * loader/i386/pc/chainloader.c: Likewise.
31505 * loader/i386/pc/chainloader_normal.c: Likewise.
31506 * loader/i386/pc/linux.c: Likewise.
31507 * loader/i386/pc/linux_normal.c: Likewise.
31508 * loader/i386/pc/multiboot.c: Likewise.
31509 * loader/i386/pc/multiboot_normal.c: Likewise.
31510 * loader/powerpc/ieee1275/linux.c: Likewise.
31511 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
31512 * normal/arg.c: Likewise.
31513 * normal/cmdline.c: Likewise.
31514 * normal/command.c: Likewise.
31515 * normal/completion.c: Likewise.
31516 * normal/execute.c: Likewise.
31517 * normal/function.c: Likewise.
31518 * normal/lexer.c: Likewise.
31519 * normal/main.c: Likewise.
31520 * normal/menu.c: Likewise.
31521 * normal/menu_entry.c: Likewise.
31522 * normal/misc.c: Likewise.
31523 * normal/parser.y: Likewise.
31524 * normal/script.c: Likewise.
31525 * normal/i386/setjmp.S: Likewise.
31526 * normal/powerpc/setjmp.S: Likewise.
31527 * normal/sparc64/setjmp.S: Likewise.
31528 * partmap/acorn.c: Likewise.
31529 * partmap/amiga.c: Likewise.
31530 * partmap/apple.c: Likewise.
31531 * partmap/gpt.c: Likewise.
31532 * partmap/pc.c: Likewise.
31533 * partmap/sun.c: Likewise.
31534 * term/gfxterm.c: Likewise.
31535 * term/terminfo.c: Likewise.
31536 * term/efi/console.c: Likewise.
31537 * term/i386/pc/console.c: Likewise.
31538 * term/i386/pc/serial.c: Likewise.
31539 * term/i386/pc/vesafb.c: Likewise.
31540 * term/i386/pc/vga.c: Likewise.
31541 * term/ieee1275/ofconsole.c: Likewise.
31542 * util/biosdisk.c: Likewise.
31543 * util/console.c: Likewise.
31544 * util/genmoddep.c: Likewise.
31545 * util/getroot.c: Likewise.
31546 * util/grub-emu.c: Likewise.
31547 * util/grub-mkdevicemap.c: Likewise.
31548 * util/grub-probe.c: Likewise.
31549 * util/lvm.c: Likewise.
31550 * util/misc.c: Likewise.
31551 * util/raid.c: Likewise.
31552 * util/resolve.c: Likewise.
31553 * util/update-grub.in: Likewise.
31554 * util/update-grub_lib.in: Likewise.
31555 * util/grub.d/00_header.in: Likewise.
31556 * util/grub.d/10_hurd.in: Likewise.
31557 * util/grub.d/10_linux.in: Likewise.
31558 * util/i386/efi/grub-install.in: Likewise.
31559 * util/i386/efi/grub-mkimage.c: Likewise.
31560 * util/i386/pc/grub-install.in: Likewise.
31561 * util/i386/pc/grub-mkimage.c: Likewise.
31562 * util/i386/pc/grub-mkrescue.in: Likewise.
31563 * util/i386/pc/grub-setup.c: Likewise.
31564 * util/i386/pc/misc.c: Likewise.
31565 * util/powerpc/ieee1275/grub-install.in: Likewise.
31566 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
31567 * util/powerpc/ieee1275/misc.c: Likewise.
31568 * video/bitmap.c: Likewise.
31569 * video/video.c: Likewise.
31570 * video/i386/pc/vbe.c: Likewise.
31571 * video/i386/pc/vbeblit.c: Likewise.
31572 * video/i386/pc/vbefill.c: Likewise.
31573 * video/i386/pc/vbeutil.c: Likewise.
31574 * video/readers/tga.c: Likewise.
31576 2007-07-02 Robert Millan <rmh@aybabtu.com>
31578 * conf/i386-efi.rmk: Replace obsolete reference to
31579 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
31580 with util/getroot.c.
31581 * conf/powerpc-ieee1275.rmk: Likewise.
31582 * conf/sparc64-ieee1275.rmk: Likewise.
31584 * util/grub-emu.c (main): Fix unchecked pointer handling.
31586 2007-07-02 Robert Millan <rmh@aybabtu.com>
31588 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
31589 invocation to fail, in order to support partition-less media.
31591 * util/i386/pc/grub-install.in: Likewise.
31593 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
31594 which fs or partmap modules are needed (akin to its sister scripts).
31596 Also use grub-probe to get rid of unportable /proc/mounts check.
31598 Print the same informational message that the other scripts do, before
31601 2007-06-23 Robert Millan <rmh@aybabtu.com>
31603 * util/update-grub_lib.in (font_path): New function. Determine whether
31604 a font file can be found and, if so, echo the GRUB path to it.
31606 * util/update-grub.in: Handle multiple terminals depending on user
31607 input, platform availability and font file presence. Propagate
31608 variables of our findings to /etc/grub.d/ children.
31610 * util/grub.d/00_header.in: Handle multiple terminals, based on
31611 environment setup by update-grub.
31613 2007-06-23 Robert Millan <rmh@aybabtu.com>
31615 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
31617 2007-06-21 Robert Millan <rmh@aybabtu.com>
31619 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
31620 indicate end of data section in kernel image.
31621 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
31622 GRUB_KERNEL_MACHINE_DATA_END.
31624 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
31626 * kern/i386/efi/startup.S: Likewise.
31628 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
31629 during image generation. Implement --prefix option to override this
31631 * util/i386/efi/grub-mkimage.c: Likewise.
31633 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
31634 code to make path relative to its root into a separate function.
31636 * util/i386/pc/grub-install.in: Use newly provided
31637 make_system_path_relative_to_its_root() to convert ${grubdir}, then
31638 pass the result to grub-install --prefix.
31640 2007-06-13 Robert Millan <rmh@aybabtu.com>
31642 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
31643 DEFAULT_DEVICE_MAP.
31644 * util/grub-emu.c: Use above definitions from misc.h instead of
31646 * util/grub-mkdevicemap.c: Likewise.
31647 * util/i386/pc/grub-setup.c: Likewise.
31648 * util/grub-probe.c: Likewise.
31649 (probe): Abort with grub_util_error() when either
31650 grub_guess_root_device or grub_util_get_grub_dev fails.
31652 2007-06-12 Robert Millan <rmh@aybabtu.com>
31654 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
31655 "pager" assignment.
31656 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
31658 * util/grub-probe.c (probe): Likewise for "drive_name".
31660 2007-06-11 Robert Millan <rmh@aybabtu.com>
31662 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
31663 not just the cdrom one.
31665 2007-06-11 Robert Millan <rmh@aybabtu.com>
31667 * util/i386/pc/grub-mkrescue.in: Add "set -e".
31668 Add --pkglibdir=DIR option to override pkglibdir.
31669 Mention --image-type=TYPE in help output.
31670 Fix --grub-mkimage (it was a no-op).
31671 Abort gracefully when no parameter is given.
31673 2007-06-11 Robert Millan <rmh@aybabtu.com>
31675 * util/i386/pc/grub-mkrescue.in: New file.
31676 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
31677 * Makefile.in: Handle bin_SCRIPTS.
31679 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
31681 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
31682 list of video modes.
31684 2007-06-06 Robert Millan <rmh@aybabtu.com>
31686 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
31687 file doesn't exist, or if it is in a filesystem grub can't read.
31689 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
31690 not abort if GRUB_DRIVE could not be defined. Rearrange generated
31691 header comment to fit in 80 columns when the variables are resolved.
31693 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
31694 could be identified by update-grub. Remove redundant check for
31695 unifont.pff existence (since convert_system_path_to_grub_path now
31698 2007-06-04 Robert Millan <rmh@aybabtu.com>
31700 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
31702 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
31704 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
31706 2007-06-04 Robert Millan <rmh@aybabtu.com>
31708 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
31710 * include/grub/partition.h: Declare grub_apple_partition_map_init and
31711 grub_apple_partition_map_fini.
31714 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
31715 to access >2 TiB disks).
31717 Print disk->total_sectors with %llu instead of %lu, since this
31718 variable is always 64-bit (prevents wrong disk size from being displayed
31719 on either >2 TiB disk or big-endian CPU).
31721 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
31722 into a generic case that supports all (sane) partition maps.
31724 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
31727 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
31728 and grub_apple_partition_map_fini() after that.
31730 2007-06-01 Robert Millan <rmh@aybabtu.com>
31732 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
31734 * util/grub.d/00_header.in: Only enable gfxterm when
31735 convert_system_path_to_grub_path() succeeds.
31737 2007-05-20 Robert Millan <rmh@aybabtu.com>
31739 * util/update-grub_lib.in: New file.
31740 * DISTLIST: Add update-grub_lib.in.
31741 * conf/common.rmk: Generate update-grub_lib and install it in
31743 * Makefile.in: Add install routine for $(lib_DATA).
31745 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
31746 function provided by update-grub_lib to support arbitrary paths of
31748 * util/update-grub.in: Use convert_system_path_to_grub_path() to
31749 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
31751 2007-05-19 Robert Millan <rmh@aybabtu.com>
31753 * commands/i386/cpuid.c: New module.
31754 * DISTLIST: Add it.
31755 * conf/i386-efi.rmk: Enable cpuid.mod.
31756 * conf/i386-pc.rmk: Likewise.
31758 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
31760 * kern/disk.c (grub_disk_read): Check return value of
31763 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
31765 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
31767 * disk/raid.c (grub_raid_open): Likewise.
31769 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
31771 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
31772 stack instead of on the heap.
31774 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
31775 before doing a read on it.
31777 * configure.ac: Only use -fno-stack-protector for the target
31780 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
31782 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
31783 __attribute_ ((unused)) to mode_type argument.
31785 * util/getroot.c (grub_guess_root_device): Fix #endif.
31787 * kern/misc.c (memcmp): Fix prototype.
31789 * include/grub/partition.h [GRUB_UTIL]
31790 (grub_gpt_partition_map_init): Add prototype.
31791 (grub_gpt_partition_map_fini): Likewise.
31793 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
31794 at the right place.
31796 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
31797 (grub_fat_read_data): Likewise.
31798 (grub_fat_find_dir): Likewise.
31800 * font/manager.c (find_glyph): Make table a const.
31801 (grub_font_get_glyph): Remove bitmap from if statement.
31803 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
31805 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
31806 code, first search for device in /dev/mapper, then in /dev.
31807 (grub_util_get_grub_dev): New function.
31808 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
31810 * util/grub-probe.c (probe): Remove check for RAID, call
31811 grub_util_get_grub_dev() instead of
31812 grub_util_biosdisk_get_grub_dev().
31813 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
31814 grub_util_biosdisk_get_grub_dev().
31815 * util/i386/pc/grub-setup.c (main): Likewise.
31817 2007-05-16 Robert Millan <rmh@aybabtu.com>
31819 * DISTLIST: Update for the latest changes.
31820 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
31821 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
31822 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
31823 grub/util/biosdisk.h.
31824 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
31825 grub/util/biosdisk.h.
31827 2007-05-16 Robert Millan <rmh@aybabtu.com>
31829 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
31831 2007-05-16 Robert Millan <rmh@aybabtu.com>
31833 * util/i386/efi/grub-install.in: New.
31834 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
31835 newly added grub-install.
31836 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
31838 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
31839 grub/util/biosdisk.h.
31840 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
31841 grub/util/biosdisk.h.
31843 2007-05-16 Robert Millan <rmh@aybabtu.com>
31845 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
31846 * include/grub/util/biosdisk.h: ... here.
31847 * util/i386/pc/biosdisk.c: Moved to ...
31848 * util/biosdisk.c: ... here.
31849 * util/i386/pc/getroot.c: Moved to ...
31850 * util/getroot.c: ... here.
31851 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
31852 * util/grub-mkdevicemap.c: ... here.
31853 * util/i386/pc/grub-probe.c: Moved to ...
31854 * util/grub-probe.c: ... here.
31856 2007-05-15 Robert Millan <rmh@aybabtu.com>
31858 * util/update-grub.in: Remove duplicated line in grub.cfg header
31861 2007-05-13 Robert Millan <rmh@aybabtu.com>
31863 * util/update-grub.in: Fix a few assumptions about the devices holding
31864 /, /boot and /boot/grub being the same.
31865 * util/grub.d/00_header.in: Likewise.
31866 * util/grub.d/10_hurd.in: Likewise.
31867 * util/grub.d/10_linux.in: Likewise.
31869 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
31870 patterns. Use that to define the `.old' suffix as older than `'.
31872 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
31874 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
31875 the grub.cfg header message.
31877 2007-05-11 Robert Millan <rmh@aybabtu.com>
31879 * util/update-grub.in: Create device.map if it doesn't already exist,
31880 before attempting to run grub-probe.
31881 Check for grub-probe and grub-mkdevicemap with the same code
31882 grub-install is using.
31885 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
31887 * Makefile.in: Add the datarootdir autoconf variable.
31889 2007-05-09 Robert Millan <rmh@aybabtu.com>
31891 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
31892 fail gracefully if dev->disk->partition == NULL.
31894 2007-05-07 Robert Millan <rmh@aybabtu.com>
31896 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
31897 determine partition map module.
31898 * util/i386/pc/grub-install.in: Use this feature to decide which
31899 partition module to load, instead of hardcoding pc and gpt.
31901 2007-05-07 Robert Millan <rmh@aybabtu.com>
31903 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
31904 source directory differs from build directory.
31906 2007-05-05 Robert Millan <rmh@aybabtu.com>
31908 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
31911 2007-05-05 Robert Millan <rmh@aybabtu.com>
31913 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
31915 2007-05-05 Robert Millan <rmh@aybabtu.com>
31917 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
31918 command-line arguments via ${GRUB_CMDLINE_LINUX}.
31920 2007-05-05 Robert Millan <rmh@aybabtu.com>
31922 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
31923 (grub_probe_SOURCES): Likewise.
31924 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
31925 GPT and initialize dos_part and bsd_part accordingly.
31926 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
31928 (main): Activate gpt module for use during partition identification,
31929 and deactivate it afterwards.
31930 * util/i386/pc/grub-install.in: Add gpt module to core.img.
31931 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
31932 partition identification, and deactivate it afterwards.
31934 2007-05-05 Robert Millan <rmh@aybabtu.com>
31936 * term/i386/pc/console.c (grub_console_fini): Call
31937 grub_term_set_current() before grub_term_unregister().
31939 2007-05-04 Robert Millan <rmh@aybabtu.com>
31941 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
31942 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
31943 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
31944 and update-grub_DATA.
31945 * conf/common.rmk: Build and install update-grub components.
31946 * conf/common.mk: Regenerate.
31947 * util/update-grub.in: New. Core of update-grub.
31948 * util/grub.d/00_header.in: New. Generates grub.cfg header.
31949 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
31950 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
31951 * util/grub.d/README: New. Document grub.d directory layout.
31953 2007-05-01 Robert Millan <rmh@aybabtu.com>
31955 * util/grub-emu.c: Move initialization functions
31956 grub_util_biosdisk_init() and grub_init_all() before
31957 grub_util_biosdisk_get_grub_dev(), which relies on them.
31959 2007-04-19 Robert Millan <rmh@aybabtu.com>
31961 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
31964 2007-04-18 Jerone Young <jerone@gmail.com>
31966 * kernel/elf.c: Add missing parenthesis for conditional statement
31969 2007-04-10 Jerone Young <jerone@gmail.com>
31971 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
31972 continue on and look for device node with real device name.
31974 2007-04-10 Jerone Young <jerone@gmail.com>
31976 * configure.ac: Add argument for autoconf to use transformation
31978 * Makefile.in: Add autoconf package transformation code.
31979 * util/i386/pc/grub-install.in: Likewise.
31980 * util/powerpc/ieee1275/grub-install.in: Likewise.
31982 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
31984 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
31985 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
31986 (EXT2_REVISION): Likewise.
31987 (EXT2_INODE_SIZE): Likewise.
31988 (struct grub_ext2_block_group): Added a missing member
31990 (grub_ext2_read_inode): Divide by the inode size in a superblock
31991 instead of 128 to obtain INODES_PER_BLOCK.
31992 Use the macro EXT2_INODE_SIZE instead of directly using
31993 SBLOCK->INODE_SIZE.
31995 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
31997 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
31998 superblock instead of the structure size to compute an
31999 offset. This fixes the problem that GRUB could not read a
32000 filesystem when inode size is different from 128-byte.
32002 2007-03-05 Marco Gerards <marco@gnu.org>
32004 * normal/main.c (read_config_file): When "menu" is not set, create
32005 an initial context.
32007 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
32009 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
32010 (HEAP_LIMIT): New macro.
32011 (grub_claim_heap): Claim memory up to `heaplimit'.
32013 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
32015 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
32016 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
32017 (_start): Likewise.
32018 (grub_arch_modules_addr): Return address after `_end'.
32019 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
32020 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
32021 (add_segments): Calculate `_end' from phdr size and location.
32022 (ALIGN_UP): Moved to ...
32023 * include/grub/misc.h: here.
32024 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
32026 (GRUB_IEEE1275_MODULE_BASE): Removed.
32028 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
32030 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
32033 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
32035 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
32037 (grub_elf64_load_hook_t): Likewise.
32038 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
32041 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
32043 * kern/mm.c: Update copyright.
32044 (grub_mm_debug): Correct syntax error.
32045 (grub_mm_dump_free): New function.
32046 (grub_debug_free): Call `grub_free'.
32047 * include/grub/mm.h: Update copyright.
32048 (grub_mm_dump_free): Add declaration.
32050 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
32052 * include/grub/ieee1275/ieee1275.h: Update copyright.
32053 * kern/powerpc/ieee1275/init.c: Likewise.
32054 * kern/powerpc/ieee1275/openfw.c: Likewise.
32056 * loader/powerpc/ieee1275/linux.c: Likewise.
32057 * include/grub/elfload.h: Likewise.
32058 * kern/elf.c: Likewise.
32059 (grub_elf32_load): Pass `base' and `size' parameters. Update all
32061 (grub_elf64_load): Likewise.
32062 (grub_elf32_load_segment): Move to a nested function.
32063 (grub_elf64_load_segment): Likewise.
32065 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
32067 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
32069 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
32070 (grub_heap_len): Likewise.
32071 (HEAP_SIZE): New macro.
32072 (grub_claim_heap): New function.
32073 (grub_machine_init): Don't claim heap directly. Call
32075 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
32076 (grub_available_iterate): New function.
32078 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
32080 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
32081 * configure.ac: Use it for testing the HOST and TARGET compilers.
32083 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
32085 * Makefile.in (enable_grub_emu): New variable.
32086 * configure.ac (--enable-grub-emu): New option.
32087 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
32088 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
32089 * conf/i386-pc.rmk: Likewise.
32090 * conf/powerpc-ieee1275.rmk: Likewise.
32091 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
32093 2006-12-12 Marco Gerards <marco@gnu.org>
32095 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
32097 * kern/env.c (grub_env_unset): Don't free the member `value' when
32098 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
32101 * normal/main.c (current_menu): Removed.
32102 (free_menu): Unset the `menu' environment variable.
32103 (grub_normal_menu_addentry): Make use of the environment variable
32104 `menu', instead of using the global `current_menu'. Allocate
32105 memory for the sourcecode of this entry.
32106 (read_config_file): New argument `nested', changed all callers.
32107 Only in the case of a new context, initialize a new menu. Set the
32108 `menu' environment variable.
32109 (grub_normal_execute): Don't set and unset the environment
32110 variable `menu' here anymore. Only free the menu when leaving the
32113 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
32116 2006-12-11 Marco Gerards <marco@gnu.org>
32118 * normal/menu_entry.c (run): Fix off by one bug so the last line
32119 is executed. Move the loader check to outside the loop.
32121 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
32123 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
32125 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
32127 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
32128 the number of sectors. Reported by Andrey Shuvikov
32129 <mr_hyro@yahoo.com>.
32131 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
32133 * kern/disk.c (grub_disk_read): When there is a read error, always
32134 try to read only the necessary data.
32136 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
32138 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
32140 [GRUB_UTIL] (grub_raid_fini): Likewise.
32141 [GRUB_UTIL] (grub_lvm_init): Likewise.
32142 [GRUB_UTIL] (grub_lvm_fini): Likewise.
32143 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
32144 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
32145 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
32146 and grub_raid_fini().
32148 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
32150 * include/grub/types.h (__unused): Rename to UNUSED.
32151 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
32152 (grub_elf64_size): Likewise.
32154 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
32156 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
32157 grub_error_push and grub_error_pop in the error-handling path.
32158 (grub_elf32_load_segment): Only call grub_file_read with non-zero
32161 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
32163 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
32164 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32165 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32166 (kernel_elf_SOURCES): Likewise.
32167 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
32168 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
32169 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
32170 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
32171 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
32172 (elf_mod_SOURCES): New variable.
32173 (elf_mod_CFLAGS): Likewise.
32174 (elf_mod_LDFLAGS): Likewise.
32175 * include/grub/types.h (__unused): New macro.
32176 * include/grub/elfload.h: New file.
32177 * kern/elf.c: Likewise.
32178 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
32179 (ELF32_LOADMASK): New macro.
32180 (ELF64_LOADMASK): Likewise.
32181 (vmlinux): Removed.
32182 (grub_linux_load32): New function.
32183 (grub_linux_load64): Likewise.
32184 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
32185 Use grub_elf_t instead of grub_file_t.
32187 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
32189 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
32190 `catch_result' to struct set_color_args.
32192 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
32194 * normal/menu.c: Include grub/script.h.
32195 * normal/menu_entry.c: Likewise.
32196 * include/grub/normal.h: Do not include grub/script.h.
32198 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
32200 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
32202 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
32204 * kern/disk.c (grub_disk_open): Print debug messages when opening a
32206 (grub_disk_close): Print debug messages when closing a disk.
32207 (grub_disk_read): Print debug messages when disk read fails.
32208 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
32210 * kern/partition.c: Include misc.h.
32211 (grub_partition_iterate): Print debug messages when detecting
32214 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
32216 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
32218 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
32220 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
32222 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
32223 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
32225 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
32227 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
32228 instead of sizeof(lv). Patch by Michael Guntsche.
32230 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
32232 * disk/lvm.c: Rename VGS to VG_LIST.
32233 (grub_lvm_iterate): Change VGS->LV to VG-LV.
32234 (grub_lvm_open): Likewise.
32235 Thanks to Michael Guntsche for finding this bug.
32237 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32239 * configure.ac (AC_INIT): Bumped to 1.95.
32241 2006-10-14 Robert Millan <rmh@aybabtu.com>
32243 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
32244 with "/dev/.static/dev/md".
32246 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
32248 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
32249 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
32250 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
32251 DRIVE_NAME are always freed.
32253 * util/i386/pc/biosdisk.c (make_device_name): Add one into
32254 DOS_PART, as a DOS partition is counted from one instead of zero
32255 now. Reported by Robert Millan.
32257 2006-10-14 Robert Millan <rmh@aybabtu.com>
32259 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
32260 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
32261 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
32262 string returned by grub_guess_root_device.
32263 * util/i386/pc/grub-setup.c: Likewise.
32264 * util/i386/pc/grub-probefs.c: Likewise.
32266 * util/i386/pc/grub-probefs.c: Rename to ...
32267 * util/i386/pc/grub-probe.c: ... this.
32268 * DISTLIST: Remove grub-probefs, add grub-probe.
32269 * conf/i386-efi.rmk: Likewise.
32270 * conf/i386-pc.rmk: Likewise.
32271 * util/i386/pc/grub-install.in: Likewise.
32273 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
32274 choose which information we want to print.
32276 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
32278 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
32279 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
32280 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
32281 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
32282 video/readers/tga.c and video/i386/pc/vbeutil.c.
32284 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
32286 Added support for RAID and LVM.
32288 * disk/lvm.c: New file.
32289 * disk/raid.c: Likewise.
32290 * include/grub/lvm.h: Likewise.
32291 * include/grub/raid.h: Likewise.
32292 * include/grub/util/lvm.h: Likewise.
32293 * include/grub/util/raid.h: Likewise.
32294 * util/lvm.c: Likewise.
32295 * util/raid.c: Likewise.
32297 * include/grub/disk.h (grub_disk_dev_id): Add
32298 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
32299 (grub_disk_get_size): New prototype.
32300 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
32301 returns a partition.
32302 (grub_disk_get_size): New function.
32304 * kern/i386/pc/init.c (make_install_device): Copy the prefix
32305 verbatim if grub_install_dos_part is -2.
32307 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
32310 * util/i386/pc/grub-setup.c (setup): New argument
32311 MUST_EMBED. Force embedding of GRUB when the argument is
32312 true. Close FILE before returning.
32313 (main): Add support for RAID and LVM.
32315 * conf/common.rmk: Add RAID and LVM modules.
32316 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
32318 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
32320 * kern/misc.c (grub_strstr): New function.
32321 * include/grub/misc.h (grub_strstr): New prototype.
32323 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
32325 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
32327 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
32329 * kern/misc.c (grub_strtoull): Guess the base only if not
32332 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
32334 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
32337 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
32339 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
32341 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
32342 Remove `flags' argument. All callers changed.
32343 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
32344 (IEEE1275_IHANDLE_INVALID): New variable.
32345 (IEEE1275_CELL_INVALID): New variable.
32346 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32347 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
32348 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
32349 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
32350 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
32351 codes from Open Firmware. All callers updated.
32352 (grub_ieee1275_next_property): Directly return Open Firmware return
32354 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
32355 Standardize error checking from `grub_ieee1275_get_property'.
32356 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
32357 `devalias' to `aliases'. Correct comments. Consolidate error paths.
32359 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
32361 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
32362 `instance_to_package_args' to `instance_to_path_args'.
32364 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
32365 `grub_ieee1275_chosen'.
32367 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
32368 `grub_ieee1275_interpret'.
32370 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
32372 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
32374 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
32376 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
32377 (__cmpdi): Likewise.
32379 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
32380 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
32383 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
32385 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
32386 to type `grub_ssize_t'.
32387 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
32389 2006-09-22 Marco Gerards <marco@gnu.org>
32391 * normal/script.c (grub_script_create_cmdmenu): Skip leading
32394 2006-09-22 Marco Gerards <marco@gnu.org>
32396 * commands/echo.c: New file.
32398 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
32400 * conf/common.rmk (echo_mod_SOURCES): New variable.
32401 (echo_mod_CFLAGS): Likewise.
32402 (echo_mod_LDFLAGS): Likewise.
32404 2006-09-22 Marco Gerards <marco@gnu.org>
32406 * normal/main.c (get_line): Malloc memory instead of using
32407 preallocated memory. Removed the arguments `cmdline' and
32408 `max_len'. Updated all callers.
32410 2006-09-22 Marco Gerards <marco@gnu.org>
32412 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
32413 (normal_mod_DEPENDENCIES): Likewise.
32415 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
32416 (normal_mod_DEPENDENCIES): Likewise.
32418 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
32420 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
32422 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
32424 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
32425 (normal_mod_DEPENDENCIES): Likewise.
32426 * conf/i386-pc.mk: Regenerate.
32427 * conf/i386-efi.mk: Likewise
32428 * conf/common.mk: Likewise.
32429 * conf/powerpc-ieee1275.mk: Likewise.
32430 * conf/sparc64-ieee1275.mk: Likewise.
32432 2006-09-22 Robert Millan <rmh@aybabtu.com>
32434 Sync with i386 version.
32435 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
32436 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
32438 2006-09-21 Robert Millan <rmh@aybabtu.com>
32440 Import from GRUB Legacy (lib/device.c):
32441 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
32442 (init_device_map) [__linux__]: Add support for I2O devices.
32444 2006-09-14 Marco Gerards <marco@gnu.org>
32446 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
32449 2006-09-14 Robert Millan <rmh@aybabtu.com>
32451 * util/i386/pc/grub-install.in: Skip menu.lst when removing
32454 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
32456 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
32457 before adding it to device.map.
32459 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
32461 * genmk.rb: Let GCC generate dependencies the first time it
32462 compiles a file; using the -MD option.
32463 * conf/common.mk: Regenerate.
32464 * conf/i386-pc.mk: Likewise.
32465 * conf/i386-efi.mk: Likewise.
32466 * conf/powerpc-ieee1275.mk: Likewise.
32467 * conf/sparc64-ieee1275.mk: Likewise.
32469 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
32471 Move the prototypes of grub_setjmp and grub_longjmp to
32472 cpu/setjmp.h, so that each architecture may specify different
32475 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
32476 (grub_longjmp): Likewise.
32477 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
32478 (grub_longjmp): Likewise.
32479 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
32480 (grub_longjmp): Likewise.
32482 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
32483 [!GRUB_UTIL] (grub_longjmp): Removed.
32485 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
32487 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
32488 "color!" method does not return any value.
32490 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
32492 * include/grub/bitmap.h: New file.
32494 * include/grub/i386/pc/vbeutil.h: Likewise.
32496 * video/bitmap.c: Likewise.
32498 * video/readers/tga.c: Likewise.
32500 * video/i386/pc/vbeutil.c: Likewise.
32502 * commands/videotest.c: Code cleanup and updated to reflect to new
32505 * term/gfxterm.c: Likewise.
32507 * video/video.c: Likewise.
32509 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
32510 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
32511 (bitmap_mod_SOURCES): New entry.
32512 (bitmap_mod_CFLAGS): Likewise.
32513 (bitmap_mod_LDFLAGS): Likewise.
32514 (tga_mod_SOURCES): Likewise.
32515 (tga_mod_CFLAGS): Likewise.
32516 (tga_mod_LDFLAGS): Likewise.
32518 * include/grub/video.h (grub_video_blit_operators): New enum type.
32519 (grub_video_render_target): Changed as forward declaration and moved
32520 actual definition to be video driver specific.
32521 (grub_video_adapter.blit_bitmap): Added blitting operator.
32522 (grub_video_adapter.blit_render_target): Likewise.
32523 (grub_video_blit_bitmap): Likewise.
32524 (grub_video_blit_render_target): Likewise.
32526 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
32527 driver specific render target definition.
32528 (grub_video_vbe_map_rgba): Added driver internal helper.
32529 (grub_video_vbe_unmap_color): Updated to use
32530 grub_video_i386_vbeblit_info.
32531 (grub_video_vbe_get_video_ptr): Likewise.
32533 * include/grub/i386/pc/vbeblit.h
32534 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
32535 grub_video_i386_vbeblit_info.
32536 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
32537 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
32538 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
32539 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
32540 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
32541 (grub_video_i386_vbeblit_index_index): Likewise.
32542 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
32543 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
32544 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
32545 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
32547 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
32550 * video/i386/pc/vbeblit.c: Updated to reflect changes on
32551 include/grub/i386/pc/vbeblit.h.
32553 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
32554 Updated to use grub_video_i386_vbeblit_info.
32555 (grub_video_i386_vbefill_R8G8B8): Likewise.
32556 (grub_video_i386_vbefill_index): Likewise.
32557 (grub_video_i386_vbefill): Added generic filler.
32559 * video/i386/pc/vbefill.c: Updated to reflect changes on
32560 include/grub/i386/pc/vbefill.h.
32562 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
32563 grub_video_i386_vbeblit_info.
32564 (grub_video_vbe_unmap_color): Likewise.
32565 (grub_video_vbe_blit_glyph): Likewise.
32566 (grub_video_vbe_scroll): Likewise.
32567 (grub_video_vbe_draw_pixel): Removed function.
32568 (grub_video_vbe_get_pixel): Likewise.
32569 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
32570 updated code to use it.
32571 (common_blitter): Added common blitter for render target and bitmap.
32572 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
32573 (grub_video_vbe_blit_render_target): Likewise.
32575 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
32577 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
32578 is in text mode if there is no console control protocol instance
32581 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
32583 * include/grub/video.h: Code cleanup.
32585 * include/grub/i386/pc/vbe.h: Likewise.
32587 * video/i386/pc/vbe.c: Likewise.
32589 * video/i386/pc/vbeblit.c: Likewise.
32591 * video/i386/pc/vbefill.c: Likewise.
32593 * video/video.c: Likewise. Also added more comments.
32595 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
32597 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
32598 (struct grub_biosdisk_dap): Likewise.
32600 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
32601 linkage settings for all functions.
32603 2006-07-12 Marco Gerards <marco@gnu.org>
32605 * configure.ac (--enable-mm-debug): Fix typo.
32607 * genkernsyms.sh.in: Use proper quoting for `CC'.
32609 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
32611 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
32612 (normal_mod_ASFLAGS): Remove "-m32".
32614 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
32616 * util/misc.c: Include config.h.
32617 [!HAVE_MEMALIGN]: Do not include malloc.h.
32618 (grub_memalign): Use posix_memalign, if present. Then, use
32619 memalign, if present. Otherwise, emit an error.
32621 * util/grub-emu.c: Do not include malloc.h.
32623 * include/grub/util/misc.h: Include unistd.h. This is required for
32624 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
32625 D. Eades III <hde@foobar-qux.org>.
32627 * configure.ac (AC_GNU_SOURCE): Added.
32628 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
32631 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
32633 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
32634 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
32636 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
32638 * include/grub/types.h (grub_host_addr_t): Rename to
32639 grub_target_addr_t.
32640 (grub_host_off_t): Rename to grub_target_off_t.
32641 (grub_host_size_t): Rename to grub_target_size_t.
32642 (grub_host_ssize_t): Rename to grub_target_ssize_t.
32643 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
32645 * include/grub/kernel.h (struct grub_module_header): Change type
32646 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
32647 (grub_module_info): Likewise.
32649 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
32651 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
32652 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
32653 Velazquez <jesus.velazquez@gmail.com>.
32655 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
32657 Count partitions from 1 instead of 0 in the string representation
32658 of partitions. Still use 0-based internally.
32660 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
32661 (sun_partition_map_iterate): Use grub_partition_t instead of
32662 struct grub_partition *. Cast DESC->START_CYLINDER to
32663 grub_uint64_t after converting the endian.
32664 (sun_partition_map_probe): Subtract 1 for PARTNUM.
32665 (sun_partition_map_get_name): Add 1 to P->INDEX.
32667 * partmap/pc.c (grub_partition_parse): Subtract 1 for
32669 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
32671 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
32672 zero instead of one.
32673 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
32674 (gpt_partition_map_get_name): Add 1 into P->INDEX.
32676 * partmap/apple.c (apple_partition_map_iterate): Change the type
32677 of POS to unsigned.
32678 (apple_partition_map_probe): Subtract 1 for PARTNUM.
32679 (apple_partition_map_get_name): Add 1 into P->INDEX.
32681 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
32682 of POS to unsigned.
32683 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
32684 calculate the offset of a partition.
32685 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
32686 (amiga_partition_map_get_name): Add 1 into P->INDEX.
32688 * partmap/acorn.c (acorn_partition_map_find): Change the type of
32689 SECTOR to grub_disk_addr_t.
32690 (acorn_partition_map_iterate): Likewise.
32691 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
32692 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
32694 (acorn_partition_map_get_name): Add 1 into P->INDEX.
32696 * kern/i386/pc/init.c (make_install_device): Add 1 into
32697 GRUB_INSTALL_DOS_PART.
32699 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
32702 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
32704 Clean up the code to support 64-bit addressing in disks and
32705 files. This change is not enough for filesystems yet.
32707 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
32708 type of "start" to grub_uint64_t.
32709 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
32710 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
32711 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
32714 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
32715 to grub_disk_addr_t.
32717 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
32720 * partmap/pc.c (pc_partition_map_iterate): Likewise.
32722 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
32725 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
32727 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
32729 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
32731 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
32732 to grub_off_t, to detect an error from grub_file_seek.
32733 (grub_multiboot_load_elf32): Likewise.
32735 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
32736 maximum unsigned long value when an overflow is detected.
32737 (grub_strtoull): New function.
32738 (grub_divmod64): Likewise.
32739 (grub_lltoa): use grub_divmod64.
32741 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
32743 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
32744 the pointer to next character. Use grub_strtoull instead of
32746 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
32747 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
32750 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
32751 return value is signed.
32752 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
32753 test if OFFSET is less than zero, as OFFSET is unsigned now.
32755 * kern/disk.c (struct grub_disk_cache): Change the type of
32756 "sector" to grub_disk_addr_t.
32757 (grub_disk_cache_get_index): Change the type of SECTOR to
32758 grub_disk_addr_t. Calculate the hash with SECTOR casted to
32759 unsigned after shifting.
32760 (grub_disk_cache_invalidate): Change the type of SECTOR to
32762 (grub_disk_cache_unlock): Likewise.
32763 (grub_disk_cache_store): Likewise.
32764 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
32765 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
32766 grub_disk_addr_t and grub_uint64_t, respectively.
32767 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
32768 body, as the value of OFFSET is tweaked by
32769 grub_disk_check_range. Change the types of START_SECTOR, LEN and
32770 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
32772 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
32773 body, as the value of OFFSET is tweaked by
32774 grub_disk_check_range. Change the types of LEN and N to
32777 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
32778 and "saved_offset" to grub_off_t.
32779 (test_header): Cast BUF to char *.
32780 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
32782 (grub_gzio_read): Change the types of OFFSET and SIZE to
32783 grub_off_t and grub_size_t, respectively.
32785 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
32787 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
32788 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
32789 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
32790 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
32791 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
32793 * include/grub/types.h (grub_off_t): Unconditionally set to
32795 (grub_disk_addr_t): Changed to grub_uint64_t.
32797 * include/grub/partition.h (struct grub_partition): Change the
32798 types of "start", "len" and "offset" to grub_disk_addr_t,
32799 grub_uint64_t and grub_disk_addr_t, respectively.
32800 (grub_partition_get_start): Return grub_disk_addr_t.
32801 (grub_partition_get_len): Return grub_uint64_t.
32803 * include/grub/misc.h (grub_strtoull): New prototype.
32804 (grub_divmod64): Likewise.
32806 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
32807 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
32808 grub_off_t, respectively.
32809 All callers and references changed.
32811 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
32812 grub_size_t in "read".
32813 All callers and references changed.
32815 * include/grub/file.h (struct grub_file): Change the types of
32816 "offset" and "size" to grub_off_t and grub_off_t,
32817 respectively. Change the type of SECTOR to grub_disk_addr_t in
32819 (grub_file_read): Change the type of LEN to grub_size_t.
32820 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
32822 (grub_file_size): Return grub_off_t.
32823 (grub_file_tell): Likewise.
32824 All callers and references changed.
32826 * include/grub/disk.h (struct grub_disk_dev): Change the types of
32827 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
32829 (struct grub_disk): Change the type of "total_sectors" to
32830 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
32832 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
32833 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
32834 (grub_disk_write): Likewise.
32835 All callers and references changed.
32837 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
32838 char * for grub_strncmp to silence gcc.
32839 (grub_iso9660_mount): Likewise.
32840 (grub_iso9660_mount): Likewise.
32841 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
32843 (grub_iso9660_iterate_dir): Likewise.
32844 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
32846 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
32847 LEN to grub_disk_addr_t and grub_size_t, respectively.
32849 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
32851 * fs/jfs.c (grub_jfs_read_file): Likewise.
32853 * fs/minix.c (grub_jfs_read_file): Likewise.
32855 * fs/sfs.c (grub_jfs_read_file): Likewise.
32857 * fs/ufs.c (grub_jfs_read_file): Likewise.
32859 * fs/xfs.c (grub_jfs_read_file): Likewise.
32861 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
32862 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
32865 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
32866 BLKNR to -1 instead of returning GRUB_ERRNO.
32867 (grub_ext2_read_file): Change the types of SECTOR and
32868 LEN to grub_disk_addr_t and grub_size_t, respectively.
32870 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
32871 LEN to grub_disk_addr_t and grub_size_t, respectively.
32873 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
32876 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
32877 string. Do not cast SECTOR explicitly.
32879 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
32880 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
32881 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
32882 grub_disk_addr_t and grub_size_t, respectively. If the sector is
32883 over 2TB and LBA mode is not supported, raise an error.
32884 (get_safe_sectors): New function.
32885 (grub_biosdisk_read): Use get_safe_sectors.
32886 (grub_biosdisk_write): Likewise.
32888 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
32889 (grub_efidisk_write): Likewise.
32891 * disk/loopback.c (delete_loopback): Cosmetic changes.
32892 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
32894 (grub_loopback_open): Likewise.
32895 (grub_loopback_read): Likewise. Also, change the type of POS to
32896 grub_off_t, and fix the usage of grub_memset.
32898 * commands/i386/pc/play.c: Include grub/machine/time.h.
32900 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
32903 * commands/configfile.c: Include grub/env.h.
32905 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
32906 GRUB_ERRNO directly instead. Change the type of POS to
32907 grub_off_t. Follow the coding standard.
32909 * commands/blocklist.c: Include grub/partition.h.
32910 (grub_cmd_blocklist): Return an error if the underlying device is
32911 not a disk. Take the starting sector of a partition into account,
32912 if a partition is used.
32914 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
32916 (lba_mode): Support 64-bit addresses.
32917 (chs_mode): Likewise.
32918 (copy_buffer): Adapted to the new offsets of a length field and a
32920 (blocklist_default_start): Allocate 64-bit space.
32922 * boot/i386/pc/boot.S (force_lba): Removed.
32923 (boot_drive): Moved to under KERNEL_SECTOR.
32924 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
32926 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
32928 (lba_mode): Refactored to support a 64-bit address. More size
32930 (setup_sectors): Likewise.
32932 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
32934 * DISTLIST: Added include/grub/i386/linux.h. Removed
32935 include/grub/i386/pc/linux.h
32937 * configure.ac (AC_INIT): Bumped to 1.94.
32939 * config.guess: Updated from gnulib.
32940 * config.sub: Likewise.
32941 * install-sh: Likewise.
32942 * mkinstalldirs: Likewise.
32944 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
32946 * conf/common.rmk (grub_modules_init.lst): Depended on
32947 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
32950 * genmk.rb (PModule::rule): Reverted the previous change.
32952 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
32954 * conf/common.rmk (grub_modules_init.lst): Depends on
32955 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
32956 that the target does not exist before producing.
32957 (grub_modules_init.h): Remove the target before generating.
32958 (grub_emu_init.c): Likewise.
32960 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
32962 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
32964 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
32965 for the target-specific tests. Make sure that we also have the
32966 up-to-date target variables for those tests.
32968 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
32970 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
32971 (PModule::rule): Likewise.
32973 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
32975 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
32976 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
32977 target-specific flags should be prefixed.
32978 (PModule::rule): Likewise.
32980 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
32982 * configure.ac (CMP): Check if cmp is available explicitly.
32984 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
32986 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
32987 (target_cpu): New variable.
32988 (pkglibdir): Use target_cpu instead of host_cpu.
32990 * util/i386/pc/grub-install.in (host_cpu): Removed.
32991 (target_cpu): New variable.
32992 (pkglibdir): Use target_cpu instead of host_cpu.
32994 * util/genmoddep.c: Removed.
32996 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
32997 instead of GRUB_HOST_SIZEOF_VOID_P.
32998 * kern/dl.c: Likewise.
33000 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
33002 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
33003 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
33004 (GRUB_TARGET_SIZEOF_LONG): ... this.
33005 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
33006 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
33007 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
33009 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
33010 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
33011 (GRUB_TARGET_SIZEOF_LONG): ... this.
33012 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
33013 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
33014 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
33016 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
33017 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
33018 (GRUB_TARGET_SIZEOF_LONG): ... this.
33019 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
33020 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
33022 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
33023 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
33024 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
33025 instead of GRUB_HOST_SIZEOF_LONG.
33026 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
33027 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
33028 GRUB_CPU_WORDS_BIGENDIAN.
33029 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
33030 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
33033 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
33034 (genmoddep_SOURCES): Likewise.
33035 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
33036 (genmoddep_SOURCES): Likewise.
33037 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
33038 (genmoddep_SOURCES): Likewise.
33039 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
33041 (genmoddep_SOURCES): Likewise.
33043 * genmoddep.awk: New file.
33045 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
33046 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
33047 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
33048 (PModule::rule): Likewise.
33049 (Program::rule): Likewise.
33050 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
33051 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
33054 * configure.ac: Rewritten intensively to use host and target
33055 instead of build and host, respectively.
33057 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
33058 (host_cpu): Removed.
33059 (target_cpu): New variable.
33060 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
33061 (BUILD_CC): Removed.
33062 (BUILD_CFLAGS): Likewise.
33063 (BUILD_CPPFLAGS): Likewise.
33064 (TARGET_CC): New variable.
33065 (TARGET_CFLAGS): Likewise.
33066 (TARGET_CPPFLAGS): Likewise.
33067 (TARGET_LDFLAGS): Likewise.
33069 (include): Use target_cpu instead of host_cpu.
33070 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
33072 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
33074 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
33076 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
33077 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
33078 field 'false' to 'exec_on_false'.
33079 (grub_script_create_cmdif): Renamed argument names to reflect above
33082 * normal/execute.c (grub_script_execute_cmdif): Likewise.
33084 * normal/script.c (grub_script_create_cmdif): Likewise.
33086 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
33088 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
33090 (grub_hfsplus_btree_recptr): Likewise.
33091 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
33092 FILEBLOCK both to pass a block number and store next block
33094 (grub_hfsplus_read_block): Rewritten heavily to support an extent
33095 overflow file correctly. Specify errors appropriately, because
33096 fshelp expects that GRUB_ERRNO is set when fails. Reuse
33097 grub_hfsplus_btree_recptr to get the pointer to a found key.
33098 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
33101 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
33103 (_linux_mod_SOURCES): New variable.
33104 (_linux_mod_CFLAGS): Likewise.
33105 (_linux_mod_LDFLAGS): Likewise.
33106 (linux_mod_SOURCES): Likewise.
33107 (linux_mod_CFLAGS): Likewise.
33108 (linux_mod_LDFLAGS): Likewise.
33110 * DISTLIST: Added loader/i386/efi/linux.c,
33111 loader/i386/efi/linux_normal.c and
33112 include/grub/i386/efi/loader.h.
33114 * loader/i386/efi/linux.c: New file.
33115 * loader/i386/efi/linux_normal.c: Likewise.
33116 * include/grub/i386/efi/loader.h: Likewise.
33118 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
33120 * commands/blocklist.c: New file.
33122 * DISTLIST: Added commands/blocklist.c.
33124 * term/efi/console.c (grub_console_highlight_color): Use a lighter
33125 color for the background, and a darker color for the foreground.
33126 (grub_console_checkkey): Return READ_KEY.
33127 (grub_console_cls): Set the background to
33128 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
33130 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
33132 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
33133 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
33135 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
33138 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
33139 BG. The spec is wrong again.
33141 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
33143 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
33145 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
33146 commands/blocklist.c.
33147 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33149 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
33150 (blocklist_mod_SOURCES): New variable.
33151 (blocklist_mod_CFLAGS): Likewise.
33152 (blocklist_mod_LDFLAGS): Likewise.
33154 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
33156 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
33158 (lba_mode): Use %eax more intensively to reduce the code size.
33160 2006-05-20 Marco Gerards <marco@gnu.org>
33162 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
33164 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
33166 (script): Accept leading newlines.
33167 (newlines): New rule to describe 0 or more newlines.
33168 (commands): Accept `command' with trailing newline. Fixed the
33169 order in which arguments were passed to `grub_script_add_cmd'.
33170 Accept commands separated by newlines.
33171 (function): Changed to accept newlines.
33172 (menuentry) Rewritten.
33174 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
33175 front of the list, instead of to the end.
33177 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
33179 * util/i386/pc/grub-install.in (bindir): New variable.
33180 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
33181 Shaver <lbgwjl@gmail.com>.
33183 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
33185 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
33186 grub/machine/linux.h
33187 * loader/i386/pc/linux.c: Likewise.
33189 * include/grub/i386/pc/linux.h: Moved to ...
33190 * include/grub/i386/linux.h: ... here.
33192 * include/grub/i386/linux.h (struct linux_kernel_params): New
33195 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
33197 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
33199 (grub_video_vbe_blit_glyph): Likewise.
33200 (grub_video_vbe_blit_bitmap): Likewise.
33201 (grub_video_vbe_blit_render_target): Likewise.
33203 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
33205 * configure.ac (--with-platform): Properly quote the square
33208 2006-05-08 Marco Gerards <marco@gnu.org>
33210 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
33212 (kernel_elf_HEADERS): ...to this. Updated all users.
33213 (grubof_symlist.c): Renamed from this...
33214 (kernel_elf_symlist.c): ...to this. Updated all users.
33215 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
33216 (grubof_SOURCES): Renamed from this...
33217 (kernel_elf_SOURCES): ...to this.
33218 (grubof_HEADERS): Renamed from this...
33219 (kernel_elf_HEADERS): ...to this.
33220 (grubof_CFLAGS): Renamed from this...
33221 (kernel_elf_CFLAGS): ...to this.
33222 (grubof_ASFLAGS): Renamed from this...
33223 (kernel_elf_ASFLAGS): ...to this.
33224 (grubof_LDFLAGS): Renamed from this...
33225 (kernel_elf_LDFLAGS): ...to this.
33227 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
33229 (kernel_elf_HEADERS): ...to this. Updated all users.
33230 (grubof_symlist.c): Renamed from this...
33231 (kernel_elf_symlist.c): ...to this. Updated all users.
33232 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
33233 (grubof_SOURCES): Renamed from this...
33234 (kernel_elf_SOURCES): ...to this.
33235 (grubof_HEADERS): Renamed from this...
33236 (kernel_elf_HEADERS): ...to this.
33237 (grubof_CFLAGS): Renamed from this...
33238 (kernel_elf_CFLAGS): ...to this.
33239 (grubof_ASFLAGS): Renamed from this...
33240 (kernel_elf_ASFLAGS): ...to this.
33241 (grubof_LDFLAGS): Renamed from this...
33242 (kernel_elf_LDFLAGS): ...to this.
33244 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
33245 `kernel.elf' instead of `grubof'.
33247 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
33249 Add --with-platform to configure. Use pkglibdir instead of
33250 pkgdatadir. This is reported by Roger Leigh.
33252 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
33253 (host_vendor): Likewise.
33254 (host_os): Likewise.
33255 (pkgdatadir): Likewise.
33256 (platform): New variable.
33257 (pkglibdir): Likewise.
33258 Use PKGLIBDIR instead of PKGDATADIR.
33260 * util/i386/pc/grub-install.in (datadir): Removed.
33261 (host_vendor): Likewise.
33262 (host_os): Likewise.
33263 (pkgdatadir): Likewise.
33264 (platform): New variable.
33265 (pkglibdir): Likewise.
33266 Use PKGLIBDIR instead of PKGDATADIR.
33268 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
33269 instead of GRUB_DATADIR.
33271 * util/i386/pc/grub-mkimage.c (usage): Likewise.
33273 * util/i386/efi/grub-mkimage.c (usage): Likewise.
33276 * configure.ac (--with-platform): New option.
33277 Use PLATFORM instead of HOST_VENDOR to specify a platform.
33279 * Makefile.in: Include a makefile based on PLATFORM instead of
33281 (pkgdatadir): Not appended by the machine type.
33282 (pkglibdir): Appended by the machine type.
33283 (host_vendor): Removed.
33284 (platform): New variable.
33285 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
33286 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
33287 (uninstall): Likewise.
33289 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
33291 Use the environment context in the menu. Remove the commands
33292 "default" and "timeout", and use variables instead.
33294 * normal/menu.c: Include grub/env.h.
33295 (print_entry): Cast TITLE to silence gcc.
33296 (get_timeout): New function.
33297 (set_timeout): Likewise.
33298 (get_entry_number): Likewise.
33299 (run_menu): Use a default entry, a fallback entry and a timeout
33300 in the environment variables "default", "fallback" and
33301 "timeout". Also, tweak the default entry if it is not within the
33302 current menu entries.
33303 (grub_menu_run): Use a fallback entry in the environment variable
33306 * normal/main.c (read_config_file): Do not initialize
33307 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
33309 (grub_normal_execute): Use a data slot to store the menu.
33311 * include/grub/normal.h (struct grub_menu): Removed default_entry,
33312 fallback_entry and timeout.
33313 (struct grub_menu_list): Removed.
33314 (grub_menu_list_t): Likewise.
33315 (struct grub_context): Likewise.
33316 (grub_context_t): Likewise.
33317 (grub_context_get): Likewise.
33318 (grub_context_get_current_menu): Likewise.
33319 (grub_context_push_menu): Likewise.
33320 (grub_context_pop_menu): Likewise.
33321 (grub_default_init): Likewise.
33322 (grub_default_fini): Likewise.
33323 (grub_timeout_init): Likewise.
33324 (grub_timeout_fini): Likewise.
33326 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
33328 (normal_mod_SOURCES): Removed normal/context.c.
33330 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
33331 commands/default.c, commands/timeout.c and normal/context.c.
33332 (normal_mod_SOURCES): Removed normal/context.c.
33334 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
33335 commands/timeout.c and normal/context.c.
33336 (normal_mod_SOURCES): Removed normal/context.c.
33338 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
33339 commands/default.c, commands/timeout.c and normal/context.c.
33340 (normal_mod_SOURCES): Removed normal/context.c.
33342 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
33344 (default_mod_SOURCES): Removed.
33345 (default_mod_CFLAGS): Likewise.
33346 (default_mod_LDFLAGS): Likewise.
33347 (timeout_mod_SOURCES): Removed.
33348 (timeout_mod_CFLAGS): Likewise.
33349 (timeout_mod_LDFLAGS): Likewise.
33351 * DISTLIST: Removed commands/default.c, commands/timeout.c and
33354 * commands/default.c: Removed.
33355 * commands/timeout.c: Likewise.
33356 * normal/context.c: Likewise.
33358 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
33360 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
33362 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
33364 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
33365 "next" to "prev" for readability.
33366 (struct grub_env_sorted_var): New struct.
33367 (grub_env_context): Renamed to ...
33368 (initial_context): ... this.
33369 (grub_env_var_context): Renamed to ...
33370 (current_context): ... this.
33371 (grub_env_find): Look only at CURRENT_CONTEXT.
33372 (grub_env_context_open): Rewritten to copy exported variables from
33374 (grub_env_context_close): Rewritten according to the new
33375 scheme. Also, add an assertion to prevent the initial context from
33377 (grub_env_insert): Removed the code for the sorted list.
33378 (grub_env_remove): Likewise.
33379 (grub_env_export): Simply mark the variable with
33380 GRUB_ENV_VAR_GLOBAL.
33381 (grub_env_set): A cosmetic change for naming consistency.
33382 (grub_env_get): Likewise.
33383 (grub_env_unset): Likewise.
33384 (grub_env_iterate): Rewritten to sort variables within this
33386 (grub_register_variable_hook): Fixed for naming consistency. Call
33387 grub_env_find again, only if NAME is not found at the first time.
33388 (mangle_data_slot_name): New function.
33389 (grub_env_set_data_slot): Likewise.
33390 (grub_env_get_data_slot): Likewise.
33391 (grub_env_unset_data_slot): Likewise.
33393 * include/grub/env.h (grub_env_var_type): New enum.
33394 (GRUB_ENV_VAR_LOCAL): New constant.
33395 (GRUB_ENV_VAR_GLOBAL): Likewise.
33396 (GRUB_ENV_VAR_DATA): Likewise.
33397 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
33399 (grub_env_set): Replace VAR with NAME for consistency.
33400 (grub_register_variable_hook): Likewise.
33401 (grub_env_export): Specify the name of the argument.
33402 (grub_env_set_data_slot): New prototype.
33403 (grub_env_get_data_slot): Likewise.
33404 (grub_env_unset_data_slot): Likewise.
33406 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
33408 Extend the loader so that GRUB can accept a loader which comes
33409 back to GRUB when a loaded image exits. Also, this change adds
33410 support for a chainloader on EFI.
33412 * term/efi/console.c: Include grub/misc.h.
33413 (grub_console_checkkey): Display a scan code on the top for
33414 debugging. This will be removed once the EFI port gets stable.
33415 Correct the scan code mapping.
33417 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
33418 allocate memory from larger regions, in order to reduce the number
33419 of allocated regions. Otherwise, the MacOSX loader panics.
33420 (filter_memory_map): Avoid less than 1MB for compatibility with
33422 (add_memory_regions): Allocate from the tail of a region, if
33423 possible, to avoid allocating a region near to 1MB, for the MacOSX
33426 * kern/efi/init.c (grub_efi_set_prefix): Specify
33427 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
33429 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
33430 argument IMAGE_HANDLE and specify it to get a loaded image.
33431 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
33432 grub_efi_get_loaded_image.
33433 (grub_efi_get_filename): Divide the length by the size of
33435 (grub_efi_get_device_path): New function.
33436 (grub_efi_print_device_path): Print End Device Path nodes. Divide
33437 the length by the size of grub_efi_char16_t for a file path device
33440 * kern/loader.c (grub_loader_noreturn): New variable.
33441 (grub_loader_set): Accept a new argument NORETURN. Set
33442 GRUB_LOADER_NORETURN to NORETURN.
33443 All callers changed.
33444 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
33447 * include/grub/efi/efi.h (grub_efi_get_device_path): New
33449 (grub_efi_get_loaded_image): Take an argument to specify an image
33452 * include/grub/loader.h (grub_loader_set): Added one more argument
33455 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
33456 instead of grub_efi_open_protocol.
33457 (grub_efidisk_get_device_name): Likewise.
33458 (grub_efidisk_close): Print a newline.
33459 (grub_efidisk_get_device_handle): Fixed to use
33460 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
33461 GRUB_EFI_DEVICE_PATH_TYPE.
33463 * disk/efi/efidisk.c (device_path_guid): Moved to ...
33464 * kern/efi/efi.c (device_path_guid): ... here.
33466 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
33468 (kernel_mod_HEADERS): Added efi/disk.h.
33469 (_chain_mod_SOURCES): New variable.
33470 (_chain_mod_CFLAGS): Likewise.
33471 (_chain_mod_LDFLAGS): Likewise.
33472 (chain_mod_SOURCES): Likewise.
33473 (chain_mod_CFLAGS): Likewise.
33474 (chain_mod_LDFLAGS): Likewise.
33476 * DISTLIST: Added include/grub/efi/chainloader.h,
33477 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
33479 * include/grub/efi/chainloader.h: New file.
33480 * loader/efi/chainloader.c: Likewise.
33481 * loader/efi/chainloader_normal.c: Likewise.
33483 2006-04-30 Marco Gerards <marco@gnu.org>
33485 * commands/configfile.c (grub_cmd_source): New function.
33486 (GRUB_MOD_INIT): Register the commands `source' and `.'.
33487 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
33489 2006-04-30 Marco Gerards <marco@gnu.org>
33491 * normal/execute.c (grub_script_execute_cmd): Change the return
33492 type to `grub_err_t'. Correctly return the error.
33493 (grub_script_execute_cmdline): In case a command line is not a
33494 command or a function, try to interpret it as an assignment.
33496 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
33498 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
33499 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
33500 skip a node whose name is obviously invalid as UTF-16,
33501 i.e. contains a NUL character. Stop the iteration when the last
33502 directory entry is found. Instead of using the return value of
33503 grub_hfsplus_btree_iterate_node, store the value in RET and use
33504 it, because the iterator can be stopped by the last directory
33507 2006-04-30 Marco Gerards <marco@gnu.org>
33509 * include/grub/env.h (grub_env_export): New prototype. Reported
33510 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
33512 2006-04-30 Marco Gerards <marco@gnu.org>
33514 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
33515 size of the extents in a catalog file record.
33517 2006-04-29 Marco Gerards <marco@gnu.org>
33519 * commands/configfile.c (grub_cmd_configfile): Execute the
33520 configfile within its own context.
33522 * include/grub/env.h (grub_env_context_open): New prototype.
33523 (grub_env_context_close): Likewise.
33525 * kern/env.c (grub_env): Removed.
33526 (grub_env_sorted): Likewise.
33527 (grub_env_context): New variable.
33528 (grub_env_var_context): Likewise.
33529 (grub_env_find): Search both the active context and the global
33531 (grub_env_context_open): New function.
33532 (grub_env_context_close): Likewise.
33533 (grub_env_insert): Likewise.
33534 (grub_env_remove): Likewise.
33535 (grub_env_export): Likewise.
33536 (grub_env_set): Changed to use helper functions to avoid code
33538 (grub_env_iterate): Rewritten so both the current context and the
33539 global context are being used.
33541 * normal/command.c (export_command): New function.
33542 (grub_command_init): Register the `export' function.
33544 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
33546 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
33547 explicitly to suppress gcc's warnings.
33548 * fs/fat.c (grub_fat_find_dir): Likewise.
33549 (grub_fat_label): Likewise.
33550 * fs/xfs.c (grub_xfs_read_inode): Likewise.
33551 (grub_xfs_mount): Likewise.
33552 (grub_xfs_label): Likewise.
33553 * fs/affs.c (grub_affs_mount): Likewise.
33554 (grub_affs_label): Likewise.
33555 (grub_affs_iterate_dir): Likewise.
33556 * fs/sfs.c (grub_sfs_mount): Likewise.
33557 (grub_sfs_iterate_dir): Likewise.
33558 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
33559 * fs/hfs.c (grub_hfs_mount): Likewise.
33560 (grub_hfs_cmp_catkeys): Likewise.
33561 (grub_hfs_find_dir): Likewise.
33562 (grub_hfs_dir): Likewise.
33563 (grub_hfs_label): Likewise.
33564 * fs/jfs.c (grub_jfs_mount): Likewise.
33565 (grub_jfs_opendir): Likewise.
33566 (grub_jfs_getent): Likewise.
33567 (grub_jfs_lookup_symlink): Likewise.
33568 (grub_jfs_label): Likewise.
33569 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
33570 (grub_hfsplus_iterate_dir): Likewise.
33571 (grub_hfsplus_btree_iterate_node): Made static.
33573 * util/grub-emu.c (prefix): New variable.
33574 (grub_machine_set_prefix): New function.
33575 (main): Do not set the environment variable "prefix" here. Only
33576 set PREFIX, which is used later by grub_machine_set_prefix.
33578 * include/grub/video.h: Do not include grub/symbol.h.
33579 (grub_video_register): Not exported. This symbol is not defined in
33581 (grub_video_unregister): Likewise.
33582 (grub_video_iterate): Likewise.
33583 (grub_video_setup): Likewise.
33584 (grub_video_restore): Likewise.
33585 (grub_video_get_info): Likewise.
33586 (grub_video_get_blit_format): Likewise.
33587 (grub_video_set_palette): Likewise.
33588 (grub_video_get_palette): Likewise.
33589 (grub_video_set_viewport): Likewise.
33590 (grub_video_get_viewport): Likewise.
33591 (grub_video_map_color): Likewise.
33592 (grub_video_map_rgb): Likewise.
33593 (grub_video_map_rgba): Likewise.
33594 (grub_video_fill_rect): Likewise.
33595 (grub_video_blit_glyph): Likewise.
33596 (grub_video_blit_bitmap): Likewise.
33597 (grub_video_blit_render_target): Likewise.
33598 (grub_video_scroll): Likewise.
33599 (grub_video_swap_buffers): Likewise.
33600 (grub_video_create_render_target): Likewise.
33601 (grub_video_delete_render_target): Likewise.
33602 (grub_video_set_active_render_target): Likewise.
33604 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
33606 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
33608 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
33609 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33610 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33611 instead of $(srcdir)/genkernsyms.sh.
33613 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
33614 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33615 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33616 instead of $(srcdir)/genkernsyms.sh.
33618 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
33619 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33620 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33621 instead of $(srcdir)/genkernsyms.sh.
33623 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
33624 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
33625 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
33626 instead of $(srcdir)/genkernsyms.sh.
33628 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
33631 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
33633 (gensymlist.sh): New target.
33634 (genkernsyms.sh): Likewise.
33636 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
33637 genkernsyms.sh.in and gensymlist.sh.in.
33639 * genkernsyms.sh: Removed.
33640 * gensymlist.sh: Likewise.
33642 * genkernsyms.sh.in: New file.
33643 * gensymlist.sh.in: Likewise.
33645 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
33647 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
33648 clobber "prefix", since we may have already set it manually.
33650 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
33652 * kern/misc.c (abort): New alias for grub_abort.
33654 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
33656 A new machine-specific function "grub_machine_set_prefix" is
33657 defined. This is called after loading modules, so that a prefix
33658 initialization can use modules. Also, this change adds an
33659 intensive debugging feature for the memory manager via the
33660 configure option "--enable-mm-debug".
33662 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
33665 * kern/sparc64/ieee1275/init.c (abort): Removed.
33666 (grub_stop): Likewise.
33667 (grub_exit): New function.
33668 (grub_set_prefix): Renamed to ...
33669 (grub_machine_set_prefix): ... this.
33670 (grub_machine_init): Do not call grub_set_prefix.
33672 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
33673 (grub_machine_set_prefix): ... this.
33674 (grub_machine_init): Do not call grub_set_prefix.
33676 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
33677 (grub_machine_init): Do not set the prefix here.
33679 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
33681 * kern/efi/init.c: Include grub/mm.h.
33682 (grub_efi_set_prefix): New function.
33684 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
33685 (grub_efi_get_filename): New function.
33686 (grub_print_device_path): Renamed to ...
33687 (grub_efi_print_device_path): ... this.
33689 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
33690 [MM_DEBUG] (grub_realloc): Likewise.
33691 [MM_DEBUG] (grub_free): Likewise.
33692 [MM_DEBUG] (grub_memalign): Likewise.
33693 [MM_DEBUG] (grub_mm_debug): New variable.
33694 [MM_DEBUG] (grub_debug_malloc): New function.
33695 [MM_DEBUG] (grub_debug_free): New function.
33696 [MM_DEBUG] (grub_debug_realloc): New function.
33697 [MM_DEBUG] (grub_debug_memalign): New function.
33699 * kern/misc.c (grub_abort): Print a newline to distinguish
33702 * kern/main.c (grub_main): Call grub_machine_set_prefix and
33703 grub_set_root_dev after loading modules. This is necessary when
33704 setting a prefix depends on modules.
33706 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
33707 (grub_efi_print_device_path): ... this.
33708 (grub_efi_get_filename): New prototype.
33709 (grub_efi_set_prefix): Likewise.
33711 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
33713 (grub_efidisk_get_device_handle): New prototype.
33714 (grub_efidisk_get_device_name): Likewise.
33716 * include/grub/mm.h: Include config.h.
33717 (MM_DEBUG): Removed.
33718 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
33719 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
33720 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
33721 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
33722 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
33723 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
33724 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
33725 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
33726 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
33728 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
33730 * disk/efi/efidisk.c: Include grub/partition.h.
33731 (iterate_child_devices): New function.
33732 (add_device): First, compare only last device path nodes, so that
33733 devices are sorted by the types.
33734 (grub_efidisk_get_device_handle): New function.
33735 (grub_efidisk_get_device_name): Likewise.
33737 * configure.ac (--enable-mm-debug): New option to enable the
33738 memory manager debugging feature. This makes the binary much
33739 bigger, so is disabled by default.
33741 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
33743 Use grub_abort instead of grub_stop, and grub_exit must be
33744 define in each architecture now. Also, this change adds support
33747 * util/i386/pc/grub-probefs.c: Include grub/term.h.
33748 (grub_getkey): New function.
33749 (grub_term_get_current): Likewise.
33751 * util/i386/pc/grub-setup.c: Include grub/term.h.
33752 (grub_getkey): New function.
33753 (grub_term_get_current): Likewise.
33755 * util/misc.c (grub_stop): Renamed to ...
33756 (grub_exit): ... this.
33758 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
33759 (grub_exit): ... this.
33760 (grub_machine_init): Use grub_abort instead of abort.
33761 (grub_stop): Removed.
33763 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
33766 * kern/i386/pc/startup.S (grub_exit): New function.
33767 (cold_reboot): New label.
33769 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
33770 (grub_efi_init): Call grub_efidisk_init.
33771 (grub_efi_fini): Call grub_efidisk_fini.
33773 * kern/efi/efi.c: Include grub/mm.h.
33774 (grub_efi_console_control_guid): Renamed to ...
33775 (console_control_guid): ... this.
33776 (grub_efi_loaded_image_guid): Renamed to ...
33777 (loaded_image_guid): ... this.
33778 (grub_efi_locate_handle): New function.
33779 (grub_efi_open_protocol): Likewise.
33780 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
33781 GRUB_EFI_CONSOLE_CONTROL_GUID.
33782 (grub_efi_exit): Removed.
33783 (grub_stop): Likewise.
33784 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
33785 (grub_exit): New function.
33786 (grub_print_device_path): Likewise.
33788 * kern/rescue.c (grub_rescue_cmd_exit): New function.
33789 (grub_enter_rescue_mode): Register "exit".
33791 * kern/misc.c (grub_real_dprintf): A cosmetic change.
33792 (grub_abort): New function.
33794 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
33796 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
33798 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
33800 * include/grub/efi/efi.h (grub_efi_exit): Removed.
33801 (grub_print_device_path): New prototype.
33802 (grub_efi_locate_handle): Likewise.
33803 (grub_efi_open_protocol): Likewise.
33805 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
33806 * disk/efi/efidisk.c: Likewise.
33808 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
33810 * include/grub/efi/console_control.h
33811 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
33813 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
33814 last 8 bytes as an array.
33815 (GRUB_EFI_DISK_IO_GUID): New macro.
33816 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
33817 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
33818 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
33820 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
33821 (struct grub_efi_device_path): Rename the member "sub_type" to
33823 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
33824 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
33825 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
33826 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
33827 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
33828 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
33829 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
33830 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
33831 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
33832 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
33833 (struct grub_efi_pci_device_path): New structure.
33834 (grub_efi_pci_device_path_t): New type.
33835 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
33836 (struct grub_efi_pccard_device_path): New structure.
33837 (grub_efi_pccard_device_path_t): New type.
33838 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
33839 (struct grub_efi_memory_mapped_device_path): New structure.
33840 (grub_efi_memory_mapped_device_path_t): New type.
33841 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
33842 (struct grub_efi_vendor_device_path): New structure.
33843 (grub_efi_vendor_device_path_t): New type.
33844 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
33845 (struct grub_efi_controller_device_path): New structure.
33846 (grub_efi_controller_device_path_t): New type.
33847 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
33848 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
33849 (struct grub_efi_acpi_device_path): New structure.
33850 (grub_efi_acpi_device_path_t): New type.
33851 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
33852 (struct grub_efi_expanded_acpi_device_path): New structure.
33853 (grub_efi_expanded_acpi_device_path_t): New type.
33854 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
33855 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
33856 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
33857 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
33858 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
33859 (struct grub_efi_atapi_device_path): New structure.
33860 (grub_efi_atapi_device_path_t): New type.
33861 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
33862 (struct grub_efi_fibre_channel_device_path): New structure.
33863 (grub_efi_fibre_channel_device_path_t): New type.
33864 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
33865 (struct grub_efi_1394_device_path): New structure.
33866 (grub_efi_1394_device_path_t): New type.
33867 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
33868 (struct grub_efi_usb_device_path): New structure.
33869 (grub_efi_usb_device_path_t): New type.
33870 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
33871 (struct grub_efi_usb_class_device_path): New structure.
33872 (grub_efi_usb_class_device_path_t): New type.
33873 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
33874 (struct grub_efi_i2o_device_path): New structure.
33875 (grub_efi_i2o_device_path_t): New type.
33876 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
33877 (struct grub_efi_mac_address_device_path): New structure.
33878 (grub_efi_mac_address_device_path_t): New type.
33879 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
33880 (struct grub_efi_ipv4_device_path): New structure.
33881 (grub_efi_ipv4_device_path_t): New type.
33882 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
33883 (struct grub_efi_ipv6_device_path): New structure.
33884 (grub_efi_ipv6_device_path_t): New type.
33885 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
33886 (struct grub_efi_infiniband_device_path): New structure.
33887 (grub_efi_infiniband_device_path_t): New type.
33888 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
33889 (struct grub_efi_uart_device_path): New structure.
33890 (grub_efi_uart_device_path_t): New type.
33891 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
33892 (struct grub_efi_vendor_messaging_device_path): New structure.
33893 (grub_efi_vendor_messaging_device_path_t): New type.
33894 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
33895 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
33896 (struct grub_efi_hard_drive_device_path): New structure.
33897 (grub_efi_hard_drive_device_path_t): New type.
33898 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
33899 (struct grub_efi_cdrom_device_path): New structure.
33900 (grub_efi_cdrom_device_path_t): New type.
33901 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
33902 (struct grub_efi_vendor_media_device_path): New structure.
33903 (grub_efi_vendor_media_device_path_t): New type.
33904 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
33905 (struct grub_efi_file_path_device_path): New structure.
33906 (grub_efi_file_path_device_path_t): New type.
33907 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
33908 (struct grub_efi_protocol_device_path): New structure.
33909 (grub_efi_protocol_device_path_t): New type.
33910 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
33911 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
33912 (struct grub_efi_bios_device_path): New structure.
33913 (grub_efi_bios_device_path_t): New type.
33914 (struct grub_efi_disk_io): New structure.
33915 (grub_efi_disk_io_t): New type.
33916 (struct grub_efi_block_io_media): New structure.
33917 (grub_efi_block_io_media_t): New type.
33918 (struct grub_efi_block_io): New structure.
33919 (grub_efi_block_io_t): New type.
33921 * include/grub/misc.h (grub_stop): Removed.
33922 (grub_exit): New prototype.
33923 (grub_abort): Likewise.
33925 * include/grub/disk.h (enum grub_disk_dev_id): Added
33926 GRUB_DISK_DEVICE_EFIDISK_ID.
33928 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
33929 disk/efi/efidisk.c.
33930 (kernel_syms.lst): Remove the target if an error occurs.
33932 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
33934 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
33935 as it was simply too buggy.
33937 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
33939 * kern/misc.c (grub_lltoa): New function.
33940 (grub_vsprintf): Added support for the long long suffix,
33943 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
33945 * Makefile.in (LDFLAGS): Add variable.
33946 (LD): Remove variable.
33947 * configure.ac: Add -m32 to LDFLAGS.
33948 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
33949 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
33950 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
33951 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
33952 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
33954 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
33955 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
33956 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
33958 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
33960 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
33961 length for unknown glyph.
33963 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
33965 Add support for pre-loaded modules into the EFI port.
33967 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
33968 completely. Accept one more argument DIR. The caller has changed.
33970 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
33972 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
33973 (grub_efi_loaded_image_guid): New variable.
33974 (grub_efi_get_loaded_image): New function.
33975 (grub_arch_modules_addr): Likewise.
33977 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
33980 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
33981 (struct grub_efi_loaded_image): New structure.
33982 (grub_efi_loaded_image_t): New type.
33984 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
33986 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
33987 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
33988 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
33990 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
33992 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
33994 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
33996 * DISTLIST: Added include/grub/efi/console.h,
33997 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
33998 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
34000 * include/grub/efi/console.h: New file.
34001 * include/grub/efi/time.h: Likewise.
34002 * include/grub/i386/efi/kernel.h: Likewise.
34003 * kern/efi/init.c: Likewise.
34004 * kern/efi/mm.c: Likewise.
34005 * term/efi/console.c: Likewise.
34007 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
34008 (grub_stop): Removed.
34009 (grub_get_rtc): Likewise.
34010 (grub_machine_init): Simply call grub_efi_init.
34011 (grub_machine_fini): Call grub_efi_fini.
34013 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
34014 (grub_efi_output_string): Removed.
34015 (grub_efi_stall): New function.
34016 (grub_stop): Likewise.
34017 (grub_get_rtc): Likewise.
34019 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
34020 (grub_efi_stall): New prototype.
34021 (grub_efi_allocate_pages): Likewise.
34022 (grub_efi_free_pages): Likewise.
34023 (grub_efi_get_memory_map): Likewise.
34024 (grub_efi_mm_init): Likewise.
34025 (grub_efi_mm_fini): Likewise.
34026 (grub_efi_init): Likewise.
34027 (grub_efi_fini): Likewise.
34029 * include/grub/i386/efi/time.h: Do not include
34030 grub/symbol.h. Include grub/efi/time.h.
34031 (GRUB_TICKS_PER_SECOND): Removed.
34032 (grub_get_rtc): Likewise.
34034 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
34035 Added padding. The EFI spec is buggy.
34036 (GRUB_EFI_BLACK): New macro.
34037 (GRUB_EFI_BLUE): Likewise.
34038 (GRUB_EFI_GREEN): Likewise.
34039 (GRUB_EFI_CYAN): Likewise.
34040 (GRUB_EFI_RED): Likewise.
34041 (GRUB_EFI_MAGENTA): Likewise.
34042 (GRUB_EFI_BROWN): Likewise.
34043 (GRUB_EFI_LIGHTGRAY): Likewise.
34044 (GRUB_EFI_BRIGHT): Likewise.
34045 (GRUB_EFI_DARKGRAY): Likewise.
34046 (GRUB_EFI_LIGHTBLUE): Likewise.
34047 (GRUB_EFI_LIGHTGREEN): Likewise.
34048 (GRUB_EFI_LIGHTCYAN): Likewise.
34049 (GRUB_EFI_LIGHTRED): Likewise.
34050 (GRUB_EFI_LIGHTMAGENTA): Likewise.
34051 (GRUB_EFI_YELLOW): Likewise.
34052 (GRUB_EFI_WHITE): Likewise.
34053 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
34054 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
34055 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
34056 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
34057 (GRUB_EFI_BACKGROUND_RED): Likewise.
34058 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
34059 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
34060 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
34061 (GRUB_EFI_TEXT_ATTR): Likewise.
34063 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
34064 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
34065 (kernel_mod_HEADERS): Added efi/time.h.
34067 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
34069 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
34070 include/grub/efi/api.h, include/grub/efi/console_control.h,
34071 include/grub/efi/efi.h, include/grub/efi/pe32.h,
34072 include/grub/i386/efi/time.h, kern/efi/efi.c,
34073 kern/i386/efi/init.c, kern/i386/efi/startup.S,
34074 and util/i386/efi/grub-mkimage.c.
34076 * Makefile.in (RMKFILES): Added i386-efi.rmk.
34078 * genmk.rb (PModule#rule): Do not export symbols if
34079 #{prefix}_EXPORTS is set to "no".
34081 * conf/i386-efi.mk: New file.
34082 * conf/i386-efi.rmk: Likewise.
34083 * include/grub/efi/api.h: Likewise.
34084 * include/grub/efi/console_control.h: Likewise.
34085 * include/grub/efi/efi.h: Likewise.
34086 * include/grub/efi/pe32.h: Likewise.
34087 * include/grub/i386/efi/time.h: Likewise.
34088 * kern/efi/efi.c: Likewise.
34089 * kern/i386/efi/init.c: Likewise.
34090 * kern/i386/efi/startup.S: Likewise.
34091 * util/i386/efi/grub-mkimage.c: Likewise.
34093 2006-04-17 Marco Gerards <marco@gnu.org>
34095 * include/grub/script.h: Include <grub/parser.h> and
34096 "grub_script.tab.h".
34097 (struct grub_lexer_param): New struct.
34098 (struct grub_parser_param): Likewise.
34099 (grub_script_create_arglist): Pass the state in an argument.
34100 (grub_script_add_arglist): Likewise.
34101 (grub_script_create_cmdline): Likewise.
34102 (grub_script_create_cmdblock): Likewise.
34103 (grub_script_create_cmdif): Likewise.
34104 (grub_script_create_cmdmenu): Likewise.
34105 (grub_script_add_cmd): Likewise.
34106 (grub_script_arg_add): Likewise.
34107 (grub_script_lexer_ref): Likewise.
34108 (grub_script_lexer_deref): Likewise.
34109 (grub_script_lexer_record_start): Likewise.
34110 (grub_script_lexer_record_stop): Likewise.
34111 (grub_script_mem_record): Likewise.
34112 (grub_script_mem_record_stop): Likewise.
34113 (grub_script_malloc): Likewise.
34114 (grub_script_yylex): Likewise.
34115 (grub_script_yyparse): Likewise.
34116 (grub_script_yyerror): Likewise.
34117 (grub_script_yylex): Likewise.
34118 (grub_script_lexer_init): Return the state.
34120 * normal/lexer.c (grub_script_lexer_state): Removed variable.
34121 (grub_script_lexer_done): Likewise.
34122 (grub_script_lexer_getline): Likewise.
34123 (grub_script_lexer_refs): Likewise.
34124 (script): Likewise.
34125 (newscript): Likewise.
34126 (record): Likewise.
34127 (recording): Likewise.
34128 (recordpos): Likewise.
34129 (recordlen): Likewise.
34130 (grub_script_lexer_init): Return the state instead of setting
34132 (grub_script_lexer_ref): Use the newly added argument for state
34133 instead of globals.
34134 (grub_script_lexer_deref): Likewise.
34135 (grub_script_lexer_record_start): Likewise.
34136 (grub_script_lexer_record_stop): Likewise.
34137 (recordchar): Likewise.
34138 (nextchar): Likewise.
34139 (grub_script_yylex2): Likewise.
34140 (grub_script_yylex): Likewise.
34141 (grub_script_yyerror): Likewise.
34143 * normal/parser.y (func_mem): Removed variable.
34144 (menu_entry): Likewise.
34146 (%lex-param): New parser option.
34147 (%parse-param): Likewise.
34148 (script): Always return the AST.
34149 (argument): Pass the state around.
34150 (arguments): Likewise.
34151 (grubcmd): Likewise.
34152 (commands): Likewise.
34153 (function): Likewise.
34154 (menuentry): Likewise.
34155 (if_statement): Likewise.
34158 * normal/script.c (grub_script_memused): Removed variable.
34159 (grub_script_parsed): Likewise.
34160 (grub_script_malloc): Added a state argument. Use that instead of
34162 (grub_script_mem_record): Likewise.
34163 (grub_script_mem_record_stop): Likewise.
34164 (grub_script_arg_add): Likewise.
34165 (grub_script_add_arglist): Likewise.
34166 (grub_script_create_cmdline): Likewise.
34167 (grub_script_create_cmdif): Likewise.
34168 (grub_script_create_cmdmenu): Likewise.
34169 (grub_script_add_cmd): Likewise.
34170 (grub_script_parse): Setup the state before calling the parser.
34172 2006-04-16 Marco Gerards <marco@gnu.org>
34174 * normal/command.c (grub_command_init): Remove the title command.
34176 * normal/lexer.c (grub_script_yylex): Renamed from this...
34177 (grub_script_yylex2): ... to this.
34178 (grub_script_yylex): New function. Temporary
34179 introduced to filter some tokens.
34180 (grub_script_yyerror): Print a newline.
34182 * normal/main.c (read_config_file): Output information about the
34183 lines that contain errors. Wait for a key after all lines have
34184 been processed. Don't return an empty menu.
34186 * normal/parser.y (func_mem): Don't initialize.
34187 (menu_entry): Likewise.
34188 (err): New variable.
34189 (script): Don't return anything when an error was encountered.
34190 (ws, returns): Removed rules.
34191 (argument): Disabled concatenated variable support.
34192 (arguments): Remove explicit separators.
34193 (grubcmd): Likewise.
34194 (function): Likewise.
34195 (menuentry): Likewise.
34197 (commands): Likewise. Add error handling.
34199 * normal/script.c (grub_script_create_cmdline): If
34200 `grub_script_parsed' is 0, assume the parser encountered an error.
34202 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
34204 * configure.ac: Add support for EFI. Fix the typo
34205 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
34207 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
34209 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
34210 foreign multibyte characters should be shown correctly.
34212 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
34214 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
34216 (read_config_file): Made it to close file before returning.
34218 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
34220 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
34221 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
34222 video/i386/pc/vbefill.c.
34224 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
34225 video/i386/pc/vbefill.c.
34227 * include/grub/video.h (grub_video_blit_format): New enum.
34228 (grub_video_mode_info): Added new member blit_format.
34229 (grub_video_get_blit_format): New function prototype.
34231 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
34232 function prototype.
34233 (grub_video_vbe_map_rgb): Likewise.
34234 (grub_video_vbe_unmap_color): Likewise.
34236 * include/grub/i386/pc/vbeblit.h: New file.
34238 * include/grub/i386/pc/vbefill.h: New file.
34240 * video/video.c (grub_video_get_blit_format): New function.
34241 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
34242 (grub_video_vbe_map_rgb): Likewise.
34243 (grub_video_vbe_unmap_color): Likewise.
34245 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
34247 (grub_video_vbe_blit_render_target): Changed to use more optimized
34249 (grub_video_vbe_setup): Added detection for optimized settings.
34250 (grub_video_vbe_create_render_target): Likewise.
34252 * video/i386/pc/vbeblit.c: New file.
34254 * video/i386/pc/vbefill.c: New file.
34256 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
34258 * font/manager.c (grub_font_get_glyph): Removed font fixup from
34261 * util/unifont2pff.rb: ... and moved it to here. Improved argument
34262 parsing to support both hex and dec ranges. If filename was missing
34263 show usage information.
34265 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
34267 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
34268 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
34270 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
34271 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
34272 (video_mod_SOURCES): Added.
34273 (video_mod_CFLAGS): Likewise.
34274 (video_mod_LDFLAGS): Likewise.
34275 (gfxterm_mod_SOURCES): Likewise.
34276 (gfxterm_mod_CFLAGS): Likewise.
34277 (gfxterm_mod_LDFLAGS): Likewise.
34278 (videotest_mod_SOURCES): Likewise.
34279 (videotest_mod_CFLAGS): Likewise.
34280 (videotest_mod_LDFLAGS): Likewise.
34281 (vesafb_mod_SOURCES): Removed.
34282 (vesafb_mod_CFLAGS): Likewise.
34283 (vesafb_mod_LDFLAGS): Likewise.
34284 (vga_mod_SOURCES): Likewise.
34285 (vga_mod_CFLAGS): Likewise.
34286 (vga_mod_LDFLAGS): Likewise.
34288 * commands/videotest.c: New file.
34290 * font/manager.c (fill_with_default_glyph): Modified to use
34292 (grub_font_get_glyph): Likewise.
34293 (fontmanager): Renamed from this...
34294 (font_manager): ... to this.
34296 * include/grub/font.h (grub_font_glyph): Added new structure.
34297 (grub_font_get_glyph): Modified to use grub_font_glyph.
34299 * include/grub/misc.h (grub_abs): Added as inline function.
34301 * include/grub/video.h: New file.
34303 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
34304 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
34305 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
34306 (grub_vbe_get_controller_info): Renamed from this...
34307 (grub_vbe_bios_get_controller_info): ... to this.
34308 (grub_vbe_get_mode_info): Renamed from this...
34309 (grub_vbe_bios_get_mode_info): ... to this.
34310 (grub_vbe_set_mode): Renamed from this...
34311 (grub_vbe_bios_set_mode): ... to this.
34312 (grub_vbe_get_mode): Renamed from this...
34313 (grub_vbe_bios_get_mode): ... to this.
34314 (grub_vbe_set_memory_window): Renamed from this...
34315 (grub_vbe_bios_set_memory_window): ... to this.
34316 (grub_vbe_get_memory_window): Renamed from this...
34317 (grub_vbe_bios_get_memory_window): ... to this.
34318 (grub_vbe_set_scanline_length): Renamed from this...
34319 (grub_vbe_set_scanline_length): ... to this.
34320 (grub_vbe_get_scanline_length): Renamed from this...
34321 (grub_vbe_bios_get_scanline_length): ... to this.
34322 (grub_vbe_set_display_start): Renamed from this...
34323 (grub_vbe_bios_set_display_start): ... to this.
34324 (grub_vbe_get_display_start): Renamed from this...
34325 (grub_vbe_bios_get_display_start): ... to this.
34326 (grub_vbe_set_palette_data): Renamed from this...
34327 (grub_vbe_bios_set_palette_data): ... to this.
34328 (grub_vbe_set_pixel_rgb): Removed.
34329 (grub_vbe_set_pixel_index): Likewise.
34331 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
34333 (grub_vbe_bios_get_controller_info): ... to this.
34334 (grub_vbe_get_mode_info): Renamed from this...
34335 (grub_vbe_bios_get_mode_info): ... to this.
34336 (grub_vbe_set_mode): Renamed from this...
34337 (grub_vbe_bios_set_mode): ... to this.
34338 (grub_vbe_get_mode): Renamed from this...
34339 (grub_vbe_bios_get_mode): ... to this.
34340 (grub_vbe_set_memory_window): Renamed from this...
34341 (grub_vbe_bios_set_memory_window): ... to this.
34342 (grub_vbe_get_memory_window): Renamed from this...
34343 (grub_vbe_bios_get_memory_window): ... to this.
34344 (grub_vbe_set_scanline_length): Renamed from this...
34345 (grub_vbe_set_scanline_length): ... to this.
34346 (grub_vbe_get_scanline_length): Renamed from this...
34347 (grub_vbe_bios_get_scanline_length): ... to this.
34348 (grub_vbe_set_display_start): Renamed from this...
34349 (grub_vbe_bios_set_display_start): ... to this.
34350 (grub_vbe_get_display_start): Renamed from this...
34351 (grub_vbe_bios_get_display_start): ... to this.
34352 (grub_vbe_set_palette_data): Renamed from this...
34353 (grub_vbe_bios_set_palette_data): ... to this.
34354 (grub_vbe_bios_get_controller_info): Fixed problem with registers
34355 getting corrupted after calling it. Added more pushes and pops.
34356 (grub_vbe_bios_set_mode): Likewise.
34357 (grub_vbe_bios_get_mode): Likewise.
34358 (grub_vbe_bios_get_memory_window): Likewise.
34359 (grub_vbe_bios_set_scanline_length): Likewise.
34360 (grub_vbe_bios_get_scanline_length): Likewise.
34361 (grub_vbe_bios_get_display_start): Likewise.
34362 (grub_vbe_bios_set_palette_data): Likewise.
34364 * normal/cmdline.c (cl_set_pos): Refresh the screen.
34365 (cl_insert): Likewise.
34366 (cl_delete): Likewise.
34368 * term/gfxterm.c: New file.
34370 * term/i386/pc/vesafb.c: Removed file.
34372 * video/video.c: New file.
34374 * video/i386/pc/vbe.c (real2pm): Added new function.
34375 (grub_video_vbe_draw_pixel): Likewise.
34376 (grub_video_vbe_get_video_ptr): Likewise.
34377 (grub_video_vbe_get_pixel): Likewise
34378 (grub_video_vbe_init): Likewise.
34379 (grub_video_vbe_fini): Likewise.
34380 (grub_video_vbe_setup): Likewise.
34381 (grub_video_vbe_get_info): Likewise.
34382 (grub_video_vbe_set_palette): Likewise.
34383 (grub_video_vbe_get_palette): Likewise.
34384 (grub_video_vbe_set_viewport): Likewise.
34385 (grub_video_vbe_get_viewport): Likewise.
34386 (grub_video_vbe_map_color): Likewise.
34387 (grub_video_vbe_map_rgb): Likewise.
34388 (grub_video_vbe_map_rgba): Likewise.
34389 (grub_video_vbe_unmap_color): Likewise.
34390 (grub_video_vbe_fill_rect): Likewise.
34391 (grub_video_vbe_blit_glyph): Likewise.
34392 (grub_video_vbe_blit_bitmap): Likewise.
34393 (grub_video_vbe_blit_render_target): Likewise.
34394 (grub_video_vbe_scroll): Likewise.
34395 (grub_video_vbe_swap_buffers): Likewise.
34396 (grub_video_vbe_create_render_target): Likewise.
34397 (grub_video_vbe_delete_render_target): Likewise.
34398 (grub_video_vbe_set_active_render_target): Likewise.
34399 (grub_vbe_set_pixel_rgb): Remove function.
34400 (grub_vbe_set_pixel_index): Likewise.
34401 (index_color_mode): Remove static variable.
34402 (active_mode): Likewise.
34403 (framebuffer): Likewise.
34404 (bytes_per_scan_line): Likewise.
34405 (grub_video_vbe_adapter): Added new static variable.
34406 (framebuffer): Likewise.
34407 (render_target): Likewise.
34408 (initial_mode): Likewise.
34409 (mode_in_use): Likewise.
34410 (mode_list): Likewise.
34412 2006-03-10 Marco Gerards <marco@gnu.org>
34414 * configure.ac (AC_INIT): Bumped to 1.93.
34416 * DISTLIST: Added `include/grub/hfs.h'.
34418 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
34420 * boot/i386/pc/boot.S (general_error): Before looping, try INT
34421 18H, which might help the BIOS falling back to next boot media.
34423 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
34425 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
34426 Poe Chen <poe.poechen@gmail.com>.
34428 2006-01-17 Marco Gerards <marco@gnu.org>
34430 * include/grub/normal.h: Include <grub/script.h>.
34431 (grub_command_list): Removed struct.
34432 (grub_command_list_t): Removed type.
34433 (grub_menu_entry): Remove members `num' and `command_list'. Add
34434 members `commands' and `sourcecode'.
34435 * include/grub/script.h: Add inclusion guards.
34436 (grub_script_cmd_menuentry): New struct.
34437 (grub_script_execute_menuentry): New prototype.
34438 (grub_script_lexer_record_start): Likewise.
34439 (grub_script_lexer_record_stop): Likewise.
34440 * normal/execute.c (grub_script_execute_menuentry): New function.
34441 * normal/lexer.c (record, recording, recordpos, recordlen): New
34443 (grub_script_lexer_record_start): New function.
34444 (grub_script_lexer_record_stop): Likewise.
34445 (recordchar): Likewise.
34446 (nextchar): Likewise.
34447 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
34448 2048 as the buffer size. Add the tokens `menuentry' and `@'.
34449 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
34450 (current_menu): New variable.
34451 (free_menu): Mainly rewritten.
34452 (grub_normal_menu_addentry): New function.
34453 (read_config_file): Rewritten.
34454 * normal/menu.c (run_menu_entry): Mainly rewritten.
34455 * normal/menu_entry.c (make_screen): Rewritten the code to insert
34457 (run): Mainly rewritten.
34458 * normal/parser.y (menu_entry): New variable.
34459 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
34460 (menuentry): New rule.
34461 (command): Add `menuentry'.
34462 (if_statement): Allow additional returns before `fi'.
34463 * normal/script.c (grub_script_create_cmdmenu): New function.
34465 2006-01-03 Marco Gerards <marco@gnu.org>
34467 * INSTALL: GNU Bison is required.
34468 * configure.ac: Rewritten the test to detect Bison.
34469 * Makefile.in (YACC): New variable. Reported by Xun Sun
34470 <xun.sun.cn@gmail.com>.
34472 2006-01-03 Marco Gerards <marco@gnu.org>
34474 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
34475 the HFS+ filesystem to filesystem blocks.
34476 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
34477 GCC warning is silenced.
34479 2006-01-03 Marco Gerards <marco@gnu.org>
34481 * partmap/apple.c (apple_partition_map_iterate): Convert the data
34482 read from disk from big endian to host byte order.
34484 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
34486 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
34488 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
34489 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
34490 embedded HFS+ filesystem.
34491 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
34492 (grub_hfs_sblock): Move from here...
34493 * include/grub/hfs.h: To here... New file.
34494 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
34496 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
34498 (grub_hfsplus_volheader): Change type of member `magic' to
34500 (grub_hfsplus_data): Add new member `embedded_offset'.
34501 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
34503 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
34504 Calculate the offset.
34506 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34508 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
34510 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
34512 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34514 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
34515 ENV->NAME is NULL after allocating ENV->VALUE.
34517 2005-12-25 Marco Gerards <marco@gnu.org>
34519 * kern/env.c (grub_env_set): Rewritten the error handling code.
34521 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34523 * geninit.sh: Made more robust, and more portable.
34525 2005-12-25 Marco Gerards <marco@gnu.org>
34527 Add support for Apple HFS+ filesystems.
34529 * fs/hfsplus.c: New file.
34531 * DISTLIST: Added `fs/hfsplus.c'.
34533 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
34534 (hfsplus_mod_SOURCES): New variable.
34535 (hfsplus_mod_CFLAGS): Likewise.
34536 (hfsplus_mod_LDFLAGS): Likewise.
34537 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
34538 (grub_setup_SOURCES): Likewise.
34539 (grub_mkdevicemap_SOURCES): Likewise.
34540 (grub_emu_SOURCES): Likewise.
34541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34543 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
34545 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
34547 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
34549 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
34550 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
34551 include/grub/parser.h, include/grub/script.h, kern/parser.c,
34552 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
34553 normal/lexer.c, normal/parser.y, normal/script.c, and
34555 Removed kern/sparc64/cache.c.
34557 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
34558 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
34561 * configure.ac (AC_INIT): Bumped to 1.92.
34563 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
34565 * kern/err.c (grub_error_push): Added new function to support error
34567 (grub_error_pop): Likewise.
34568 (grub_error_stack_items): New local variable to support error stacks.
34569 (grub_error_stack_pos): Likewise.
34570 (grub_error_stack_assert): Likewise.
34571 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
34573 (grub_print_error): Added support to print errors from error stack.
34575 * include/grub/err.h (grub_error_push): Added function prototype.
34576 (grub_error_pop): Likewise.
34578 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
34580 * configure.ac: Accept `powerpc64' as host_cpu.
34581 (amd64): Rename to `biarch32'.
34583 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
34584 non-cacheline-aligned addresses.
34586 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
34587 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
34588 if `size' is non-zero.
34590 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
34592 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
34593 and `cd' to make sure the filename is not prefixed with a
34595 (pkgdata_MODULES): Add `gpt.mod'.
34596 (gpt_mod_SOURCES): New variable.
34597 (gpt_mod_CFLAGS): Likewise.
34598 (gpt_mod_LDFLAGS): Likewise.
34600 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
34602 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
34605 * partmap/gpt.c: New file.
34607 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
34608 GPT partition map is detected.
34610 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
34612 * commands/i386/pc/play.c: New file.
34613 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
34614 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
34617 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
34619 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
34620 ((unused))' to silence gcc warning.
34622 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
34624 * configure.ac: Correct `AC_PROG_YACC' test.
34626 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34628 * util/powerpc/ieee1275/grub-install.in: Run the mount point
34629 check before installing files.
34631 2005-11-22 Mike Small <smallm@panix.com>
34633 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
34634 number regex so multidigit numbers are recognized correctly.
34636 2005-11-22 Mike Small <smallm@panix.com>
34638 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
34639 debugging message before attempting to claim memory.
34640 (grub_rescue_cmd_initrd): Add a claim debugging message and try
34641 multiple addresses in case of failure.
34643 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34645 * term/tparm.c (get_space): Remove empty `if' statement.
34647 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
34649 * kern/parser.c (check_varstate): Rename `state' to 's'.
34651 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34653 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
34654 variable definitions to the beginning of each function. Sort stack
34656 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
34657 `buf' argument to `char *'.
34659 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
34661 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
34662 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
34663 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
34664 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
34665 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
34666 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
34667 configfile.mod, search.mod, gzio.mod and test.mod.
34668 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
34669 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
34670 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
34671 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
34672 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
34673 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
34674 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
34675 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
34676 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
34677 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
34678 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
34679 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
34680 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
34681 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
34682 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
34683 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
34684 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
34685 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
34686 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
34687 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
34688 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
34689 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
34690 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
34692 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
34694 (pkgdata_MODULES): Add test.mod.
34696 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34698 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
34699 appending to variables with "+=".
34700 (PModule): Use full pathname to generate *.lst filenames.
34702 * Makefile.in: Fixed list rules moved from genmk.rb.
34703 (.DELETE_ON_ERROR): New special target.
34704 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
34706 * conf/i386-pc.rmk: Include conf/common.mk.
34707 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
34708 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
34709 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
34710 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
34711 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
34712 configfile.mod, search.mod, gzio.mod and test.mod.
34713 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
34714 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
34715 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
34716 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
34717 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
34718 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
34719 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
34720 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
34721 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
34722 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
34723 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
34724 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
34725 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
34726 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
34727 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
34728 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
34729 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
34730 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
34731 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
34732 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
34733 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
34734 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
34735 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
34737 * conf/common.rmk: ... to here. New file.
34739 * conf/common.mk: New file.
34741 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
34743 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
34744 (grub_script.tab.c): ... here.
34746 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
34747 (grub_script.tab.c): ... here.
34749 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
34750 (grub_script.tab.c): ... here.
34752 * normal/command.c (grub_command_find): Fixed a memory leak of
34753 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
34755 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34757 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
34758 "@" which marks the start of a comment on ARM.
34759 (VARIABLE): Likewise.
34761 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34763 Add support for Linux/ADFS partition tables.
34765 * partmap/acorn.c: New file.
34767 * include/grub/acorn_filecore.h: Likewise.
34769 * DISTLIST: Added `partmap/acorn.c' and
34770 `include/grub/acorn_filecore.h'.
34772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34774 (pkgdata_MODULES): Add `acorn.mod'.
34775 (acorn_mod_SOURCES): New variable.
34776 (acorn_mod_CFLAGS): Likewise.
34778 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
34780 (pkgdata_MODULES): Add `acorn.mod'.
34781 (acorn_mod_SOURCES): New variable.
34782 (acorn_mod_CFLAGS): Likewise.
34784 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
34785 (pkgdata_MODULES): Add `acorn.mod'.
34786 (acorn_mod_SOURCES): New variable.
34787 (acorn_mod_CFLAGS): Likewise.
34788 (acorn_mod_LDFLAGS): Likewise.
34790 * include/types.h (grub_disk_addr_t): New typedef.
34792 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
34794 * geninit.sh: New file.
34796 * geninitheader.sh: Likewise.
34798 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
34799 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
34800 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
34801 * commands/configfile.c (grub_configfile_init)
34802 (grub_configfile_fini): Likewise.
34803 * commands/default.c (grub_default_init, grub_default_fini):
34805 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
34806 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
34807 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
34808 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
34810 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
34811 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
34813 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
34814 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
34816 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
34818 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
34820 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
34821 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
34822 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
34823 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
34824 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
34825 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
34826 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
34827 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
34828 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
34829 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
34830 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
34831 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
34832 * partmap/amiga.c (grub_amiga_partition_map_init)
34833 (grub_amiga_partition_map_fini): Likewise.
34834 * partmap/apple.c (grub_apple_partition_map_init)
34835 (grub_apple_partition_map_fini): Likewise.
34836 * partmap/pc.c (grub_pc_partition_map_init)
34837 (grub_pc_partition_map_fini): Likewise.
34838 * partmap/sun.c (grub_sun_partition_map_init,
34839 grub_sun_partition_map_fini): Likewise.
34840 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
34843 * util/grub-emu.c: Include <grub_modules_init.h>.
34844 (main): Don't initialize and de-initialize any modules directly,
34845 use `grub_init_all' and `grub_fini_all' instead.
34847 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
34848 `grub_vesafb_mod_init'.
34849 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
34851 * term/i386/pc/vga.c (grub_vga_init): Renamed to
34852 `grub_vga_mod_init'. Updated all users.
34853 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
34855 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
34856 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
34859 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
34860 Generate a function to initialize the module in utilities.
34861 Updated all callers.
34862 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
34863 initialize the module in utilities. Updated all callers.
34865 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
34867 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
34868 escape sequence and a literal ^L to clear the screen.
34870 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
34871 when returning from Open Firmware.
34873 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
34875 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
34876 (grub_ofconsole_height): Likewise.
34877 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
34878 manually insert a '\n'.
34879 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
34880 `grub_ofconsole_height'. Return early if these are already set.
34882 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
34884 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
34885 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
34886 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
34887 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
34888 and `normal/script.c'.
34889 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
34890 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34891 (test_mod_SOURCES): New variable.
34892 (test_mod_CFLAGS): Likewise.
34893 (test_mod_LDFLAGS): Likewise.
34894 (pkgdata_MODULES): Add `test.mod'.
34895 (grub_script.tab.c): New rule.
34896 (grub_script.tab.h): Likewise.
34898 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
34900 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34901 `commands/test.c', `normal/execute.c', `normal/lexer.c',
34902 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34903 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
34904 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34905 (test_mod_SOURCES): New variable.
34906 (test_mod_CFLAGS): Likewise.
34907 (pkgdata_MODULES): Add `test.mod'.
34908 (grub_script.tab.c): New rule.
34909 (grub_script.tab.h): Likewise.
34911 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
34913 Add initial scripting support.
34915 * commands/test.c: New file.
34916 * include/grub/script.h: Likewise.
34917 * normal/execute.c: Likewise.
34918 * normal/function.c: Likewise.
34919 * normal/lexer.c: Likewise.
34920 * normal/parser.y: Likewise.
34921 * normal/script.c: Likewise.
34923 * configure.ac: Add `AC_PROG_YACC' test.
34925 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
34926 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
34927 `normal/function.c' and `normal/script.c'.
34928 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
34929 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
34930 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
34932 (pkgdata_MODULES): Add `test.mod'.
34933 (grub_script.tab.c): New rule.
34934 (grub_script.tab.h): Likewise.
34936 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
34938 * include/grub/normal.h (grub_test_init): New prototype.
34939 (grub_test_fini): Likewise.
34941 * normal/command.c: Include <grub/script.h>.
34942 (grub_command_execute): Rewritten.
34944 * util/grub-emu.c (main): Call `grub_test_init' and
34947 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
34949 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
34951 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
34952 there are no pending characters.
34954 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
34956 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
34957 `grub_strndup' to drop device arguments. Replace unnecessary
34958 `grub_strndup' with `grub_strdup'.
34960 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
34962 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
34963 `debug' environment variable has been set.
34965 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
34967 * Makefile.in (install-local): Use $(DATA).
34968 (uninstall): Likewise.
34969 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
34970 (sbin_UTILITIES): ... to here.
34971 (sbin_SCRIPTS): New variable.
34972 (grub_install_SOURCES): New variable.
34973 * util/powerpc/ieee1275/grub-install.in: New file.
34974 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
34976 (add_segments): Call `grub_util_get_path'.
34978 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
34980 From Timothy Baldwin:
34981 * commands/ls.c (grub_ls_list_files): Close FILE with
34983 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
34985 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
34987 * include/grub/parser.h: New file.
34989 * kern/parser.c: Likewise.
34991 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
34992 (grub_setup_SOURCES): Likewise.
34993 (grub_probefs_SOURCES): Likewise.
34994 (grub_emu_SOURCES): Likewise.
34995 (kernel_img_HEADERS): Add `parser.h'.
34997 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
34998 (grub_emu_SOURCES): Add `kern/parser.c'.
34999 (grubof_SOURCES): Likewise.
35001 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
35002 (grubof_SOURCES): Add `kern/parser.c'.
35004 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
35006 * kern/misc.c (grub_split_cmdline): Removed function.
35008 * kern/rescue.c: Include <grub/parser.h>.
35009 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
35010 of `grub_split_cmdline'.
35012 * normal/command.c: Include <grub/parser.h>.
35013 (grub_command_execute): Use `grub_parser_split_cmdline' instead
35014 of `grub_split_cmdline'.
35016 * normal/completion.c: Include <grub/parser.h>.
35017 (cmdline_state): New variable.
35018 (iterate_dir): End the filename with a quote depending on the
35019 command line state.
35020 (get_state): new function.
35021 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
35022 split the arguments and determine the current argument. When the
35023 argument string is not quoted, escape all spaces.
35025 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
35027 * normal/sparc64/setjmp.S: New file.
35029 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
35031 * include/grub/sparc64/libgcc.h: New file.
35032 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
35033 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
35034 normal/sparc64/setjmp.c.
35036 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
35038 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
35039 * kern/sparc64/cache.S: New file.
35040 * kern/sparc64/cache.c: Removed.
35041 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
35042 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
35044 (COMMON_LDFLAGS): Add -melf64_sparc.
35045 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
35046 (grubof_SOURCES): Use cache.S instead of cache.c.
35047 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
35048 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
35049 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
35051 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
35052 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
35053 (linux_mod_CFLAGS): Commented out.
35054 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
35055 out because module isn't built.
35056 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
35057 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
35058 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
35059 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
35060 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
35061 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
35062 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
35063 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
35064 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
35065 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
35066 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
35067 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
35068 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
35069 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
35071 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
35073 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
35074 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
35075 longer, because HFS should not be used on PC.
35077 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
35079 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
35080 consistently within the loop.
35082 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
35084 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
35085 directory can not be read.
35087 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
35089 * configure.ac (AC_INIT): Increase the version number to 1.91.
35091 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
35092 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
35093 term/i386/pc/serial.c.
35095 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
35097 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
35098 file size must be permitted.
35100 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
35101 between %ah and %al.
35103 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
35105 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
35107 Call the hook with a NUL-terminated filename.
35108 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
35111 * kern/term.c (cursor_state): New variable.
35112 (grub_term_set_current): Reset the cursor state on a new
35114 (grub_setcursor): Rewritten to use CURSOR_STATE.
35115 (grub_getcursor): New function.
35117 * include/grub/term.h (grub_getcursor): New prototype.
35119 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
35120 integers on ARM. Reported by Timothy Baldwin
35121 <T.E.Baldwin99@members.leeds.ac.uk>.
35123 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
35125 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
35127 (grub_sfs_dir): Likewise.
35129 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
35131 Add support for the SFS filesystem.
35133 * fs/sfs.c: New file.
35135 * DISTLIST: Added `fs/sfs.c'.
35137 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
35138 (grub_probefs_SOURCES): Likewise.
35139 (grub_emu_SOURCES): Likewise.
35140 (pkgdata_MODULES): Add `sfs.mod'.
35141 (sfs_mod_SOURCES): New variable.
35142 (sfs_mod_CFLAGS): Likewise.
35143 (sfs_mod_LDFLAGS): Likewise.
35145 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
35146 (pkgdata_MODULES): Add `sfs.mod'.
35147 (sfs_mod_SOURCES): New variable.
35148 (sfs_mod_CFLAGS): Likewise.
35150 * util/grub-emu.c (main): Call `grub_sfs_init' and
35153 * include/grub/fs.h (grub_sfs_init): New prototype.
35154 (grub_sfs_fini): Likewise.
35156 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
35158 Add support for the AFFS filesystem.
35160 * fs/affs.c: New file.
35162 * DISTLIST: Added `fs/affs.c'.
35164 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
35165 (grub_probefs_SOURCES): Likewise.
35166 (grub_emu_SOURCES): Likewise.
35167 (pkgdata_MODULES): Add `affs.mod'.
35168 (affs_mod_SOURCES): New variable.
35169 (affs_mod_CFLAGS): Likewise.
35170 (affs_mod_LDFLAGS): Likewise.
35172 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
35173 (pkgdata_MODULES): Add `affs.mod'.
35174 (affs_mod_SOURCES): New variable.
35175 (affs_mod_CFLAGS): Likewise.
35177 * util/grub-emu.c (main): Call `grub_affs_init' and
35180 * include/grub/fs.h (grub_affs_init): New prototype.
35181 (grub_affs_fini): Likewise.
35183 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
35185 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
35187 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
35189 * configure.ac: Accept `x86_64' as host_cpu. In that case add
35192 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
35195 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
35196 (COMMON_LDFLAGS): New variable.
35197 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
35198 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
35199 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
35200 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
35201 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
35202 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
35203 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
35204 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
35205 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
35206 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
35207 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
35208 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
35209 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
35210 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
35211 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
35213 (normal_mod_ASFLAGS): Add `-m32'.
35215 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
35216 (grub_host_size_t, grub_host_ssize_t): New types.
35217 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
35218 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
35219 `GRUB_HOST_SIZEOF_VOID_P'.
35221 * include/grub/kernel.h (struct grub_module_header): Type of
35222 member offset changed to `grub_host_off_t'. Type of member size
35223 changed to `grub_host_size_t'.
35224 (struct grub_module_info): Type of member offset changed to
35225 `grub_host_off_t'. Type of member size changed to
35226 `grub_host_size_t'.
35228 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
35230 Make GRUB's kernel compliant to Multiboot Specification.
35232 * kern/i386/pc/startup.S (multiboot_header): New label.
35233 (multiboot_entry): Likewise.
35234 (multiboot_trampoline): Likewise.
35236 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
35237 Increased to 0x4A0.
35239 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
35240 put parentheses after a question mark.
35241 [!GRUB_UTIL] (my_mod): New variable.
35243 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
35245 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
35247 Adds support for the XFS filesystem. Btrees are not supported
35250 * fs/xfs.c: New file.
35252 * DISTLIST: Added `fs/xfs.c'.
35254 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
35255 (grub_probefs_SOURCES): Likewise.
35256 (grub_emu_SOURCES): Likewise.
35257 (pkgdata_MODULES): Add `xfs.mod'.
35258 (xfs_mod_SOURCES): New variable.
35259 (xfs_mod_CFLAGS): Likewise.
35261 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
35262 (pkgdata_MODULES): Add `xfs.mod'.
35263 (xfs_mod_SOURCES): New variable.
35264 (xfs_mod_CFLAGS): Likewise.
35266 * util/grub-emu.c (main): Call `grub_xfs_init' and
35269 * include/grub/fs.h (grub_xfs_init): New prototype.
35270 (grub_xfs_fini): Likewise.
35273 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
35275 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
35276 color modes, allow greater than 16 colors to be configured as
35279 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35281 * normal/completion.c (complete_arguments): Add the qualifier
35282 const into OPTIONS.
35284 From Omniflux <omniflux+lists@omniflux.com>:
35285 * include/grub/terminfo.h: New file.
35286 * include/grub/tparm.h: Likewise.
35287 * include/grub/i386/pc/serial.h: Likewise.
35288 * term/terminfo.c: Likewise.
35289 * term/tparm.c: Likewise.
35290 * term/i386/pc/serial.c: Likewise.
35291 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
35293 (terminfo_mod_SOURCES): New variable.
35294 (terminfo_mod_CFLAGS): Likewise.
35295 (serial_mod_SOURCES): Likewise.
35296 (serial_mod_CFLAGS): Likewise.
35298 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
35300 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
35301 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
35302 and kern/powerpc/ieee1275/cmain.c, respectively.
35304 * boot/powerpc/ieee1275/crt0.S: Moved to ...
35305 * kern/powerpc/ieee1275/crt0.S: ... here.
35307 * boot/powerpc/ieee1275/cmain.c: Moved to ...
35308 * kern/powerpc/ieee1275/cmain.c: ... here.
35310 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
35311 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
35312 instead of boot/powerpc/ieee1275/crt0.S and
35313 boot/powerpc/ieee1275/cmain.c, respectively.
35315 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
35316 sectors. It was not used anyway.
35318 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
35320 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
35321 `unused parameter' warning.
35323 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
35325 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
35327 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
35330 2005-08-28 Marco Gerards <metgerards@student.han.nl>
35332 * include/grub/normal.h (enum grub_completion_type): Added
35333 `GRUB_COMPLETION_TYPE_ARGUMENT'.
35335 * normal/cmdline.c (print_completion): Handle
35336 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
35337 * normal/menu_entry.c (store_completion): Likewise.
35339 * normal/completion.c (complete_arguments): New function.
35340 (grub_normal_do_completion): Call `complete_arguments' when the
35341 current words start with a dash.
35343 2005-08-27 Marco Gerards <metgerards@student.han.nl>
35345 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
35346 `gzio.mod' instead of `io.mod').
35348 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
35350 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
35351 (DISTDIRS): Added io and video.
35352 Rewrite the search routine to make an output consistently.
35354 * DISTLIST: Added conf/sparc64-ieee1275.mk,
35355 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
35356 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
35357 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
35358 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
35359 util/powerpc/ieee1275/misc.c.
35361 * include/grub/gzio.h: New file.
35362 * io/gzio.c: Likewise.
35364 * kern/file.c (grub_file_close): Call grub_device_close only if
35365 FILE->DEVICE is not NULL.
35367 * include/grub/mm.h [!NULL] (NULL): New macro.
35369 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
35371 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
35372 (pkgdata_MODULES): Added gzio.mod.
35373 (gzio_mod_SOURCES): New variable.
35374 (gzio_mod_CFLAGS): Likewise.
35376 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
35377 (pkgdata_MODULES): Added gzio.mod.
35378 (gzio_mod_SOURCES): New variable.
35379 (gzio_mod_CFLAGS): Likewise.
35381 * commands/cat.c: Include grub/gzio.h.
35382 (grub_cmd_cat): Use grub_gzfile_open instead of
35385 * commands/cmp.c: Include grub/gzio.h.
35386 (grub_cmd_cmp): Use grub_gzfile_open instead of
35389 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
35390 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
35392 (grub_rescue_cmd_module): Likewise.
35394 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
35396 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
35397 kern/sparc64/ieee1275/init.c because it contains _start.
35398 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
35400 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
35402 * configure.ac: Add support for sparc64 host with ieee1275
35404 * configure: Generated from configure.ac.
35405 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
35407 (grub_ofdisk_read): Likewise.
35408 (grub_ofdisk_open): Use %p to print pointer values, and cast the
35409 pointers as (void *) to remove a warning.
35410 (grub_ofdisk_close): Likewise.
35411 (grub_ofdisk_read): Likewise.
35412 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
35413 returns, so make it return void to remove a warning.
35414 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
35415 Corresponding prototype change.
35416 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
35417 values, and cast the pointers as (void *) to remove a warning.
35418 (grub_mm_dump): Likewise.
35419 * conf/sparc64-ieee1275.mk: New file.
35420 * conf/sparc64-ieee1275.rmk: Likewise.
35421 * include/grub/sparc64/setjmp.h: Likewise.
35422 * include/grub/sparc64/types.h: Likewise.
35423 * include/grub/sparc64/ieee1275/console.h: Likewise.
35424 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
35425 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
35426 * include/grub/sparc64/ieee1275/time.h: Likewise.
35427 * kern/sparc64/cache.c: Likewise.
35428 * kern/sparc64/dl.c: Likewise.
35429 * kern/sparc64/ieee1275/init.c: Likewise.
35430 * kern/sparc64/ieee1275/openfw.c: Likewise.
35432 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
35434 * util/console.c (grub_ncurses_putchar): If C is greater than
35435 0x7f, set C to a question mark.
35436 (grub_ncurses_getcharwidth): New function.
35437 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
35440 * normal/menu.c (print_entry): Made aware of Unicode. First,
35441 convert TITLE to UCS-4, and predict the cursor position by
35444 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
35446 * kern/misc.c (grub_utf16_to_utf8): Likewise.
35448 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
35450 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
35451 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
35454 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
35455 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
35456 grub_strcpy and grub_strlen. Take it into account that a space
35457 character is inserted as a delimiter.
35459 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
35461 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
35462 invalid magic in the error.
35464 * commands/search.c: New file.
35466 * util/grub-emu.c (main): Call grub_search_init and
35469 * kern/rescue.c (grub_rescue_print_disks): Removed.
35470 (grub_rescue_print_devices): New function.
35471 (grub_rescue_cmd_ls): Use grub_device_iterate with
35472 grub_rescue_print_devices instead of grub_disk_dev_iterate with
35473 grub_rescue_print_disks.
35475 * kern/partition.c (grub_partition_iterate): Return the result of
35476 PARTMAP->ITERATE instead of GRUB_ERRNO.
35478 * kern/device.c: Include grub/partition.h.
35479 (grub_device_iterate): New function.
35481 * include/grub/partition.h (grub_partition_iterate): Return int
35482 instead of grub_err_t.
35484 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
35486 [GRUB_UTIL] (grub_search_fini): Likewise.
35488 * include/grub/device.h (grub_device_iterate): New prototype.
35490 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
35492 (pkgdata_MODULES): Added search.mod.
35493 (search_mod_SOURCES): New variable.
35494 (search_mod_CFLAGS): Likewise.
35496 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
35497 (pkgdata_MODULES): Added search.mod.
35498 (search_mod_SOURCES): New variable.
35499 (search_mod_CFLAGS): Likewise.
35501 * commands/ls.c (grub_ls_list_disks): Renamed to ...
35502 (grub_ls_list_devices): ... this, and use grub_device_iterate.
35503 All callers changed.
35505 * DISTLIST: Added commands/search.c.
35507 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
35509 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
35511 (grub_getcharwidth): New function.
35513 * kern/misc.c (grub_utf8_to_ucs4): New function.
35515 * include/grub/term.h (struct grub_term): Added a new member
35517 (grub_getcharwidth): New prototype.
35519 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
35521 * term/i386/pc/console.c (map_char): New function. Segregated from
35522 grub_console_putchar.
35523 (grub_console_putchar): Use map_char.
35524 (grub_console_getcharwidth): New function.
35525 (grub_console_term): Specified grub_console_getcharwidth as
35528 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
35529 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
35531 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
35533 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
35534 on grub_strtoul completely.
35535 (write_char): Declare local variables in the beginning of the
35537 (grub_vesafb_getcharwidth): New function.
35538 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
35541 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
35543 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
35544 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
35545 commands/i386/pc/vbetest.c.
35547 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
35548 call grub_vbe_get_controller_info again, because the returned
35549 information is volatile.
35550 (grub_vbe_set_video_mode): Mostly rewritten.
35551 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
35552 grub_vbe_status_t correctly.
35553 (grub_vbe_get_video_mode_info): Likewise.
35554 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
35555 several if statements.
35557 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
35558 * commands/i386/pc/vbeinfo.c: ... this.
35560 * commands/i386/pc/vbe_test.c: Renamed to ...
35561 * commands/i386/pc/vbetest.c: ... this.
35563 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
35565 (grub_cmd_vbeinfo): ... this. Save video modes before
35566 iterating. Skip a video mode, if it is not available, not enough
35567 information is given or it is monochrome. Show the memory
35568 model. Leave the interpretation of MODEVAR to grub_strtoul
35570 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
35571 (GRUB_MOD_FINI): Likewise.
35573 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
35574 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
35575 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
35576 duplicated grub_env_get. Leave the interpretation of MODEVAR to
35577 grub_strtoul completely.
35578 (real2pm): Removed.
35579 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
35580 (GRUB_MOD_FINI): Likewise.
35582 * normal/misc.c: Include grub/mm.h.
35584 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
35585 vbe_list_modes with vbetest.mod and vbeinfo.mod.
35586 (vbe_list_modes_mod_SOURCES): Removed.
35587 (vbe_list_modes_mod_CFLAGS): Likewise.
35588 (vbe_test_mod_SOURCES): Likewise.
35589 (vbe_test_mod_CFLAGS): Likewise.
35590 (vbeinfo_mod_SOURCES): New variable.
35591 (vbeinfo_mod_CFLAGS): Likewise.
35592 (vbetest_mod_SOURCES): Likewise.
35593 (vbetest_mod_CFLAGS): Likewise.
35595 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
35597 * normal/misc.c: New file.
35599 * DISTLIST: Added normal/misc.c.
35601 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
35602 DISK to HOOK. Call HOOK with DISK.
35603 * partmap/apple.c (apple_partition_map_iterate): Likewise.
35604 * partmap/pc.c (pc_partition_map_iterate): Likewise.
35605 * partmap/sun.c (sun_partition_map_iterate): Likewise.
35607 * normal/menu_entry.c (struct screen): Added a new member
35608 "completion_shown".
35609 (completion_buffer): New global variable.
35610 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
35611 (store_completion): New function.
35612 (complete): Likewise.
35613 (clear_completions): Likewise.
35614 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
35615 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
35616 a tab, call complete.
35618 * normal/completion.c (disk_dev): Removed.
35619 (print_simple_completion): Likewise.
35620 (print_partition_completion): Likewise.
35621 (print_func): New global variable.
35622 (add_completion): Do not take the arguments WHAT or PRINT any
35623 longer. Added a new argument TYPE. Instead of printing directly,
35624 call PRINT_FUNC if not NULL.
35625 All callers changed.
35626 (complete_device): Use a local variable DEV instead of
35627 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
35628 (grub_normal_do_completion): Take a new argument HOOK. Do not
35629 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
35630 empty string, return NULL instead.
35631 All callers changed.
35633 * normal/cmdline.c (print_completion): New function.
35635 * kern/partition.c (grub_partition_iterate): Add an argument DISK
35637 All callers changed.
35639 * kern/disk.c (grub_print_partinfo): Removed.
35641 * include/grub/partition.h (struct grub_partition_map): Add a new
35642 argument DISK into HOOK of ITERATE.
35643 (grub_partition_iterate): Add a new argument DISK to HOOK.
35645 * include/grub/normal.h (enum grub_completion_type): New enum.
35646 (grub_completion_type_t): New type.
35647 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
35648 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
35649 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
35650 (GRUB_COMPLETION_TYPE_FILE): Likewise.
35651 (grub_normal_do_completion): Added a new argument HOOK.
35652 (grub_normal_print_device_info): New prototype.
35654 * include/grub/disk.h (grub_print_partinfo): Removed.
35656 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
35657 (normal_mod_SOURCES): Likewise.
35658 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35659 (normal_mod_SOURCES): Likewise.
35661 * commands/ls.c (grub_ls_list_disks): Use
35662 grub_normal_print_device_info instead of grub_print_partinfo. Free
35664 (grub_ls_list_files): Use grub_normal_print_device_info instead of
35665 duplicating the code.
35667 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
35669 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
35670 follow GCS more precisely.
35671 * commands/i386/pc/vbe_test.c: Likewise.
35672 * include/grub/i386/pc/vbe.h: Likewise.
35673 * term/i386/pc/vesafb.c: Likewise.
35674 * video/i386/pc/vbe.c: Likewise.
35676 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
35678 * DISTLIST: Added term/i386/pc/vesafb.c
35679 DISTLIST: Added video/i386/pc/vbe.c
35680 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
35681 DISTLIST: Added commands/i386/pc/vbe_test.c.
35682 * commands/i386/pc/vbe_list_modes.c: New file.
35683 * commands/i386/pc/vbe_test.c: Likewise.
35684 * term/i386/pc/vesafb.c: Likewise.
35685 * video/i386/pc/vbe.c: Likewise.
35686 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
35687 (grub_vbe_probe) Added prototype.
35688 (grub_vbe_set_video_mode) Likewise.
35689 (grub_vbe_get_video_mode) Likewise.
35690 (grub_vbe_get_video_mode_info) Likewise.
35691 (grub_vbe_set_pixel_rgb) Likewise.
35692 (grub_vbe_set_pixel_index) Likewise.
35693 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
35694 (pkgdata_MODULES): Added vesafb.mod.
35695 (pkgdata_MODULES): Added vbe_list_modes.mod.
35696 (pkgdata_MODULES): Added vbe_test.mod.
35697 (vbe_mod_SOURCES): Added.
35698 (vbe_mod_CFLAGS): Likewise.
35699 (vesafb_mod_SOURCES): Likewise.
35700 (vesafb_mod_CFLAGS): Likewise.
35701 (vbe_list_modes_mod_SOURCES): Likewise.
35702 (vbe_list_modes_mod_CFLAGS): Likewise.
35703 (vbe_test_mod_SOURCES): Likewise.
35704 (vbe_test_mod_CFLAGS): Likewise.
35706 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
35708 * normal/command.c (grub_command_execute): If INTERACTIVE is
35709 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
35710 CMDLINE. Disable the pager if INTERACTIVE is true.
35711 All callers are changed.
35713 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
35714 before reading a config file.
35715 * normal/main.c (read_config_file): Even if a command is not
35716 found, register it if it is within an entry.
35718 * util/grub-emu.c: Include sys/types.h and unistd.h.
35719 (options): Added --hold.
35720 (struct arguments): Added a new member "hold".
35721 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
35723 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
35724 cleared by a debugger, if it is not zero.
35726 * include/grub/normal.h (grub_command_execute): Add an argument
35729 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
35731 * DISTLIST: Added include/grub/i386/pc/vbe.h.
35733 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
35735 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
35736 program with another one, because the old one didn't detect a bug
35737 in gcc-3.4. Always use regparm 2, because the new test is still
35738 not enough for gcc-4.0. Someone must investigate a simple test
35739 case which detects a bug in gcc-4.0.
35741 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
35743 * DISTLIST: Added normal/completion.c.
35745 * normal/completion.c: New file.
35747 * term/i386/pc/console.c (grub_console_getwh): New function.
35748 (grub_console_term): Assign grub_console_getwh to getwh.
35750 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
35751 function is defined in normal/completion.c as
35752 grub_normal_do_completion.
35753 (grub_cmdline_get): Use grub_normal_do_completion instead of
35756 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
35757 returns non-zero, otherwise return 0.
35758 (grub_partition_iterate): First, probe the partition map. Then,
35759 call ITERATE only for this partition map.
35761 * kern/misc.c (grub_strncmp): Rewritten.
35763 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
35764 returns non-zero. Otherwise return 0.
35766 * include/grub/partition.h (grub_partition_map_iterate): Return
35767 int instead of void.
35769 * include/grub/normal.h (grub_normal_do_completion): New prototype.
35771 * include/grub/misc.h (grub_strncmp): Change the type of N to
35774 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
35777 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
35778 unsigned explicitly before comparing it with I.
35780 * kern/main.c (grub_env_write_root): Add the attribute unused into
35783 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
35784 normal/completion.c.
35785 (normal_mod_SOURCES): Likewise.
35786 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35787 (normal_mod_SOURCES): Likewise.
35789 * normal/command.c (grub_iterate_commands): If ITERATE returns
35790 non-zero, return one immediately.
35792 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
35794 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
35795 * kern/i386/pc/startup.S: Updated Global Descriptor table's
35797 (grub_vbe_get_controller_info): New function.
35798 (grub_vbe_get_mode_info): Likewise.
35799 (grub_vbe_set_mode): Likewise.
35800 (grub_vbe_get_mode): Likewise.
35801 (grub_vbe_set_memory_window): Likewise.
35802 (grub_vbe_get_memory_window): Likewise.
35803 (grub_vbe_set_scanline_length): Likewise.
35804 (grub_vbe_get_scanline_length): Likewise.
35805 (grub_vbe_set_display_start): Likewise.
35806 (grub_vbe_get_display_start): Likewise.
35807 (grub_vbe_set_palette_data): Likewise.
35808 * include/grub/i386/pc/vbe.h: New file.
35810 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
35812 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
35813 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
35814 * DISTLIST: Likewise.
35815 * kern/ieee1275/of.c: Moved to ...
35816 * kern/ieee1275/ieee1275.c: ... here.
35818 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
35820 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
35821 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
35822 Pass 0 as `end' parameter to grub_strtoul().
35824 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
35826 * include/grub/powerpc/ieee1275/console.h: Do not include
35827 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
35829 (grub_console_cur_color): Remove i386-specific prototype.
35830 (grub_console_real_putchar): Likewise.
35831 (grub_console_checkkey): Likewise.
35832 (grub_console_getkey): Likewise.
35833 (grub_console_getxy): Likewise.
35834 (grub_console_gotoxy): Likewise.
35835 (grub_console_cls): Likewise.
35836 (grub_console_setcursor): Likewise.
35837 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
35838 Include <grub/machine/console.h>.
35839 * term/ieee1275/ofconsole.c: Likewise.
35841 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
35843 * Makefile.in (LIBLZO): New variable.
35845 * configure.ac: Check for LZO version 2.
35847 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
35848 lzo/lzo1x.h instead of lzo1x.h.
35850 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
35853 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
35854 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
35856 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
35857 copying the data from PARTITION to P.
35859 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
35861 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
35862 negative, unload the module.
35864 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
35865 map is "pc_partition_map" but not "pc".
35866 (usage): Fix the description. The options are --boot-image and
35867 --core-image but not --boot-file or --core-file.
35868 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
35869 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
35872 * util/i386/pc/grub-install.in: Do not specify --boot-file or
35873 --core-file. Specify INSTALL_DEVICE as an argument.
35875 * util/console.c: Include config.h.
35876 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
35877 [HAVE_NCURSES_H]: Include ncurses.h.
35878 [HAVE_CURSES_H]: Include curses.h.
35879 [!A_NORMAL] (A_NORMAL): Defined as zero.
35880 [!A_STANDOUT] (A_STANDOUT): Likewise.
35882 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
35884 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
35886 * configure.ac: Check for curses libraries and headers.
35888 * Makefile.in (LIBCURSES): New variable.
35890 * genmk.rb (Script::rule): Set the executable bits.
35892 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
35893 name of the PC partition map is "pc_partition_map" but not "pc".
35895 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
35897 * util/i386/pc/grub-install.in (grub_probefs): New variable.
35898 (modules): Likewise.
35899 (usage): Added descriptions for --modules and --grub-probefs.
35900 Handle --modules and --grub-probefs. Save the arguments in MODULES
35901 and GRUB_PROBEFS, respectively.
35902 Auto-detect a filesystem module against GRUBDIR. If the result is
35903 empty and modules are not specified explicitly, abort the
35904 installation. Add the result to MODULES.
35906 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
35907 disk/powerpc/ieee1275/ofdisk.c,
35908 include/grub/powerpc/ieee1275/init.h and
35909 term/powerpc/ieee1275/ofconsole.c.
35910 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
35911 term/ieee1275/ofconsole.c.
35913 * include/grub/powerpc/ieee1275/console.h: Resurrected.
35915 * COPYING: Upgraded to the latest version. Only the address of the
35916 FSF office has changed.
35918 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
35920 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
35921 kern/ieee1275.c with kern/ieee1275/of.c.
35923 * kern/ieee1275.c: Moved to ...
35924 * kern/ieee1275/of.c: ... here.
35926 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
35928 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
35931 * config.guess: Updated to the latest version from gnulib.
35932 * config.sub: Likewise.
35933 * install.sh: Likewise.
35934 * mkinstalldirs: Likewise.
35936 * include/grub/console.h: Removed. This file is arch-specific. Do
35937 not put this in include/grub.
35939 * include/grub/i386/pc/console.h: Resurrected.
35941 * util/console.c: Include grub/machine/console.h instead of
35943 * util/grub-emu.c: Likewise.
35945 2005-08-04 Marco Gerards <metgerards@student.han.nl>
35947 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
35950 From Vincent Pelletier <subdino2004@yahoo.fr>
35951 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
35952 Redefined to use grub_getwh.
35953 (grub_term): New member named getwh.
35954 (grub_getwh): New prototype.
35955 * kern/term.c (grub_getwh): New function.
35956 * term/i386/pc/console.c (grub_console_getwh): New function.
35957 (grub_console_term): New member `getwh'.
35958 * term/i386/pc/vga.c (grub_vga_getwh): New function.
35959 (grub_vga_term): New member `getwh'.
35960 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
35962 (grub_ofconsole_getw): New function.
35963 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
35964 (grub_ofconsole_term): New field named getwh and new initial
35967 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
35969 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
35970 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
35971 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
35972 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
35973 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
35974 of <grub/machine/ieee1275.h>.
35975 * commands/ieee1275/reboot.c: Likewise.
35976 * boot/powerpc/ieee1275/ieee1275.c: Move ...
35977 * kern/ieee1275.c: ... to here. All users updated. Change all
35978 parameter structs to use new type `grub_ieee1275_cell_t'.
35979 * term/powerpc/ieee1275/ofconsole.c: Move ...
35980 * term/ieee1275/ofconsole.c: ... to here. All users updated.
35981 * disk/powerpc/ieee1275/ofdisk.c: Move ...
35982 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
35983 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
35985 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
35986 Remove unused prototypes. All users updated.
35987 * include/grub/powerpc/ieee1275/console.h: Removed.
35988 * include/grub/powerpc/ieee1275/ieee1275.h: Define
35989 `grub_ieee1275_cell_t'.
35990 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
35991 Cast comparisons with -1 to the correct type.
35992 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
35993 type to match `grub_ieee1275_entry_fn'.
35995 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
35997 * DISTLIST: Added util/i386/pc/grub-probefs.c.
35999 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
36000 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
36002 (grub_probefs_SOURCES): New variable.
36004 * util/i386/pc/grub-probefs.c: New file.
36006 * util/i386/pc/grub-setup.c (main): Call
36007 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
36008 grub_hfs_init and grub_jfs_init to initialize the system. Call
36009 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
36010 grub_pc_partition_map_fini to finish the system.
36012 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
36014 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
36016 (grub_multiboot_load_elf32): Likewise.
36017 (grub_multiboot_is_elf64): Likewise.
36018 (grub_multiboot_load_elf64): Likewise.
36019 (grub_multiboot_load_elf): Likewise.
36020 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
36021 an ELF32 or ELF64 file.
36022 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
36024 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
36025 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
36026 NULL before calling FS->LABEL.
36027 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
36028 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
36029 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
36030 before calling FS->LABEL.
36032 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
36034 * util/i386/pc/grub-install.in (datadir): New variable.
36036 (pkgdatadir): New variable.
36037 (pkglibdir): Removed.
36039 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
36041 * DISTLIST: Added util/i386/pc/grub-install.in.
36043 * util/i386/pc/grub-install.in: New file.
36045 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
36046 (grub_install_SOURCES): Likewise.
36048 * genmk.rb: Added support for scripts.
36049 (Script): New class.
36050 (scripts): New variable.
36052 * Makefile.in (install-local): Install sbin_SCRIPTS by
36054 (uninstall): Remove sbin_SCRIPTS.
36056 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
36057 device, try to get a GRUB device by
36058 grub_util_biosdisk_get_grub_dev.
36061 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
36062 description for --device-map.
36064 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
36066 Change the semantics of variable hooks. They now return strings
36067 instead of error values.
36069 * util/i386/pc/grub-setup.c: Include grub/env.h.
36070 (setup): Use grub_device_set_root instead of grub_env_set.
36072 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
36073 grub_env_get instead of grub_device_set_root and
36074 grub_device_get_root, respectively.
36076 * kern/main.c (grub_env_write_root): New function.
36077 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
36078 grub_env_set instead of grub_device_set_root.
36080 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
36082 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
36083 rather than calling ENV->WRITE_HOOK afterwards.
36084 (grub_env_get): Return the result of ENV->READ_HOOK rather than
36085 passing a pointer of a pointer.
36086 (grub_register_variable_hook): Change the types of "read_hook" and
36087 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
36089 Allocate the default empty string on the heap, because this string
36090 may be freed later.
36092 * kern/device.c: Include grub/env.h.
36093 (grub_device_set_root): Removed.
36094 (grub_device_get_root): Likewise.
36095 (grub_device_open): Use grub_env_get instead of
36096 grub_device_get_root.
36098 * include/grub/env.h (grub_env_read_hook_t): New type.
36099 (grub_env_write_hook_t): Likewise.
36100 (grub_env_var): Change the types of "read_hook" and "write_hook"
36101 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
36102 (grub_register_variable_hook): Likewise.
36104 * include/grub/device.h (grub_device_set_root): Removed.
36105 (grub_device_set_root): Likewise.
36107 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
36108 make sure that DIRNAME terminates with '/', so that
36109 grub_fat_find_dir will fail if PATH is not a directory.
36111 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
36113 Use the qualifier auto for print_files and print_files_long.
36114 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
36116 Put a newline only if there is no error.
36117 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
36120 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
36122 * kern/partition.c (grub_partition_probe): Initialize PART to
36123 NULL. Otherwise, when no partition map is registered, this returns
36126 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
36128 * partmap/apple.c (apple_partition_map_iterate): Check if POS
36129 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
36132 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
36134 * commands/ls.c (grub_ls_list_disks): Print the filesystem
36135 information on each device, if it does not have partitions. Print
36136 "Device" instead of "Disk", because this function is not specific
36139 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
36140 static to ensure that it is put on the memory rather than a
36143 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
36145 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
36146 (grub_cat_init): Likewise.
36147 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
36148 (options): Likewise.
36149 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
36150 (grub_configfile_init): Likewise.
36151 * font/manager.c (GRUB_MOD_INIT): Likewise.
36152 * commands/help.c (GRUB_MOD_INIT): Likewise.
36153 (grub_help_init): Likewise.
36154 * normal/command.c (grub_command_init): Likewise.
36155 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
36156 * disk/loopback.c (grub_loop_init): Likewise.
36157 (GRUB_MOD_INIT): Likewise.
36158 * commands/ls.c (grub_ls_init): Likewise.
36159 (GRUB_MOD_INIT): Likewise.
36160 (options): Likewise.
36161 * commands/boot.c (grub_boot_init): Likewise.
36162 (GRUB_MOD_INIT): Likewise.
36163 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
36164 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
36165 (GRUB_MOD_INIT): Likewise.
36166 * commands/cmp.c (grub_cmp_init): Likewise.
36167 (GRUB_MOD_INIT): Likewise.
36169 * normal/arg.c: Use <> instead of "" to include header files.
36170 (SHORT_ARG_HELP): New macro.
36171 (SHORT_ARG_USAGE): Likewise.
36172 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
36173 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
36175 (find_short): Check if C is 'h' or 'u' explicitly.
36176 (grub_arg_show_help): Use space characters instead of tabs. Treat
36177 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
36178 are shown with --help and --usage only if they are not used for
36179 the command itself.
36180 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
36183 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
36184 const into "longarg". Change the type of "shortarg" to int.
36186 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
36188 * boot/i386/pc/boot.S (boot_drive_check): New label.
36190 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
36193 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
36194 which do not pass a boot drive correctly. Copied from GRUB Legacy.
36196 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
36198 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
36199 When turning off Gate A20, skip the check and return immediately,
36200 because this is not fatal usually.
36202 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
36204 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
36205 be 0x7C00 instead of 0x8000.
36207 * boot/i386/pc/pxeboot.S: Rewritten.
36209 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
36211 (gate_a20_check_state): Read a byte from 0x108000. Invert the
36214 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
36216 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
36217 robustness. This routine now supports a BIOS call and System
36218 Control Port A to modify the gate A20.
36220 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
36221 Increased to 0x440.
36223 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
36225 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
36226 device path and resulting ihandle.
36227 (grub_ofdisk_close): dprintf the ihandle being closed.
36228 (grub_ofdisk_read): dprintf function parameters.
36229 * kern/mm.c (grub_mm_init_region): Likewise.
36230 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
36231 (grub_linux_boot): dprintf the Linux entry point, initrd address and
36232 size, and boot arguments.
36233 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
36234 before loading into memory.
36235 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
36236 before loading into memory.
36238 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
36240 * kern/mm.c: Added much documentation.
36241 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
36242 8, set to 5 instead of 8.
36244 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
36246 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
36248 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
36249 (grub_mkdevicemap_SOURCES): New variable.
36251 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
36252 lib/device.c of GRUB Legacy.
36254 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
36256 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
36257 instead of PATH is NULL.
36259 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
36261 * commands/cmp.c (BUFFER_SIZE): New macro.
36262 (grub_cmd_cmp): Close the right file at the right time. Compare
36263 only data just read. Don't report files of different size as
36264 identical. Dynamically allocate buffers. Move variable
36265 declarations at the beginning of function.
36267 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
36269 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
36272 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
36274 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
36275 when backspace is pressed at beginning of line.
36277 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
36279 * DISTLIST: Added genfslist.sh.
36281 * normal/main.c (fs_module_list): New variable.
36282 (autoload_fs_module): New function.
36283 (read_fs_list): Likewise.
36284 (grub_normal_execute): Call read_fs_list.
36286 * kern/fs.c (grub_fs_autoload_hook): New variable.
36287 (grub_fs_probe): Added support for auto-loading.
36289 * include/grub/normal.h (struct grub_fs_module_list): New struct.
36290 (grub_fs_module_list_t): New type.
36292 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
36293 (grub_fs_autoload_hook): New prototype.
36295 * genfslist.sh: New file.
36297 * genmk.rb: Added a rule to generate a filesystem list.
36299 2005-06-30 Marco Gerards <metgerards@student.han.nl>
36301 * configure.ac: Fix the test for cross-compiling.
36303 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
36304 define GRUB_UTIL anymore.
36306 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
36307 so this function works on other systems than just big endian.
36308 (load_modules): Likewise.
36309 (add_segments): Likewise.
36311 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
36313 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
36314 contains `l' modifier, get a long from va_arg().
36316 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
36318 * kern/mm.c (grub_free): If the next free block which is being
36319 merged is the first free block, set the first block to the block
36321 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
36323 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
36325 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
36326 `grub_ieee1275_chosen'.
36328 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
36330 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
36331 (grub_ieee1275_chosen): New variable.
36332 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
36334 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
36335 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
36336 Rename first argument to `phandle' for consistency.
36337 (grub_ieee1275_get_property_length): Likewise.
36338 (grub_ieee1275_next_property): Likewise. Change type of first argument
36339 to grub_ieee1275_phandle_t.
36340 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
36341 Move export next to declaration.
36342 (grub_ieee1275_chosen): New variable.
36343 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
36344 Correct cosmetic typo.
36345 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
36346 `grub_ieee1275_chosen'.
36347 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
36348 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
36349 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
36350 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
36351 `grub_ieee1275_chosen'.
36353 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
36355 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
36357 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
36358 /chosen/bootargs as "variable=value" pairs.
36360 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
36362 * include/grub/misc.h (grub_dprintf): New macro.
36363 (grub_real_dprintf): New prototype.
36364 (grub_strword): Likewise.
36365 (grub_iswordseparator): Likewise.
36366 * kern/misc.c (grub_real_dprintf): New function.
36367 (grub_strword): Likewise.
36368 (grub_iswordseparator): Likewise.
36370 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
36372 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
36373 (roundup): Remove macro.
36374 (grub_ieee1275_flags): Make static.
36375 (grub_ieee1275_realmode): Remove.
36376 (grub_ieee1275_test_flag): New function.
36377 (grub_ieee1275_set_flag): Likewise.
36378 (find_options): Rename to `grub_ieee1275_find_options'; update
36379 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
36380 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
36381 (cmain): New prototype.
36382 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
36383 `grub_ieee1275_flags' directly.
36384 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
36385 machine/biosdisk.h.
36386 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
36387 Don't include grub/machine/init.h.
36388 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
36389 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
36391 (grub_ieee1275_realmode): Likewise.
36392 (grub_ieee1275_flag): New enum.
36393 (grub_ieee1275_test_flag): New prototype.
36394 (grub_ieee1275_set_flag): New prototype.
36395 * include/grub/powerpc/ieee1275/init.h: Remove file.
36396 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
36397 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
36398 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
36399 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
36401 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
36402 `grub_ieee1275_test_flag'.
36403 (grub_ieee1275_encode_devname): Likewise.
36405 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
36407 * include/grub/powerpc/ieee1275/ieee1275.h
36408 (grub_ieee1275_encode_devname): New prototype.
36409 (grub_ieee1275_get_filename): Likewise.
36410 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
36412 (grub_set_prefix): Likewise.
36413 (grub_machine_init): Call grub_set_prefix.
36414 * kern/powerpc/ieee1275/openfw.c: Fix typos.
36415 (grub_parse_type): New enum.
36416 (grub_ieee1275_get_devargs): New function.
36417 (grub_ieee1275_get_devname): Likewise.
36418 (grub_ieee1275_parse_args): Likewise.
36419 (grub_ieee1275_get_filename): Likewise.
36420 (grub_ieee1275_encode_devname): Likewise.
36422 2005-03-30 Marco Gerards <metgerards@student.han.nl>
36424 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
36425 `grub_loader_unset'.
36427 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
36429 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
36430 instead of grub_ieee1275_interpret.
36431 (grub_halt_init): New function.
36432 (grub_halt_fini): Likewise.
36433 (GRUB_MOD_INIT): Correct message grammar.
36434 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
36435 instead of grub_ieee1275_interpret.
36436 (grub_reboot_init): New function.
36437 (grub_reboot_fini): Likewise.
36438 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
36439 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
36440 util/i386/pc/misc.c with commands/ieee1275/halt.c,
36441 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
36442 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
36444 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
36446 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
36448 (grub_halt): Likewise.
36449 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
36450 (cmain): Remove __attribute__((unused)).
36451 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
36452 (grub_heap_len): Likewise.
36453 (grub_machine_fini): New function.
36454 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
36455 (grub_halt): Likewise.
36456 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
36458 * util/powerpc/ieee1275/misc.c: New file.
36460 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
36462 * DISTLIST: New file.
36463 * gendistlist.sh: Likewise.
36465 * Makefile.in (COMMON_DISTFILES): Removed.
36466 (BOOT_DISTFILES): Likewise.
36467 (CONF_DISTFILES): Likewise.
36468 (DISK_DISTFILES): Likewise.
36469 (FS_DISTFILES): Likewise.
36470 (INCLUDE_DISTFILES): Likewise.
36471 (KERN_DISTFILES): Likewise.
36472 (LOADER_DISTFILES): Likewise.
36473 (TERM_DISTFILES): Likewise.
36474 (UTIL_DISTFILES): Likewise.
36475 (DISTFILES): Likewise.
36476 (uninstall): Uninstall files in $(pkgdata_DATA).
36477 (DISTLIST): New target.
36478 (distdir): Use the contents of the file DISTLIST to get a list of
36481 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
36483 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
36484 descriptor. This is ported from GRUB Legacy.
36486 * gencmdlist.sh: Added an extra semicolon to make it work with
36487 old sed versions. Reported by Robert Bihlmeyer
36488 <robbe@orcus.priv.at>.
36490 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
36492 Automatic loading of commands is supported.
36494 * normal/main.c (read_command_list): New function.
36495 (grub_normal_execute): Call read_command_list.
36497 * normal/command.c (grub_register_command): Return zero or CMD.
36498 Allocate CMD->NAME from the heap.
36499 Initialize CMD->MODULE_NAME to zero.
36500 Find the same name as well. If the same command is found and it is
36501 a dummy command, overwrite members. If it is not a dummy command,
36503 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
36504 (grub_command_find): If a dummy command is found, load a module
36505 and retry to find a command only once.
36507 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
36508 make sure that each command is loaded.
36510 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
36512 (struct grub_command): Remove const from the member `name'.
36513 Add a new member `module_name'.
36514 (grub_register_command): Return grub_command_t.
36516 * commands/help.c (grub_cmd_help): Call grub_command_find to make
36517 sure that each command is loaded.
36519 * genmk.rb (PModule::rule): Specify a module name without the
36520 suffix ".mod" to gencmdlist.sh.
36522 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
36524 * gencmdlist.sh: New file.
36526 * genmk.rb (PModule::rule): Generate a rule for a command list.
36528 Generate command.lst from $(COMMANDFILES).
36530 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
36531 (DATA): Added $(pkgdata_DATA).
36532 (install-local): Install files in $(pkgdata_DATA).
36534 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
36536 * term/i386/pc/vga.c (debug_command): Removed.
36537 (GRUB_MOD_INIT): Do not register the command "debug".
36539 From Hollis Blanchard:
36540 * commands/configfile.c: New file.
36541 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
36542 commands/configfile.c.
36543 (pkgdata_MODULES): Added configfile.mod.
36544 (configfile_mod_SOURCES): New variable.
36545 (configfile_mod_CFLAGS): Likewise.
36546 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
36547 commands/configfile.c.
36548 (pkgdata_MODULES): Added configfile.mod.
36549 (configfile_mod_SOURCES): New variable.
36550 (configfile_mod_CFLAGS): Likewise.
36551 * util/grub-emu.c (main): Call grub_configfile_init and
36552 grub_configfile_fini.
36553 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
36555 [GRUB_UTIL] (grub_configfile_fini): Likewise.
36557 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
36559 * normal/arg.c (grub_arg_show_help): Do not show the bug report
36562 * commands/help.c (grub_cmd_help): Do not print newlines after
36563 the last command in print_command_help.
36565 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
36567 * commands/default.h: New file.
36568 * commands/timeout.h: Likewise.
36569 * normal/context.c: Likewise.
36571 * util/misc.c: Do not include sys/times.h.
36572 Include sys/time.h and grub/machine/time.h.
36573 (grub_get_rtc): Rewritten with gettimeofday.
36575 * util/grub-emu.c (main): Call grub_default_init and
36576 grub_timeout_init before grub_normal_init, and call
36577 grub_timeout_fini and grub_default_fini after grub_main.
36579 * util/console.c (grub_ncurses_checkkey): Return the read
36582 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
36585 * normal/main.c (read_config_file): Push MENU. If this fails,
36586 print an error and wait for a user input.
36587 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
36588 If a menu is empty or an error occurs, pop MENU.
36589 (grub_normal_execute): Pop and free MENU after grub_menu_run
36592 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
36594 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
36596 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
36598 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
36600 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
36603 * include/grub/normal.h (struct grub_menu_list): New struct.
36604 (grub_menu_list_t): New type.
36605 (struct grub_context): New struct.
36606 (grub_context_t): New type.
36607 (grub_register_command): Got rid of EXPORT_FUNC.
36608 (grub_unregister_command): Likewise.
36609 (grub_context_get): New prototype.
36610 (grub_context_get_current_menu): Likewise.
36611 (grub_context_push_menu): Likewise.
36612 (grub_context_pop_menu): Likewise.
36613 [GRUB_UTIL] (grub_default_init): Likewise.
36614 [GRUB_UTIL] (grub_default_fini): Likewise.
36615 [GRUB_UTIL] (grub_timeout_init): Likewise.
36616 [GRUB_UTIL] (grub_timeout_fini): Likewise.
36618 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
36619 commands/timeout.c and normal/context.c.
36620 (pkgdata_MODULES): Added default.mod and timeout.mod.
36621 (normal_mod_SOURCES): Added normal/context.c.
36622 (default_mod_SOURCES): New variable.
36623 (default_mod_CFLAGS): Likewise.
36624 (timeout_mod_SOURCES): Likewise.
36625 (timeout_mod_CFLAGS): Likewise.
36626 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
36628 (pkgdata_MODULES): Added default.mod and timeout.mod.
36629 (normal_mod_SOURCES): Added normal/context.c.
36630 (default_mod_SOURCES): New variable.
36631 (default_mod_CFLAGS): Likewise.
36632 (timeout_mod_SOURCES): Likewise.
36633 (timeout_mod_CFLAGS): Likewise.
36635 * Makefile.in (all-local): Added $(MKFILES).
36637 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
36639 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
36640 (grub_emu_SOURCES): Likewise.
36641 (pkgdata_MODULES): Add `sun.mod'.
36642 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
36643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36645 (pkgdata_MODULES): Add `sun.mod'.
36646 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
36647 * include/grub/partition.h (grub_sun_partition_map_init): New
36649 (grub_sun_partition_map_fini): Likewise.
36650 * partmap/sun.c: New file.
36651 * util/grub-emu.c (main): Initialize and de-initialize the sun
36652 partitionmap support.
36654 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
36656 This implements an Emacs-like menu entry editor.
36658 * normal/menu_entry.c: New file.
36660 * util/console.c (grub_ncurses_putchar): Translate some Unicode
36661 characters to ASCII.
36662 (saved_char): New variable.
36663 (grub_ncurses_checkkey): Rewritten completely.
36664 (grub_ncurses_getkey): Likewise.
36665 (grub_ncurses_init): Call raw instead of cbreak.
36667 * normal/menu.c (print_entry): Do not put a space.
36668 (init_page): Renamed to ...
36669 (grub_menu_init_page): ... this. All callers changed.
36670 (edit_menu_entry): Removed.
36671 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
36673 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
36675 * kern/misc.c (grub_vprintf): Call grub_refresh.
36677 * normal/menu.c (DISP_LEFT): Renamed to ...
36678 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
36679 * normal/menu.c (DISP_UP): Renamed to ...
36680 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
36681 * normal/menu.c (DISP_RIGHT): Renamed to ...
36682 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
36683 * normal/menu.c (DISP_DOWN): Renamed to ...
36684 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
36685 * normal/menu.c (DISP_HLINE): Renamed to ...
36686 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
36687 * normal/menu.c (DISP_VLINE): Renamed to ...
36688 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
36689 * normal/menu.c (DISP_UL): Renamed to ...
36690 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
36691 * normal/menu.c (DISP_UR): Renamed to ...
36692 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
36693 * normal/menu.c (DISP_LL): Renamed to ...
36694 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
36695 * normal/menu.c (DISP_LR): Renamed to ...
36696 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
36697 * normal/menu.c (TERM_WIDTH): Renamed to ...
36698 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
36699 * normal/menu.c (TERM_HEIGHT): Renamed to ...
36700 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
36701 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
36702 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
36703 * normal/menu.c (TERM_MARGIN): Renamed to ...
36704 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
36705 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
36706 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
36707 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
36708 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
36709 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
36710 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
36711 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
36712 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
36713 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
36714 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
36715 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
36716 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
36717 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
36718 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
36719 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
36720 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
36721 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
36722 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
36723 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
36724 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
36725 All callers changed.
36727 * include/grub/normal.h: New prototype.
36729 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
36730 normal/menu_entry.c.
36731 (normal_mod_SOURCES): Likewise.
36732 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36733 (normal_mod_SOURCES): Likewise.
36735 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
36737 * include/grub/normal.h (grub_halt_init): New prototype.
36738 (grub_halt_fini): Likewise.
36739 (grub_reboot_init): Likewise.
36740 (grub_reboot_fini): Likewise.
36742 * util/grub-emu.c: Include signal.h.
36743 (main_env): New global variable.
36744 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
36746 (grub_machine_fini): New function.
36747 (main): Call grub_halt_init and grub_reboot_init before
36748 grub_main, and grub_reboot_fini and grub_halt_fini after it.
36749 Call setjmp with MAIN_ENV to go back afterwards.
36750 Call grub_machine_fini right before return.
36752 * include/grub/util/misc.h: Include setjmp.h.
36753 (main_env): New prototype.
36755 * include/grub/kernel.h (grub_machine_fini): New prototype.
36756 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
36757 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
36759 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
36760 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
36761 * term/i386/pc/console.c (grub_console_fini): Likewise.
36763 * util/i386/pc/misc.c: New file.
36765 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
36766 util/i386/pc/misc.c, commands/i386/pc/halt.c and
36767 commands/i386/pc/reboot.c.
36769 2005-02-14 Guillem Jover <guillem@hadrons.org>
36771 * include/grub/dl.h (grub_dl_check_header): New prototype.
36772 (grub_arch_dl_check_header): Change return type to grub_err_t,
36773 remove size parameter and export function. Update all callers.
36774 * kern/dl.c (grub_dl_check_header): New function.
36775 (grub_dl_load_core): Use `grub_dl_check_header' instead of
36776 `grub_arch_dl_check_header'. Check ELF type. Check if sections
36777 are inside the core.
36778 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
36779 independent ELF header checks.
36780 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
36781 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
36782 `grub_dl_check_header' instead of explicit checks. Check for the
36784 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
36785 `grub_dl_check_header' instead of explicit checks. Remove arch
36786 specific ELF header checks.
36788 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
36791 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
36793 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
36794 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
36796 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
36798 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
36799 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
36800 (part_map_iterate): Clear `grub_errno' and return 0 if
36801 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
36802 * partmap/amiga.c (amiga_partition_map_iterate): Return
36803 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
36804 * partmap/apple.c (apple_partition_map_iterate): Likewise.
36806 2005-02-01 Guillem Jover <guillem@hadrons.org>
36808 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
36811 2005-01-31 Marco Gerards <metgerards@student.han.nl>
36813 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
36815 (grub_rescue_cmd_linux): New prototype.
36816 (grub_rescue_cmd_initrd): Likewise.
36817 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
36819 (grub_linux_release_mem): Release the memory for the initrd.
36820 (grub_load_linux): Renamed from this...
36821 (grub_rescue_cmd_linux): ...To this. Changed all callers.
36822 Changed `entry' not to be static. Loop over memory regions to
36823 find another one when the default fails.
36824 (grub_rescue_cmd_initrd): New function.
36825 (grub_linux_init): Remove function.
36826 (grub_linux_fini): Likewise.
36827 (GRUB_MOD_INIT): Register `initrd'.
36828 (GRUB_MOD_FINI): Unregister `initrd'.
36829 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
36831 (grub_linux_normal_fini): Likewise.
36832 (GRUB_MOD_INIT): Register `initrd'.
36833 (GRUB_MOD_FINI): Unregister `initrd'.
36835 2005-01-31 Marco Gerards <metgerards@student.han.nl>
36837 * commands/help.c: New file.
36838 * normal/arg.c (show_help): Renamed to...
36839 (grub_arg_show_help): ... this.
36840 * commands/i386/pc/halt.c: New file.
36841 * commands/i386/pc/reboot.c: Likewise.
36842 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
36843 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
36844 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
36845 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
36847 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36849 (pkgdata_MODULES): Add `help.mod'.
36850 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
36851 * grub/i386/pc/init.h (grub_reboot): New prototype.
36852 (grub_halt): Likewise.
36853 * include/grub/normal.h (grub_arg_show_help): New prototype.
36854 (grub_help_init): Likewise.
36855 (grub_help_fini): Likewise.
36856 * util/grub-emu.c (main): Initialize and deinitialize the help
36859 * normal/cmdline.c (grub_cmdline_get): Doc fix.
36861 * normal/command.c (grub_command_init): Fixed the description of
36862 the `set' and `unset' commands.
36864 2005-01-31 Marco Gerards <metgerards@student.han.nl>
36866 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
36868 * commands/ieee1275/halt.c: New file.
36869 * commands/ieee1275/reboot.c: Likewise.
36870 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
36871 `__attribute__ ((unused))'. Some GCS related fixed.
36872 (grub_suspend_init) [GRUB_UTIL]: Function removed.
36873 (grub_suspend_fini): Likewise.
36874 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
36876 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
36877 (halt_mod_CFLAGS): New variables.
36878 * include/grub/powerpc/ieee1275/ieee1275.h
36879 (grub_ieee1275_interpret): New prototype.
36881 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
36883 * include/grub/misc.h (memmove): New prototype.
36884 (memcpy): Likewise.
36886 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
36888 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
36889 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
36891 2005-01-22 Marco Gerards <metgerards@student.han.nl>
36893 * kern/misc.c (grub_strndup): Function rewritten.
36895 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
36897 * normal/menu.c (TERM_WIDTH): Macro redefined.
36898 (TERM_TOP_BORDER_Y): Likewise.
36899 (draw_border): Replaced while-loop by a for-loop. Make the number
36900 of lines consistent with the number of lines displayed in
36901 print_entries. Added a margin below the rectangle.
36902 (print_entry): Make the entry fit in the rectangle.
36903 (print_entries): Display the scroll arrows next to the right
36906 2005-01-21 Marco Gerards <metgerards@student.han.nl>
36908 * fs/minix.c (grub_minix_find_file): Reserve more space for
36909 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
36910 `grub_strncpy' to copy `path' into it.
36912 2005-01-21 Marco Gerards <metgerards@student.han.nl>
36914 Add the loopback device, a device via which files can be accessed
36917 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
36918 (pkgdata_MODULES): Add loopback.mod.
36919 (loopback_mod_SOURCES): New variable.
36920 (loopback_mod_CFLAGS): Likewise.
36921 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36923 (pkgdata_MODULES): Add loopback.mod.
36924 (loopback_mod_SOURCES): New variable.
36925 (loopback_mod_CFLAGS): Likewise.
36926 * disk/loopback.c: new file.
36927 * include/grub/normal.h (grub_loop_init): New prototype.
36928 (grub_loop_fini): New prototype.
36929 * util/grub-emu.c (main): Initialize and de-initialize loopback
36931 * include/grub/disk.h (grub_disk_dev_id): Add
36932 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
36934 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
36936 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
36938 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
36939 (suspend_mod_SOURCES): New variable.
36940 (suspend_mod_CFLAGS): Likewise.
36941 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
36943 * commands/ieee1275/suspend.c: New file.
36945 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36947 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
36948 ((unused))' to `__attribute__ ((used))'.
36949 (GRUB_MOD_FINI): Likewise.
36950 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
36951 * genmk.rb (PModule): Assign space to common symbols when linking
36954 2005-01-20 Marco Gerards <metgerards@student.han.nl>
36956 * include/grub/mm.h (grub_mm_init_region): Change the type of the
36957 `unsigned' arguments to `grub_size_t'.
36958 (grub_malloc): Likewise.
36959 (grub_realloc): Likewise.
36960 (grub_memalign): Likewise.
36961 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
36962 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
36963 * util/misc.c (grub_malloc): Likewise.
36964 (grub_realloc): Likewise.
36965 * kern/mm.c (get_header_from_pointer): Change the casts to
36966 `unsigned' into a cast to `grub_size_t'.
36968 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
36969 point to `currnode' when `currnode' is changed.
36971 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
36972 Schottelius <nico-linux@schottelius.org>.
36974 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
36976 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
36977 (note_path): Remove variable.
36978 (GRUB_IEEE1275_NOTE_NAME): New macro.
36979 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
36980 (grub_ieee1275_note_hdr): New structure.
36981 (grub_ieee1275_note_desc): Likewise.
36982 (grub_ieee1275_note): Likewise.
36983 (load_note): Remove `dir' argument. All callers updated. Remove
36984 `note_img' and `path'. Do not load a file from `note_path'.
36985 Initialize a struct grub_ieee1275_note and write that to `out'.
36986 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
36988 2005-01-05 Marco Gerards <metgerards@student.han.nl>
36990 * util/misc.c (grub_util_read_image): Revert last change. It
36991 called `grub_util_read_at', which seeks from the beginning of the
36994 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
36996 * TODO: Add note about endianness in grub-mkimage.
36997 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
36999 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
37000 (grub_mkimage_SOURCES): New target.
37001 * include/grub/kernel.h (grub_start_addr): Remove variable.
37002 (grub_end_addr): Likewise.
37003 (grub_total_module_size): Likewise.
37004 (grub_kernel_image_size): Likewise.
37005 (GRUB_MODULE_MAGIC): New constant.
37006 (grub_module_info): New structure.
37007 (grub_arch_modules_addr): New prototype.
37008 (grub_get_end_addr): Remove prototype.
37009 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
37010 * include/grub/powerpc/ieee1275/kernel.h: New file.
37011 * include/grub/util/misc.h (grub_util_get_fp_size): New
37013 (grub_util_read_at): Likewise.
37014 (grub_util_write_image_at): Likewise.
37015 * kern/main.c (grub_get_end_addr): Remove function.
37016 (grub_load_modules): Call grub_arch_modules_addr instead of using
37017 grub_end_addr. Look for a grub_module_info struct in memory. Use
37018 the grub_module_info fields instead of calling grub_get_end_addr
37019 as loop conditions. Move grub_add_unused_region code here.
37020 (grub_add_unused_region): Remove function.
37021 * kern/i386/pc/init.c: Include grub/cache.h.
37022 (grub_machine_init): Remove call to grub_get_end_addr. Remove
37023 one call to add_mem_region.
37024 (grub_arch_modules_addr): New function.
37025 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
37026 (grub_total_module_size): Likewise.
37027 Include grub/machine/kernel.h.
37028 (grub_arch_modules_addr): New function.
37029 * util/grub-emu.c (grub_end_addr): Remove variable.
37030 (grub_total_module_size): Likewise.
37031 (grub_arch_modules_addr): New function.
37032 * util/misc.c: Include unistd.h.
37033 (grub_util_get_fp_size): New function.
37034 (grub_util_read_at): Likewise.
37035 (grub_util_write_image_at): Likewise.
37036 (grub_util_read_image): Call grub_util_read_at.
37037 (grub_util_write_image): Call grub_util_write_image_at.
37038 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
37039 additional memory in kernel_img for a struct grub_module_info.
37040 Fill in that grub_module_info.
37041 * util/powerpc/ieee1275/grub-mkimage.c: New file.
37043 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
37045 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
37047 * include/grub/powerpc/ieee1275/ieee1275.h
37048 (grub_ieee1275_milliseconds): New prototype.
37049 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
37051 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
37052 grub_ieee1275_milliseconds.
37054 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
37056 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
37058 (find_options): New function.
37059 (cmain): Call find_options.
37060 * include/grub/powerpc/ieee1275/ieee1275.h
37061 (grub_ieee1275_realmode): New extern variable.
37062 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
37063 grub_map if grub_ieee1275_realmode is false.
37065 2004-12-29 Marco Gerards <metgerards@student.han.nl>
37067 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
37068 lines are inserted and make it work like readline. Reported by
37069 Vincent Pelletier <subdino2004@yahoo.fr>.
37071 2004-12-28 Marco Gerards <metgerards@student.han.nl>
37073 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
37075 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
37076 `kern/powerpc/cache.S'.
37078 2004-12-27 Marco Gerards <metgerards@student.han.nl>
37080 * genmk.rb: Handle the `Program' class in the main loop. Written
37081 by Johan Rydberg <jrydberg@gnu.org>.
37082 (Program): New class.
37083 (programs): New variable.
37084 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
37085 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
37086 instead of "grub/kernel.h". Include <grub/machine/init.h>.
37087 (help_arch): Function removed.
37088 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
37089 `powerpc/libgcc.h' and `loader.h'.
37090 (pkgdata_PROGRAMS): New variable.
37091 (sbin_UTILITIES): Variable removed.
37092 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
37093 (grubof_SOURCES): Variable re-defined so it only includes the
37094 core functionality.
37095 (grubof_CFLAGS): Remove `-DGRUBOF'.
37096 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
37097 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
37098 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
37099 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
37100 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
37101 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
37102 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
37103 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
37104 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
37105 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
37106 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
37107 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
37108 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
37109 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
37110 (pc_mod_CFLAGS): New variables.
37111 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
37112 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
37113 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
37114 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
37116 * include/grub/i386/pc/init.h (grub_os_area_addr)
37117 (rub_os_area_size): ... to here.
37118 * include/grub/powerpc/ieee1275/ieee1275.h
37119 (grub_ieee1275_entry_fn): Export symbol.
37120 * include/grub/powerpc/ieee1275/init.h: New file.
37121 * include/grub/powerpc/libgcc.h: Likewise.
37122 * include/grub/cache.h: Likewise.
37123 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
37124 <hollis@penguinppc.org>.
37125 * kern/dl.c: Include <grub/cache.h>.
37126 (grub_dl_flush_cache): New function.
37127 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
37129 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
37130 (grub_console_init): Removed prototypes.
37131 (grub_machine_init): Don't initialize the modules anymore.
37132 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
37134 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
37135 Macro undef removed.
37136 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
37137 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
37138 relocation `R_PPC_REL32'. Return an error when the relocation is
37140 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
37141 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
37142 * util/misc.c (grub_arch_sync_caches): Likewise.
37144 2004-12-19 Marco Gerards <metgerards@student.han.nl>
37146 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
37147 `symlist.c', add `grubof_symlist.c'.
37148 (symlist.c): Variable removed.
37149 (grubof_HEADERS): Variable added.
37150 (grubof_symlist.c): New target.
37151 (kernel_syms.lst): Use `grubof_HEADERS' instead of
37152 `kernel_img_HEADERS'.
37153 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
37154 * kern/powerpc/dl.c: New file.
37155 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
37157 (grub_arch_dl_relocate_symbols): Likewise.
37158 (grub_register_exported_symbols): Likewise.
37160 2004-12-13 Marco Gerards <metgerards@student.han.nl>
37162 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
37163 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
37164 to fail instead. Reported by Vincent Pelletier
37165 <subdino2004@yahoo.fr>.
37167 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
37168 it is not allocated. Reported by Vincent Pelletier
37169 <subdino2004@yahoo.fr>.
37171 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
37172 output so the output looks better.
37174 2004-12-04 Marco Gerards <metgerards@student.han.nl>
37176 Modulize the partition map support and add support for the amiga
37179 * commands/ls.c: Include <grub/partition.h> instead of
37180 <grub/machine/partition.h>.
37181 * kern/disk.c: Likewise.
37182 * kern/rescue.c: Likewise.
37183 * loader/i386/pc/chainloader.c: Likewise.
37184 * normal/cmdline.c: Likewise.
37185 * kern/powerpc/ieee1275/init.c: Likewise.
37186 (grub_machine_init): Call `grub_pc_partition_map_init',
37187 `grub_amiga_partition_map_init' and
37188 `grub_apple_partition_map_init'.
37189 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
37190 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
37191 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
37192 `partition.h' and `pc_partition.h'.
37193 (grub_setup_SOURCES): Remove
37194 `disk/i386/pc/partition.c'. Add `kern/partition.c',
37195 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
37196 (grub_emu_SOURCES): Likewise.
37197 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
37198 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
37199 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
37200 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
37201 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
37202 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
37203 (grubof_SOURCES): Likewise.
37204 * disk/i386/pc/partition.c: File removed.
37205 * disk/powerpc/ieee1275/partition.c: Likewise.
37206 * include/grub/powerpc/ieee1275/partition.h: Likewise.
37207 * include/grub/i386/pc/partition.h: Likewise.
37208 * kern/partition.c: New file.
37209 * partmap/amiga.c: Likewise.
37210 * partmap/apple.c: Likewise.
37211 * partmap/pc.c: Likewise.
37212 * include/grub/partition.h: Likewise..
37213 * include/grub/pc_partition.h: Likewise.
37214 * util/grub-emu.c: Include <grub/partition.h> instead of
37215 <grub/machine/partition.h>.
37216 (main): Call `grub_pc_partition_map_init',
37217 `grub_amiga_partition_map_init' and
37218 `grub_apple_partition_map_init' and deinitialize afterwards.
37219 * util/i386/pc/biosdisk.c: Include `#include
37220 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
37221 `<grub/machine/partition.h>'.
37222 * util/i386/pc/grub-setup.c: Likewise.
37223 * util/i386/pc/biosdisk.c: Likewise.
37224 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
37225 partition information in case of a PC partition.
37226 * util/i386/pc/grub-setup.c: Include `#include
37227 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
37228 `<grub/machine/partition.h>'.
37229 (setup): Only access the PC specific partition information in case
37232 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
37234 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
37235 (grub_longjmp): Likewise.
37236 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
37238 * normal/powerpc/setjmp.S: New file.
37239 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
37240 `normal/powerpc/setjmp.S'.
37241 (grubof_CFLAGS): Add `-DGRUBOF'.
37242 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
37243 [GRUB_UTIL && !GRUBOF].
37245 2004-11-16 Marco Gerards <metgerards@student.han.nl>
37247 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
37248 property named `name'. Correctly handle the error returned by
37249 `grub_ieee1275_finddevice' if a device can not be opened.
37251 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
37253 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
37254 `actual' for negativity.
37255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
37258 2004-11-01 Marco Gerards <metgerards@student.han.nl>
37260 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
37261 (PAGE_OFFSET): New macro.
37262 (CRTC_ADDR_PORT): Likewise.
37263 (CRTC_DATA_PORT): Likewise.
37264 (START_ADDR_HIGH_REGISTER): Likewise.
37265 (START_ADDR_LOW_REGISTER): Likewise.
37266 (GRAPHICS_ADDR_PORT): Likewise.
37267 (GRAPHICS_DATA_PORT): Likewise.
37268 (READ_MAP_REGISTER): Likewise.
37269 (INPUT_STATUS1_REGISTER): Likewise.
37270 (INPUT_STATUS1_VERTR_BIT): Likewise.
37271 (page): New variable.
37272 (wait_vretrace): New function.
37273 (set_read_map): Likewise.
37274 (set_start_address): Likewise.
37275 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
37277 (check_vga_mem): Take the page into account.
37278 (write_char): Likewise.
37279 (write_cursor): Likewise.
37280 (scroll_up): Likewise. Copy the page to the page that is not
37281 shown and switch between both pages.
37282 (grub_vga_putchar): Fix off by one error.
37283 (grub_vga_cls): Wait for the vertical retrace. Take the page into
37286 2004-11-01 Marco Gerards <metgerards@student.han.nl>
37288 Add support for iso9660 (including rockridge).
37290 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
37291 (iso9660_mod_SOURCES): New variable.
37292 (iso9660_mod_CFLAGS): Likewise.
37293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
37294 * include/grub/fs.h (grub_iso9660_init): New prototype.
37295 * util/grub-emu.c (main): Call `grub_iso9660_init'.
37296 * fs/iso9660.c: New file.
37298 * include/grub/misc.h (grub_strncat): New prototype.
37299 * kern/misc.c (grub_strncat): New function.
37301 * fs/hfs.c (grub_hfs_mount): Translate the error
37302 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
37303 * fs/jfs.c (grub_jfs_mount): Likewise.
37304 * fs/ufs.c (grub_ufs_mount): Likewise.
37306 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
37308 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
37309 which initialized BAT registers.
37310 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
37311 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
37313 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
37314 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
37316 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
37317 (grub_mapclaim): Likewise.
37318 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
37319 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
37322 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
37324 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
37325 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
37326 -ffreestanding and -msoft-float.
37328 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
37330 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
37331 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
37332 set in grub_ieee1275_flags.
37334 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
37336 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
37338 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
37339 grub_console_init first.
37340 Change the memory range used for grub_ieee1275_claim and
37341 grub_mm_init_region.
37342 Print an error message if the claim fails.
37343 Include <grub/misc.h>.
37345 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
37347 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
37348 Call grub_children_iterate for device nodes of type `scsi',
37350 (grub_ofdisk_open): Remove manual device alias resolution.
37351 Fix memory leak when device cannot be opened.
37352 * include/grub/powerpc/ieee1275/ieee1275.h
37353 (grub_children_iterate): New prototype.
37354 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
37356 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
37357 Return -1 if args.size was -1.
37359 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
37361 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
37362 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
37363 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
37364 Open Firmware's memory for it; claim memory from _start to _end.
37365 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
37366 (_end): New extern.
37367 (_start): Zero BSS from __bss_start to _end.
37368 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
37370 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
37372 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
37374 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
37375 -1 if args.base was -1.
37377 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
37379 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
37380 escape sequence instead of a literal ^L. Also call
37381 grub_ofconsole_gotoxy.
37383 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
37385 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
37386 void * arguments to grub_addr_t. All callers updated. Also make
37387 the `result' argument optional.
37388 (grub_ieee1275_release): change void * arguments to grub_addr_t.
37389 All callers updated.
37391 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
37393 * commands/ls.c (grub_ls_list_files): Use the string following the
37394 initial ')', if present, as the filesystem path.
37395 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
37397 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
37399 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
37401 Make the source code of the menu interface more readable.
37403 * normal/menu.c: Include grub/mm.h.
37404 (TERM_WIDTH): New macro.
37405 (TERM_HEIGHT): Likewise.
37406 (TERM_INFO_HEIGHT): Likewise.
37407 (TERM_MARGIN): Likewise.
37408 (TERM_SCROLL_WIDTH): Likewise.
37409 (TERM_TOP_BORDER_Y): Likewise.
37410 (TERM_LEFT_BORDER_X): Likewise.
37411 (TERM_BORDER_WIDTH): Likewise.
37412 (TERM_MESSAGE_HEIGHT): Likewise.
37413 (TERM_BORDER_HEIGHT): Likewise.
37414 (TERM_NUM_ENTRIES): Likewise.
37415 (TERM_FIRST_ENTRY_Y): Likewise.
37416 (TERM_ENTRY_WIDTH): Likewise.
37417 (TERM_CURSOR_X): Likewise.
37418 (draw_border): Use macros instead of magic numbers.
37419 (print_entry): Likewise.
37420 (print_entries): Likewise.
37421 (run_menu): Likewise. Also, handle the key 'e'.
37422 (run_menu_entry): Ignore empty command lines.
37423 (print_message): Added a new argument EDIT. If EDIT is true,
37424 print a different message.
37425 (init_page): Likewise.
37426 (edit_menu_entry): New function. Not implemented yet.
37428 2004-09-17 Marco Gerards <metgerards@student.han.nl>
37430 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
37431 can be loaded from normal mode.
37433 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
37435 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
37436 (multiboot_mod_CFLAGS): New variables.
37437 * loader/i386/pc/linux_normal.c: New file.
37438 * loader/i386/pc/multiboot_normal.c: Likewise.
37440 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
37441 attribute `unused'.
37443 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
37444 `fdiro' to read the mode information from instead of `diro'.
37446 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
37447 looking up a symlink.
37449 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
37451 * normal/command.c (grub_command_execute): Don't parse the
37452 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
37453 flags of the command.
37455 * normal/menu.c (grub_menu_run): Fix typo.
37457 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
37459 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
37461 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
37462 `y + 1' instead of `y - 1'.
37464 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
37466 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
37468 From Hollis Blanchard <hollis@penguinppc.org>:
37469 * kern/misc.c (memmove): New alias for grub_memmove.
37470 (memcmp): New alias for grub_memcmp.
37471 (memset): New alias for grub_memset.
37472 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
37473 Change "int handle" to "grub_ieee1275_phandle_t handle".
37474 * include/grub/powerpc/ieee1275/ieee1275.h
37475 (grub_ieee1275_get_property): Likewise.
37477 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
37479 Added normal mode command `chainloader' as module chain.mod, which
37480 depends on normal.mod and _chain.mod.
37482 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
37483 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
37484 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
37486 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
37487 but arguments parsing moved to ...
37488 (grub_chainloader_cmd): ... here. New function.
37489 * include/grub/i386/pc/chainloader.h: New file.
37490 * loader/i386/pc/chainloader_normal.c: Likewise.
37492 2004-09-11 Marco Gerards <metgerards@student.han.nl>
37494 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
37495 (grub_mkimage_LDFLAGS): Likewise.
37496 (grub_emu_SOURCES): Likewise.
37497 (kernel_img_HEADERS): Added fshelp.h.
37498 * fs/ext2.c: Include <grub/fshelp.h>.
37499 (FILETYPE_REG): New macro.
37500 (FILETYPE_INO_REG): Likewise.
37501 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
37503 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
37505 (grub_fshelp_node): New struct.
37506 (grub_ext2_data): Added member `diropen'. Changed member `inode'
37508 (grub_ext2_get_file_block): Removed function.
37509 (grub_ext2_read_block): New function.
37510 (grub_ext2_read_file): Replaced parameter `data' by `node'.
37511 This function was written.
37512 (grub_ext2_mount): Read the root inode. Create a diropen struct.
37513 (grub_ext2_find_file): Removed function.
37514 (grub_ext2_read_symlink): New function.
37515 (grub_ext2_iterate_dir): Likewise.
37516 (grub_ext2_open): Rewritten.
37517 (grub_ext2_dir): Rewritten.
37518 * include/grub/fshelp.h: New file.
37519 * fs/fshelp.c: Likewise.
37521 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
37523 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
37524 (print_message): Add a missing newline.
37525 (run_menu): Added timeout support.
37526 (run_menu_entry): New local function.
37527 (grub_menu_run): Added support for booting.
37529 * kern/loader.c (grub_loader_is_loaded): New function.
37531 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
37532 (grub_get_rtc): Exported.
37534 * include/grub/i386/pc/time.h: Include grub/symbol.h.
37535 (grub_get_rtc): Exported.
37537 * include/grub/normal.h (struct grub_command_list): Remove
37538 constant from the member `command'.
37540 * include/grub/loader.h (grub_loader_is_loaded): Declared.
37542 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
37544 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
37546 2004-08-28 Marco Gerards <metgerards@student.han.nl>
37548 Add support for the JFS filesystem.
37550 * fs/jfs.c: New file.
37551 * include/grub/fs.h (grub_jfs_init): New prototype.
37552 (grub_jfs_fini): New prototype.
37553 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
37554 (grub_emu_SOURCES): Likewise.
37555 (pkgdata_MODULES): Add jfs.mod.
37556 (jfs_mod_SOURCES): New variable.
37557 (jfs_mod_CFLAGS): Likewise.
37558 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
37559 (grubof_SOURCES): Likewise.
37560 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
37562 * fs/fat.c (grub_fat_find_dir): Convert the filename little
37563 endian to the host endian.
37564 (grub_fat_utf16_to_utf8): Move function from there...
37565 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
37566 the endianness of the source string anymore.
37567 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
37569 2004-08-24 Marco Gerards <metgerards@student.han.nl>
37571 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
37572 (grub_boot_fini) [GRUB_UTIL]: Likewise.
37573 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
37574 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
37576 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
37577 (grub_hfs_iterate_dir): Make the function static. Add prototypes
37578 for `node_found' and `it_dir'.
37579 (grub_hfs_dir): Add prototype for `dir_hook'.
37581 * fs/minix.c (grub_minix_get_file_block): Add prototype for
37582 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
37583 and `indir32' to silence a gcc warning.
37585 * include/grub/fs.h (grub_hfs_init): New prototype.
37586 (grub_hfs_fini): Likewise.
37589 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
37591 Each disk device has its own id now. This is useful to make use
37592 of multiple disk devices.
37594 * include/grub/disk.h (grub_disk_dev_id): New enum.
37595 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
37596 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
37598 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
37599 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
37601 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
37602 GRUB_DISK_DEVICE_OFDISK_ID as an id.
37604 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
37605 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
37607 * include/grub/disk.h (struct grub_disk_dev): Added a new member
37608 "id" which is used by the cache manager.
37610 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
37613 2004-08-18 Marco Gerards <metgerards@student.han.nl>
37615 * fs/hfs.c: New file.
37616 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
37617 (grub_emu_SOURCES): Likewise.
37618 (pkgdata_MODULES): Add hfs.mod.
37619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
37620 (grubof_SOURCES): Likewise.
37621 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
37623 * include/grub/misc.h (grub_strncasecmp): Add prototype.
37624 * kern/misc.c (grub_strncasecmp): Add function.
37626 2004-08-14 Marco Gerards <metgerards@student.han.nl>
37628 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
37631 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
37632 (grub_ext2_dir): In case the directory entry type is unknown, read
37635 2004-08-02 Peter Bruin <pjbruin@dds.nl>
37637 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
37638 grub_load_linux instead of grub_rescue_cmd_linux as second
37639 argument of grub_rescue_register_command.
37641 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
37643 2004-07-27 Marco Gerards <metgerards@student.han.nl>
37645 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
37647 * commands/boot.c: Remove the check for `GRUB_UTIL'.
37648 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
37649 `loader/powerpc/ieee1275/linux.c',
37650 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
37651 * include/grub/powerpc/ieee1275/ieee1275.h
37652 (grub_ieee1275_release): New prototype.
37653 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
37654 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
37655 normal, boot, linux and linux_normal.
37656 * loader/powerpc/ieee1275/linux.c: New file.
37657 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
37659 2004-07-12 Marco Gerards <metgerards@student.han.nl>
37661 * normal/arg.c (grub_arg_parse): Correct error handling after
37662 reallocating the argumentlist (check if `argl' is not null instead
37663 of checking if `args' is not null).
37664 * kern/mm.c (grub_realloc): Return the same pointer when using the
37665 same region, instead of returning the header address.
37667 2004-07-11 Marco Gerards <metgerards@student.han.nl>
37669 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
37670 one block instead of two when looking for the initial partition.
37671 (grub_partition_probe): Initialize the local variable `p' with 0.
37672 Use base 10 for the grub_strtoul call.
37673 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
37674 need for one local variable.
37675 (grub_strtoul): Don't add the new value to `num', instead of that
37678 2004-07-11 Marco Gerards <metgerards@student.han.nl>
37680 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
37681 (pxeboot_img_SOURCES): New variable.
37682 (pxeboot_img_ASFLAGS): Likewise.
37683 (pxeboot_img_LDFLAGS): Likewise.
37684 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
37685 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
37686 <lode_leroy@hotmail.com>.
37688 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
37690 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
37691 there was no input.
37693 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
37695 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
37696 the history buffer logic.
37698 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
37700 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
37701 (FILETYPE_INO_SYMLINK): New macros.
37702 (grub_ext2_find_file): Check if the node is a directory using the
37703 inode stat information instead of using the filetype in the
37704 dirent. Exclude the first character of an absolute symlink.
37705 (grub_ext2_dir): Mask out the filetype part of the mode member of
37708 2004-05-24 Marco Gerards <metgerards@student.han.nl>
37710 Add support for UFS version 1 and 2. Add support for the minix
37711 filesystem version 1 and 2, both the variants with 14 and 30 long
37714 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
37716 (grub_emu_SOURCES): Likewise.
37717 (pkgdata_MODULES): Add ufs.mod and minix.mod.
37718 (ufs_mod_SOURCES): New variable.
37719 (ufs_mod_CFLAGS): Likewise.
37720 (minix_mod_SOURCES): Likewise.
37721 (minix_mod_CFLAGS): Likewise.
37722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
37724 (grubof_SOURCES): Likewise.
37725 * fs/ufs.c: New file.
37726 * fs/minix.c: New file.
37727 * include/grub/fs.h (grub_ufs_init): New prototype.
37728 (grub_ufs_fini): Likewise.
37729 (grub_minix_init): Likewise.
37730 (grub_minix_fini): Likewise.
37731 * util/grub-emu.c (main): Initialize and deinitialize UFS and
37734 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
37736 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
37737 commands/ls.c, commands/terminal.c, commands/boot.c,
37738 commands/cmp.c and commands/cat.c.
37739 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
37741 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
37744 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
37746 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
37747 and grub_, respectively. Because the conversion is trivial and
37748 mechanical, I omit the details here. Please refer to the CVS
37749 if you need more information.
37751 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
37753 * include/pupa: Renamed to ...
37754 * include/grub: ... this.
37755 * util/i386/pc/pupa-mkimage.c: Renamed to ...
37756 * util/i386/pc/grub-mkimage.c: ... this.
37757 * util/i386/pc/pupa-setup.c: Renamed to ...
37758 * util/i386/pc/grub-setup.c: ... this.
37759 * util/pupa-emu.c: Renamed to ...
37760 * util/grub-emu.c: ... this.
37762 2004-03-29 Marco Gerards <metgerards@student.han.nl>
37764 Add support for the newworld apple macintosh (PPC). This has been
37765 tested on the powerbook 2000 only. It only adds support for
37766 generic ieee1275 functions, console and disk support. This should
37767 be easy to port to other architectures with support for Open
37770 * configure.ac: Accept the powerpc as host_cpu. In the case of
37771 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
37772 specific tests are only executed while building for the i386.
37773 Inverse test for crosscompile.
37774 * genmk.rb (Utility): Allow assembler files.
37775 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
37776 * conf/powerpc-ieee1275.rmk: New file.
37777 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
37778 * disk/powerpc/ieee1275/partition.c: Likewise.
37779 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
37780 * include/pupa/powerpc/ieee1275/console.h: Likewise.
37781 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
37782 * include/pupa/powerpc/ieee1275/time.h: Likewise.
37783 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
37784 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
37785 * include/pupa/powerpc/ieee1275/loader.h
37786 * include/pupa/powerpc/setjmp.h: Likewise.
37787 * include/pupa/powerpc/types.h: Likewise.
37788 * kern/powerpc/ieee1275/init.c: Likewise.
37789 * kern/powerpc/ieee1275/openfw.c: Likewise.
37790 * term/powerpc/ieee1275/ofconsole.c: Likewise.
37792 These files were written by Johan Rydberg
37793 (jrydberg@night.trouble.net) and I only modified them slightly.
37795 * boot/powerpc/ieee1275/cmain.c: New file.
37796 * boot/powerpc/ieee1275/crt0.S: Likewise.
37797 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
37798 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
37800 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
37802 * Makefile.in: Update copyright.
37803 * genmodsrc.sh: Likewise.
37804 * gensymlist.sh: Likewise.
37805 * term/i386/pc/vga.c: Indent correctly.
37807 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
37808 bugreporting address.
37809 * util/i386/pc/pupa-setup.c (usage): Likewise,
37810 (main): Call pupa_ext2_init and pupa_ext2_fini.
37812 * fs/fat.c (log2): Renamed to ...
37813 (fat_log2): ... this.
37814 All callers changed.
37815 * kern/misc.c (memcpy): Alias to pupa_memmove.
37816 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
37818 * util/console.c (pupa_ncurses_fini): Return 0.
37820 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
37821 Move fail label here.
37822 [__GNU__]: Don't warn when using stat.
37823 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
37824 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
37825 long int. Use strtol instead of strtoul.
37827 2004-03-14 Marco Gerards <metgerards@student.han.nl>
37829 * commands/boot.c: New file.
37830 * commands/cat.c: Likewise.
37831 * commands/cmp.c: Likewise.
37832 * commands/ls.c: Likewise.
37833 * commands/terminal.c: Likewise.
37834 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
37835 (pupa_register_command): Changed interface to match the new
37837 (pupa_command_execute): Changed (almost rewritten) so it uses
37838 pupa_split_command. Added support for setting variables using the
37840 (rescue_command): Changed to work with the new argument parser.
37841 (terminal_command): Moved from here to commands/terminal.c.
37842 (set_command): New function.
37843 (unset_command): New function.
37844 (insmod_command): New function.
37845 (rmmod_command): New function.
37846 (lsmod_command): New function.
37847 (pupa_command_init): Don't initialize the command terminal
37848 anymore. Initialize the commands set, unset, insmod, rmmod and
37850 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
37851 (kernel_img_HEADERS): Add arg.h and env.h.
37852 (pupa_mkimage_LDFLAGS): Add kern/env.c.
37853 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
37854 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
37856 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
37858 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
37859 (boot_mod_SOURCES): New variable.
37860 (terminal_mod_SOURCES): Likewise.
37861 (ls_mod_SOURCES): Likewise.
37862 (cmp_mod_SOURCES): Likewise.
37863 (cat_mod_SOURCES): Likewise.
37865 * normal/arg.c: New file.
37866 * kern/env.c: Likewise.
37867 * include/pupa/arg.h: Likewise.
37868 * include/pupa/env.h: Likewise.
37869 * font/manager.c (font_command): Changed to match argument parsing
37871 (PUPA_MOD_INIT): Likewise.
37872 * hello/hello.c (pupa_cmd_hello): Likewise.
37873 (PUPA_MOD_INIT): Likewise.
37874 * include/pupa/disk.h: Include <pupa/device.h>.
37875 (pupa_print_partinfo): New prototype.
37876 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
37877 (pupa_dl_get_prefix): Likewise.
37878 * include/pupa/misc.h: Include <pupa/err.h>.
37879 (pupa_isgraph): New prototype.
37880 (pupa_isdigit): Likewise.
37881 (pupa_split_cmdline): Likewise.
37882 * include/pupa/normal.h: Include <pupa/arg.h>.
37883 (pupa_command): Changed the prototype of the member `func' to
37884 match the argument parsing interface. Added member `options'.
37885 (pupa_register_command): Updated to match function.
37886 (pupa_arg_parse): New prototype.
37887 (pupa_hello_init) [PUPA_UTIL]: New prototype.
37888 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
37889 (pupa_ls_init) [PUPA_UTIL]: Likewise.
37890 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
37891 (pupa_cat_init) [PUPA_UTIL]: Likewise.
37892 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
37893 (pupa_boot_init) [PUPA_UTIL]: Likewise.
37894 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
37895 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
37896 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
37897 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
37898 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
37899 * kern/disk.c: Include <pupa/file.h>.
37900 (pupa_print_partinfo): New function.
37901 * kern/dl.c: Include <pupa/env.h>.
37902 (pupa_dl_dir): Variable removed.
37903 (pupa_dl_load): Use the environment variable `prefix' instead of
37904 the variable pupa_dl_dir.
37905 (pupa_dl_set_prefix): Function removed.
37906 (pupa_dl_get_prefix): Likewise.
37907 * kern/i386/pc/init.c: Include <pupa/env.h>.
37908 (pupa_machine_init): Use the environment variable `prefix' instead of
37909 using pupa_dl_set_prefix to set the prefix.
37910 * kern/main.c: Include <pupa/env.h>.
37911 (pupa_set_root_dev): Use the environment variable `prefix' instead of
37912 using pupa_dl_get_prefix to get the prefix.
37913 * kern/misc.c: Include <pupa/env.h>.
37914 (pupa_isdigit): New function.
37915 (pupa_isgraph): Likewise.
37916 (pupa_ftoa): Likewise.
37917 (pupa_vsprintf): Added support for printing values of the type
37918 `double'. Make it possible to format variable output when using
37919 formatting like `%1.2%f'.
37920 (pupa_split_cmdline): New function.
37921 * kern/rescue.c: Include <pupa/env.h>.
37922 (next_word): Removed function.
37923 (pupa_rescue_cmd_prefix): Likewise.
37924 (pupa_rescue_cmd_set): New function.
37925 (pupa_rescue_cmd_unset): New function.
37926 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
37927 split the command line instead of splitting it here. Added
37928 support for setting variables using the syntax `foo=bar'. Don't
37929 initialize the prefix command anymore. Initialized the set and
37931 * normal/cmdline.c: Include <pupa/env.h>.
37932 (pupa_tab_complete): Added prototypes for print_simple_completion,
37933 print_partition_completion, add_completion, iterate_commands,
37934 iterate_dev, iterate_part and iterate_dir. Moved code to print
37935 partition information from here to kern/disk.c.
37936 (pupa_cmdline_run): Don't check if the function exists anymore.
37937 * normal/main.c: Include <pupa/env.h>.
37938 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
37939 instead of using pupa_dl_get_prefix to get the prefix.
37940 * term/i386/pc/vga.c: Include <pupa/arg.h>.
37941 (check_vga_mem): Cast pointers to `void *' to silence a gcc
37943 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
37944 (pupa_vga_setcolor): Declare unused variables with `__attribute__
37945 ((unused))' to silence a gcc warning.
37946 (pupa_vga_setcolor): Likewise.
37947 (debug_command): Changed to match argument parsing
37949 * util/pupa-emu.c: Include <pupa/env.h>.
37950 (options): Added 0's for unused fields to silence a gcc warning.
37952 (main): Use the environment variable `prefix' instead of using
37953 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
37954 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
37957 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
37958 * util/misc.c: Include <malloc.h>.
37959 (pupa_malloc): Rewritten so errors are correctly reported.
37960 (pupa_realloc): Likewise.
37961 (pupa_memalign): Likewise.
37962 (pupa_mm_init_region): Declare unused variables with
37963 `__attribute__ ((unused))' to silence a gcc warning.
37964 * normal/i386/setjmp.S: Remove tab at the end of the file to
37965 silence a gcc warning.
37966 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
37967 variables with `__attribute__ ((unused))' to silence a gcc
37969 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
37970 local variable i unsigned to silence a gcc warning.
37972 * kern/term.c: Include <pupa/misc.h>.
37973 (pupa_more_lines): New variable.
37974 (pupa_more): Likewise.
37975 (pupa_putcode): When the pager is active pause at the end of every
37977 (pupa_set_more): New function.
37978 * include/pupa/term.h (pupa_set_more): New prototype.
37981 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
37983 Now this project is GRUB 2 rather than PUPA. The location of
37984 the CVS repository was moved to GRUB's.
37986 * configure.ac: Use bug-grub as the reporting address.
37987 Use GRUB instead of PUPA.
37988 Change the version number to 1.90.
37990 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
37992 * genkernsyms.sh: Updated copyright information.
37993 * genmk.rb: Likewise.
37994 * genmodsrc.sh: Likewise.
37995 * gensymlist.sh: Likewise.
37996 * boot/i386/pc/boot.S: Likewise.
37997 * boot/i386/pc/diskboot.S: Likewise.
37998 * disk/i386/pc/biosdisk.c: Likewise.
37999 * disk/i386/pc/partition.c: Likewise.
38000 * font/manager.c: Likewise.
38001 * fs/ext2.c: Likewise.
38002 * fs/fat.c: Likewise.
38003 * include/pupa/boot.h: Likewise.
38004 * include/pupa/device.h: Likewise.
38005 * include/pupa/disk.h: Likewise.
38006 * include/pupa/dl.h: Likewise.
38007 * include/pupa/elf.h: Likewise.
38008 * include/pupa/err.h: Likewise.
38009 * include/pupa/file.h: Likewise.
38010 * include/pupa/font.h: Likewise.
38011 * include/pupa/fs.h: Likewise.
38012 * include/pupa/kernel.h: Likewise.
38013 * include/pupa/loader.h: Likewise.
38014 * include/pupa/misc.h: Likewise.
38015 * include/pupa/mm.h: Likewise.
38016 * include/pupa/net.h: Likewise.
38017 * include/pupa/normal.h: Likewise.
38018 * include/pupa/rescue.h: Likewise.
38019 * include/pupa/setjmp.h: Likewise.
38020 * include/pupa/symbol.h: Likewise.
38021 * include/pupa/term.h: Likewise.
38022 * include/pupa/types.h: Likewise.
38023 * include/pupa/i386/setjmp.h: Likewise.
38024 * include/pupa/i386/types.h: Likewise.
38025 * include/pupa/i386/pc/biosdisk.h: Likewise.
38026 * include/pupa/i386/pc/boot.h: Likewise.
38027 * include/pupa/i386/pc/console.h: Likewise.
38028 * include/pupa/i386/pc/init.h: Likewise.
38029 * include/pupa/i386/pc/kernel.h: Likewise.
38030 * include/pupa/i386/pc/linux.h: Likewise.
38031 * include/pupa/i386/pc/loader.h: Likewise.
38032 * include/pupa/i386/pc/memory.h: Likewise.
38033 * include/pupa/i386/pc/multiboot.h: Likewise.
38034 * include/pupa/i386/pc/partition.h: Likewise.
38035 * include/pupa/i386/pc/time.h: Likewise.
38036 * include/pupa/i386/pc/vga.h: Likewise.
38037 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
38038 * include/pupa/util/getroot.h: Likewise.
38039 * include/pupa/util/misc.h: Likewise.
38040 * include/pupa/util/resolve.h: Likewise.
38041 * kern/device.c: Likewise.
38042 * kern/disk.c: Likewise.
38043 * kern/dl.c: Likewise.
38044 * kern/err.c: Likewise.
38045 * kern/file.c: Likewise.
38046 * kern/fs.c: Likewise.
38047 * kern/loader.c: Likewise.
38048 * kern/main.c: Likewise.
38049 * kern/misc.c: Likewise.
38050 * kern/mm.c: Likewise.
38051 * kern/rescue.c: Likewise.
38052 * kern/term.c: Likewise.
38053 * kern/i386/dl.c: Likewise.
38054 * kern/i386/pc/init.c: Likewise.
38055 * kern/i386/pc/lzo1x.S: Likewise.
38056 * kern/i386/pc/startup.S: Likewise.
38057 * loader/i386/pc/chainloader.c: Likewise.
38058 * loader/i386/pc/linux.c: Likewise.
38059 * loader/i386/pc/multiboot.c: Likewise.
38060 * normal/cmdline.c: Likewise.
38061 * normal/command.c: Likewise.
38062 * normal/main.c: Likewise.
38063 * normal/menu.c: Likewise.
38064 * normal/i386/setjmp.S: Likewise.
38065 * term/i386/pc/console.c: Likewise.
38066 * term/i386/pc/vga.c: Likewise.
38067 * util/console.c: Likewise.
38068 * util/genmoddep.c: Likewise.
38069 * util/misc.c: Likewise.
38070 * util/pupa-emu.c: Likewise.
38071 * util/resolve.c: Likewise.
38072 * util/unifont2pff.rb: Likewise.
38073 * util/i386/pc/biosdisk.c: Likewise.
38074 * util/i386/pc/getroot.c: Likewise.
38075 * util/i386/pc/pupa-mkimage.c: Likewise.
38076 * util/i386/pc/pupa-setup.c: Likewise.
38078 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
38080 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
38081 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
38082 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
38083 reading and reset it after reading.
38084 (pupa_ext2_close): Return PUPA_ERR_NONE.
38086 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
38088 (struct linux_kernel_header): Add kernel_version and
38090 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
38091 pupa_file_read succeeds.
38092 (pupa_rescue_cmd_initrd): Implement.
38094 2003-12-03 Marco Gerards <metgerards@student.han.nl>
38096 * fs/ext2.c (pupa_ext2_label): New function.
38097 (pupa_ext2_fs): Added label.
38098 * fs/fat.c (pupa_fat_label): New function.
38099 (pupa_fat_fs): Added label.
38100 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
38102 * kern/misc.c (pupa_strndup): New function.
38103 * include/pupa/misc.h (pupa_strndup): New prototype.
38105 * include/pupa/normal.h: Include <pupa/err.h>.
38106 (pupa_set_history): New prototype.
38107 (pupa_iterate_commands): New prototype.
38108 * normal/cmdline.c: Include <pupa/machine/partition.h>,
38109 <pupa/disk.h>, <pupa/file.h>.
38110 (hist_size): New variable.
38111 (hist_lines): Likewise.
38112 (hist_end): Likewise.
38113 (hist_used): Likewise.
38114 (pupa_set_history): New function.
38115 (pupa_history_get): Likewise.
38116 (pupa_history_add): Likewise.
38117 (pupa_history_replace): Likewise.
38118 (pupa_tab_complete): Likewise.
38119 (pupa_cmdline_run): Added tab completion and history buffer. Tab
38120 completion shows partitionnames while completing partitions, this
38121 feature was suggested by Jeff Bailey.
38122 * normal/command.c (pupa_iterate_commands): New function.
38123 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
38124 (pupa_normal_init): Initialize history buffer.
38125 (PUPA_MOD_INIT): Likewise.
38126 (pupa_normal_fini): Free the history buffer.
38127 (PUPA_MOD_FINI): Likewise.
38129 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
38132 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
38133 * configure.ac [i386]: Check for regparam bug.
38134 (NESTED_FUNC_ATTR) [! i386]: Defined.
38136 2003-11-17 Marco Gerards <metgerards@student.han.nl>
38138 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
38139 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
38140 (pupa_emu_SOURCES): New variable.
38141 (pupa_emu_LDFLAGS): Likewise.
38142 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
38143 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
38144 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
38145 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
38146 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
38147 (pupa_jmp_buf): New typedef.
38148 (pupa_setjmp) [PUPA_UTIL]: New macro.
38149 (pupa_longjmp) [PUPA_UTIL]: Likewise.
38150 * include/pupa/term.h (struct pupa_term): New member `refresh'.
38151 (pupa_refresh): New prototype.
38152 * include/pupa/util/getroot.h: New file.
38153 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
38155 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
38156 (pupa_rescue_cmd_cat): Likewise.
38157 (pupa_rescue_cmd_ls): Likewise.
38158 (pupa_rescue_cmd_testload): Likewise.
38159 (pupa_rescue_cmd_lsmod): Likewise.
38160 * normal/cmdline.c (pupa_cmdline_get): Likewise.
38161 * normal/menu.c (run_menu): Likewise.
38162 * kern/term.c (pupa_cls): Likewise.
38163 (pupa_refresh): New function.
38164 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
38165 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
38166 * util/console.c: New file.
38168 * util/i386/pc/getroot.c: New file.
38169 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
38170 (pupa_putchar): New function.
38171 (pupa_refresh): Likewise.
38172 (xgetcwd): Function moved to ...
38173 (strip_extra_slashes): Likewise.
38174 (get_prefix): Likewise.
38175 * util/i386/pc/getroot.c: ... here.
38176 (find_root_device): Function moved and renamed to...
38177 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
38178 Changed all callers.
38179 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
38181 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
38182 Changed all callers.
38183 * util/misc.c (pupa_memalign): New function.
38184 (pupa_mm_init_region): Likewise.
38185 (pupa_register_exported_symbols): Likewise.
38186 (pupa_putchar): Function removed.
38187 * util/pupa-emu.c: New file.
38189 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
38191 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
38192 (_multiboot_mod_SOURCES): New variable.
38193 (_multiboot_mod_CFLAGS): Likewise.
38194 * loader/i386/pc/multiboot.c: New file.
38195 * include/pupa/i386/pc/multiboot.h: Likewise.
38196 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
38197 (pupa_multiboot_real_boot): New function.
38198 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
38199 (pupa_multiboot_real_boot): New prototype.
38200 (pupa_rescue_cmd_multiboot): Likewise
38201 (pupa_rescue_cmd_module): Likewise.
38203 * kern/loader.c (pupa_loader_set): Continue when
38204 pupa_loader_unload_func() fails.
38205 (pupa_loader_unset): New function.
38206 * include/pupa/loader.h (pupa_loader_unset): New prototype.
38208 * kern/misc.c (pupa_stpcpy): New function.
38209 * include/pupa/misc.h (pupa_stpcpy): New prototype.
38211 2003-11-12 Marco Gerards <metgerards@student.han.nl>
38213 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
38214 for available extensions.
38216 * include/pupa/i386/pc/time.h: New file.
38217 * kern/disk.c: Include <pupa/machine/time.h>.
38218 (PUPA_CACHE_TIMEOUT): New macro.
38219 (pupa_last_time): New variable.
38220 (pupa_disk_open): Flush the cache when there was a timeout.
38221 (pupa_disk_close): Reset the timer.
38222 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
38224 * util/misc.c: Include <sys/times.h>
38225 (pupa_get_rtc): New function.
38227 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
38229 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
38231 (pupa_ext2_get_file_block): Use blocks member.
38233 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
38234 first block. Return -1 instead of pupa_errno on error.
38236 2003-10-27 Marco Gerards <metgerards@student.han.nl>
38238 * README: In the pupa-mkimage example use _chain instead of chain
38239 and ext2 instead of fat.
38240 * TODO: Replace ext2fs with jfs as an example. Add an item for
38241 adding journal playback for ext2fs.
38242 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
38243 (pkgdata_MODULES): Added ext2.mod.
38244 (ext2_mod_SOURCES): New variable.
38245 (ext2_mod_CFLAGS): Likewise.
38246 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
38247 * include/pupa/misc.h (pupa_strncpy): New prototype.
38248 (pupa_strcat): Likewise.
38249 (pupa_strncmp): Likewise.
38250 * kern/misc.c (pupa_strcat): Enable function.
38251 (pupa_strncpy): New function.
38252 (pupa_strncmp): Likewise.
38253 * fs/ext2.c: New file.
38255 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
38256 when the read failed before retrying.
38257 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
38258 (_FILE_OFFSET_BITS): Likewise.
38259 * configure.ac: Added AC_SYS_LARGEFILE.
38261 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
38263 * genmk.rb (PModule#rule): Make sure to get only symbol names
38264 from the output of nm.
38265 Reported by Robert Millan <rmh.grub@aybabtu.com>.
38267 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
38269 I forgot to check in these changes for a long time. This adds
38270 incomplete support for VGA console, and this is still very
38271 buggy. Also, a lot of consideration is required for I18N,
38272 UNICODE, and VGA font issues. Therefore, assume that this is
38273 such that "better than nothing".
38275 * font/manager.c: New file.
38276 * include/pupa/font.h: Likewise.
38277 * include/pupa/i386/pc/vga.h: Likewise.
38278 * term/i386/pc/vga.c: Likewise.
38279 * util/unifont2pff.rb: Likewise.
38281 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
38282 (pkgdata_MODULES): Added vga.mod and font.mod.
38283 (vga_mod_SOURCES): New variables.
38284 (vga_mod_CFLAGS): Likewise.
38285 (font_mod_SOURCES): Likewise.
38286 (font_mod_CFLAGS): Likewise.
38288 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
38290 * include/pupa/term.h: Include pupa/err.h.
38291 (struct pupa_term): Added init and fini.
38292 Changed the argument of putchar to pupa_uint32_t.
38294 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
38295 (pupa_console_real_putchar): New prototype.
38296 (pupa_console_putchar): Removed.
38297 (pupa_console_checkkey): Exported.
38298 (pupa_console_getkey): Likewise.
38300 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
38303 * kern/term.c (pupa_term_set_current): Rewritten.
38304 (pupa_putchar): Likewise.
38305 (pupa_putcode): New function.
38307 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
38308 (pupa_console_real_putchar): ... this.
38309 (pupa_vga_set_mode): New function.
38310 (pupa_vga_get_font): Likewise.
38312 * normal/command.c: Include pupa/term.h.
38313 (terminal_command): New function.
38314 (pupa_command_init): Register the command "terminal".
38316 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
38317 (DISP_UP): Likewise.
38318 (DISP_RIGHT): Likewise.
38319 (DISP_DOWN): Likewise.
38320 (DISP_HLINE): Likewise.
38321 (DISP_VLINE): Likewise.
38322 (DISP_UL): Likewise.
38323 (DISP_UR): Likewise.
38324 (DISP_LL): Likewise.
38325 (DISP_LR): Likewise.
38327 * term/i386/pc/console.c (pupa_console_putchar): New function.
38329 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
38331 * util/resolve.c (pupa_util_resolve_dependencies): BUG
38332 FIX. Reverse the path_list.
38334 * include/pupa/normal.h: Export pupa_register_command and
38335 pupa_unregister_command.
38337 * hello/hello.c (pupa_cmd_hello): New module.
38338 * conf/i386-pc.rmk: Added hello.mod.
38340 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
38342 * kern/i386/pc/lzo1x.S: New file.
38344 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
38345 (compress_kernel): New variable.
38346 (generate_image): Heavily modified to support compressing a
38347 large part of the core image.
38349 * util/misc.c (pupa_util_read_image): Fix a file descriptor
38351 (pupa_util_load_image): New function.
38353 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
38354 (pupa_compressed_size): New variable.
38355 (codestart): Enable Gate A20 here.
38356 Decompress the compressed part of the core image.
38357 Rearrange the code to put functions and variables which are
38358 required for initialization in the non-compressed part.
38361 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
38364 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
38366 * include/pupa/i386/pc/kernel.h
38367 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
38368 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
38369 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
38370 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
38371 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
38373 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
38375 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
38376 (Utility#rule): Likewise.
38378 * configure.ac: Check if LZO is available.
38380 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
38382 * include/pupa/normal.h: New file.
38383 * include/pupa/setjmp.h: Likewise.
38384 * include/pupa/i386/setjmp.h: Likewise.
38385 * normal/cmdline.c: Likewise.
38386 * normal/command.c: Likewise.
38387 * normal/main.c: Likewise.
38388 * normal/menu.c: Likewise.
38389 * normal/i386/setjmp.S: Likewise.
38391 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
38392 (pupa_rescue_cmd_initrd): Likewise.
38394 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
38397 * kern/i386/pc/startup.S (translation_table): New variable.
38398 (translate_keycode): New function.
38399 (pupa_console_getkey): Call translate_keycode.
38401 * kern/rescue.c (attempt_normal_mode): New function.
38402 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
38403 it failed, print a message.
38405 * kern/mm.c (pupa_real_malloc): Print more information when a
38406 free magic is broken.
38407 (pupa_free): If the first free header is not free actually, set
38410 * kern/main.c (pupa_load_normal_mode): Just load the module
38412 (pupa_main): Don't print the message
38413 "Entering into rescue mode..." here.
38415 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
38417 (pupa_rescue_cmd_initrd): Likewise.
38418 (pupa_rescue_cmd_initrd): Likewise.
38420 * include/pupa/symbol.h (FUNCTION): Specify the type.
38421 (VARIABLE): Likewise.
38423 * include/pupa/err.h (pupa_err_t): Added
38424 PUPA_ERR_UNKNOWN_COMMAND.
38426 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
38427 (pupa_dl_get_prefix): Likewise.
38429 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
38430 Added _chain.mod and _linux.mod instead of chain.mod and
38432 (chain_mod_SOURCES): Renamed to ...
38433 (_chain_mod_SOURCES): ... this.
38434 (chain_mod_CFLAGS): Renamed to ...
38435 (_chain_mod_CFLAGS): ... this.
38436 (linux_mod_SOURCES): Renamed to ...
38437 (_linux_mod_SOURCES): ... this.
38438 (linux_mod_CFLAGS): Renamed to ...
38439 (_linux_mod_CFLAGS): ... this.
38440 (normal_mod_SOURCES): New variable.
38441 (normal_mod_CFLAGS): Likewise.
38442 (normal_mod_ASFLAGS): Likewise.
38444 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
38446 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
38449 * kern/dl.c (pupa_dl_ref): Refer depending modules
38451 (pupa_dl_unref): Unrefer depending modules recursively.
38452 Don't call pupa_dl_unload implicitly, because PUPA can crash if
38453 a module is unloaded before one depending on that module is
38455 (pupa_dl_unload): Unload depending modules explicitly,
38458 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
38460 * include/pupa/i386/pc/linux.h: New file.
38461 * loader/i386/pc/linux.c: Likewise.
38463 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
38465 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
38466 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
38467 of PUPA_CHAINLOADER_BOOT_SECTOR.
38469 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
38470 (pupa_linux_prot_size): New variable.
38471 (pupa_linux_tmp_addr): Likewise.
38472 (pupa_linux_real_addr): Likewise.
38473 (pupa_linux_boot_zimage): New function.
38474 (pupa_linux_boot_bzimage): Likewise.
38476 * kern/i386/pc/init.c (struct mem_region): New structure.
38477 (MAX_REGIONS): New macro.
38478 (mem_regions): New variable.
38479 (num_regions): Likewise.
38480 (pupa_os_area_addr): Likewise.
38481 (pupa_os_area_size): Likewise.
38482 (pupa_lower_mem): Likewise.
38483 (pupa_upper_mem): Likewise.
38484 (add_mem_region): New function.
38485 (compact_mem_regions): Likewise.
38486 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
38487 the size of the conventional memory and that of so-called upper
38488 memory (before the first memory hole).
38489 Instead of adding each found region to free memory, use
38490 add_mem_region and add them after removing overlaps.
38491 Also, add only 1/4 of the upper memory to free memory. The rest
38492 is used for loading OS images. Maybe this is ad hoc, but this
38493 makes it much easier to relocate OS images when booting.
38495 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
38496 (pupa_enter_rescue_mode): Don't register initrd and module.
38498 * kern/mm.c: Include pupa/dl.h.
38500 * kern/main.c: Include pupa/file.h and pupa/device.h.
38502 * kern/loader.c (pupa_loader_load_module_func): Removed.
38503 (pupa_loader_load_module): Likewise.
38505 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
38508 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
38509 (pupa_linux_tmp_addr): Likewise.
38510 (pupa_linux_real_addr): Likewise.
38511 (pupa_linux_boot_zimage): Likewise.
38512 (pupa_linux_boot_bzimage): Likewise.
38514 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
38515 (pupa_upper_mem): Likewise.
38516 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
38517 module is too dangerous.
38519 * include/pupa/loader.h (pupa_os_area_addr): Declared.
38520 (pupa_os_area_size): Likewise.
38521 (pupa_loader_set): Remove the first argument. Loader doesn't
38522 manage modules or initrd any longer.
38523 (pupa_loader_load_module): Removed.
38525 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
38526 (linux_mod_SOURCES): New variable.
38527 (linux_mod_CFLAGS): Likewise.
38529 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
38531 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
38532 the length of a blocklist correctly.
38534 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
38535 Use ioctl only if the OS file is a block device.
38536 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
38537 not very useful for normal files.
38539 * kern/main.c (pupa_set_root_dev): New function.
38540 (pupa_load_normal_mode): Likewise.
38541 (pupa_main): Call those above.
38543 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
38546 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
38548 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38550 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
38551 (setup): Configure the installed partition information and the
38554 * loader/i386/pc/chainloader.c (my_mod): New variable.
38555 (pupa_chainloader_unload): New function.
38556 (pupa_rescue_cmd_chainloader): Refer itself.
38557 (PUPA_MOD_INIT): Save its own module in MY_MOD.
38559 * kern/i386/pc/startup.S (install_partition): Removed.
38560 (version_string): Likewise.
38561 (config_file): Likewise.
38562 (pupa_install_dos_part): New variable.
38563 (pupa_install_bsd_part): Likewise.
38564 (pupa_prefix): Likewise.
38565 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
38567 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
38569 (make_install_device): New function.
38570 (pupa_machine_init): Set the dl prefix.
38572 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
38573 (buf): Renamed to ...
38574 (linebuf): ... this.
38575 (pupa_rescue_cmd_prefix): New function.
38576 (pupa_rescue_cmd_insmod): Likewise.
38577 (pupa_rescue_cmd_rmmod): Likewise.
38578 (pupa_rescue_cmd_lsmod): Likewise.
38579 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
38582 * kern/mm.c (pupa_memalign): If failed even after invalidating
38583 disk caches, unload unneeded modules and retry.
38585 * kern/misc.c (pupa_memmove): New function.
38586 (pupa_memcpy): Removed.
38587 (pupa_strcpy): New function.
38588 (pupa_itoa): Made static.
38590 * kern/dl.c (pupa_dl_iterate): New function.
38591 (pupa_dl_ref): Likewise.
38592 (pupa_dl_unref): Likewise.
38593 (pupa_dl_unload): Return if succeeded or not.
38594 (pupa_dl_unload_unneeded): New function.
38595 (pupa_dl_unload_all): Likewise.
38596 (pupa_dl_init): Renamed to ...
38597 (pupa_dl_set_prefix): ... this.
38598 (pupa_dl_get_prefix): New function.
38600 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
38601 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
38602 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
38603 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
38604 (pupa_install_dos_part): Declared.
38605 (pupa_install_bsd_part): Likewise.
38606 (pupa_prefix): Likewise.
38607 (pupa_boot_drive): Likewise.
38609 * include/pupa/types.h: Fix a typo.
38611 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
38613 (pupa_memmove): Declared.
38614 (pupa_strcpy): Likewise.
38616 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
38617 pupa_mod_init takes one argument, its own module.
38618 (pupa_dl_unload_unneeded): Declared.
38619 (pupa_dl_unload_all): Likewise.
38620 (pupa_dl_ref): Likewise.
38621 (pupa_dl_unref): Likewise.
38622 (pupa_dl_iterate): Likewise.
38623 (pupa_dl_init): Renamed to ...
38624 (pupa_dl_set_prefix): ... this.
38625 (pupa_dl_get_prefix): Declared.
38627 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
38628 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
38630 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
38631 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
38633 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
38634 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
38636 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
38638 * util/i386/pc/pupa-setup.c (setup): Define the internal
38639 function find_first_partition_start at the top level, because GCC
38640 3.0.x cannot compile internal functions in deeper scopes
38642 (find_root_device): Use lstat instead of stat.
38643 Don't follow symbolic links.
38644 Fix the path-constructing code.
38646 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
38647 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
38648 by a BLKGETSIZE ioctl first, because block devices don't fill
38649 the member st_mode of the structure stat on Linux.
38650 [__linux__] (linux_find_partition): Use a temporary buffer
38651 REAL_DEV for the working space. Copy it to DEV before returning.
38652 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
38653 buffer cache consistent.
38654 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
38655 strncmp. The previous value was merely wrong.
38656 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
38658 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
38659 FAT size is 12. The previous value was merely wrong.
38661 * kern/main.c (pupa_main): Don't split the starting message from
38664 * kern/term.c (pupa_putchar): Put CR after LF instead of before
38665 LF, because BIOS goes crazy about character attributes in this
38668 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
38670 * include/i386/pc/util/biosdisk.h: New file.
38671 * util/i386/pc/biosdisk.c: Likewise.
38672 * util/i386/pc/pupa-setup.c: Likewise.
38674 * Makefile.in (INCLUDE_DISTFILES): Added
38675 include/pupa/i386/pc/util/biosdisk.h.
38676 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
38677 directory util/i386/pc.
38678 (install-local): Added a rule for sbin_UTILITIES.
38679 (uninstall): Likewise.
38681 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
38683 * util/misc.c (xrealloc): New function.
38684 (pupa_malloc): Likewise.
38685 (pupa_free): Likewise.
38686 (pupa_realloc): Likewise.
38687 (pupa_stop): Likewise.
38688 (pupa_putchar): Likewise.
38690 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
38692 * include/pupa/util/misc.h (xrealloc): Declared.
38694 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
38696 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
38697 (PUPA_BOOT_MACHINE_BPB_END): ... this.
38699 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
38700 [PUPA_UTIL] (pupa_fat_fini): Likewise.
38702 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
38703 way should be implemented.
38704 [PUPA_UTIL] (pupa_fat_fini): Likewise.
38706 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
38707 the size of NAME for safety.
38708 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
38711 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
38712 (pupa_setup_SOURCES): Likewise.
38714 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
38716 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
38718 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
38719 bunch of pushl's from pusha, because this destroys the return
38722 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
38724 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
38725 This means that any missing prototypes could be fatal. Also, you
38726 must take care when writing assembly code. See the comments at
38727 the beginning of startup.S, for more details.
38729 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
38730 compilation mechanism.
38731 (pupa_chainloader_real_boot): Likewise.
38732 (pupa_biosdisk_rw_int13_extensions): Likewise.
38733 (pupa_biosdisk_rw_standard): Likewise.
38734 (pupa_biosdisk_check_int13_extensions): Likewise.
38735 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
38736 (pupa_biosdisk_get_diskinfo_standard): Likewise.
38737 (pupa_get_memsize): Likewise.
38738 (pupa_get_mmap_entry): Likewise.
38739 (pupa_console_putchar): Likewise.
38740 (pupa_console_setcursor): Likewise.
38741 (pupa_getrtsecs): Use pushl instead of push.
38743 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
38744 memory instead of the stack for a mmap entry, because some
38745 BIOSes may ignore the maximum size and overflow.
38747 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
38749 * genmk.rb (PModule#rule): Compile automatically generated
38750 sources with module-specific CFLAGS as well as other sources.
38752 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
38754 * configure.ac: Check ld.
38755 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
38756 respectively, before checking endianness and sizes.
38758 * Makefile.in (LD): New variable.
38760 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
38762 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
38764 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
38766 * Changelog: New file.