1
2010-11-24 Colin Watson <cjwatson@ubuntu.com>
3
* grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
5
(grub-emu-lite): Remove kern/emu/cache.S.
7
2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9
* util/deviceiter.c (compare_devices): If the by-id link for a
10
device couldn't be resolved, fall back to sorting by the by-id link
11
rather than segfaulting.
12
Reported and tested by: Daniel Mierswa.
14
2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16
* Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
17
ldflags, to fix link line ordering.
19
2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21
* grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22
linkers are picky about this.
24
2010-11-23 Colin Watson <cjwatson@ubuntu.com>
26
* grub-core/Makefile.am (command.lst): Adjust sed expression
27
ordering so that extended and priority commands aren't treated as
30
2010-11-23 Colin Watson <cjwatson@ubuntu.com>
32
* include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
33
Remove byte-swapping function calls, which are not valid in
34
structure initialisers.
35
* grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
37
(GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
38
grub_gpt_partition_type_bios_boot.
40
2010-11-22 Colin Watson <cjwatson@ubuntu.com>
42
Fix test program build on GNU/kFreeBSD.
44
* Makefile.util.def (example_unit_test): Add `$(LIBZFS)
45
$(LIBNVPAIR)' library dependencies.
47
2010-11-22 Colin Watson <cjwatson@ubuntu.com>
49
* util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
51
2010-11-22 Colin Watson <cjwatson@ubuntu.com>
53
* util/grub-install.in: Remove excessive quoting that broke
54
installations to RAID devices.
56
2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
58
* grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
59
bootloader version instead of 0.
61
2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
63
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
66
2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
68
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
69
retrieve the metadat sector if size isn't known.
70
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
72
2010-11-18 Robert Millan <rmh@gnu.org>
74
* grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
77
2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
79
* grub-core/normal/menu_entry.c (print_up): Fix displacement of up
81
Reported by: Jordan Uggla.
83
2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
85
Make better UTF compliant.
87
* grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
88
sequences as incorrect.
89
(grub_is_valid_utf8): Likewise.
90
(grub_utf8_to_ucs4): Likewise.
91
(grub_ucs4_to_utf8): Handle codepoints outside of BMP.
92
(grub_ucs4_to_utf8_alloc): Likewise.
93
* include/grub/charset.h (grub_utf16_to_utf8): Likewise.
95
2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
97
Make legacy_source behave like source.
99
* grub-core/commands/legacycfg.c (legacy_file): Don't call
101
(grub_cmd_legacy_source): Call grub_show_menu if needed.
103
2010-11-16 Colin Watson <cjwatson@debian.org>
105
* conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
106
(-Wunused implies -Wunused-parameter, but not vice versa).
108
2010-11-16 Colin Watson <cjwatson@ubuntu.com>
110
* configure.ac: Make error messages less confusing by testing for
111
-Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
112
accepted, but produces a diagnostic if something else is wrong).
114
2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
116
* grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
117
[GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
119
(grub_keyboard_controller_init)
120
[GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
121
read the initial state since controller isn't inited yet.
123
2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
125
* grub-core/lib/relocator.c (malloc_in_range): Take into account that
126
allocate_regbeg may need to create new chunk header.
128
2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
130
Fix quoting in legacy parser.
132
* grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
134
(grub_legacy_parse): Likewise.
135
Reported by: Jordan Uggla.
136
Tested by: Jordan Uggla.
138
2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
140
Don't add -lgcc on i386 and x86_64.
142
* configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
143
* conf/Makefile.common (LDADD_KERNEL): Likewise.
144
* grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
146
2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
148
* configure.ac: Add -Wno-trampolines when supported.
150
2010-11-14 Modestas Vainius <modax@debian.org>
152
* grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
155
2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
157
Add generic logical block size support for UDF.
159
* grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
160
(GRUB_UDF_BLKSZ): Removed.
161
(struct grub_udf_data): New field "lbshift" to hold the logical block
162
size of the file system in log2 format. All users updated.
163
(sblocklist): Change type to unsigned.
164
(grub_udf_mount): Change type of "sblklist" to unsigned.
165
Move AVDP search before VRS recognition, because the latter requires
166
knowledge of the logical block size, which is detected during the
168
Detect and validate logical block size during AVDP search, adding
169
support for block sizes 512, 1024 and 4096.
170
Make VRS recognition independent of block size.
172
2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
174
Properly handle deleted files on UDF.
176
* grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
177
whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
180
2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
182
Support reading files larger than 2 GiB.
184
* grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
185
"offset" to grub_off_t.
186
(grub_udf_read_file): Likewise for parameter "pos".
188
2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
190
* docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
192
(Simple configuration): Refer to Changes from GRUB Legacy about
193
save_env availability.
195
2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
197
* util/grub-install.in: Ignore empty partition table detection
198
instead of trying to include part_ module.
200
2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
202
* grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
205
2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
207
Properly define WORDS_BIGENDIAN in wrapped environments.
209
* grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
211
* grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
213
Reported by: Manoel Rebelo Abranches.
214
Tested by: Manoel Rebelo Abranches.
216
2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
218
* util/grub-mkconfig.in: Fix quoting.
220
2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
222
Support big ext2 files.
224
* grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
225
(grub_ext2_read_block): Support triple indirect blocks.
226
(grub_ext2_read_file): Use 64-bit types and read size_high.
227
(grub_ext2_open): Read size_high.
228
Reported by: Ximin Luo.
229
Tested by: Manoel Rebelo Abranches.
231
2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
233
* util/grub-install.in: Handle filenames containing spaces.
234
Reported by: Jordan Uggla.
235
Tested by: Jordan Uggla.
237
2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
239
* util/grub-mkconfig.in (grub_script_check): New variable.
240
Use grub_script_check instead of grub-script-check.
241
Reported by: Barry Jackson.
243
2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
245
* docs/grub.texi (menu): Correct the order.
246
Reported by: D. Hugh Redelmeier.
248
2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
250
* grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
253
2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
255
* include/grub/elfload.h (grub_elf32_size): New parameter.
257
Return maximum segments alignment.
258
(grub_elf64_size): Likewise.
259
* kern/elf.c (grub_elf32_size): New parameter. All users updated.
260
Return maximum segments alignment.
261
(grub_elf64_size): Likewise.
262
* grub-core/loader/powerpc/ieee1275/linux.c:
263
(grub_linux_claimmap_iterate): New function. Uses the
264
"available" property in the "memory" node for memory allocation
265
for kernel in the PowerPC loader.
266
(grub_linux_load32): Correctly find linux entry point offset.
267
(grub_linux_load64): Likewise.
269
2010-11-07 Robert Millan <rmh@gnu.org>
271
On mips-yeeloong, build with -march=loongson2f when this flag is
272
available (GCC >= 4.4).
273
* conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
275
* configure.ac: For mips-yeeloong, add -march=loongson2f if available,
276
or otherwise add -march=mips3.
278
2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
280
Suppress shell expansion on echo '*' and echo "*" like cases.
281
Reported by: Jordan Uggla.
283
* grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
284
string arguments before shell expansion.
285
* tests/grub_cmd_echo.in: New testcases.
287
2010-11-07 Robert Millan <rmh@gnu.org>
289
* conf/mips-qemu-mips.rmk: Remove stale file from previous
292
2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
294
* grub-core/kern/emu/hostdisk.c
295
(convert_system_partition_to_system_disk): Handle devices like "sdaa1".
297
2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
299
* include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
300
* include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
301
* include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
303
2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
305
* grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
307
2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
309
* util/grub-install.in: Replace useless recomendation to pass
310
--modules with a recomendation to report a bug.
312
2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
314
Properly register serial terminfo.
315
Reported by: Jordan Uggla
317
* grub-core/term/serial.c (grub_serial_terminfo_input_template): New
319
(grub_serial_terminfo_output_template): Likewise.
320
(grub_cmd_serial): Register "serial" with terminfo.
321
(GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
322
grub_serial_terminfo_output.
324
2010-11-05 Robert Millan <rmh@gnu.org>
326
* util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
329
2010-11-05 Robert Millan <rmh@gnu.org>
331
On Yeeloong, pass machine type information to Linux.
333
* grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
334
(LOONGSON_MACHTYPE): New macro, set to
335
"machtype=lemote-yeeloong-2f-8.9inches".
336
[LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
337
additional argument to Linux.
339
2010-11-04 Robert Millan <rmh@gnu.org>
341
* util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
342
limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
343
(its SATA disks are detected as slaveless IDE master drives on
345
Reported by Carsten Aulbert.
347
2010-11-02 Colin Watson <cjwatson@ubuntu.com>
349
* util/bin2h.c (main): Fix spelling error in generated output.
351
2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
353
* grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
355
2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
357
* grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
358
vga= option is supplied.
360
2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
362
* util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
363
* util/grub.d/10_kfreebsd.in: Likewise.
364
* util/grub.d/10_linux.in: Likewise.
365
* util/grub.d/20_linux_xen.in: Likewise.
367
2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
369
* grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
370
argument as an argument to no-argument option.
372
2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
374
* util/grub.d/10_linux.in: Add missing load_video with explicit
375
GRUB_GFXPAYLOAD_LINUX.
377
2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
379
* Makefile.am (libgrub.pp): Propagate the libgrub.a split.
381
2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
383
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
384
elements with invlid index.
385
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
386
* grub-core/disk/raid.c (insert_array): Automatically reallocate
388
* include/grub/raid.h (grub_raid_member): New struct.
389
(grub_raid_array): Transform devices and start_sector into usage of
390
grub_raid_member. All users updated
391
(allocated_devs): New member.
393
2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
395
* docs/man/grub-set-default.h2m: Clarify that only saved default entry
398
2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
400
NetBSD build fix for getline function conflict from gnulib.
402
* Makefile.util.def (libgrubkern.a): New library for grub kernel
403
components that depend on gnulib headers.
404
(libgrubmods.a): Renamed from earlier libgrub.a.
405
* conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
407
2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
409
* util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
410
install rather than creating a broken install.
412
2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
414
* util/grub-setup.c (argp): Remove misleading example of installing to
417
2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
419
* util/grub-setup.c (setup): Clarify the error message.
421
2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
423
* include/grub/types.h (grub_target_off_t): Removed no longer used type.
425
2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
427
* grub-core/kern/emu/misc.c
428
(grub_make_system_path_relative_to_its_root)
429
[HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
431
2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
433
* grub-core/kern/emu/misc.c
434
(grub_make_system_path_relative_to_its_root): Revert r2882.
436
2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
438
* grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
439
useless field head. All users updated.
440
(free_subchunk): Correct handling of IN_REGION subchunk.
442
2010-10-22 Colin Watson <cjwatson@ubuntu.com>
444
* docs/grub.texi (Installing GRUB using grub-install): Proofread.
445
(Supported kernels): Likewise.
447
2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
449
Make mktemp invocations portable.
451
* grub-core/genmod.sh.in: Use mktemp with an explicit template, and
452
exit if mktemp fails.
453
* tests/grub_script_blockarg.in: Likewise.
454
* tests/partmap_test.in: Likewise.
455
* tests/util/grub-shell-tester.in: Likewise.
456
* tests/util/grub-shell.in: Likewise.
457
* util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
458
* Makefile.am: Likewise, and chain shell commands with `&&'
460
* util/grub-mkrescue.in: Use the same explicit template as above, and
461
exit if mktemp fails.
463
2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
465
* util/grub.d/10_linux.in: Fix built-in initramfs image mode for
466
Linux kernel, reported by Dennis Schridde.
468
2010-10-17 Szymon Janc <szymon@janc.net.pl>
470
* grub-core/normal/auth.c (grub_auth_check_authentication):
471
Set-but-not-used variable removed.
473
2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
475
* docs/grub.texi (GNU/Linux): Document APM unavailability with
476
32-bit linux protocol.
478
2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
480
* grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
481
cursor shape for sanity.
483
2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
485
* docs/grub.texi (Installation): Document buggy BIOS install.
487
2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
489
* docs/grub.texi (Installation): Indent.
491
2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
493
* util/grub-setup.c (setup): New parameter allow_floppy.
494
(arguments): New member allow_floppy.
495
(argp_parser): Handle --allow-floppy.
496
(main): Pass allow_floppy.
497
* util/grub-install.in: New option --allow-floppy passed though to
500
2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
502
* util/grub-install.in: Handle partitionless disks.
504
2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
506
* util/grub-setup.c (setup): Don't clean blocklists before readability
509
2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
511
* docs/grub.texi (Installation): Document embedding zone. Remove
512
obsolete grub-install example.
514
2010-10-16 Szymon Janc <szymon@janc.net.pl>
516
* grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
517
Set-but-not-used variable ifdef'ed.
518
* grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
519
* grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
521
* grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
522
* grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
523
* grub-core/fs/minix.c (grub_minix_dir): Likewise.
524
* grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
525
* grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
526
* grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
527
* grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
528
* grub-core/gfxmenu/widget-box.c (draw): Likewise.
529
* grub-core/lib/relocator.c (malloc_in_range): Likewise.
530
* grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
531
* grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
534
2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
536
* grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
537
* include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
540
2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
542
* grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
543
synonym to _S5_. Needed for some DSDTs.
545
2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
547
Userspace ACPI parser debugging.
549
* grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
550
headers and add relevant defines. Don't include standard headers.
551
(main) [GRUB_DSDT_TEST]: New function.
552
* include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
553
Don't declare functions.
555
2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
557
Remove dead grub_efi_mm_fini.
559
* grub-core/kern/efi/mm.c (allocated_page): Removed.
560
(ALLOCATED_PAGES_SIZE): Likewise.
561
(MAX_ALLOCATED_PAGES): Likewise.
562
(allocated_pages): Likewise.
563
(grub_efi_allocate_pages): Don't record allocated pages.
564
(grub_efi_free_pages): Likewise.
565
(grub_efi_mm_init): Likewise.
566
(grub_efi_mm_fini): Removed.
568
2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
570
* grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
571
(grub_efi_mm_init): Take into account the memory map size increase.
573
2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
575
* grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
576
(serial_hw_put): Wait based on real time rather than port reads. Don't
578
* include/grub/serial.h (grub_serial_port): New field broken.
580
2010-10-16 Robert Millan <rmh@gnu.org>
582
* grub-core/kern/emu/misc.c
583
(grub_make_system_path_relative_to_its_root): Fix premature return
584
when processing non-root ZFS filesystems.
585
Reported by Sergio Talens-Oliag.
587
2010-10-15 Robert Millan <rmh@gnu.org>
589
* util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
590
guarantee compressed ones are processed first.
592
2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
594
* grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
595
grub_efiemu_autocore.
597
2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
599
* grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
601
(grub_console_getkey): Use correct jae opcode rather than ja.
603
2010-10-12 Robert Millan <rmh@gnu.org>
605
* util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
606
`GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
607
variable. All references updated.
609
* util/grub.d/10_kfreebsd.in: Support recovery boot entries.
611
2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
613
Correctly distinguish mdraid flavours.
615
* grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
616
(insert_array): New argument raid.
617
* include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
618
* include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
619
* util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
621
2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
623
* grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
624
handling of special keys.
626
2010-10-02 Aleš Nesrsta <starous@volny.cz>
628
* include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
629
GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
631
2010-10-02 Aleš Nesrsta <starous@volny.cz>
633
* grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
634
* grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
636
* grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
637
Use right endpoint when querying descriptor.
639
2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
641
Clear out 0x80 color bit on EFI.
643
Reported by: decoder and meta tech.
645
* grub-core/term/efi/console.c (grub_console_standard_color): Removed.
646
(grub_console_setcolorstate): Clear out 0x80 bit.
647
Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
648
(grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
649
Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
651
2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
653
* grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
656
2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
658
* grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
659
mo_file after freeing.
661
2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
663
* grub-core/normal/term.c (read_terminal_list): Free in a right order.
665
2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
667
* grub-core/script/execute.c (grub_script_execute_sourcecode): Set
670
2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
672
* util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
675
2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
677
Put terminfo into core on ieee1275 and yeeloong (needed for console).
679
* gentpl.py: New groups terminfoinkernel and terminfomodule.
680
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
681
and terminfo.h when needed.
682
* grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
683
term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
684
(terminfo): Enable only on terminfokernel.
686
* include/grub/extcmd.h: Add missing EXPORT_FUNC.
687
* include/grub/lib/arg.h: Likewise.
688
* grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
689
incorrect usage of ->.
691
2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
693
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
694
[GRUB_MACHINE_EFI && __i386__]: Fix typo.
696
2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
698
Fix coreboot compilation.
700
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
701
Take VBE info into account even if only text is supported.
702
(fill_vbe_info): Take into account the case when only VGA text
704
* include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
705
on coreboot, multiboot and qemu.
707
2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
709
* grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
711
(grub_relocator_prepare_relocs): Set movers_chunk.srcv.
713
2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
715
* grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
718
2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
720
* grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
721
if they were BSD-style.
723
2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
725
* grub-core/boot/i386/pc/lnxboot.S: Replace
726
GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
727
GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
729
2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
731
Write embedding zone using Reed-Solomon.
733
* Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
734
* grub-core/Makefile.am (rs_decoder.S): New target.
735
(kern/i386/pc/startup.S): Depend on rs_decoder.S.
736
* grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
737
(multiboot): Move to RS part.
738
(post_reed_solomon): New label.
739
(grub_boot_drive): Move to non-RS part since it's modified in memory
741
Include rs_decoder.S.
742
* grub-core/lib/reed_solomon.c: New file.
743
* include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
745
(GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
746
(GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
747
(GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
748
* include/grub/partition.h (grub_partition_map): Change prototype of
749
embed to allow returning additional sectors.
750
* include/grub/reed_solomon.h: New file.
751
* util/grub-setup.c (setup): Handle Reed-Solomon.
753
2010-09-28 Colin Watson <cjwatson@ubuntu.com>
755
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
756
i386 and x86-64 definedness tests.
758
2010-09-27 Yves Blusseau <blusseau@zetam.org>
760
Fix generation of kernel_syms.lst
762
* grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
765
2010-09-26 Robert Millan <rmh@gnu.org>
767
Support degraded ZFS arrays in "grub-probe -t device" resolution.
769
* grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
770
the pool is an array of devices, iterate through it and return the
771
first device that passes a stat() test (instead of blindly returning
774
2010-09-26 Robert Millan <rmh@gnu.org>
776
Build fixes for GNU/kFreeBSD.
778
* Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
779
to programs that require ZFS conversion.
780
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
781
kernels that don't have FLOPPY_MAJOR.
783
2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
785
* grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
787
2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
791
* grub-core/kern/emu/main.c: Remove #include <getopt.h>.
792
* grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
793
mdraid09 and mdraid1x.
795
2010-09-24 Colin Watson <cjwatson@ubuntu.com>
797
Re-enable grub-extras.
799
* autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
800
avoid confusing Automake. Run autogen only twice, once for the top
801
level and once for grub-core. Add Makefile.util.def and
802
Makefile.core.def from extra modules to the appropriate autogen
803
invocations. If Makefile.common exists in an extra module, include
804
it in both Makefile.util.am and grub-core/Makefile.core.am;
805
similarly, include any Makefile.util.common file in Makefile.util.am
806
and any Makefile.core.common file in grub-core/Makefile.core.am.
807
* conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
808
Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
809
($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
810
* grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
812
* gentpl.py (gvar_add): Turn GVARS into a set.
813
(global_variable_initializers): Sort global variables on output.
814
(vars_init): New function.
815
(first_time): Likewise.
816
(library): Ensure that non-global variable initialisations are
817
emitted before the first time we emit code for a library block.
818
Append to variables rather than setting them. Only emit
819
noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
820
each conditional path.
821
(program): installdir() emits an Autogen macro, so must be passed to
822
var_add rather than gvar_add.
825
(rules): New function, centralising handling for different target
826
types. Set up Guile association lists for first_time and vars_init,
827
and send most output to a diversion so that variable initialisations
828
can be emitted first.
829
(module_rules): Use new rules function.
830
(kernel_rules): Likewise.
831
(image_rules): Likewise.
832
(library_rules): Likewise.
833
(program_rules): Likewise.
834
(script_rules): Likewise.
835
(data_rules): Likewise.
837
* configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
839
* .bzrignore: Add contrib and grub-core/contrib. Remove
840
grub-core/Makefile.gcry.am.
842
2010-09-24 Yves Blusseau <blusseau@zetam.org>
844
* grub-core/lib/LzFind.c: Add missing include.
845
* grub-core/lib/LzmaEnc.c: Likewise.
846
* grub-core/script/lexer.c: Likewise.
847
* grub-core/script/yylex.l: Likewise.
848
* util/grub-macho2img.c: Likewise.
849
* util/grub-menulst2cfg.c: Likewise.
850
* util/grub-mklayout.c: Likewise.
851
* util/grub-mkpasswd-pbkdf2.c
852
* util/grub-mkrelpath.c: Likewise.
853
* util/resolve.c: Likewise.
855
2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
857
* Makefile.util.def (example_unit_test): Add
858
grub-core/gnulib/libgnu.a.
860
2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
862
* grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
864
2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
866
Support xz compression on yeeloong.
868
* Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
869
* configure.ac: Check for LZMA.
870
* grub-core/Makefile.core.def (xz_decompress): New target.
871
(none_decompress): Likewise.
872
* grub-core/boot/decompressor/minilib.c: New file.
873
* grub-core/boot/decompressor/none.c: Likewise.
874
* grub-core/boot/decompressor/xz.c: Likewise.
875
* grub-core/kern/mips/cache.S: Change to noreorder nomacro.
876
* grub-core/kern/mips/cache_flush.S: Likewise.
877
* grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
878
* grub-core/kern/mips/startup.S: Move first stage to ...
879
* grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
881
* grub-core/kern/mips/startup.S: Change to noreorder nomacro.
882
* grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
883
* grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
885
* grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
886
Allocate statically or use scratch. Don't check CRC32.
887
* grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
888
Allocate statically. Don't check CRC32.
889
* include/grub/decompressor.h: New file.
890
* include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
892
(GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
893
(GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
894
(GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
895
(GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
896
(GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
897
* util/grub-mkimage.c (grub_compression_t): New type.
898
(PLATFORM_FLAGS_DECOMPRESSORS): New flag.
899
(image_target_desc): New field default_compression.
900
(image_targets): Adjust yeeloong targets.
901
(compress_kernel_xz) [HAVE_LIBLZMA]: New function.
902
(compress_kernel): New parameter comp.
903
(generate_image): Likewise. Handle new compression case.
904
(options): New option --compression
906
(main): Handle new option.
908
2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
910
* grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
912
2010-09-22 Colin Watson <cjwatson@ubuntu.com>
914
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
915
typo in __i386__ conditional.
917
2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
919
* grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
922
2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
924
Implement EFI and ACPI multiboot2 extensions.
926
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
927
new tags as supported.
928
(acpiv2_size): New function.
929
(grub_multiboot_get_mbi_size): Take new tags into account.
930
(grub_multiboot_make_mbi): Add new tags.
931
* include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
933
2010-09-21 Aleš Nesrsta <starous@volny.cz>
935
* grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
936
Added missing configuration of USB device.
938
2010-09-21 Colin Watson <cjwatson@ubuntu.com>
940
* grub-core/normal/menu_entry.c (run): Make sure we always return
943
2010-09-21 Colin Watson <cjwatson@ubuntu.com>
945
* grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
946
NumberOfPages is UINT64 according to the UEFI specification, not
947
UINTN. Fix printf format.
949
2010-09-21 Colin Watson <cjwatson@ubuntu.com>
951
* grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
952
`err' to grub_usb_err_t.
953
Reported and tested by: KESHAV P.R.
955
2010-09-21 Colin Watson <cjwatson@ubuntu.com>
957
* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
958
tpart non-const, so that we can assign to it. (Since this is a
959
typedef, the constness refers to the pointer rather than what it
962
2010-09-21 Colin Watson <cjwatson@ubuntu.com>
964
* conf/Makefile.common (CPPFLAGS_GNULIB): Add
965
$(top_srcdir)/grub-core/gnulib as well as
966
$(top_builddir)/grub-core/gnulib.
967
Reported by: KESHAV P.R.
969
2010-09-21 Colin Watson <cjwatson@ubuntu.com>
971
* util/grub-install.in: Fix the bootloader ID option to be
972
consistently --bootloader-id, not --bootloader_id.
973
Reported by: KESHAV P.R.
975
2010-09-21 Colin Watson <cjwatson@ubuntu.com>
977
* grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
978
check hash checksum." consistently translatable.
980
2010-09-21 Yves Blusseau <blusseau@zetam.org>
982
* conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
985
2010-09-21 Colin Watson <cjwatson@ubuntu.com>
987
* grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
988
(GRUB_MOD_INIT): Register sha1sum command.
989
(GRUB_MOD_FINI): Unregister sha1sum command.
991
2010-09-21 Yves Blusseau <blusseau@zetam.org>
993
Keep boot and grub directory names in sync with utils scripts
995
* configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
996
* config.h.in: Add previous macros.
997
* include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
998
* util/grub-install.in: Use $bootdir and $grubdir variables.
1000
2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1002
* grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
1003
convert partition names to disk names if the new `convert' parameter
1005
(grub_util_biosdisk_get_grub_dev): If opening the disk device
1006
returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
1007
disk in its own right. This can happen with Xen disk images.
1009
2010-09-21 Yves Blusseau <blusseau@zetam.org>
1011
* util/grub-editenv.c: Update strings to avoid warnings when generating
1013
* util/grub-setup.c: Likewise.
1015
2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
1017
* configure.ac: Change version to 1.99~beta0.
1019
2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
1021
* grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
1023
* grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
1025
* include/multiboot.h: Resynced with specification.
1026
* include/multiboot2.h: Likewise.
1028
2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1030
Fix po directory handling.
1032
* configure.ac: Create po/Makefile.in rather than po/Makefile.
1033
* grub-core/gnulib/Makefile.am: Import gettext module.
1034
* m4/gnulib-cache.m4: Likewise.
1035
* m4/gnulib-comp.m4: Likewise.
1036
* m4/gettext.m4: New file, from gnulib.
1037
* m4/glibc2.m4: Likewise.
1038
* m4/iconv.m4: Likewise.
1039
* m4/intdiv0.m4: Likewise.
1040
* m4/intl.m4: Likewise.
1041
* m4/intldir.m4: Likewise.
1042
* m4/intlmacosx.m4: Likewise.
1043
* m4/intmax.m4: Likewise.
1044
* m4/inttypes-pri.m4: Likewise.
1045
* m4/lcmessage.m4: Likewise.
1046
* m4/lib-ld.m4: Likewise.
1047
* m4/lib-link.m4: Likewise.
1048
* m4/lib-prefix.m4: Likewise.
1049
* m4/lock.m4: Likewise.
1050
* m4/nls.m4: Likewise.
1051
* m4/po.m4: Likewise.
1052
* m4/printf-posix.m4: Likewise.
1053
* m4/progtest.m4: Likewise.
1054
* m4/threadlib.m4: Likewise.
1055
* m4/uintmax_t.m4: Likewise.
1056
* m4/visibility.m4: Likewise.
1057
* po/Makefile.am: Remove.
1058
* po/Makefile.in.in: New file, from gettext.
1059
($(DOMAIN).pot-update): Support POTFILES-shell.
1060
* po/Makevars: New file.
1061
* po/POTFILES-shell: Rename to ...
1062
* po/POTFILES-shell.in: ... this. Update.
1063
* po/POTFILES: Rename to ...
1064
* po/POTFILES.in: ... this. Update.
1065
* po/Rules-quot: New file, from gettext.
1066
* po/boldquot.sed: Likewise.
1067
* po/en@boldquot.header: Likewise.
1068
* po/en@quot.header: Likewise.
1069
* po/insert-header.sin: Likewise.
1070
* po/quot.sed: Likewise.
1071
* po/remove-potcdate.sin: Likewise.
1073
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1075
* util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
1077
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1079
* util/grub.d/20_linux_xen.in: Use submenus.
1081
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1085
* grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
1086
parameter submenu. All users updated.
1087
* grub-core/normal/main.c (free_menu): Rename to ...
1088
(grub_normal_free_menu): ... this. Made global.
1089
* grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
1091
* grub-core/normal/menu_entry.c (screen): New field submenu.
1092
(make_screen): Set submenu.
1093
(run): Open new context if requested.
1094
* include/grub/menu.h (grub_menu_entry): New field submenu.
1095
* include/grub/normal.h (grub_normal_free_menu): New proto.
1097
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1099
Menu entries extractor.
1101
* grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
1103
(GRUB_MOD_INIT): Register new variants.
1104
(GRUB_MOD_FINI): Unregister new variants.
1105
* grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
1106
into grub_cmd_legacy_source.
1107
(grub_cmd_legacy_source): Implement extractor variants.
1108
(GRUB_MOD_INIT): Register new variants.
1109
(GRUB_MOD_FINI): Unregister new variants.
1110
* grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
1112
* grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
1113
search as an extractor.
1114
* grub-core/commands/test.c (GRUB_MOD_INIT): Declare
1115
test as an extractor.
1116
* grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
1118
* grub-core/normal/context.c (grub_env_context_open): Reorganised.
1119
(grub_env_new_context): New function.
1120
(grub_env_context_open): Likewise.
1121
(grub_env_extractor_open): Likewise.
1122
(grub_env_extractor_close): Likewise.
1123
* grub-core/script/execute.c (grub_script_execute_cmdline): Handle
1124
grub_extractor_level.
1125
* include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
1126
* include/grub/env.h (grub_env_extractor_open): New proto.
1127
(grub_env_extractor_close): Likewise.
1128
* include/grub/normal.h (grub_extractor_level): New external variable.
1130
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1132
Make cutmem accept a region specification.
1133
Suggested by: Samuel Thibault
1135
* grub-core/mmap/mmap.c (parsemem): New function.
1136
(grub_cmd_cutmem): Handle new arguments.
1138
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1142
* grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
1143
(GRUB_MOD_INIT): Register new command.
1144
(GRUB_MOD_FINI): Unregister new command.
1146
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1148
Support some annoying BSD and Minix subpartitions.
1150
* Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
1151
* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
1152
Properly handle concatenation.
1153
* grub-core/kern/device.c (grub_device_iterate): Likewise.
1154
* grub-core/normal/completion.c (iterate_partition): Likewise.
1155
* grub-core/kern/disk.c (grub_disk_open): Make disk->name not
1156
contain partition. All users updated.
1157
* grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
1159
(grub_openbsdlabel_partition_map): Likewise.
1160
(bsdlabel_partition_map_iterate): Rename to ..
1161
(iterate_real): ... this. New arguments sector, freebsd and pmap.
1162
(bsdlabel_partition_map_iterate): New function.
1163
(netopenbsdlabel_partition_map_iterate): Likewise.
1164
(netbsdlabel_partition_map_iterate): Likewise.
1165
(openbsdlabel_partition_map_iterate): Likewise.
1166
(GRUB_MOD_INIT): Register new partmaps.
1167
(GRUB_MOD_FINI): Unregister new partmaps.
1168
* grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
1169
(grub_partition_msdos_iterate): ... this. All users updated.
1170
Don't support embedding other than in a minix partition.
1171
* include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
1173
* include/grub/partition.h (grub_partition): New field msdostype.
1174
* util/grub-install.in: Handle openbsd and netbsd types being in
1177
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1179
Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
1181
* Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
1182
* grub-core/Makefile.core.def (mdraid): Renamed to ...
1183
(mdraid09): ... this.
1184
(mdraid1x): New module.
1185
* grub-core/disk/mdraid_linux.c: Move 1.x parts ...
1186
* grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
1188
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1190
* grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
1193
2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1195
* grub-core/commands/efi/lsefimmap.c: Correct header.
1198
2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1200
* util/grub-editenv.c (argp_parser): Don't pass translated strings
1201
as printf format strings; the translations might contain '%' which
1202
could cause a crash.
1204
* util/grub-fstest.c (argp_parser): Likewise.
1205
* util/grub-setup.c (argp_parser): Likewise.
1208
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1210
Use argp in grub-fstest.
1212
* util/grub-fstest.c: Don't include getopt.h.
1214
(root): New variable.
1215
(args_count): Likewise.
1217
(num_disks): Likewise.
1220
(debug_str): Likewise.
1222
(options): Transformed to argp.
1224
(main): Split argument parsing into ...
1225
(argp_parser): ... this. Changed to argp format.
1226
(argp): New variable.
1227
(main): Use argp_parse.
1229
2010-09-20 Tristan Gingold <gingold@free.fr>
1230
2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
1231
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1233
* grub-core/commands/efi/lsefimmap.c: New file.
1234
* grub-core/Makefile.core.def (lsefimmap): New module.
1235
* include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
1237
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1239
Pause the execution (10s max) if any errors are displayed so the user
1240
has a chance to see them.
1242
* grub-core/kern/err.c (grub_err_printed_errors): New variable.
1243
(grub_print_error): Increment grub_err_printed_errors.
1244
* grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
1245
execution if any errors were displayed.
1246
(show_menu): Remove old code for pause.
1247
* grub-core/normal/menu_entry.c (run): Likewise.
1248
* grub-core/normal/term.c (grub_normal_char_counter): Removed. All
1250
(grub_normal_get_char_counter): Likewise.
1251
* include/grub/err.h (grub_err_printed_errors): New external variable.
1252
* include/grub/normal.h (grub_normal_get_char_counter): Removed.
1254
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1256
Support multiboot VBE info.
1258
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
1259
Take VBE info into account.
1260
(fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
1261
(retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
1262
Call fill_vbe_info when appropriate.
1263
(grub_multiboot_make_mbi): Account for the size occupied by VBE info.
1264
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
1266
(grub_multiboot_get_mbi_size): Take new tags into account.
1267
(fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
1268
(retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
1269
Call fill_vbe_tag when appropriate.
1270
(grub_multiboot_make_mbi): Properly align tags.
1271
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
1273
* include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
1275
* include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
1277
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1279
Suport manual terminal geometry specification.
1281
* grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
1282
Save state in grub_ofconsole_terminfo_output.
1283
(grub_ofconsole_term): Use grub_terminfo_getwh.
1284
(grub_ofconsole_getwh): Removed.
1285
* grub-core/term/serial.c (grub_serial_getwh): Removed.
1286
(grub_serial_term): Use grub_terminfo_getwh.
1287
* grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
1288
(options): New struct.
1289
(OPTION_*): New enum.
1290
(grub_cmd_terminfo): Transform into extcmd and handle new parameters.
1291
* include/grub/terminfo.h (grub_terminfo_output_state): New fields
1293
(grub_terminfo_getwh): New proto.
1294
* grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
1296
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1298
Handle legacy "terminal" command.
1300
* grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
1302
(legacy_commands): Add terminal and title.
1303
(grub_legacy_parse): Handle terminal. Simplify title handling.
1305
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1307
* grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
1308
parameters overflow.
1310
2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1312
* .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
1315
* docs/grub.texi (Shell-like scripting): Document `!'.
1316
(Network): Simplify using new i386-pc-pxe format. Mention
1321
2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1323
* Makefile.am (SUBDIRS): Restore "."; it's important to force
1324
ordering, so that e.g. ascii.h is built before grub-core/font/font.c
1327
2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1329
* grub-core/commands/efi/lsefisystab.c: Correct header.
1330
* grub-core/commands/efi/lssal.c: Likewise.
1331
* grub-core/commands/testload.c: Likewise.
1333
2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1335
* util/grub-mkrescue.in: Add explicit root argument to --set to
1336
prevent the UUID being interpreted as an argument to --set (matches
1337
previous change to prepare_grub_to_access_device).
1339
2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1341
* kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
1342
on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
1343
the verbosity of later #ifs.
1344
(find_partition_start): Define this function on FreeBSD too.
1345
(device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
1347
(grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
1350
2010-09-20 Yves Blusseau <blusseau@zetam.org>
1352
* util/grub-editenv.c: Use argp instead of getopt.
1354
2010-09-20 Yves Blusseau <blusseau@zetam.org>
1356
* util/grub-setup.c: Use argp instead of getopt.
1358
2010-09-20 Yves Blusseau <blusseau@zetam.org>
1360
Use gnulib-tool to create gnulib source files.
1362
* Add gnulib files generated by gnulib-tool in build-aux, m4 and
1363
grub-core/gnulib directories
1364
* .bzignore: Add **/.deps and autogenerated gnulib files
1365
* configure.ac: Assign auxiliary directory to build-aux, add invocation
1366
of gnulib macros, add grub-core/gnulib/Makefile
1367
* Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
1368
include m4 directory to aclocal.
1369
* Makefile.util.def: Remove direct compilation of gnulib source files
1370
and use the new grub-core/gnulib/libgnu.a.
1371
* build-aux/config.rpath: move config.rpath from top directory to
1373
* conf/Makefile.common: Remove the macro _GL_UNUSED already defined
1375
* conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
1376
* grub-core/Makefile.core.def: Remove unnecessary extra_dist
1377
* grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
1379
* grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
1382
2010-09-20 Yves Blusseau <blusseau@zetam.org>
1384
* .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
1385
grub-core/genmod.sh and grub-core/gensyminfo.sh
1387
2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
1389
Add a test for echo command options.
1391
* tests/grub_cmd_echo.in: New test.
1392
* Makefile.util.def: Rules for new test.
1394
2010-09-20 Szymon Janc <szymon@janc.net.pl>
1396
Remove crc.mod and move crc command to hashsum.mod.
1397
Remove lib/crc.c - users updated to use gcrypt implementation.
1399
* grub-core/commands/crc.c: Removed.
1400
* grub-core/Makefile.core.def (crc): Module removed.
1401
* grub-core/commands/hashsum.c (aliases[]): Add crc alias.
1402
* grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
1403
* grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
1404
* grub-core/lib/crc.c: Removed.
1405
* include/grub/lib/crc.h: Removed.
1406
* Makefile.util.def (crc): Remove lib/crc.c
1407
* grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
1408
* util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
1409
* Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
1410
* Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
1411
* Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
1412
* grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
1414
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1416
* grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
1418
2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1420
Split config.h for util and core.
1422
* acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
1425
(BSS_START_SYMBOL): Likewise.
1426
(END_SYMBOL): Likewise.
1427
(NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
1428
(grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
1429
* config.h.in: New file.
1430
* configure.ac: Use config-util.h as config define file.
1431
Rename MACHINE into GRUB_MACHINE. All users updated.
1432
(NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
1434
(NESTED_FUNC_ATTR): Likewise.
1435
Substitue new variables.
1436
(COND_HAVE_ASM_USCORE): New conditional.
1437
* grub-core/Makefile.am (ASM_PREFIX): New variable.
1438
(kernel_syms.lst): Use ASM_PREFIX.
1439
* grub-core/kern/emu/console.c: Include config-util.h.
1440
* grub-core/kern/emu/misc.c: Likewise.
1441
* grub-core/kern/emu/mm.c: Likewise.
1442
* include/grub/emu/misc.h: Likewise.
1443
* include/grub/libgcc.h: Likewise.
1445
2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1447
* grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
1449
* grub-core/kern/emu/console.c (grub_ncurses_getkey):
1450
Fix GRUB_TERM_KEY_* constants usage.
1451
* grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
1453
2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1455
* grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
1457
* grub-core/bus/usb/uhci.c: Remove empty define.
1458
(grub_uhci_check_transfer): Add missing cast.
1459
* grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
1461
* grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
1463
* include/grub/types.h (PRIuGRUB_SIZE): New definition.
1465
2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1467
* grub-core/Makefile.core.def (legacycfg): Add
1468
lib/i386/pc/vesa_modes_table.c on emu.
1470
2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
1472
Reduce number of temporary files generated by build system.
1474
* grub-core/gencmdlist.sh: Removed.
1475
* grub-core/genfslist.sh: Removed.
1476
* grub-core/genhandlerlist.sh: Removed.
1477
* grub-core/genmodsrc.sh: Removed.
1478
* grub-core/genpartmaplist.sh: Removed.
1479
* grub-core/genparttoollist.sh: Removed.
1480
* grub-core/gentermiinallist.sh: Removed.
1481
* grub-core/genvideolist.sh: Removed.
1483
* grub-core/genmod.sh.in: New file.
1484
* grub-core/gensyminfo.sh.in: New file.
1486
* conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
1487
* conf/Makefile.extra-dist: Update with new files.
1488
* gentpl.py: Remove rules related to unnecessary temporary files.
1489
* grub-core/Makefile.am (syminfo.lst): New replacement for def-*
1491
* grub-core/Makefile.core.def: New rules for gensyminfo.sh and
1493
* grub-core/bus/usb/uhci.c: Remove empty #define.
1494
* grub-core/genmoddep.awk: Updated with new syminfo format.
1495
* util/bash-completion.d/Makefile.am: Add config.log to
1498
2010-09-19 Yves Blusseau <blusseau@zetam.org>
1500
* Makefile.util.def: Add forgotten $(LIBINTL) library.
1502
2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
1504
* util/grub-mkconfig.in: Check the config script for syntax errors
1507
2010-09-19 Colin Watson <cjwatson@ubuntu.com>
1508
2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1510
* Makefile.util.def (grub-install): Use util/grub-install.in on all
1512
* util/grub-install.in: Add EFI and IEEE1275 support.
1513
* util/i386/efi/grub-install.in: Removed.
1514
* util/ieee1275/grub-install.in: Likewise.
1516
2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1518
* grub-core/commands/i386/cmostest.c (+parse_args): New function.
1519
(grub_cmd_cmosclean): Likewise.
1520
(GRUB_MOD_INIT): Register command cmosclean.
1521
* util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
1522
* util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
1524
2010-09-18 Carles Pina i Estany <carles@pina.cat>
1525
2010-09-18 Aleš Nesrsta <starous@volny.cz>
1526
2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1528
Add keyboard layouts support.
1530
* Makefile.util.def (grub-mklayout): New file.
1531
(grub-kbdcomp): New script.
1532
* grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
1533
Add keyboard_layouts.h.
1534
* grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
1535
commands/boot.c on yeeloong.
1536
(keylayouts): New module.
1537
* grub-core/bus/usb/ohci.c
1538
* grub-core/bus/usb/uhci.c
1539
* grub-core/bus/usb/usbhub.c (rescan): New variable.
1540
(grub_usb_add_hub): Poll interrupt pipe for device handling.
1541
(attach_root_port): Likewise.
1542
(poll_nonroot_hub): Likewise.
1543
(grub_usb_poll_devices): Likewise.
1544
(detach_device): Close transfer.
1545
* grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
1547
(grub_usb_bulk_setup_readwrite): Likewise.
1548
(grub_usb_bulk_finish_readwrite): Likewise.
1549
* grub-core/commands/keylayouts.c: New file.
1550
* grub-core/commands/keystatus.c (grub_getkeystatus): New function.
1551
* grub-core/commands/menuentry.c (hotkey_aliases): All several new
1553
* grub-core/term/at_keyboard.c: Restructured to use keylayouts and
1555
* grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
1556
* include/grub/keyboard_layouts.h: New file.
1557
* util/grub-mklayout.c: New file.
1558
* util/grub-kbdcomp.in: Likewise.
1560
2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1564
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
1565
* grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
1567
* grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
1568
(grub_upper_mem): Likewise.
1569
* grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
1570
* include/grub/memory.h (grub_memory_type_t): New enum.
1573
2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1575
* grub-core/Makefile.core.def (lsapm): New module.
1576
* grub-core/commands/i386/pc/lsapm.c: New file.
1577
* grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
1578
* grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
1580
* include/grub/i386/pc/apm.h: New file.
1581
* include/multiboot.h (multiboot_apm_info): New struct.
1583
2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1585
GRUB-legacy configuration file support.
1587
* Makefile.util.def (grub-menulst2cfg): New util.
1588
* docs/man/grub-menulst2cfg.h2m: New file.
1589
* grub-core/Makefile.core.def (legacycfg): New module.
1590
* grub-core/commands/legacycfg.c: New file.
1591
* grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
1592
(grub_normal_add_menu_entry): ... this.
1593
* grub-core/commands/password.c (grub_cmd_password): Split main part to ...
1594
(grub_normal_set_password): ...this.
1595
* grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
1596
* grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
1597
* grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
1598
* grub-core/lib/legacy_parse.c: New file.
1599
* grub-core/normal/auth.c (grub_cmd_authenticate): New command.
1600
* include/grub/i386/pc/vesa_modes_table.h: New file.
1601
* include/grub/legacy_parse.h: Likewise.
1602
* include/grub/normal.h (grub_normal_add_menu_entry): New proto.
1603
* util/grub-menulst2cfg.c: New file.
1605
2010-09-17 Colin Watson <cjwatson@ubuntu.com>
1607
* grub-core/kern/emu/hostdisk.c
1608
(convert_system_partition_to_system_disk): Initialise node.
1610
2010-09-17 Colin Watson <cjwatson@ubuntu.com>
1612
* grub-core/kern/emu/hostdisk.c
1613
(convert_system_partition_to_system_disk): Fix devmapper memory pool
1615
Reported and based on patch by: Modestas Vainius.
1617
2010-09-17 Colin Watson <cjwatson@ubuntu.com>
1619
Fix DM-RAID probing with recent versions of device-mapper udev
1622
* grub-core/kern/emu/hostdisk.c (read_device_map): Don't
1623
canonicalise device paths under /dev/mapper/.
1624
(convert_system_partition_to_system_disk): Compare the
1625
uncanonicalised path to /dev/mapper/ rather than the canonicalised
1626
path, since device nodes under /dev/mapper/ are often symlinks.
1628
2010-09-17 Yves Blusseau <blusseau@zetam.org>
1630
* .bzrignore: *.d removed (old rule), add *.image and symlist.h.
1632
2010-09-16 Yves Blusseau <blusseau@zetam.org>
1634
* configure.ac: Avoid some annoying error messages if freetype-config
1635
program is not found.
1637
2010-09-16 Colin Watson <cjwatson@ubuntu.com>
1639
Support RAID on virtio devices, and others.
1641
* grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
1643
[__MINGW32__] (grub_find_device): ... this.
1644
[! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
1645
[! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
1646
reasonable default if dir is NULL.
1647
[! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
1649
[! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
1650
(grub_guess_root_device): Update callers.
1651
* include/grub/emu/getroot.h (grub_find_device): Add prototype.
1653
* util/raid.c (grub_util_getdiskname): Remove.
1654
(grub_util_raid_getmembers): Use grub_find_device rather than
1655
grub_util_getdiskname.
1657
2010-09-16 Colin Watson <cjwatson@ubuntu.com>
1659
* docs/grub.texi (serial): Remove obsolete comment about GRUB
1660
needing to be compiled with serial support.
1661
(ls): Indicate that multiple files are accepted.
1662
* grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
1663
indicate that multiple files are accepted.
1665
2010-09-16 Colin Watson <cjwatson@ubuntu.com>
1667
* .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
1668
libgrub_a_init.c, and util/bash-completion.d/grub.
1670
2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1672
* util/grub-setup.c (setup): Fix incorrect container semantics.
1674
2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1676
* grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
1678
Reported by: J. Nick Terry
1680
2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1682
Move embedding routines to partmap sources files.
1684
* grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
1685
[GRUB_UTIL]: New variable.
1686
(gpt_partition_map_iterate): Set part.parent.
1687
(gpt_partition_map_embed) [GRUB_UTIL]: New function.
1688
(grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
1689
* grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
1691
(grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
1692
* include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
1693
(grub_partition_map) [GRUB_UTIL]: New field embed.
1694
* util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
1695
(setup): Use ->embed.
1697
2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1699
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
1701
* include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
1702
* util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
1704
2010-09-15 Yves Blusseau <blusseau@zetam.org>
1706
Add function to get completions from usage.
1708
* util/bash-completion.d/grub-completion.bash.in: Add function to get
1709
completions from usage. Use LC_ALL=C to get options properly.
1711
2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1713
* grub-core/gnulib/basename-lgpl.c: Imported.
1714
* grub-core/gnulib/basename.c: Likewise.
1715
* grub-core/gnulib/dirname-lgpl.c: Likewise.
1716
* grub-core/gnulib/dirname.c: Likewise.
1717
* grub-core/gnulib/dirname.h: Likewise.
1718
* grub-core/gnulib/stripslash.c: Likewise.
1720
2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1722
* grub-core/gnulib/error.c: Resynced.
1723
* grub-core/gnulib/getopt.c: Likewise.
1724
* grub-core/gnulib/getopt_int.h: Likewise.
1725
* grub-core/gnulib/regex.h: Likewise.
1726
* grub-core/gnulib/regex_internal.c: Likewise.
1727
* grub-core/gnulib/regex_internal.h: Likewise.
1729
2010-09-15 Szymon Janc <szymon@janc.net.pl>
1731
* grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
1732
CRC calculations and validity checks.
1733
* grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
1736
2010-09-15 Szymon Janc <szymon@janc.net.pl>
1738
* grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
1740
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1742
Fix incorrect echo options handling.
1743
Reported by: Yves Blusseau.
1745
* include/grub/command.h (grub_command_flags_t): New flags
1746
GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
1747
* grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
1748
* grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
1750
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1752
* include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
1754
(GRUB_COMMAND_FLAG_MENU): Likewise.
1755
(GRUB_COMMAND_FLAG_BOTH): Likewise.
1756
(GRUB_COMMAND_FLAG_TITLE): Removed.
1757
(GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
1758
(GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
1759
(GRUB_COMMAND_FLAG_DYNCMD): Likewise.
1760
(GRUB_COMMAND_FLAG_BLOCKS): Likewise.
1761
(grub_command_flags_t): New enum. All users updated.
1763
2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
1765
Fix solaris compilation.
1767
* grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
1768
(grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
1769
(grub-emu-list): Likewise.
1771
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1773
Remove deprecated root command.
1775
* grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
1778
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1780
* util/i386/pc/grub-setup.c: Merge this ...
1781
* util/sparc64/ieee1275/grub-setup.c: ... and this ...
1782
* util/grub-setup.c: ... into this.
1783
* include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
1786
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1788
* grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
1791
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1793
* grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
1796
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1798
* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
1799
explicit root argument to set to prevent UUID to be interpreted as
1802
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1804
* grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
1806
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1808
Don't export grub_gate_a20.
1810
* grub-core/kern/i386/pc/init.c: Remove leftovers.
1811
* grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
1813
(grub_gate_a20): ... this. All users updated.
1814
* include/grub/i386/pc/init.h: Removed. All users updated.
1816
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1818
Create euro.pf2 which supports most European languages.
1820
* Makefile.am (grubdata_DATA): Add euro.pf2.
1821
(euro.pf2): New target.
1822
(CLEANFILES): Add euro.pf2.
1824
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1826
* configure.ac: Disable emu-usb by default to prevent inadvertent
1829
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1831
Disable usbserial on grub-emu since our libusb code isn't good enough
1834
* grub-core/Makefile.core.def (usbserial_common): Disable on emu.
1835
(usbserial_pl2303): Likewise.
1836
(usbserial_ftdi): Likewise.
1838
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1840
* include/grub/disk.h (grub_disk): Remove has_partitions.
1842
* disk/loopback.c (grub_loopback): Remove has_partitions.
1844
(options): Remove partitions. All users updated.
1845
* util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
1846
* util/i386/pc/grub-setup.c (setup): copy partition table only when
1847
actual partition table is found.
1849
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1851
Remove readability checks (too many false negatives).
1853
* util/grub-install.in: Remove readability checks.
1854
* util/grub-mkconfig.in: Likewise.
1855
* util/grub.d/10_hurd.in: Likewise.
1856
* util/grub.d/10_kfreebsd.in: Likewise.
1857
* util/grub.d/10_linux.in: Likewise.
1858
* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
1861
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1863
Enable acpi shutdown on all ACPI platforms.
1865
* grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
1866
on coreboo, multiboot and EFI.
1867
* grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
1868
(grub_acpi_halt): Likewise.
1869
* grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
1870
(grub_cmd_halt): Don't call grub_acpi_halt directly.
1871
* grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
1872
* grub-core/lib/i386/halt.c (grub_halt)
1873
[GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
1875
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1877
* grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
1880
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1882
* grub-core/video/efi_gop.c: Fix over-80-chars line.
1883
* grub-core/video/efi_uga.c: Likewise.
1885
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1887
Filter devaliases and never open same device twice.
1889
* grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
1890
(last_ihandle): Likewise.
1891
(ofdisk_hash_ent): New member shortest.
1892
(ofdisk_hash_add): Add canonical path too.
1893
(scan): New function.
1894
(grub_ofdisk_iterate): Iterate over hashed entries.
1895
(compute_dev_path): Don't add :0.
1896
(grub_ofdisk_open): Don't really open the disk.
1897
(grub_ofdisk_close): Avoid closing unrelated disk.
1898
(grub_ofdisk_read): Implement reopen logic.
1899
* grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
1901
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
1904
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1908
* configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
1909
* grub-core/Makefile.core.def (kernel): Make ldflags just use the
1910
right address. Add sparc64_ieee1275_ldflags.
1911
* grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
1912
* util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
1913
to grub_host_to_target_addr
1914
(load_image): Likewise.
1916
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1918
* grub-core/normal/completion.c (complete_file): Handle device
1920
Fix based on patch by Doug Nazar.
1922
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1924
grub-mknetdir script.
1926
* Makefile.util.def (grub-mknetdir): New module.
1927
* tests/util/grub-shell.in: Support boot=net
1928
* util/grub-mknetdir.in: New file.
1930
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1932
videoinfo on non-vbe.
1934
* grub-core/Makefile.core.def (vbeinfo): Removed.
1936
(videoinfo): New module.
1937
* grub-core/commands/i386/pc/vbeinfo.c: Removed.
1938
* grub-core/commands/i386/pc/vbetest.c: Removed.
1939
* grub-core/commands/videoinfo.c: New file.
1940
* grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
1942
(grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
1944
(GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
1945
(GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
1946
* grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
1947
mode_number. New parameter mode. All users updated.
1948
(grub_video_gop_iterate): New function.
1949
(grub_video_efi_gop): New member iterate.
1950
* grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
1951
(grub_vbe_set_video_mode): Remove setting useless fields.
1952
(vbe2videoinfo): New function.
1953
(grub_video_vbe_iterate): Likewise.
1954
(grub_video_vbe_setup): Use vbe2videoinfo.
1955
(grub_video_vbe_print_adapter_specific_info): New function.
1956
(grub_video_vbe_adapter): New fields iterate and
1957
print_adapter_specific_info.
1958
* include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
1960
(grub_video_mode_info): New field mode_number.
1961
(grub_video_adapter): New fields iterate and
1962
print_adapter_specific_info.
1964
2010-09-13 Tristan Gingold <gingold@free.fr>
1965
2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
1966
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1968
* grub-core/commands/efi/lsefisystab.c: New file.
1969
* grub-core/commands/efi/lssal.c: Likewise.
1970
* grub-core/Makefile.core.def (lsacpi): New module.
1971
(lsefisystab): Likewise.
1972
* include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
1973
(GRUB_EFI_HCDP_TABLE_GUID): Likewise.
1974
(grub_efi_sal_system_table): New struct.
1975
(grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
1976
(grub_efi_sal_system_table_memory_descriptor): Likewise.
1977
(grub_efi_sal_system_table_platform_features): Likewise.
1978
(grub_efi_sal_system_table_translation_register_descriptor): Likewise.
1979
(grub_efi_sal_system_table_purge_translation_coherence): Likewise.
1980
(grub_efi_sal_system_table_ap_wakeup): Likewise.
1981
* include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
1983
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1985
Support explicit user claim that a device is BIOS-visible.
1987
* grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
1988
Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
1989
* grub-core/kern/emu/hostdisk.c
1990
(convert_system_partition_to_system_disk): Support mdX.
1991
(find_system_device): New parameter add. All users updated.
1992
(grub_util_biosdisk_is_present): New function.
1993
* include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
1996
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1998
Search hints support.
2000
* commands/search.c (FUNC_NAME): New arguments hints and nhints.
2003
2010-09-13 Yves Blusseau <blusseau@zetam.org>
2005
Bash completion script for util commands
2007
* Makefile.am: Add util/bash-completion.d directory
2008
* configure.ac: Likewise.
2009
* util/bash-completion.d/Makefile.am: New file.
2010
* util/bash-completion.d/grub-completion.bash.in: Likewise.
2012
2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2014
* grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
2015
(print_backlog): set backlog_ucs4 and backlog_glyphs.
2016
Reported by: Yves Blusseau.
2018
2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2020
* grub-core/normal/misc.c (grub_normal_print_device_info): Show
2021
partition size and offset.
2023
2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2025
* grub-core/commands/wildcard.c (make_regex): Escape brackets.
2027
2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2029
* grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
2031
2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2033
* grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
2034
(grub_xvasprintf): Likewise.
2036
2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2038
* grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
2040
2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2042
* grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
2043
args ending with NULL.
2045
2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2047
* grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
2050
2010-09-11 Szymon Janc <szymon@janc.net.pl>
2052
* grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
2054
2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2056
Shutdown using ACPI.
2058
* grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
2059
* grub-core/commands/acpihalt.c: New file.
2060
* grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
2061
* include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
2062
(grub_acpi_halt): New proto.
2063
(GRUB_ACPI_SLP_EN): New const.
2064
(GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
2065
(GRUB_ACPI_OPCODE_*): New enum.
2066
(GRUB_ACPI_EXTOPCODE_*): Likewise.
2068
2010-09-11 Tristan Gingold <gingold@free.fr>
2069
2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
2070
2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2072
* commands/lsacpi.c: New file.
2073
* grub-core/Makefile.core.def (lsacpi): New module.
2074
* include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
2075
(GRUB_ACPI_MADT_SIGNATURE): Likewise.
2076
(grub_acpi_madt_entry_header): New struct.
2077
(grub_acpi_madt): Likewise.
2078
(grub_acpi_madt_entry_interrupt_override): Likewise.
2079
(grub_acpi_madt_entry_sapic): Likewise.
2080
(grub_acpi_madt_entry_lsapic): Likewise.
2081
(grub_acpi_madt_entry_platform_int_source): Likewise.
2082
* include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
2083
(PRIuGRUB_UINT32_T): Likewise.
2084
(PRIxGRUB_UINT64_T): Likewise.
2086
2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2088
Implement loading palette on ieee1275_fb.
2090
* grub-core/video/ieee1275.c (stdout_ihandle): New variable.
2091
(have_setcolors): Likewise.
2092
(grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
2093
(grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
2094
(grub_video_ieee1275_set_palette): Implement.
2096
2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2097
2010-09-11 Colin Watson <cjwatson@ubuntu.com>
2099
* util/grub-install.in (grub_partition): New variable.
2100
Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
2101
* util/i386/pc/grub-setup.c (setup): Don't touch prefix.
2102
Fixes a bug reported by Yves Blusseau.
2104
2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2108
* conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
2109
=grub_cpu_flush_cache on all mips and not only yeeloong.
2110
* configure.ac (COND_mips): New conditional.
2111
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
2113
* grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
2114
* grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
2115
[GRUB_LINKER_HAVE_INIT]: New function.
2116
(grub_emu_post_init): Likewise.
2117
* grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
2118
* grub-core/kern/emu/main.c: Use grub_emu_post_init.
2119
* include/grub/cache.h (_mips): Include mips/cache.h.
2120
* include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
2121
LVM and RAID prototypes.
2122
* include/grub/emu/misc.h (grub_emu_post_init): New proto.
2123
* include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
2126
2010-09-10 Colin Watson <cjwatson@ubuntu.com>
2128
* util/grub-install.in: Don't try to verify core.img until after
2129
running grub-mkimage to create it.
2131
2010-09-10 Robert Millan <rmh@gnu.org>
2133
* util/grub.d/10_hurd.in: Add misc readability checks.
2134
* util/grub.d/10_kfreebsd.in: Likewise.
2135
* util/grub.d/10_linux.in: Likewise.
2137
2010-09-10 Colin Watson <cjwatson@ubuntu.com>
2139
* util/grub-install.in: ${imgext} won't be defined here until the
2140
install branch is merged. For the meantime, only verify core.img on
2141
i386-pc and sparc64-ieee1275 platforms.
2143
2010-09-10 Robert Millan <rmh@gnu.org>
2145
Solaris support in grub_find_zpool_from_dir(). Thanks
2146
Seth Goldberg for referring to getextmntent() facility.
2148
* configure.ac: Check for getextmntent(), `sys/mnttab.h' and
2150
* grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
2152
[HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
2153
[HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
2154
method for finding zpool name.
2156
2010-09-10 Colin Watson <cjwatson@ubuntu.com>
2158
grub-fstest needs the host and hostfs modules while other utilities
2159
actively require those modules to be absent, so grub-fstest needs
2160
its own initialisation and finalisation code.
2162
* Makefile.am (grub_fstest.pp): New target.
2163
(grub_fstest_init.lst): Likewise.
2164
(grub_fstest_init.c): Likewise.
2165
* Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
2167
2010-09-10 Robert Millan <rmh@gnu.org>
2169
* configure.ac: Check for `struct statfs.f_fstypename' and
2170
`struct statfs.f_mntfromname'.
2172
* grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
2173
kFreeBSD-specific code.
2175
2010-09-10 Robert Millan <rmh@gnu.org>
2177
* util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
2178
on ZFS. Now non-main filesystems are supported as / too.
2180
2010-09-09 Colin Watson <cjwatson@ubuntu.com>
2182
* Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
2183
and grub-core/disk/host.c to ...
2184
(grub-fstest): ... here. Having the host disk implementation
2185
present confuses grub-probe and other utility programs.
2187
* util/grub-mkconfig.in: Only verify readability of grub.cfg.new
2188
when writing to a file, not when writing to stdout.
2190
2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
2192
* tests/partmap_test.in: New test for partitions.
2193
* Makefile.util.def: Rules for new test.
2195
2010-09-09 Robert Millan <rmh@gnu.org>
2197
* util/grub-probe.c (probe): Fix a pair of unhandled error
2200
2010-09-09 Robert Millan <rmh@gnu.org>
2202
Basic Btrfs support (detection and UUID).
2204
* grub-core/fs/btrfs.c: New file.
2205
* Makefile.util.def (library): Register btrfs.c.
2206
* grub-core/Makefile.core.def: Likewise.
2208
2010-09-08 Robert Millan <rmh@gnu.org>
2210
* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
2211
with (optional) parameters to specify device and relative path.
2212
* util/grub-install.in: Use is_path_readable_by_grub() to
2213
verify readability of a few critical files.
2214
* util/grub-mkconfig.in: Use is_path_readable_by_grub() to
2215
verify readability of grub.cfg.new.
2217
2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
2219
Split minix.mod into minix.mod and minix2.mod.
2221
* Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
2222
* grub-core/Makefile.core.def (minix2): New module.
2223
* grub-core/fs/minix.c: Use definitions instead of runtime version
2225
* grub-core/fs/minix2.c: New file.
2227
2010-09-08 Yves Blusseau <blusseau@zetam.org>
2229
Add new --boot-directory option to replace --root-directory
2231
* util/grub-install.in: Add new --boot-directory option
2232
* util/grub-reboot.in: Likewise.
2233
* util/grub-set-default.in: Likewise.
2235
2010-09-08 Yves Blusseau <blusseau@zetam.org>
2237
* util/grub-mkconfig.in: Use new variable.
2239
2010-09-08 Yves Blusseau <blusseau@zetam.org>
2241
* configure.ac: Define some useful variables.
2243
2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
2245
* grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2246
GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
2247
* grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
2248
Use terminfo and don't use cursor-on/cursor-off unless it's known
2250
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
2251
GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
2253
2010-09-08 Colin Watson <cjwatson@ubuntu.com>
2255
* grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
2256
starts with "(,", fill the drive containing the loaded image in
2257
between those two characters, but expect that a full partition
2258
specification including partition map names will follow.
2260
2010-09-08 Robert Millan <rmh@gnu.org>
2262
* configure.ac: Remove `--enable-grub-fstest' option.
2263
* Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
2265
* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
2266
`grub-fstest' instead of `grub-probe' for readability verification.
2267
* util/grub-probe.c (probe): Remove readability verification kludge.
2269
2010-09-08 Robert Millan <rmh@gnu.org>
2271
* util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
2272
initializing `GRUB_FS'.
2274
2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
2276
Not command (!) support to GRUB script.
2278
* tests/grub_script_not.in: New test.
2279
* Makefile.util.def: Rules for new test.
2281
* grub-core/script/execute.c (grub_script_execute_cmdline): Handle
2282
! command as a special case.
2283
* grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
2285
2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2287
* grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
2290
2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2292
* docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
2294
2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2296
* docs/grub.texi (Shell-like scripting): Documentation for break,
2297
continue, shift and return commands.
2299
2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
2301
Rename CD-ROM to cd on BIOS.
2303
* grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
2305
(grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
2307
2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2309
* grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
2310
* util/grub-probe.c (main): Likewise.
2311
* util/i386/pc/grub-setup.c (main): Likewise.
2312
* util/sparc64/ieee1275/grub-setup.c (main): Likewise.
2313
Reported and debugged by: alexxy
2315
2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2317
* grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
2320
2010-09-05 Jo Shields <directhex@apebox.org>
2322
* util/grub.d/30_os-prober.in: Add missing classes.
2324
2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2326
* docs/grub.texi (Theme file format): Document new position format.
2328
2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2330
* docs/grub.texi (Theme file format): Replace Box_slice_names.png with
2331
a table. Use @code instead of @verbatim.
2333
2010-09-05 Colin D Bennett <colin@gibibit.com>
2335
Gfxmenu documentation.
2337
* docs/grub.texi (Theme file format): New chapter.
2339
2010-09-05 Szymon Janc <szymon@janc.net.pl>
2341
* grub-core/Makefile.core.def (xzio): New module.
2342
* grub-core/io/xzio.c: New file.
2343
* grub-core/lib/xzembed/xz.h: New file (from xembed).
2344
* grub-core/lib/xzembed/xz_config.h: Likewise.
2345
* grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
2346
* grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
2347
* grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
2348
* grub-core/lib/xzembed/xz_lzma2.h: Likewise.
2349
* grub-core/lib/xzembed/xz_private.h: Likewise.
2350
* grub-core/lib/xzembed/xz_stream.h: Likewise.
2351
* include/grub/file.h (grub_file_filter_id): New compression filter
2352
GRUB_FILE_FILTER_XZIO.
2354
2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2356
* include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
2357
* grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
2360
2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2362
* include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
2363
GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
2365
2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2367
Uncompressed checksum support.
2369
* grub-core/commands/hashsum.c (options): Add option --uncompress.
2370
(check_list): New parameter uncompress.
2371
(grub_cmd_hashsum): Handle --uncompress.
2373
2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2375
Reintroduce testload.
2377
* grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
2379
* grub-core/commands/testload.c (grub_cmd_testload): ... here.
2380
(GRUB_MOD_INIT): New function.
2381
(GRUB_MOD_FINI): Likewise.
2382
* grub-core/Makefile.core.def (testload): New module.
2384
2010-09-05 Szymon Janc <szymon@janc.net.pl>
2386
* grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
2387
(uint8_t): New type.
2388
(uint16_t): Likewise.
2389
(uint32_t): Likewise.
2390
(uint64_t): Likewise.
2392
2010-09-05 Szymon Janc <szymon@janc.net.pl>
2394
* include/grub/crypto.h (GRUB_MD_CRC32): New definition.
2396
2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2398
* grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
2400
(grub_gzfile_open): Removed. All users updated.
2401
(GRUB_MOD_INIT): New function.
2402
(GRUB_MOD_FINI): Likewise.
2403
* grub-core/kern/file.c (grub_file_filters_all): New variable.
2404
(grub_file_filters_enabled): Likewise.
2405
(grub_file_open): Handle filters.
2406
* grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
2407
* grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
2408
* include/grub/file.h (grub_file_filter_id_t): New type.
2409
(grub_file_filter_t): Likewise.
2410
(grub_file_filters_all): New extern variable.
2411
(grub_file_filters_enabled): Likewise.
2412
(grub_file_filter_register): New inline function.
2413
(grub_file_filter_unregister): Likewise.
2414
(grub_file_filter_disable): Likewise.
2415
(grub_file_filter_disable_compression): Likewise.
2416
* include/grub/gzio.h: Removed.
2418
2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2420
Filename expansion support for wildcards in GRUB script.
2422
* tests/grub_script_expansion.in: New test.
2423
* Makefile.util.def: Rule for new test.
2425
* grub-core/commands/wildcard.c: New file, implements filename
2426
expansion support for GRUB script.
2427
* grub-core/Makefile.core.def: Rule update for regexp.mod.
2428
* grub-core/script/argv.c: Cosmetic changes.
2429
* grub-core/script/execute.c (grub_script_arglist_to_argv):
2430
Refactored to perform wildcard expansion on arguments.
2431
* include/grub/script_sh.h (grub_script_wildcard_translator): New
2434
* tests/util/grub-shell.in: Fix quoting for read input.
2436
2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2438
Support for updating environment variables with matched substrings
2441
* tests/grub_cmd_regexp.in: New test.
2442
* Makefile.util.def: Rule for new test.
2444
* grub-core/commands/regexp.c: New option -s to update environment
2445
variables with regexp matches.
2447
2010-09-04 Szymon Janc <szymon@janc.net.pl>
2449
* include/grub/file.h (grub_file): New member not_easly_seekable.
2450
(grub_file_seekable): New inline function.
2451
* grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
2453
(grub_gzio_open): Set not_easly_seekable.
2454
* grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
2455
* grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
2457
2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2459
Support for options to appear multiple times on cmdline.
2461
* include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
2462
* grub-core/commands/extcmd.c: Support for repeatable option.
2463
* grub-core/lib/arg.c (grub_arg_list_alloc): New function for
2464
repeatable option support.
2466
Refactor menuentry into a regular command.
2468
* grub-core/commands/menuentry.c: New file, menuentry command
2470
* grub-core/Makefile.core.def: Rule update for normal.mod.
2471
* grub-core/normal/main.c: Moved menuentry creation to
2472
grub-core/commands/menuentry.c.
2473
* grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
2474
(grub_menu_execute_entry_real): Removed.
2475
* grub-core/script/execute.c (grub_script_execute_sourcecode): New
2477
(grub_script_execute_menuentry): Removed.
2478
* grub-core/script/parser.y (menuentry): Removed.
2479
* grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
2480
* grub-core/script/yylex.l (menuentry): Removed.
2481
* include/grub/menu.h (grub_menu_init): New prototype.
2482
(grub_menu_fini): New prototype.
2483
* include/grub/normal.h (grub_normal_add_menu_entry): Removed.
2484
* include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
2485
(grub_script_execute_sourcecode): New prototype.
2487
2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2489
"return" command for GRUB script functions.
2491
* tests/grub_script_return.in: New test.
2492
* Makefile.util.def: Rules for new test.
2494
* grub-core/script/execute.c (grub_script_return): New function.
2495
* grub-core/script/main.c: Register/unregister return commaond.
2496
* include/grub/script_sh.h (grub_script_return): New prototype.
2498
2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2500
"setparams" command to update positional parameters.
2502
* tests/grub_script_setparams.in: New test.
2503
* Makefile.util.def: Rules for new test.
2505
* grub-core/script/argv.c (grub_script_argv_make): New function.
2506
* grub-core/script/execute.c (replace_scope): New function.
2507
(grub_script_setparams): New function.
2508
* grub-core/script/lexer.c: Remove unused variables.
2509
* grub-core/script/main.c: Register/unregister setparams command.
2510
* include/grub/script_sh.h (grub_script_argv_make): New prototype.
2511
(grub_script_setparams): New prototype.
2513
2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2515
* grub-core/normal/completion.c (grub_normal_do_completion): Fix
2518
2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2520
Support for passing block of commands as an argument to extcmds.
2522
* Makefile.util.def: Rules for new test.
2523
* tests/grub_script_blockarg.in: New test.
2524
* grub-core/tests/test_blockarg.c: New file, block argument
2525
command used in the test.
2527
* include/grub/extcmd.h (grub_extcmd_context): New struct.
2528
(grub_register_extcmd_prio): New function prototype.
2529
(grub_extcmd_dispatcher): New function prototype.
2530
* include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
2532
* include/grub/script_sh.h (struct grub_script): New members
2533
`children', `next_siblings' and `refcnt' for block arguments and
2535
(GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
2536
(grub_script_arg): New member `script' for block argument.
2537
(grub_script_argv): New member `script' for block argument.
2538
(grub_parser_param): New member `scripts' for block argument.
2539
(grub_script_mem_free): New extern function prototype.
2540
(grub_script_ref): New function prototype.
2541
(grub_script_unref): New function prototype.
2543
* grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
2544
extcmd form to support block arguments.
2545
* grub-core/script/argv.c: Block arguments support.
2546
* grub-core/script/execute.c: Likewise.
2547
* grub-core/script/lexer.c: Likewise.
2548
* grub-core/script/main.c: Likewise.
2549
* grub-core/script/script.c: Likewise.
2550
* grub-core/script/parser.y: Likewise. New `block' and `block0'
2553
* grub-core/commands/acpi.c: Update extcmd implementations with
2554
grub_extcmd_context_t.
2555
* grub-core/commands/cat.c: Likewise.
2556
* grub-core/commands/echo.c: Likewise.
2557
* grub-core/commands/extcmd.c: Likewise.
2558
* grub-core/commands/hashsum.c: Likewise.
2559
* grub-core/commands/hdparm.c: Likewise.
2560
* grub-core/commands/help.c: Likewise.
2561
* grub-core/commands/hexdump.c: Likewise.
2562
* grub-core/commands/i386/cpuid.c: Likewise.
2563
* grub-core/commands/i386/pc/drivemap.c: Likewise.
2564
* grub-core/commands/i386/pc/halt.c: Likewise.
2565
* grub-core/commands/i386/pc/sendkey.c: Likewise.
2566
* grub-core/commands/iorw.c: Likewise.
2567
* grub-core/commands/keystatus.c: Likewise.
2568
* grub-core/commands/loadenv.c: Likewise.
2569
* grub-core/commands/ls.c: Likewise.
2570
* grub-core/commands/lspci.c: Likewise.
2571
* grub-core/commands/memrw.c: Likewise.
2572
* grub-core/commands/probe.c: Likewise.
2573
* grub-core/commands/search_wrap.c: Likewise.
2574
* grub-core/commands/setpci.c: Likewise.
2575
* grub-core/commands/sleep.c: Likewise.
2576
* grub-core/disk/loopback.c: Likewise.
2577
* grub-core/hello/hello.c: Likewise.
2578
* grub-core/loader/i386/bsd.c: Likewise.
2579
* grub-core/loader/xnu.c: Likewise.
2580
* grub-core/term/gfxterm.c: Likewise.
2581
* grub-core/term/serial.c: Likewise.
2582
* grub-core/tests/lib/functional_test.c: Likewise.
2584
2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2586
Multi-line quoted strings support.
2588
* grub-core/script/lexer.c (append_newline): Removed.
2589
(grub_script_lexer_yywrap): Refactored.
2590
(grub_script_lexer_init): Refactored.
2591
* grub-core/script/yylex.l (yywrap): New function.
2592
(grub_lexer_resplit): New function.
2593
(grub_lexer_unput): New function.
2594
* include/grub/script_sh.h (grub_lexer_param): New members, unput
2596
* tests/grub_script_echo1.in: Added few more testcases.
2598
2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
2600
* grub-core/kern/misc.c: Don't add abort alias in utils.
2601
Reported by: echoline.
2603
2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
2605
Add missing files into "make dist" tarball for other platforms.
2607
* gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
2608
* conf/Makefile.common (dist_noinst_DATA): New variable.
2609
* conf/Makefile.extra-dist: Added missing make dist files.
2610
* grub-core/Makefile.core.def: Likewise.
2612
2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
2614
Compress grub_prefix.
2616
* grub-core/boot/i386/pc/lnxboot.S: Use
2617
GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
2618
* grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
2619
* include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
2620
GRUB_MACHINE_PREFIX_END. All users updated.
2621
(GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
2622
(GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
2624
(GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
2625
* util/grub-mkimage.c (image_target_desc): Change data_end to
2626
prefix_end. All users updated.
2628
2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
2630
* grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
2632
(grub_openbsd_boot): Likewise.
2633
(grub_netbsd_boot): Likewise.
2634
* grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
2635
(grub_xnu_boot): Likewise.
2637
2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
2639
* configure.ac: Clean LIBS variable after tests.
2641
2010-09-02 Colin Watson <cjwatson@ubuntu.com>
2643
* INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
2645
2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
2647
* configure.ac: Check for dm_log_with_errno_init in libdevmapper and
2648
echo if libdevmapper will be used.
2650
2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
2652
* grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
2653
constant for the same file.
2655
2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
2657
* grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
2659
2010-09-02 Colin Watson <cjwatson@ubuntu.com>
2661
* .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
2664
2010-09-02 Colin Watson <cjwatson@ubuntu.com>
2666
Zero %ebp and %edi when entering Linux's 32-bit entry point, as
2667
required by the boot protocol.
2669
* include/grub/i386/relocator.h (struct grub_relocator32_state): Add
2670
ebp and edi members.
2671
* grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
2672
state.ebp and state.edi.
2673
* grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
2674
%ebp and %edi according to grub_relocator32_ebp and
2675
grub_relocator32_edi respectively.
2676
* grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
2679
2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
2681
Add i386-pc-pxe image target.
2683
* util/grub-mkimage.c (image_target_desc): New enum value
2685
(image_targets): New target i386-pc-pxe.
2686
(generate_image): Handle i386-pc-pxe image.
2688
2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
2692
* grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
2693
(grub_pxe_scan): Fix types and pxe_rm_entry computation.
2695
* include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
2696
(grub_pxe_pxenv): Correct type.
2698
2010-09-01 Colin Watson <cjwatson@ubuntu.com>
2700
* NEWS: Document most of the important changes since 1.98.
2702
2010-09-01 Colin Watson <cjwatson@ubuntu.com>
2704
* util/grub-mkrescue.in (usage): Tidy up usage output (and hence
2705
generated manual page) a little.
2707
2010-09-01 Colin Watson <cjwatson@ubuntu.com>
2709
* docs/grub.texi: Add myself as an author.
2711
2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
2713
* Makefile.util.def (libgrub.a): Add missing sunpc.
2714
Reported by: Seth Goldberg.
2716
2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2718
Interrupt wrapping and code simplifications.
2720
* Makefile.util.def (grub-mkrescue): Use x86 tg instead of
2721
x86_noieee1275 which are functionaly equivalent in this case.
2722
(grub-install): Make source on each platform explicit. Enable on
2724
* gentpl.py (x86_efi_pc): Removed group.
2725
(x86_noefi): Likewise.
2726
(i386_noefi): Likewise.
2727
(x86_noieee1275): Likewise.
2728
(i386_noieee1275): Likewise.
2729
(i386_noefi_noieee1275): Likewise.
2730
(i386_pc_qemu_coreboot): Likewise.
2731
(i386_coreboot_multiboot): Likewise.
2732
(i386_pc_coreboot_multiboot_qemu): Likewise.
2733
(x86_noefi_mips): Likewise.
2734
(noieee1275): Likewise.
2735
(ieee1275_mips): Likewise.
2736
(noemu_noieee1275): Likewise.
2739
(videoinkernel): Likewise.
2740
(videomodules): Likewise.
2741
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
2742
include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
2743
include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
2744
include/grub/loader.h, include/grub/msdos_partition.h,
2745
include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
2746
include/grub/machine/console.h, include/grub/machine/vga.h,
2747
include/grub/machine/vbe.h, include/grub/machine/init.h,
2748
include/grub/machine/kernel.h, include/grub/cpu/time.h,
2749
include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
2750
(KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
2751
(KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
2752
* grub-core/Makefile.core.def (kernel): Explicit the source for
2753
startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
2754
Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
2755
Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
2756
Use videoinkernel tag.
2757
(usb): Enable on all usb.
2758
(usbserial_common): Likewise.
2759
(usbserial_pl2303): Likewise.
2760
(usbserial_ftdi): Likewise.
2761
(uhci): Enable on all x86.
2762
(ohci): Enable on all pci.
2763
(cmostest): Enable on all CMOS.
2764
(acpi): Include commands/acpi.c on all platforms.
2765
(halt): Add relevant lib/*/halt.c.
2766
(hdparm): Enable on all pci.
2768
(usbtest): Enable on all usb.
2769
(ata): Enable on all pci.
2770
(ata_pthru): Likewise.
2771
(usbms): Enable on all usb.
2772
(usb_keyboard): Likewise.
2773
(font): Use tag videomodules.
2775
(datetime): Use tag cmos. Enable on all noemu.
2776
(mmap): Use tags common and x86.
2777
(gfxterm): Use tag videomodules.
2779
(bitmap_scale): Likewise.
2780
(video_fb): Likewise.
2782
* grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
2783
adjust padding accordingly. All users updated.
2784
(grub_ohci_transaction): Fix bad format specification.
2785
(GRUB_MOD_INIT): Add asserts for struct size.
2786
* grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
2787
(grub_alloc_td): Likewise.
2788
(grub_free_queue): Likewise.
2789
(grub_uhci_transfer): Likewise.
2790
(grub_uhci_transaction): Fix bad format specification.
2791
* grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
2792
(grub_usb_bulk_readwrite): Likewise.
2793
* grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
2794
* grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
2796
* grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
2798
* grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
2799
* grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
2801
* grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
2803
* grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
2804
... here. Transformed into C. Made static.
2805
* grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
2807
* grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
2808
... here. Transformed into C. Made static.
2809
* grub-core/kern/i386/pc/startup.S
2810
(grub_biosdisk_check_int13_extensions): Moved from here ...
2811
* grub-core/disk/i386/pc/biosdisk.c
2812
(grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
2814
* grub-core/kern/i386/pc/startup.S
2815
(grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
2816
* grub-core/disk/i386/pc/biosdisk.c
2817
(grub_biosdisk_get_cdinfo_int13_extensions): ... here.
2818
Transformed into C. Made static.
2819
* grub-core/kern/i386/pc/startup.S
2820
(grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
2821
* grub-core/disk/i386/pc/biosdisk.c
2822
(grub_biosdisk_get_diskinfo_int13_extensions): ... here.
2823
Transformed into C. Made static.
2824
* grub-core/kern/i386/pc/startup.S
2825
(grub_biosdisk_get_diskinfo_standard): Moved from here ...
2826
* grub-core/disk/i386/pc/biosdisk.c
2827
(grub_biosdisk_get_diskinfo_standard): ... here.
2828
Transformed into C. Made static.
2829
* grub-core/kern/i386/pc/startup.S
2830
(grub_biosdisk_get_num_floppies): Moved from here ...
2831
* grub-core/disk/i386/pc/biosdisk.c
2832
(grub_biosdisk_get_num_floppies): ... here.
2833
Transformed into C. Made static.
2834
* grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
2836
* grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
2837
* grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
2838
Transformed into C. Made static.
2839
* grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
2840
* grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
2841
Transformed into C. Made static.
2842
* grub-core/kern/i386/ieee1275/init.c: Removed.
2843
* grub-core/kern/i386/misc.S: Likewise.
2844
* grub-core/kern/i386/pc/startup.S (grub_get_memsize):
2845
Splitted from here ...
2846
* grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
2847
Transformed into C. Made static. All users updated.
2848
* grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
2849
Transformed into C. Made static. All users updated.
2850
* grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
2852
* grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
2853
Transformed into C. Made static. All users updated.
2854
* grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
2856
* grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
2857
Transformed into C. Made static. All users updated.
2858
* grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
2859
Removed (replaced by C version).
2860
* grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
2862
* grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
2863
Transformed into C. Made static.
2864
* grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
2866
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
2867
... here. Transformed into C.
2868
* grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
2870
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
2871
... here. Transformed into C.
2872
* grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
2874
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
2875
... here. Transformed into C. Made static.
2876
* grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
2878
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
2879
... here. Transformed into C.
2880
* grub-core/kern/i386/pc/startup.S
2881
(grub_vbe_bios_getset_dac_palette_width):Moved from here...
2882
* grub-core/video/i386/pc/vbe.c
2883
(grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
2884
* grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
2886
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
2887
... here. Transformed into C.
2888
* grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
2890
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
2891
... here. Transformed into C.
2892
* grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
2894
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
2895
... here. Transformed into C.
2896
* grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
2898
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
2899
... here. Transformed into C.
2900
* grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
2902
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
2903
... here. Transformed into C. Made static.
2904
* grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
2906
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
2907
... here. Transformed into C. Made static.
2908
* grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
2910
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
2911
... here. Transformed into C. Made static.
2912
* grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
2913
pxe_rm_entry as third argument.
2914
(grub_bios_interrupt): New function.
2915
* grub-core/kern/i386/qemu/mmap.c: Remove useless include.
2916
* grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
2917
of calling grub_stop.
2918
* grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
2919
* grub-core/lib/efi/halt.c (grub_halt): ...here.
2920
* grub-core/kern/emu/main.c (grub_halt): Moved from here ...
2921
* grub-core/lib/emu/halt.c (grub_halt): ... here.
2922
* grub-core/lib/i386/halt.c: Moved from here ...
2923
* grub-core/lib/i386/halt.c: ... here.
2924
* grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
2925
* grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
2926
* grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
2928
* grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
2929
* include/grub/i386/coreboot/init.h: Removed.
2930
* include/grub/i386/multiboot/init.h: Likewise.
2931
* include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
2932
* include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
2933
* include/grub/i386/pc/int.h: New file.
2934
* include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
2935
(grub_pxe_scan): Removed.
2936
(grub_pxe_call): Update prototype.
2937
* include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
2939
* include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
2940
* include/grub/i386/qemu/init.h: Removed.
2941
* include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
2943
(grub_halt): Likewise.
2944
* include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
2945
(grub_reboot): Likewise.
2946
* grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
2947
* include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
2948
* grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
2950
2010-08-30 Robert Millan <rmh@gnu.org>
2952
* NEWS: Document addition of ZFS support in `grub-install' and
2955
2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
2957
* conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
2960
2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2962
Remove leftover embedding of font objects.
2964
* include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
2965
* util/grub-install.in (font): Removed.
2966
* util/grub-mkimage.c (generate_image): Remove font support. All users
2969
2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2971
Remove leftover embedding of font objects.
2973
* include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
2974
* util/grub-install.in (font): Removed.
2975
* util/grub-mkimage.c (generate_image): Remove font support. All users
2978
2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2980
* docs/grub.texi (Network): Fix reference to pxe_blksize.
2981
Reported by: Ian Turner
2983
2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2985
* grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
2986
timeout to avoid indefinite boot stalling.
2988
2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2990
* grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
2991
(grub_env_write_color_highlight): Likewise.
2993
2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2995
* grub-core/normal/term.c (print_more): Return to normal and not
2996
to standard state after printing "---MORE---".
2998
2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3000
* grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
3001
Mask out the bit 0x80 since it has other meaning that specifiing color.
3003
2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3005
New relocator. Allows for more kernel support and more straightforward
3008
* Makefile.am (BOOTTARGET): New variable.
3010
(linux.init.x86_64): New target.
3011
(linux.init.i386): Likewise.
3012
(multiboot.elf): Likewise.
3013
(kfreebsd.elf): Likewise.
3014
(kfreebsd.aout): Likewise.
3015
(pc-chainloader.elf): Likewise.
3016
(pc-chainloader.bin): Likewise.
3017
(ntldr.elf): Likewise.
3018
(ntldr.bin): Likewise.
3019
(multiboot2.elf): Likewise.
3020
(kfreebsd.init.x86_64): Likewise.
3021
(kfreebsd.init.i386): Likewise.
3022
(knetbsd.init.i386): Likewise.
3023
(kopenbsd.init.i386): Likewise.
3024
(knetbsd.init.x86_64): Likewise.
3025
(kopenbsd.init.x86_64): Likewise.
3026
(linux-initramfs.i386): Likewise.
3027
(linux-initramfs.x86_64): Likewise.
3028
(kfreebsd-mfsroot.i386.img): Likewise.
3029
(knetbsd.image.i386): Likewise.
3030
(kopenbsd.image.i386): Likewise.
3031
(kopenbsd.image.x86_64): Likewise.
3032
(knetbsd.miniroot-image.i386.img): Likewise.
3033
(kfreebsd-mfsroot.x86_64.img): Likewise.
3034
(knetbsd.image.x86_64): Likewise.
3035
(knetbsd.miniroot-image.x86_64.img): Likewise.
3036
(kfreebsd-mfsroot.i386.gz): Likewise.
3037
(bootcheck-kfreebsd-i386): Likewise.
3038
(kfreebsd-mfsroot.x86_64.gz): Likewise.
3039
(bootcheck-kfreebsd-x86_64): Likewise.
3040
(knetbsd.miniroot-image.i386.gz): Likewise.
3041
(bootcheck-knetbsd-i386): Likewise.
3042
(bootcheck-kopenbsd-i386): Likewise.
3043
(bootcheck-kopenbsd-x86_64): Likewise.
3044
(knetbsd.miniroot-image.x86_64.gz): Likewise.
3045
(bootcheck-knetbsd-x86_64): Likewise.
3046
(bootcheck-linux-i386): Likewise.
3047
(bootcheck-linux-x86_64): Likewise.
3048
(bootcheck-linux16-i386): Likewise.
3049
(bootcheck-linux16-x86_64): Likewise.
3050
(bootcheck-multiboot): Likewise.
3051
(bootcheck-multiboot2): Likewise.
3052
(bootcheck-kfreebsd-aout): Likewise.
3053
(bootcheck-pc-chainloader): Likewise.
3054
(bootcheck-ntldr): Likewise.
3055
(CLEANFILES): Add new targets.
3056
(BOOTCHECKS): New variable.
3057
(.PHONY): Add bootchecks.
3058
(SUCCESSFUL_BOOT_STRING): New variable.
3059
(BOOTCHECK_TIMEOUT): Likewise.
3060
(bootcheck): New target
3061
* Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
3062
* configure.ac: Correct efiemu excuse.
3063
* docs/grub.texi (Supported kernels): New chapter.
3064
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
3065
include/grub/mm_private.h. Simplify inclusion of
3066
include/grub/boot.h, include/grub/loader.h
3067
and include/grub/msdos_partition.h
3068
(KERNEL_HEADER_FILES) [i386_coreboot]:
3069
Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
3070
(KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
3071
(KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
3072
(KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
3073
include/grub/machine/loader.h.
3074
(KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
3075
* grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
3077
(pci.mod): Enable on i386-multiboot.
3078
(acpi.mod): Enable on i386-multiboot and i386-coreboot.
3079
(efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
3081
(relocator.mod): Rewritten.
3082
(aout.mod): Enable on all x86.
3083
(bsd.mod): Likewise.
3084
(ntldr.mod): New module.
3085
(linux.mod): Use loader/i386/linux.c on all x86.
3086
(xnu.mod): Enable on all x86.
3087
(vga_text.mod): disable on EFI and QEMU.
3088
* grub-core/efiemu/i386/coredetect.c: Remove useless include.
3089
* grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
3090
* grub-core/efiemu/loadcore.c: Likewise.
3091
* grub-core/efiemu/main.c: Likewise.
3092
(grub_efiemu_exit_boot_services): Removed.
3093
(grub_efiemu_finish_boot_services): Likewise.
3094
* grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
3096
* grub-core/efiemu/i386/nocfgtables.c: New file.
3097
* grub-core/kern/dl.c (grub_dl_unload_all): Removed.
3098
* grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
3099
(grub_efi_finish_boot_services): Moved from here ...
3100
* grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
3101
Fille finish memory map and related data.
3102
(finish_mmap_buf): New variable.
3103
(grub_efi_uintn_t finish_mmap_size): Likewise.
3104
(grub_efi_uintn_t finish_key): Likewise.
3105
(grub_efi_uintn_t finish_desc_size): Likewise.
3106
(grub_efi_uint32_t finish_desc_version): Likewise.
3107
(grub_efi_is_finished): Likewise.
3108
(grub_efi_get_memory_map): Use saved memory map if EFI is already
3110
* grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
3111
(grub_elf64_phdr_iterate): Likewise.
3112
* grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
3113
(grub_os_area_size): Likewise.
3114
(grub_machine_init): Don't reserve os area.
3115
* grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
3116
* grub-core/kern/i386/ieee1275/startup.S: Likewise.
3117
* grub-core/kern/i386/loader.S: Removed.
3118
* grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
3119
(grub_os_area_size): Likewise.
3120
(grub_machine_init): Don't reserve os area.
3121
* grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
3122
Don't call grub_dl_unload_all.
3123
Don't include loader.S.
3124
* grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
3125
Declare the memory after _end as available.
3126
* grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
3127
* include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
3128
(GRUB_MM_ALLOC_MAGIC): Moved from here...
3129
* include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
3130
* grub-core/kern/mm.c (grub_mm_header): Moved from here...
3131
* include/grub/mm_private.h (grub_mm_header): ... here.
3132
* grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
3133
* include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
3134
* grub-core/kern/mm.c (grub_mm_region): Moved from here ...
3135
(grub_mm_region): ..here. Removed addr. Added pre_size.
3137
* grub-core/kern/mm.c (base): Renamed to ...
3138
(grub_mm_base): ... this. Made global.
3139
(grub_real_malloc): Alloc from end of region.
3140
(grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
3141
* grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
3142
* grub-core/kern/powerpc/cache_flush.S: ... here.
3143
* grub-core/lib/efi/relocator.c: New file.
3144
* grub-core/lib/i386/relocator.c: Rewritten.
3145
* grub-core/lib/i386/relocator16.S: New file.
3146
* grub-core/lib/i386/relocator32.S: Likewise.
3147
* grub-core/lib/i386/relocator64.S: Likewise.
3148
* grub-core/lib/i386/relocator_asm.S: Rewritten.
3149
* grub-core/lib/i386/relocator_common.S: New file.
3150
* grub-core/lib/ieee1275/relocator.c: Likewise.
3151
* grub-core/lib/mips/relocator.c: Rewritten.
3152
* grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
3153
stylistic adjustments.
3154
* grub-core/lib/powerpc/relocator.c: New file.
3155
* grub-core/lib/powerpc/relocator_asm.S: Likewise.
3156
* grub-core/lib/relocator.c: Rewritten.
3157
* grub-core/lib/x86_64/relocator_asm.S: New file.
3158
* grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
3159
* grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
3160
(bsd_tag): New struct.
3161
(tags): New variable.
3162
(tags_last): Likewise.
3163
(netbsd_module): New struct.
3164
(netbsd_mods): New variable.
3165
(netbsd_mods_last): Likewise.
3166
(openbsd_opts): New parameter "serial".
3167
(OPENBSD_SERIAL_ARG): New definition.
3168
(netbsd_opts): New parameter "serial".
3169
(NETBSD_SERIAL_ARG): New definition.
3170
(grub_freebsd_add_meta): Reorganised into ...
3171
(grub_bsd_add_meta): ...this. All users updated.
3172
(grub_freebsd_add_mmap): Reorganised into ...
3173
(generate_e820_mmap): ...this...
3174
(grub_bsd_add_mmap): ...and this. All users updated.
3175
(grub_freebsd_list_modules): Use tags.
3176
(grub_netbsd_add_meta_module): New function.
3177
(grub_netbsd_list_modules): Likewise.
3178
(grub_freebsd_boot): Use relocator and finish EFI.
3179
(grub_openbsd_boot): Likewise.
3180
(grub_netbsd_setup_video): New function.
3181
(grub_netbsd_add_modules): Likewise.
3182
(grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
3184
(grub_bsd_unload): Unload tags.
3185
(grub_bsd_load_aout): Use relocator.
3186
(grub_bsd_elf32_size_hook): New function.
3187
(grub_bsd_elf32_hook): Use relocator.
3188
(grub_bsd_elf64_size_hook): New function.
3189
(grub_bsd_elf64_hook): Use relocator.
3190
(grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
3191
(grub_bsd_load): Zero-out openbsd_ramdisk.
3192
(grub_bsd_load): Use relocator.
3193
(grub_cmd_openbsd): Support serial.
3194
(grub_cmd_netbsd): Support modules.
3195
(grub_cmd_freebsd_module): Use relocator.
3196
(grub_netbsd_module_load): New function.
3197
(grub_cmd_netbsd_module): Likewise.
3198
(grub_cmd_openbsd_ramdisk): Likewise.
3199
(GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
3201
(GRUB_MOD_FINI): Unregister new commands.
3202
* grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
3203
(grub_freebsd_load_elfmodule_obj): Use relocator.
3204
(grub_freebsd_load_elfmodule): Likewise.
3205
(grub_freebsd_load_elf_meta): Likewise.
3206
(grub_netbsd_load_elf_meta): New function.
3207
(grub_openbsd_find_ramdisk): Likewise.
3208
* grub-core/loader/i386/bsd_helper.S: Removed.
3209
* grub-core/loader/i386/bsd_pagetable.c: Support relocator.
3210
* grub-core/loader/i386/bsd_trampoline.S: Removed.
3211
* grub-core/loader/i386/efi/linux.c: Likewise.
3212
* grub-core/loader/i386/ieee1275/linux.c: Likewise.
3213
* grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
3214
(DEFAULT_VIDEO_MODE): Likewise.
3215
(real_mode_target): New variable.
3216
(prot_mode_target): Likewise.
3217
(initrd_mem_target): Likewise.
3218
(relocator): Likewise.
3219
(efi_mmap_buf): Likewise.
3220
(efi_mmap_size): Likewise.
3221
(find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
3222
(free_pages): Use relocator.
3223
(allocate_pages): Account for efi_mmap and use relocator. Return error.
3224
(grub_linux_setup_video): Return error.
3225
(grub_linux_trampoline_start): Removed.
3226
(grub_linux_trampoline_end): Likewise.
3227
(grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
3228
andd video parameters depending on firmware.
3229
[GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
3230
[GRUB_MACHINE_EFI]: Pass EFI parameters.
3231
(grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
3232
(grub_cmd_initrd): Use relocator.
3233
* grub-core/loader/i386/linux_trampoline.S: Removed.
3234
* grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
3235
(elf_sec_entsize): Likewise.
3236
(elf_sec_shstrndx): Likewise.
3237
(elf_sections): Likewise.
3238
(grub_multiboot_load): Use relocator.
3239
(grub_multiboot_get_mbi_size): Account for sections.
3240
(grub_multiboot_make_mbi): Use relocator and support sections.
3241
(grub_multiboot_add_elfsyms): New function.
3242
(grub_multiboot_free_mbi): Free sections.
3243
* grub-core/loader/i386/pc/linux.c (relocator): New variable.
3244
(grub_linux_real_target): Likewise.
3245
(grub_linux_real_chunk): Likewise.
3246
(grub_linux16_prot_size): Likewise.
3247
(grub_linux16_boot): Use relocator.
3248
(grub_linux_unload): Unload relocator.
3249
(grub_cmd_linux): Use relocator.
3250
(grub_cmd_initrd): Likewise.
3251
* grub-core/loader/i386/pc/ntldr.c: New file.
3252
* grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
3253
Don't try to guess CPU frequency.
3254
(grub_xnu_set_video): Stretch bitmap.
3255
(grub_xnu_boot): Use relocator.
3256
* grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
3257
(grub_linux_unload): Free relocator.
3258
(grub_linux_load32): Use relocator.
3259
(grub_linux_load64): Likewise.
3260
(grub_cmd_initrd): Likewise.
3261
* grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
3262
(grub_multiboot_unload): Unload relocator.
3263
(grub_cmd_multiboot): Use relocator.
3264
(grub_cmd_module): Likewise.
3265
* grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
3266
Use relocator and support sections.
3267
* grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
3268
(elf_sec_entsize): Likewise.
3269
(elf_sec_shstrndx): Likewise.
3270
(elf_sections): Likewise.
3271
(grub_multiboot_load): Use relocator.
3272
(grub_multiboot_get_mbi_size): Account for sections.
3273
(grub_multiboot_make_mbi): Use relocator and support sections.
3274
(grub_multiboot_add_elfsyms): New function.
3275
* grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
3276
* grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
3277
* grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
3278
Prototype changed. All users updated.
3279
(grub_xnu_align_heap): Simplified.
3280
(grub_xnu_writetree_toheap): Likewise.
3281
(grub_xnu_unload): Unload relocator.
3282
(grub_cmd_xnu_kernel): Use relocator.
3283
(grub_cmd_xnu_kernel64): Likewise.
3284
(grub_xnu_register_memory): Simplified.
3285
* grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
3286
* grub-core/term/efi/console.c (grub_console_putchar): Abort if
3288
(grub_console_checkkey): Likewise.
3289
(grub_console_getkey): Likewise.
3290
(grub_console_getwh): Likewise.
3291
(grub_console_getxy): Likewise.
3292
(grub_console_gotoxy): Likewise.
3293
(grub_console_cls): Likewise.
3294
(grub_console_setcolorstate): Likewise.
3295
(grub_console_setcursor): Likewise.
3296
* grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
3297
* grub-core/tests/boot/kbsd.init-i386.S: New file.
3298
* grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
3299
* grub-core/tests/boot/kbsd.spec.txt: Likewise.
3300
* grub-core/tests/boot/kernel-8086.S: Likewise.
3301
* grub-core/tests/boot/kernel-i386.S: Likewise.
3302
* grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
3303
* grub-core/tests/boot/kfreebsd.cfg: Likewise.
3304
* grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
3305
* grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
3306
* grub-core/tests/boot/knetbsd.cfg: Likewise.
3307
* grub-core/tests/boot/kopenbsd.cfg: Likewise.
3308
* grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
3309
* grub-core/tests/boot/linux.cfg: Likewise.
3310
* grub-core/tests/boot/linux.init-i386.S: Likewise.
3311
* grub-core/tests/boot/linux.init-x86_64.S: Likewise.
3312
* grub-core/tests/boot/linux16.cfg: Likewise.
3313
* grub-core/tests/boot/multiboot.cfg: Likewise.
3314
* grub-core/tests/boot/multiboot2.cfg: Likewise.
3315
* grub-core/tests/boot/ntldr.cfg: Likewise.
3316
* grub-core/tests/boot/pc-chainloader.cfg: Likewise.
3317
* include/grub/aout.h (grub_aout_load): Make load_addr a void *.
3318
* include/grub/autoefi.h (grub_autoefi_finish_boot_services):
3320
* include/grub/dl.h (grub_dl_unload_all): Removed.
3321
* include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
3322
(grub_efi_finish_boot_services): Change prototype.
3323
(grub_efi_is_finished): New variable.
3324
* include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
3326
(grub_efiemu_finish_boot_services): Removed.
3327
(grub_machine_efiemu_init_tables): New prototype.
3328
* include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
3329
(grub_elf64_phdr_iterate): Likewise.
3330
* include/grub/i386/bsd.h: Include relocator.h.
3331
(freebsd_tag_header): New struct.
3332
(grub_openbsd_bios_mmap): Removed.
3333
(grub_unix_real_boot): Removed.
3334
(grub_freebsd_load_elfmodule32): Changed prototype.
3335
(grub_freebsd_load_elfmodule_obj64): Likewise.
3336
(grub_freebsd_load_elf_meta32): Likewise.
3337
(grub_freebsd_load_elf_meta64): Likewise.
3338
(grub_freebsd_add_meta): Removed.
3339
(grub_netbsd_load_elf_meta32): New prototype.
3340
(grub_netbsd_load_elf_meta64): Likewise.
3341
(grub_bsd_add_meta): Likewise.
3342
(grub_openbsd_ramdisk_descriptor): New struct.
3343
(grub_openbsd_find_ramdisk32): New prototype.
3344
(grub_openbsd_find_ramdisk64): Likewise.
3345
* include/grub/i386/coreboot/loader.h: Removed.
3346
* include/grub/i386/efi/loader.h: Likewise.
3347
* include/grub/i386/ieee1275/loader.h: Likewise.
3348
* include/grub/i386/linux.h (linux_kernel_header): Change void *
3350
* include/grub/i386/loader.h: Removed.
3351
* include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
3353
(GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
3354
(grub_phys_addr_t): New type.
3355
(grub_vtop): New inline function.
3356
(grub_map_memory): Likewise.
3357
(grub_unmap_memory): Likewise.
3358
* include/grub/i386/multiboot/loader.h: Removed.
3359
* include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
3360
(NETBSD_BTINFO_CONSOLE): New definition.
3361
(NETBSD_BTINFO_SYMTAB): Likewise.
3362
(NETBSD_BTINFO_MODULES): Likewise.
3363
(NETBSD_BTINFO_FRAMEBUF): Likewise.
3364
(grub_netbsd_bootinfo): New struct.
3365
(grub_netbsd_btinfo_common): Use explicit bitsize.
3366
(grub_netbsd_btinfo_mmap_entry): Removed.
3367
(GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
3368
(grub_netbsd_btinfo_bootdisk): New struct.
3369
(grub_netbsd_btinfo_symtab): Likewise.
3370
(grub_netbsd_btinfo_serial): Likewise.
3371
(grub_netbsd_btinfo_modules): Likewise.
3372
(grub_netbsd_btinfo_framebuf): Likewise.
3373
(GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
3374
* include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
3376
(grub_openbsd_bootargs): Use explicit bitsize.
3377
(grub_openbsd_bootarg_console): New struct.
3378
(GRUB_OPENBSD_COM_MAJOR): New definition.
3379
(GRUB_OPENBSD_VGA_MAJOR): Likewise.
3380
* include/grub/i386/pc/efiemu.h: Removed.
3381
* include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
3382
* include/grub/i386/qemu/loader.h: Removed.
3383
* include/grub/i386/relocator.h: Rewritten.
3384
* include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
3385
* include/grub/mips/memory.h: New file.
3386
* include/grub/mips/multiboot.h: Rewritten.
3387
* include/grub/mips/relocator.h: Rewritten.
3388
* include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
3389
(grub_vtop): New function.
3390
(grub_map_memory): Likewise.
3391
(grub_unmap_memory): Likewise.
3392
* include/grub/misc.h (ALIGN_DOWN): New definition.
3393
* include/grub/mm.h (grub_mm_check_real): New proto.
3394
(GRUB_MM_CHECK): New definition.
3395
* include/grub/mm_private.h: New file.
3396
* include/grub/multiboot.h (grub_multiboot_relocator): New variable.
3397
(grub_multiboot_get_mbi_size): Removed.
3398
(grub_multiboot_make_mbi): Change prottype.
3399
(grub_multiboot_set_accepts_video): New proto.
3400
(grub_multiboot_add_elfsyms): Likewise.
3401
(grub_multiboot_payload_eip): New variable.
3402
* include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
3404
* include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
3406
(GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
3407
(GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
3408
* include/grub/powerpc/ieee1275/loader.h: Removed.
3409
* include/grub/powerpc/memory.h: New file.
3410
* include/grub/powerpc/relocator.h: Likewise.
3411
* include/grub/relocator.h: Likewise.
3412
* include/grub/relocator_private.h: Likewise.
3413
* include/grub/sparc64/ieee1275/loader.h: Removed.
3414
* include/grub/x86_64/memory.h: New file.
3415
* include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
3416
(grub_xnu_heap_malloc): Likewise.
3417
(grub_xnu_heap_real_start): Removed.
3418
(grub_xnu_heap_start): Likewise.
3419
(grub_xnu_relocator): New variable.
3420
(grub_xnu_heap_target_start): Likewise.
3421
* tests/util/grub-shell.in: Support non-pc.
3422
* util/grub-mkimage.c (image_targets): Fix multiboot target.
3424
2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3426
* grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
3428
(grub_bidi_logical_to_visual): Check that malloc succeded.
3429
* grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
3431
(grub_xputs_normal): Likewise.
3433
2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3435
* grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
3438
2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3440
* grub-core/efiemu/runtime/efiemu.sh: Removed.
3442
2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3444
* Makefile.util.def (grub-ofpathname): Add missing ldadd.
3446
2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3448
* grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
3451
2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
3453
* Makefile.util.def: Use ldadd instead of ldflags for libraries.
3455
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3457
* grub-core/normal/term.c (print_more): Fix a memory leak.
3458
(grub_puts_terminal): Revert to dumb puts if memory allocation fails.
3459
(grub_xputs_normal): Likewise.
3461
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3463
* grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
3464
the begining of the string
3466
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3468
* grub-core/script/script.c (grub_script_parse): Free parsed on
3471
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3473
* grub-core/normal/completion.c (grub_normal_do_completion): Free argv
3476
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3478
* grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
3481
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3483
* grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
3484
(scroll_up): Fix a memory leak.
3486
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3488
* grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
3491
2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
3493
Handle USB pendrives exposed as floppies.
3495
* grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
3497
* grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
3498
Check for partitions on all devices.
3500
2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
3502
* grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
3503
(readkey): Likewise.
3505
2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
3507
Multiple variable names support to "export" command.
3509
* normal/context.c (grub_cmd_export): "export" command supports
3510
multiple variable names.
3512
2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
3514
* util/grub.d/30_os-prober.in: Fix conversion from grub-probe
3515
--target=drive output to Mach device name.
3517
2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
3519
New Automake based build system for GRUB.
3521
* ABOUT-NLS: New file.
3522
* Makefile.am: New file. GRUB host utils' rules that doesn't fit
3523
in Makefile.util.def file.
3524
* Makefile.util.def: New file. Autogen build definitions file for
3526
* conf/Makefile.common: New file. Common variables for GRUB host
3527
utils and target modules.
3528
* conf/Makefile.extra-dist: New file. Extra files for make dist.
3529
* docs/Makefile.am: New file. Automake file for docs.
3530
* gentpl.py: New file. Python script to generate Autogen
3532
* grub-core/Makefile.am: New file. GRUB target modules' rules
3533
that doesn't fit in Makefile.core.def file.
3534
* grub-core/Makefile.core.def: New file. Autogen build
3535
definitions file for GRUB target modules.
3536
* grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
3537
specific setjmp.S file.
3538
* po/Makefile.am: New file.
3540
* .bzrignore: New ignores.
3541
* INSTALL: New requirements, without Ruby.
3542
* acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
3543
* autogen.sh: Updated to invoke autogen as necessary.
3544
* configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
3545
and defines for Automake conditionals.
3546
* geninit.sh: Refactoring.
3548
* include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
3550
* include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
3553
* include/grub/test.h: Fix functional test modules' naming.
3554
* grub-core/tests/example_functional_test.c: Fix test module name.
3556
* util/misc.c: Hosted versions' of grub functions for libgrub.a
3557
* tests/lib/unit_test.c: Remove hosted versions of grub functions.
3558
* util/grub-editenv.c: Likewise.
3559
* util/grub-fstest.c: Likewise.
3560
* util/grub-mkdevicemap.c: Likewise.
3561
* util/grub-mkfont.c: Likewise.
3562
* util/grub-mkimage.c: Likewise.
3563
* util/grub-mkpasswd-pbkdf2.c: Likewise.
3564
* util/grub-probe.c: Likewise.
3565
* util/grub-script-check.c: Likewise.
3566
* util/i386/pc/grub-setup.c: Likewise.
3567
* util/sparc64/ieee1275/grub-setup.c: Likewise.
3569
* tests/util/grub-shell.in: Fix override directory path.
3570
* util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
3571
* util/import_gcry.py: Create Makefile.gcry.def file instead.
3573
* util/lvm.c: Update #includes.
3574
* util/raid.c: Likewise.
3575
* util/resolve.c: Likewise.
3576
* grub-core/bus/emu/pci.c: Likewise.
3577
* grub-core/lib/posix_wrap/stdlib.h: Likewise.
3578
* grub-core/lib/posix_wrap/string.h: Likewise.
3579
* grub-core/kern/emu/main.c: Likewise.
3581
* grub-core/gensymlist.sh: New file. Script for generating kernel
3583
* grub-core/genmoddep.awk: Support new kernel_syms.lst format.
3585
* grub-core/gentrigtables.c: Fix unused variable warnings.
3587
* Makefile.in: Removed.
3588
* conf/any-emu.rmk: Removed.
3589
* conf/common.rmk: Removed.
3590
* conf/i386-coreboot.rmk: Removed.
3591
* conf/i386-efi.rmk: Removed.
3592
* conf/i386-ieee1275.rmk: Removed.
3593
* conf/i386-multiboot.rmk: Removed.
3594
* conf/i386-pc.rmk: Removed.
3595
* conf/i386-qemu.rmk: Removed.
3596
* conf/i386.rmk: Removed.
3597
* conf/mips-yeeloong.rmk: Removed.
3598
* conf/mips.rmk: Removed.
3599
* conf/powerpc-ieee1275.rmk: Removed.
3600
* conf/sparc64-ieee1275.rmk: Removed.
3601
* conf/tests.rmk: Removed.
3602
* conf/x86-efi.rmk: Removed.
3603
* conf/x86_64-efi.rmk: Removed.
3604
* gendistlist.sh: Removed.
3605
* geninitheader.sh: Removed.
3606
* genkernsyms.sh.in: Removed.
3607
* genmk.rb: Removed.
3608
* gensymlist.sh.in: Removed.
3609
* mkinstalldirs: Removed.
3611
* grub-core/boot: ... to here.
3613
* grub-core/bus: ... to here.
3614
* commands: Moved ...
3615
* grub-core/commands: ... to here.
3617
* grub-core/disk: ... to here.
3619
* grub-core/efiemu: ... to here.
3621
* grub-core/font: ... to here.
3623
* grub-core/fs: ... to here.
3624
* gencmdlist.sh: Moved ...
3625
* grub-core/gencmdlist.sh: ... to here.
3626
* genemuinit.sh: Moved ...
3627
* grub-core/genemuinit.sh: ... to here.
3628
* genemuinitheader.sh: Moved ...
3629
* grub-core/genemuinitheader.sh: ... to here.
3630
* genfslist.sh: Moved ...
3631
* grub-core/genfslist.sh: ... to here.
3632
* genhandlerlist.sh: Moved ...
3633
* grub-core/genhandlerlist.sh: ... to here.
3634
* genmoddep.awk: Moved ...
3635
* grub-core/genmoddep.awk: ... to here.
3636
* genmodsrc.sh: Moved ...
3637
* grub-core/genmodsrc.sh: ... to here.
3638
* genpartmaplist.sh: Moved ...
3639
* grub-core/genpartmaplist.sh: ... to here.
3640
* genparttoollist.sh: Moved ...
3641
* grub-core/genparttoollist.sh: ... to here.
3642
* genterminallist.sh: Moved ...
3643
* grub-core/genterminallist.sh: ... to here.
3644
* gentrigtables.c: Moved ...
3645
* grub-core/gentrigtables.c: ... to here.
3646
* genvideolist.sh: Moved ...
3647
* grub-core/genvideolist.sh: ... to here.
3648
* gettext: Moved ...
3649
* grub-core/gettext: ... to here.
3650
* gfxmenu: Moved ...
3651
* grub-core/gfxmenu: ... to here.
3653
* grub-core/gnulib: ... to here.
3655
* grub-core/hello: ... to here.
3657
* grub-core/hook: ... to here.
3659
* grub-core/io: ... to here.
3661
* grub-core/kern: ... to here.
3663
* grub-core/lib: ... to here.
3665
* grub-core/loader: ... to here.
3667
* grub-core/mmap: ... to here.
3669
* grub-core/normal: ... to here.
3670
* partmap: Moved ...
3671
* grub-core/partmap: ... to here.
3672
* parttool: Moved ...
3673
* grub-core/parttool: ... to here.
3675
* grub-core/script: ... to here.
3677
* grub-core/term: ... to here
3678
* tests/example_functional_test.c: Moved ...
3679
* grub-core/tests/example_functional_test.c: ... to here.
3680
* tests/lib/functional_test.c: Moved ...
3681
* grub-core/tests/lib/functional_test.c: ... to here.
3682
* tests/lib/test.c: Moved ...
3683
* grub-core/tests/lib/test.c: ... to here.
3685
* grub-core/video: ... to here.
3687
2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
3689
Replace --enable-grub-emu-modules with grub-emu-lite.
3691
* kern/emu/cache.S: New file. Wrapper for $target_cpu specific
3694
* include/grub/emu/misc.h (grub_emu_init): New prototype.
3695
* kern/emu/full.c: New file. For grub-emu specific initialization.
3696
* kern/emu/lite.c: New file. For grub-emu-lite initialization.
3697
* kern/emu/main.c: Call initialization function grub_emu_init.
3699
* Makefile.in: Include grub-emu-lite in install.
3700
* commands/parttool.c: Use grub_no_autoload to differentiate
3701
between grub-emu and grub-emu-lite.
3702
* include/grub/misc.h: New variable grub_no_autoload.
3704
* conf/any-emu.rmk: New rules for grub-emu-lite.
3705
* configure.ac: Remove --enable-grub-emu-modules.
3706
* genmk.rb: Cleanup unnecessary rules.
3707
* include/grub/dl.h: Remove GRUB_NO_MODULES macro.
3709
* normal/main.c: Don't load list files on grub-emu-lite.
3710
* util/misc.c (grub_arch_sync_caches): Removed.
3712
2010-08-23 Colin Watson <cjwatson@ubuntu.com>
3714
* kern/mips/startup.S (grub_prefix): Update comment to refer to
3715
grub-mkimage rather than grub-mkelfimage.
3716
* kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
3718
2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
3720
* term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
3721
a key after CapsLock or NumLock. It's just a qemu bug.
3723
2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
3725
* include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
3726
needed by libusb wrapper.
3728
2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3730
* docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
3732
2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
3734
* loader/multiboot.c (grub_cmd_module): Don't unzip module if
3735
--nounzip is passed.
3737
2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
3739
USB hotunplugging and USB serial support.
3741
* bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
3742
* bus/usb/uhci.c (grub_free_queue): Compute *actual.
3743
(grub_uhci_transfer): Respect timeout and set *actual.
3744
* bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
3745
non-standard length.
3746
(grub_usb_device_attach): Autoload modules.
3747
(GRUB_MOD_INIT): Set grub_term_poll_usb.
3748
(GRUB_MOD_FINI): Unset grub_term_poll_usb.
3749
* bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
3751
(grub_usb_add_hub): Fill nports and children.
3752
(attach_root_port): Receive hub instead of controller.
3753
All users updated. Fill hub->devices.
3754
(grub_usb_root_hub): Allocate hub->devices.
3755
(detach_device): New function.
3756
(poll_nonroot_hub): Fill children and detach devices.
3757
* bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
3758
actual arguments. All users updated.
3759
(grub_usb_bulk_read_extended): New function.
3760
* bus/usb/serial/common.c: New file.
3761
* bus/usb/serial/ftdi.c: Likewise.
3762
* bus/usb/serial/pl2303.c: Likewise.
3763
* commands/terminal.c (handle_command): Support wildcard.
3764
* commands/usbtest.c: Output "Unknown" instead of empty string.
3765
* conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
3766
(usbserial_common_mod_SOURCES): New variable.
3767
(usbserial_common_mod_CFLAGS): Likewise.
3768
(usbserial_common_mod_LDFLAGS): Likewise.
3769
(pkglib_MODULES): Add usbserial_pl2303.mod.
3770
(usbserial_pl2303_mod_SOURCES): New variable.
3771
(usbserial_pl2303_mod_CFLAGS): Likewise.
3772
(usbserial_pl2303_mod_LDFLAGS): Likewise.
3773
(pkglib_MODULES): Add usbserial_ftdi.mod.
3774
(usbserial_ftdi_mod_SOURCES): New variable.
3775
(usbserial_ftdi_mod_CFLAGS): Likewise.
3776
(usbserial_ftdi_mod_LDFLAGS): Likewise.
3777
(pkglib_MODULES): Add serial.mod.
3778
(serial_mod_SOURCES): New variable.
3779
(serial_mod_CFLAGS): Likewise.
3780
(serial_mod_LDFLAGS): Likewise.
3781
* conf/i386-pc.rmk: Likewise.
3782
* conf/mips-yeeloong.rmk: Likewise.
3783
* conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
3784
* conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
3785
* disk/usbms.c (first_available_slot): New variable.
3786
(grub_usbms_attach): Don't reuse free slots due to potential cache
3788
* include/grub/serial.h: Moved to ..
3789
* include/grub/ns8250.h: ...this.
3790
* include/grub/serial.h: New file.
3791
* include/grub/term.h (grub_term_poll_usb): New variable.
3792
* include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
3793
readkey. All users updated.
3794
(grub_terminfo_output_state): Pass term to put.
3795
* include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
3796
(grub_usb_controller_dev): Add timeout and actual arguments to
3797
transfer. All users updated.
3798
(grub_usb_interface): New field detach_data.
3799
(grub_usb_device): New fields children and nports.
3800
(grub_usb_ep_type_t): New type.
3801
(grub_usb_get_ep_type): New function.
3802
(grub_usb_bulk_read_extended): Likewise.
3803
* include/grub/usbdesc.h (grub_usb_desc): New type.
3804
* include/grub/usbserial.h: New file.
3805
* include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
3806
* kern/term.c (grub_term_poll_usb): New variable.
3807
(grub_getkey): Call grub_term_poll_usb if set.
3808
(grub_checkkey): Likewise.
3809
(grub_getkeystatus): Likewise.
3810
* term/serial.c: Moved controller-specific parts to ...
3811
* term/ns8250.c: ... here.
3812
* term/serial.c: Mostly rewritten.
3813
* term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
3816
2010-08-20 Robert Millan <rmh@gnu.org>
3818
Make kFreeBSD code more generic to support ext2fs as root, ufs as
3819
a separate module and maybe other interesting combinations.
3821
* util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
3822
(kfreebsd_entry): Use load_kfreebsd_module() to load modules.
3823
(kfreebsd_entry): Add generic filesystem module load routine.
3824
Map GRUB `ext2' to kFreeBSD `ext2fs'.
3826
2010-08-20 Colin Watson <cjwatson@ubuntu.com>
3828
* commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
3829
"numcenter" (I misunderstood the purpose of this entry).
3830
* docs/grub.texi (sendkey): Likewise.
3832
2010-08-20 Colin Watson <cjwatson@ubuntu.com>
3834
* commands/i386/pc/sendkey.c (options): Remove "keep" from all
3835
status flag options; simply omitting the option is equivalent and
3836
simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
3837
(keysym_table): Rename "num5numlock" to "numlock".
3838
(grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
3839
can uniformly say that only the last of multiple `sendkey'
3840
invocations has any effect.
3841
* docs/grub.texi (sendkey): New section.
3843
2010-08-19 Colin Watson <cjwatson@ubuntu.com>
3845
* commands/i386/pc/sendkey.c (options): Fix three typos.
3847
2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3849
Implement sendkey support.
3851
* commands/i386/pc/sendkey.c: New file.
3852
* conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
3853
(sendkey_mod_SOURCES): New variable.
3854
(sendkey_mod_CFLAGS): Likewise.
3855
(sendkey_mod_LDFLAGS): Likewise.
3857
2010-08-18 Colin Watson <cjwatson@ubuntu.com>
3859
* configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
3860
fix warnings from Autoconf.
3862
2010-08-18 Colin Watson <cjwatson@ubuntu.com>
3864
* acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
3865
to avoid false positives with some assemblers that output things
3866
like "someprefix_func" as part of their output.
3868
2010-08-15 Robert Millan <rmh@gnu.org>
3870
* kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
3872
* kern/emu/getroot.c (find_root_device_from_libzfs): Handle
3873
grub_get_libzfs_handle() errors.
3875
2010-08-14 Robert Millan <rmh@gnu.org>
3877
* kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
3878
filesystem is not ZFS.
3880
2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3882
Fix for misspelled color names defaulting to black/black (bug
3883
reported by Doug Nazar)
3885
* include/grub/normal.h (grub_parse_color_name_pair): Add return
3886
status to prototype.
3887
* normal/color.c (grub_parse_color_name_pair): Return failure
3889
(grub_env_write_color_normal): Ignore bad color names.
3890
(grub_env_write_color_highlight): Likewise.
3891
* normal/main.c (GRUB_MOD_INIT): Set default color names.
3893
2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3895
"shift" command support to GRUB script.
3897
* include/grub/script_sh.h (grub_script_shift): New prototype.
3898
* script/execute.c (grub_script_shift): New function.
3899
* script/main.c (grub_script_init): Register shift command.
3900
(grub_script_fini): Unregister shift command.
3901
* util/grub-script-check.c (grub_script_cmd_shift): New function.
3903
* tests/grub_script_shift.in: New testcase.
3904
* conf/tests.rmk: Rules for new testcase.
3906
2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3908
"continue" command support to GRUB script.
3910
* script/execute.c (grub_script_execute_cmdwhile): Continue support.
3911
(grub_script_break): Continue support.
3912
* script/main.c (grub_script_init): Register continue command.
3913
(grub_script_fini): Unregister continue command.
3915
* tests/grub_script_continue.in: New testcase.
3916
* conf/tests.rmk: Rules for new testcase.
3918
2010-08-12 BVK Chaitanya <bvk@dbook>
3920
"break" command support to GRUB script.
3922
* conf/common.rmk: Rule updates to grub-script-check.
3923
* include/grub/misc.h (grub_min): New function.
3924
* include/grub/script_sh.h (grub_script_init): New prototype.
3925
(grub_script_fini): New prototype.
3926
(grub_script_break): New prototype.
3927
* script/main.c (grub_script_init): New function.
3928
(grub_script_fini): New function.
3929
* script/execute.c (grub_script_break): New function.
3930
* normal/main.c: Calls to grub_script_{init,fini}.
3931
* util/grub-script-check.c (grub_script_break): New function.
3933
* tests/grub_script_break.in: New testcase.
3934
* conf/tests.rmk: Rules for new test case.
3936
2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3938
Function parameters support to GRUB script.
3940
* script/yylex.l (VARIABLE): Regular expression update.
3941
* script/function.c (grub_script_function_call): Moved ...
3942
* script/execute.c (grub_script_function_call): ... to here.
3943
(grub_script_execute_arglist_to_argv): Removed.
3944
(grub_script_arglist_to_argv): New function.
3945
* script/argv.c: New file.
3946
(grub_script_argv_free): New function.
3947
(grub_script_argv_next): Likewise.
3948
(grub_script_argv_append): Likewise.
3949
(grub_script_argv_split_append): Likewise.
3950
* include/grub/script_sh.h (grub_script_argv): New struct.
3951
(grub_script_argv_free): New function.
3952
(grub_script_argv_next): Likewise.
3953
(grub_script_argv_append): Likewise.
3954
(grub_script_argv_split_append): Likewise.
3956
* conf/common.rmk (normal.mod): New source script/argv.c.
3958
* tests/grub_script_echo1.in: More tests.
3959
* tests/grub_script_vars1.in: Likewise.
3960
* tests/grub_script_functions.in: New test case.
3961
* conf/tests.rmk: Rules for new testcase.
3963
2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3965
Remove grub_script_cmdblock struct.
3967
* include/grub/script_sh.h: Remove grub_script_cmdblock.
3968
* script/parser.y: Likewise.
3969
* script/execute.c: Rename cmdblock suffix to cmdlist.
3970
* script/script.c: Likewise.
3971
* util/grub-script-check.c: Likewise.
3973
2010-08-11 Yves Blusseau <blusseau@zetam.org>
3975
* .bzrignore: add grub-macho2img
3977
2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
3979
* kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
3981
2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
3983
Remove the dump of sm712 initialisation sequence.
3985
* include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
3986
* include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
3987
(GRUB_VGA_IO_MISC_WRITE): Likewise.
3988
(GRUB_VGA_CR_*): Added many registers.
3989
(GRUB_VGA_SR_*): Likewise.
3990
(GRUB_VGA_GR_*): Likewise.
3991
(grub_vga_write_arx): New function.
3992
(grub_video_hw_config): New struct.
3993
(grub_vga_set_geometry): New function.
3994
* kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
3995
GRUB_PCI_CLASS_SUBCLASS_VGA.
3996
* video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
3997
* video/sm712.c (grub_sm712_write_reg): New function
3998
(grub_sm712_read_reg): Likewise.
3999
(grub_sm712_sr_write): Likewise.
4000
(grub_sm712_gr_write): Likewise.
4001
(grub_sm712_cr_write): Likewise.
4002
(grub_sm712_write_arx): Likewise.
4003
(grub_sm712_cr_shadow_write): Likewise.
4004
(grub_sm712_write_dda_lookup): Likewise.
4005
(grub_video_sm712_setup): Initialise the video rather then
4006
blindly replay the dump.
4007
(main) [TEST]: Add a routine to be able to compile as standalone for
4009
* video/sm712_init.c (sm712_init): Removed.
4010
(sm712_sr_seq1): New array.
4011
(sm712_sr_seq2): Likewise.
4013
2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
4015
* include/grub/vga.h: Add missing grub/pci.h include.
4017
2010-08-10 Yves Blusseau <blusseau@zetam.org>
4019
* util/grub-macho2img.c (main): fix typo
4021
2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
4023
* include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
4024
(grub_vga_gr_read): Likewise.
4025
(grub_vga_cr_write): Likewise.
4026
(grub_vga_cr_read): Likewise.
4027
(grub_vga_sr_write): Likewise.
4028
(grub_vga_sr_read): Likewise.
4029
(grub_vga_palette_read): Likewise.
4030
(grub_vga_palette_write): Likewise.
4031
* video/sm712.c (GRUB_SM712_REG_BASE): New definition.
4032
(grub_sm712_sr_read): New function.
4033
(grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
4034
* video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
4036
2010-08-09 Robert Millan <rmh@gnu.org>
4038
* kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
4039
out unused variables on non-ZFS build.
4041
2010-08-08 Robert Millan <rmh@gnu.org>
4043
Fix path generation for sub-filesystems in ZFS.
4045
* kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
4048
2010-08-08 Robert Millan <rmh@gnu.org>
4050
* util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
4052
2010-08-08 Robert Millan <rmh@gnu.org>
4054
* util/grub.d/10_kfreebsd.in: When files required for ZFS do not
4055
exist, issue a proper error message (rely on `ls' for translated
4058
2010-08-08 Robert Millan <rmh@gnu.org>
4060
Fix grub-probe invocation.
4062
* util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
4064
2010-08-04 Robert Millan <rmh@gnu.org>
4066
* configure.ac: Remove checks for getfsstat() and getmntany().
4067
Add checks for `<sys/param.h>' and `<sys/mount.h>'.
4068
* kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
4069
[HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
4070
[HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
4071
[HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
4073
(grub_find_zpool_from_dir): Use statfs() instead of indirect matching
4074
via find_mount_point_from_dir() and getfsstat() / getmntany().
4076
2010-08-04 Robert Millan <rmh@gnu.org>
4078
* include/grub/emu/misc.h (grub_find_mount_point_from_dir)
4079
(grub_find_zpool_from_mount_point): Merge into ...
4080
(grub_find_zpool_from_dir): ... this.
4081
* kern/emu/misc.c: Likewise.
4084
(grub_make_system_path_relative_to_its_root): Replace
4085
grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
4086
with grub_find_zpool_from_dir().
4087
* kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
1
4089
2010-08-04 Robert Millan <rmh@gnu.org>
3
4091
Support OpenSolaris in ZFS device resolution.