]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
15 years ago custom.cfg support.
Vladimir 'phcoder' Serbinenko [Sat, 12 Jun 2010 11:20:21 +0000 (13:20 +0200)] 
custom.cfg support.

* conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
* util/grub.d/41_custom.in: New file.

15 years ago* util/grub-mkrescue.in (make_image): Remove sh module, which has
Colin Watson [Sat, 12 Jun 2010 11:02:38 +0000 (12:02 +0100)] 
* util/grub-mkrescue.in (make_image): Remove sh module, which has
been merged back into normal.

15 years ago* include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
Colin Watson [Fri, 11 Jun 2010 21:15:35 +0000 (22:15 +0100)] 
* include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
(GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).

15 years ago* Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
Colin Watson [Fri, 11 Jun 2010 21:12:16 +0000 (22:12 +0100)] 
* Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
when generating manual pages.
* docs/man/grub-bin2h.h2m: New file.
* docs/man/grub-editenv.h2m: New file.
* docs/man/grub-fstest.h2m: New file.
* docs/man/grub-install.h2m: New file.
* docs/man/grub-macho2img.h2m: New file.
* docs/man/grub-mkconfig.h2m: New file.
* docs/man/grub-mkdevicemap.h2m: New file.
* docs/man/grub-mkfont.h2m: New file.
* docs/man/grub-mkimage.h2m: New file.
* docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
* docs/man/grub-mkrelpath.h2m: New file.
* docs/man/grub-mkrescue.h2m: New file.
* docs/man/grub-ofpathname.h2m: New file.
* docs/man/grub-pe2elf.h2m: New file.
* docs/man/grub-probe.h2m: New file.
* docs/man/grub-reboot.h2m: New file.
* docs/man/grub-script-check.h2m: New file.
* docs/man/grub-set-default.h2m: New file.
* docs/man/grub-setup.h2m: New file.

15 years ago Use FOR_* macros instead of *_iterate whenever possible.
Vladimir 'phcoder' Serbinenko [Fri, 11 Jun 2010 20:31:16 +0000 (22:31 +0200)] 
Use FOR_* macros instead of *_iterate whenever possible.

* commands/handler.c: Removed.
* commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
* commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
* conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
* conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
(grub_probe_SOURCES): Remove kern/parser.c.
(util/grub-script-check.c_DEPENDENCIES): Removed.
(grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
and grub_script_check_init.c.
(grub_script_check_init.lst): Removed.
(grub_script_check_init.h): Likewise.
(grub_script_check_init.c): Likewise.
(pkglib_MODULES): Remove handler.mod and sh.mod.
(handler_mod_SOURCES): Removed.
(handler_mod_CFLAGS): Likewise.
(handler_mod_LDFLAGS): Likewise.
(normal_mod_SOURCES): Remove normal/handler.c.
Add script/main.c, script/script.c, script/execute.c,
script/function.c, script/lexer.c, grub_script.tab.c
and grub_script.yy.c.
* conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
* conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
* conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
(grub_setup_SOURCES): Remove kern/parser.c.
* conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
* conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
* conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
(grub_setup_SOURCES): Remove kern/parser.c.
* conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
* gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
* include/grub/command.h (grub_command_iterate): Removed.
(FOR_COMMANDS): New macro.
* include/grub/dl.h (grub_dl): New member next.
(grub_dl_iterate): Removed.
(grub_dl_head): New variable declaration.
(FOR_DL_MODULES): New macro.
* include/grub/fs.h: Include list.h.
(grub_fs): Make next first element.
(grub_fs_list): New variable declaration.
(grub_fs_register): Make inline.
(grub_fs_unregister): Likewise.
(grub_fs_iterate): Removed.
(FOR_FILESYSTEMS): New macro.
* include/grub/handler.h: Removed.
* include/grub/list.h (grub_list_hook_t): Removed.
(grub_list_test_t): Likewise.
(grub_list_pop): Likewise.
(grub_list_iterate): Likewise.
(grub_list_insert): Likewise.
(FOR_LIST_ELEMENTS): New macro.
* include/grub/parser.h (grub_parser_class): Removed.
(grub_parser_register): Likewise.
(grub_parser_unregister): Likewise.
(grub_parser_get_current): Likewise.
(grub_parser_set_current): Likewise.
(grub_register_rescue_parser): Likewise.
(grub_rescue_parse_line): New function.
* include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
* include/grub/script_sh.h (grub_script_function_list): New variable
declaration.
(FOR_SCRIPT_FUNCTIONS): New macro.
(grub_script_function_iterate): Removed.
(grub_normal_parse_line): New prototype.
* include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
(FOR_DISABLED_TERM_INPUTS): Likewise.
(FOR_ACTIVE_TERM_OUTPUTS): Likewise.
(FOR_DISABLED_TERM_OUTPUTS): Likewise.
* include/grub/video.h (grub_video_adapter): Move 'next' to first
element.
(grub_video_register): Inline.
(grub_video_unregister): Likewise.
(grub_video_adapter_list): New variable declaration.
(grub_video_iterate): Removed.
(FOR_VIDEO_ADAPTERS): New macro.
* kern/dl.c (grub_dl_list): Removed. All users updated.
(grub_dl_iterate): Removed.
* kern/fs.c (grub_fs_list): Make global.
(grub_fs_register): Removed.
(grub_fs_unregister): Likewise.
(grub_fs_iterate): Likewise.
* kern/handler.c: Removed.
* kern/list.c (grub_list_pop): Removed.
(grub_list_iterate): Likewise.
(grub_list_insert): Likewise.
(grub_named_list_find): Use FOR_LIST_ELEMENTS.
(grub_prio_list_insert): Don't use grub_list_insert.
* kern/main.c (grub_register_rescue_parser): Don't call
grub_register_rescue_parser.
* kern/parser.c (grub_parser_class): Removed.
(grub_parser_execute): Use grub_rescue_parse_line.
* kern/rescue_parser.c (grub_rescue_parse_line): Make global.
(grub_rescue_parser): Removed.
(grub_register_rescue_parser): Likewise.
* kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
* normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
(grub_auth_check_authentication): Likewise.
* normal/completion.c (iterate_command): Removed.
(grub_normal_do_completion): Use FOR_COMMANDS.
* normal/handler.c: Removed.
* normal/main.c (read_config_file): Remove parser changing.
(grub_normal_execute): Don't call read_handler_list.
(grub_normal_read_line_real): Statically allocate prompt.
(grub_cmdline_run): Use grub_normal_parse_line.
(GRUB_MOD_FINI): Don't call free_handler_list.
* normal/menu_entry.c (run): Likewise.
* script/function.c (grub_script_function_list): Make global.
(grub_script_function_iterate): Removed.
* script/main.c (grub_normal_parse_line): Make global.
(grub_sh_parser): Removed.
(GRUB_MOD_INIT): Likewise.
(GRUB_MOD_FINI): Likewise.
* tests/lib/functional_test.c (grub_functional_test): Use
FOR_LIST_ELEMENTS.
* tests/lib/test.c (free_failures): Don't use grub_list_pop.
(grub_test_run): Use FOR_LIST_ELEMENTS.
* tests/lib/unit_test.c (main): Likewise.
* util/deviceiter.c (grub_util_iterate_devices): Don't use
grub_list_pop.
* util/grub-fstest.c (grub_term_input_class): Removed.
(grub_term_output_class): Likewise.
* util/grub-probe.c: Likewise.
* util/i386/pc/grub-setup.c: Likewise.
* util/sparc64/ieee1275/grub-setup.c: Likewise.
* util/grub-script-check.c (main): Don't call grub_init_all and
grub_fini_all.
* video/video.c (grub_video_adapter_list): Make global.
(grub_video_register): Removed.
(grub_video_unregister): Likewise.
(grub_video_iterate): Likewise.

15 years ago * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
Vladimir 'phcoder' Serbinenko [Wed, 9 Jun 2010 20:24:12 +0000 (22:24 +0200)] 
* docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
reported by Henrique Ferreiro.

15 years ago2010-06-09 Robert Millan <rmh@gnu.org>
Robert Millan [Wed, 9 Jun 2010 18:43:25 +0000 (20:43 +0200)] 
2010-06-09  Robert Millan  <rmh@gnu.org>

* util/grub.d/10_linux.in: Prefer compressed images over non-compressed
ones, when both are available.

15 years agoMake --version uniform and avoid hard-coded program name.
Grégoire Sutre [Tue, 8 Jun 2010 10:52:42 +0000 (12:52 +0200)] 
Make --version uniform and avoid hard-coded program name.

15 years agoUse absolute offsets for start of embedding area.
Grégoire Sutre [Tue, 8 Jun 2010 10:23:30 +0000 (12:23 +0200)] 
Use absolute offsets for start of embedding area.

15 years agoAdd . to the directories searched for unifont.
Grégoire Sutre [Tue, 8 Jun 2010 10:09:34 +0000 (12:09 +0200)] 
Add . to the directories searched for unifont.

15 years ago* .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
Colin Watson [Tue, 8 Jun 2010 09:37:16 +0000 (10:37 +0100)] 
* .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
grub_script.yy.h.

15 years ago* docs/grub.texi (History): Expand to cover GRUB 2.
Colin Watson [Tue, 8 Jun 2010 09:29:25 +0000 (10:29 +0100)] 
* docs/grub.texi (History): Expand to cover GRUB 2.
(Serial terminal): Refer to `terminal_input' and `terminal_output'
commands, not `terminal'.
(serial): Likewise.
(terminal_input): New section.
(terminal_output): New section.
(uppermem): New section (stub).
(Obtaining and Building GRUB): Refer to Bazaar, not Subversion.

15 years ago* docs/grub.texi (Security): Menu entries are unrestricted by
Colin Watson [Tue, 8 Jun 2010 09:18:53 +0000 (10:18 +0100)] 
* docs/grub.texi (Security): Menu entries are unrestricted by
default, not restricted to superusers as I had previously thought.
Reword to account for this.

15 years ago* kern/emu/misc.c (device_mapper_null_log): New function.
Colin Watson [Mon, 7 Jun 2010 21:41:55 +0000 (22:41 +0100)] 
* kern/emu/misc.c (device_mapper_null_log): New function.
(grub_device_mapper_supported): New function.
* include/grub/emu/misc.h (grub_device_mapper_supported): Add
prototype.
* kern/emu/hostdisk.c (find_partition_start): Check whether
device-mapper is supported before trying to use it.
* util/deviceiter.c (grub_util_iterate_devices): Likewise.

15 years ago* docs/grub.texi (Naming convention): Use GRUB 2 syntax.
Colin Watson [Mon, 7 Jun 2010 21:18:00 +0000 (22:18 +0100)] 
* docs/grub.texi (Naming convention): Use GRUB 2 syntax.
(File name syntax): Likewise.
(help): --all is no longer supported in GRUB 2.  Be more precise
about pattern matching.

15 years ago* normal/completion.c (grub_normal_do_completion): When completing
Colin Watson [Mon, 7 Jun 2010 21:13:26 +0000 (22:13 +0100)] 
* normal/completion.c (grub_normal_do_completion): When completing
arguments to "set" and the current word contains an equals sign,
skip to after the equals sign before starting completion.

15 years ago* fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
Colin Watson [Mon, 7 Jun 2010 20:29:25 +0000 (21:29 +0100)] 
* fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.

15 years ago* docs/grub.texi (Network): New section.
Colin Watson [Mon, 7 Jun 2010 20:26:30 +0000 (21:26 +0100)] 
* docs/grub.texi (Network): New section.
(Device syntax): The network device is called `(pxe)' in GRUB 2, not
`(nd)' as in GRUB Legacy.
(pxe_unload): New section.

15 years ago* docs/grub.texi (Troubleshooting): `echo' is not usually available
Colin Watson [Mon, 7 Jun 2010 20:10:29 +0000 (21:10 +0100)] 
* docs/grub.texi (Troubleshooting): `echo' is not usually available
in the rescue shell, so recommend using `set' instead.  Thanks,
Jordan Uggla.

15 years ago* docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
Colin Watson [Mon, 7 Jun 2010 13:32:12 +0000 (14:32 +0100)] 
* docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
(password): New section.
(password_pbkdf2): New section.
(search): New section.
(Security): New section.
(Troubleshooting): New section, currently very incomplete.
(Invoking grub-mkpasswd-pbkdf2): New section.
(Internals): New section, currently very incomplete.

15 years ago* util/grub.d/00_header.in: Add some more quoting (of
Colin Watson [Mon, 7 Jun 2010 13:22:40 +0000 (14:22 +0100)] 
* util/grub.d/00_header.in: Add some more quoting (of
"${prev_saved_entry}" and "${boot_once}") needed to make savedefault
work again.
Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).

15 years ago* util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
Colin Watson [Mon, 7 Jun 2010 13:15:57 +0000 (14:15 +0100)] 
* util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
to `count', fixing variable shadowing that broke the -c option.

15 years ago* util/grub.d/00_header.in: Quote values assigned to `saved_entry',
Colin Watson [Sat, 5 Jun 2010 19:44:44 +0000 (20:44 +0100)] 
* util/grub.d/00_header.in: Quote values assigned to `saved_entry',
in case they contain spaces.

15 years ago* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
Colin Watson [Fri, 4 Jun 2010 12:53:30 +0000 (13:53 +0100)] 
* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
"part_" to partmap module names, in line with grub-install.
Reported by: Jindřich Makovička (Debian bug #584426).

15 years ago* util/grub-mkimage.c: Make target-related error messages slightly
Colin Watson [Fri, 4 Jun 2010 12:38:10 +0000 (13:38 +0100)] 
* util/grub-mkimage.c: Make target-related error messages slightly
more helpful; -O talks about "format".  Explicitly point to the use
of -O if no target is specified.
Reported by: Didier Raboud (Debian bug #584415).

15 years ago* INSTALL: Document several build requirements for optional features
Colin Watson [Thu, 3 Jun 2010 08:48:23 +0000 (09:48 +0100)] 
* INSTALL: Document several build requirements for optional features
(libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).

15 years agoHandle all possible disk device names for NetBSD.
Grégoire Sutre [Wed, 2 Jun 2010 22:47:22 +0000 (00:47 +0200)] 
Handle all possible disk device names for NetBSD.

15 years ago* docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
Colin Watson [Wed, 2 Jun 2010 21:48:13 +0000 (22:48 +0100)] 
* docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
Thanks to Jordan Uggla for spotting this.

15 years ago2010-06-02 Aleš Nesrsta <starous@volny.cz>
Aleš Nesrsta [Wed, 2 Jun 2010 15:16:20 +0000 (17:16 +0200)] 
2010-06-02  Aleš Nesrsta <starous@volny.cz>

Finally make USB usable.

* bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
(GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
(GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
(GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
(GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
(GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
(GRUB_OHCI_FSMPS): Likewise.
(GRUB_OHCI_PERIODIC_START): Likewise.
(GRUB_OHCI_FRAME_INTERVAL): Likewise.
(GRUB_OHCI_SET_PORT_ENABLE): Likewise.
(GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
(GRUB_OHCI_SET_PORT_RESET): Likewise.
(GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
* bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
(grub_ohci_transaction): Likewise.
(grub_ohci_transfer): Improve condition detection algorithms.
Handle toggle property. Program the transactions correctly.
Improve error handling. Various important fixups.
(grub_ohci_portstatus): Put register writes in right order.
* bus/usb/uhci.c (grub_free_queue): Compute last_trans.
(grub_uhci_transfer): Don't show "failed" message on success.
* bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
array.
(grub_usb_device_initialize): Read first 8 bytes of descriptor to
determine its size.
* bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
before initialization is completed. Use IN direction for empty
transfers. Use last_trans and compute toggle.
* include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
(GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
(GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
(GRUB_USB_FEATURE_TEST_MODE): Likewise.
* include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
(grub_usb_device): Increase toggle to 256.
(grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
GRUB_USBMS_SUBCLASS_SFF8070.
* include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
(grub_scsi_inquiry): New member page and alloc_length.
(grub_scsi_request_sense): New structure.
(grub_scsi_request_sense_data): Likewise.
(grub_scsi_read_capacity): New fields logical_block_addr, PMI and
control.
* disk/scsi.c (grub_scsi_request_sense): New function.
(grub_scsi_test_unit_ready): Likewise.
(grub_scsi_inquiry): Fill new fields.
(grub_scsi_read_capacity): Likewise.
(grub_scsi_read10): Add request sense at the end.
(grub_scsi_read12): Likewise.
(grub_scsi_write10): Likewise.
(grub_scsi_write12): Likewise.
(grub_scsi_open): Add Test Unit Ready.
* disk/usbms.c (grub_usbms_finddevs): Check configcnt.
Support additional subclasses. Con't clear halt yet. Activate the
proper config. Calculate LUNs correctly.
(grub_usbms_transfer): Various important fixups.

2010-06-02  Vladimir Serbinenko  <phcoder@gmail.com>

* bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
* bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
(grub_ohci_fini_hw): New function.
(grub_ohci_restore_hw): Likewise.
(GRUB_MOD_INIT(ohci)): Register preboot hook.
(GRUB_MOD_FINI(ohci)): Shutdown OHCI.
* term/usb_keyboard.c: Remove include of grub/machine/console.h.

2010-06-02  Vladimir Serbinenko  <phcoder@gmail.com>

Dedicated DMA allocations.

* bus/pci.c (grub_memalign_dma32): New function
(grub_dma_free): Likewise.
(grub_dma_get_virt): Likewise.
(grub_dma_get_phys): Likewise.
* bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
(grub_ohci_pci_iter): Use dma32_alloc.
(grub_ohci_transfer): Likewise.
* bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
(grub_usb_bulk_readwrite): Likewise.
* include/grub/pci.h: Add declarations.

2010-06-02  Vladimir Serbinenko  <phcoder@gmail.com>

CS5536 support.

* bus/cs5536.c: New file.
* bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
* conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
(cs5536_mod_SOURCES): New variable.
(cs5536_mod_CFLAGS): Likewise.
(cs5536_mod_LDFLAGS): Likewise.
* conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
machine/pci.h.
(kernel_img_SOURCES): Add bus/cs5536.c.
(pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
usb_keyboard.mod.
(usb_mod_SOURCES): New variable.
(usb_mod_CFLAGS): New variable.
(usb_mod_LDFLAGS): New variable.
(usbtest_mod_SOURCES): New variable.
(usbtest_mod_CFLAGS): New variable.
(usbtest_mod_LDFLAGS): New variable.
(ohci_mod_SOURCES): New variable.
(ohci_mod_CFLAGS): New variable.
(ohci_mod_LDFLAGS): New variable.
(usbms_mod_SOURCES): New variable.
(usbms_mod_CFLAGS): New variable.
(usbms_mod_LDFLAGS): New variable.
(usb_keyboard_mod_SOURCES): New variable.
(usb_keyboard_mod_CFLAGS): New variable.
(usb_keyboard_mod_LDFLAGS): New variable.
* include/grub/smbus.h: New file.
* include/grub/cs5536.h: New file.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
15 years agoAdd ChangeLog
Vladimir 'phcoder' Serbinenko [Wed, 2 Jun 2010 14:52:16 +0000 (16:52 +0200)] 
Add ChangeLog

15 years agoRemove double defines and use dma_free
Vladimir 'phcoder' Serbinenko [Wed, 2 Jun 2010 14:51:54 +0000 (16:51 +0200)] 
Remove double defines and use dma_free

15 years agoUse memset
Vladimir 'phcoder' Serbinenko [Wed, 2 Jun 2010 14:49:22 +0000 (16:49 +0200)] 
Use memset

15 years agoEnable USB on 64-bit (still won't work with >= 4GiB memory).
Vladimir 'phcoder' Serbinenko [Wed, 2 Jun 2010 14:48:10 +0000 (16:48 +0200)] 
Enable USB on 64-bit (still won't work with >= 4GiB memory).

15 years agoAdd necessarry cast
Vladimir 'phcoder' Serbinenko [Wed, 2 Jun 2010 14:46:55 +0000 (16:46 +0200)] 
Add necessarry cast

15 years agoRemove leftover early debug exit.
Vladimir 'phcoder' Serbinenko [Wed, 2 Jun 2010 14:46:37 +0000 (16:46 +0200)] 
Remove leftover early debug exit.

15 years agoSort scsi_cmd_t.
Vladimir 'phcoder' Serbinenko [Wed, 2 Jun 2010 14:45:43 +0000 (16:45 +0200)] 
Sort scsi_cmd_t.

15 years ago* util/grub.d/00_header.in: Add safety check to make sure that
Colin Watson [Wed, 2 Jun 2010 12:57:13 +0000 (13:57 +0100)] 
* util/grub.d/00_header.in: Add safety check to make sure that
${locale_dir} exists before trying to probe it.

15 years ago* docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
Colin Watson [Wed, 2 Jun 2010 12:11:33 +0000 (13:11 +0100)] 
* docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
per the GNU Coding Standards; this is now too obscure to be worth
documenting.
(QNX): Likewise.
(chainloader): Remove cross-reference to `SCO UnixWare'.

15 years ago* docs/grub.texi (Chain-loading): New section.
Colin Watson [Wed, 2 Jun 2010 11:47:11 +0000 (12:47 +0100)] 
* docs/grub.texi (Chain-loading): New section.
(DOS/Windows): New section, borrowed from GRUB Legacy with details
adjusted for GRUB 2.
(SCO UnixWare): Likewise.
(QNX): Likewise.
(chainloader): Add reference to `Block list syntax'.
(drivemap): New section.
(parttool): New section.

15 years ago* docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
Colin Watson [Wed, 2 Jun 2010 10:26:28 +0000 (11:26 +0100)] 
* docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
the grub shell'.
(Installation): Add reference to `Making a GRUB bootable CD-ROM'.
(Installing GRUB using grub-install): Remove reference to the grub
shell; mention `grub-mkimage' and `grub-setup' instead.
(Invoking grub-install): Likewise.
(Interface): Add reference to `Menu entry editor'.
(serial): Remove `--device' option.

15 years ago* docs/grub.texi (Configuration): New section, documenting
Colin Watson [Wed, 2 Jun 2010 10:14:02 +0000 (11:14 +0100)] 
* docs/grub.texi (Configuration): New section, documenting
configuration file generation using grub-mkconfig.  I've left a slot
for documenting the full shell scripting format but have not yet
started on writing that up.
(Invoking grub-mkconfig): New section.

15 years agoShut down PHCI controller harder
Vladimir 'phcoder' Serbinenko [Wed, 2 Jun 2010 03:00:54 +0000 (05:00 +0200)] 
Shut down PHCI controller harder

15 years agoDisable unused list
Vladimir 'phcoder' Serbinenko [Wed, 2 Jun 2010 02:52:52 +0000 (04:52 +0200)] 
Disable unused list

15 years agoFix last_trans determination
Vladimir 'phcoder' Serbinenko [Wed, 2 Jun 2010 02:52:35 +0000 (04:52 +0200)] 
Fix last_trans determination

15 years agoFewstylistic fixes
Vladimir 'phcoder' Serbinenko [Wed, 2 Jun 2010 02:51:35 +0000 (04:51 +0200)] 
Fewstylistic fixes

15 years ago* docs/grub.texi (direntry): Remove grub-terminfo reference.
Colin Watson [Wed, 2 Jun 2010 01:50:04 +0000 (02:50 +0100)] 
* docs/grub.texi (direntry): Remove grub-terminfo reference.
(GNU GRUB manual): Likewise.
(General commands): Update description of `terminfo' for GRUB 2.

15 years ago* commands/gptsync.c (grub_cmd_gptsync): Fix typos.
Colin Watson [Wed, 2 Jun 2010 01:37:55 +0000 (02:37 +0100)] 
* commands/gptsync.c (grub_cmd_gptsync): Fix typos.
(GRUB_MOD_INIT): Fix capitalisation.
* docs/grub.texi (Command-line and menu entry commands): Document
gettext and gptsync commands.

15 years ago* conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
Colin Watson [Wed, 2 Jun 2010 00:23:34 +0000 (01:23 +0100)] 
* conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.

15 years agoUse dev->descdev.maxsize0 even if dev->initialized isn't set
Aleš Nesrsta [Wed, 2 Jun 2010 00:04:45 +0000 (02:04 +0200)] 
Use dev->descdev.maxsize0 even if dev->initialized isn't set

15 years agoAdd btrfs probing support, currently only in the single-device case.
Colin Watson [Tue, 1 Jun 2010 17:30:20 +0000 (18:30 +0100)] 
Add btrfs probing support, currently only in the single-device case.
* kern/emu/getroot.c (find_root_device_from_mountinfo): New
function.
(grub_guess_root_device): Call find_root_device_from_mountinfo
before looking in /dev.

15 years ago* kern/emu/getroot.c (find_root_device_from_mountinfo): Use getline instead
Colin Watson [Tue, 1 Jun 2010 17:05:29 +0000 (18:05 +0100)] 
* kern/emu/getroot.c (find_root_device_from_mountinfo): Use getline instead
of fgets into a static buffer.  Use sizeof instead of strlen on a constant
string.  Thanks to Vladimir for review.

15 years agoMerge Aleš' latest patch
Aleš Nesrsta [Tue, 1 Jun 2010 00:10:19 +0000 (02:10 +0200)] 
Merge Aleš' latest patch

15 years ago * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
Vladimir 'phcoder' Serbinenko [Mon, 31 May 2010 19:01:01 +0000 (21:01 +0200)] 
* disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
GRUB_DISK_SIZE_UNKNOWN.
* disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.

15 years ago * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
Jiro SEKIBA [Mon, 31 May 2010 18:49:42 +0000 (20:49 +0200)] 
* include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
* fs/nilfs.c: Support 2nd super block in case 1st one is accidently
corrupted or not synced properly.

15 years ago * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
Vladimir 'phcoder' Serbinenko [Mon, 31 May 2010 18:46:16 +0000 (20:46 +0200)] 
* normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
Reported by: Seth Goldberg.

15 years ago * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
Vladimir 'phcoder' Serbinenko [Mon, 31 May 2010 18:43:28 +0000 (20:43 +0200)] 
* loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
addition of dest.
Reported by: Seth Goldberg.

15 years ago * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
Vladimir 'phcoder' Serbinenko [Mon, 31 May 2010 18:40:42 +0000 (20:40 +0200)] 
* commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
Reported by: Seth Goldberg.

15 years ago * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
Vladimir 'phcoder' Serbinenko [Mon, 31 May 2010 18:23:51 +0000 (20:23 +0200)] 
* loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
64-bit address as signed on MIPS.

15 years agoFix a bunch of problems with USB.
Aleš Nesrsta [Mon, 31 May 2010 12:11:41 +0000 (14:11 +0200)] 
Fix a bunch of problems with USB.

15 years agoShut down OHCI on booting
Vladimir 'phcoder' Serbinenko [Mon, 31 May 2010 12:01:38 +0000 (14:01 +0200)] 
Shut down OHCI on booting

15 years agoDedicated DMA allocation functions. CS5536 OHCI support.
Vladimir 'phcoder' Serbinenko [Mon, 31 May 2010 11:58:18 +0000 (13:58 +0200)] 
Dedicated DMA allocation functions. CS5536 OHCI support.

15 years ago* configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
Colin Watson [Fri, 28 May 2010 17:13:48 +0000 (18:13 +0100)] 
* configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
to the empty string.

15 years ago Fix grub-emu issues on NetBSD, with gcc 4.1.3.
BVK Chaitanya [Fri, 28 May 2010 13:48:45 +0000 (19:18 +0530)] 
Fix grub-emu issues on NetBSD, with gcc 4.1.3.

* conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
* include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
* kern/misc.c (__enable_execute_stack): Disable on
GRUB_MACHINE_EMU.

15 years agoMake grub-probe work with symbolic links under /dev/mapper as well
Colin Watson [Fri, 28 May 2010 12:21:30 +0000 (13:21 +0100)] 
Make grub-probe work with symbolic links under /dev/mapper as well
as with real block devices.  The Linux world seems to be (at best)
in transition here, and GRUB shouldn't get caught in the middle.
* kern/emu/getroot.c (find_root_device): Follow symbolic links under
/dev/mapper.

15 years agoMake grub-probe work with symbolic links under /dev/mapper as well
Colin Watson [Fri, 28 May 2010 10:51:50 +0000 (11:51 +0100)] 
Make grub-probe work with symbolic links under /dev/mapper as well
as with real block devices.  The Linux world seems to be (at best)
in transition here, and GRUB shouldn't get caught in the middle.
* kern/emu/getroot.c (find_root_device): Follow symbolic links under
/dev/mapper.

15 years agomerge from mainline
Colin Watson [Thu, 27 May 2010 15:36:31 +0000 (16:36 +0100)] 
merge from mainline

15 years ago* util/grub-script-check.c (main): Ensure defined behaviour on empty
Colin Watson [Thu, 27 May 2010 14:54:18 +0000 (15:54 +0100)] 
* util/grub-script-check.c (main): Ensure defined behaviour on empty
input files (in which case exit zero).

15 years ago* kern/emu/misc.c (canonicalize_file_name): realpath can still
Colin Watson [Thu, 27 May 2010 14:45:41 +0000 (15:45 +0100)] 
* kern/emu/misc.c (canonicalize_file_name): realpath can still
return NULL for various reasons even if it has a maximum-length
buffer: for example, there might be a symlink loop, or the path
might exceed PATH_MAX.  If this happens, return NULL.

15 years ago2010-05-27 Robert Millan <rmh@gnu.org>
Robert Millan [Thu, 27 May 2010 14:38:16 +0000 (16:38 +0200)] 
2010-05-27  Robert Millan  <rmh@gnu.org>

* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
partmap module to handle cross-partmap setups.
Reported by Orestes Mas.  Gràcies!

15 years ago* util/grub-mkrescue.in: Initialise override_dir rather than
Colin Watson [Thu, 27 May 2010 11:43:22 +0000 (12:43 +0100)] 
* util/grub-mkrescue.in: Initialise override_dir rather than
assuming that it's unset or empty in the environment.

15 years agoFix -Wshadow warning with emu build on NetBSD.
Grégoire Sutre [Wed, 26 May 2010 21:49:52 +0000 (23:49 +0200)] 
Fix -Wshadow warning with emu build on NetBSD.

15 years ago * INSTALL: Added flex >= 2.5.35 requirement.
BVK Chaitanya [Tue, 25 May 2010 12:54:46 +0000 (18:24 +0530)] 
* INSTALL: Added flex >= 2.5.35 requirement.

15 years ago * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
Vladimir 'phcoder' Serbinenko [Sun, 23 May 2010 12:37:28 +0000 (14:37 +0200)] 
* commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.

15 years ago cmostest support.
Vladimir 'phcoder' Serbinenko [Sun, 23 May 2010 12:16:17 +0000 (14:16 +0200)] 
cmostest support.

* commands/i386/cmostest.c: New file.
* conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
(cmostest_mod_SOURCES): New variable.
(cmostest_mod_CFLAGS): Likewise.
(cmostest_mod_LDFLAGS): Likewise.
* conf/i386-pc.rmk: Likewise.
* docs/grub.texi (Vendor power-on keys): New section.
* util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
and GRUB_BUTTON_CMOS_ADDRESS.
* util/grub.d/00_header.in: Handle powering-on by separate button.

15 years agoAdd default/grub support
Vladimir 'phcoder' Serbinenko [Sun, 23 May 2010 12:11:11 +0000 (14:11 +0200)] 
Add default/grub support

15 years ago * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
Vladimir 'phcoder' Serbinenko [Sun, 23 May 2010 11:59:50 +0000 (13:59 +0200)] 
* gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
Removed drawing_scrollbar argument. All users updated
Fixes #29792.
Reported by Jo Shields

15 years ago * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
Vladimir 'phcoder' Serbinenko [Sun, 23 May 2010 11:43:38 +0000 (13:43 +0200)] 
* gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
buffer since gfxterm handles double repaint.

15 years ago * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
Vladimir 'phcoder' Serbinenko [Sun, 23 May 2010 11:42:16 +0000 (13:42 +0200)] 
* gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
* term/gfxterm.c (real_scroll): Likewise.

15 years agomerge mainline into cmostest
Vladimir 'phcoder' Serbinenko [Sat, 22 May 2010 18:28:09 +0000 (20:28 +0200)] 
merge mainline into cmostest

15 years ago * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
Vladimir 'phcoder' Serbinenko [Fri, 21 May 2010 18:22:29 +0000 (20:22 +0200)] 
* kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
before calling BIOS.

15 years ago * include/grub/i18n.h: Always enable grub_gettext.
Vladimir 'phcoder' Serbinenko [Fri, 21 May 2010 18:12:41 +0000 (20:12 +0200)] 
* include/grub/i18n.h: Always enable grub_gettext.

15 years ago * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
Vladimir 'phcoder' Serbinenko [Fri, 21 May 2010 18:08:48 +0000 (20:08 +0200)] 
* kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
partition naming style.

15 years ago* util/grub-mkconfig.in: Fix handling of -o so that it works when
Colin Watson [Fri, 21 May 2010 13:17:15 +0000 (14:17 +0100)] 
* util/grub-mkconfig.in: Fix handling of -o so that it works when
not the first option.

15 years ago* util/grub-mkrelpath.c (usage): Remove excess apostrophe.
Colin Watson [Thu, 20 May 2010 22:27:15 +0000 (23:27 +0100)] 
* util/grub-mkrelpath.c (usage): Remove excess apostrophe.

15 years ago* util/misc.c: Move inclusion of <limits.h> to ...
Colin Watson [Thu, 20 May 2010 22:16:10 +0000 (23:16 +0100)] 
* util/misc.c: Move inclusion of <limits.h> to ...
* kern/emu/misc.c: ... here.  Needed for canonicalize_file_name.

15 years agoFix merge error in NetBSD code.
Grégoire Sutre [Thu, 20 May 2010 00:05:43 +0000 (02:05 +0200)] 
Fix merge error in NetBSD code.

15 years ago Fix grub-mkrescue usage unit testing.
BVK Chaitanya [Wed, 19 May 2010 09:01:43 +0000 (14:31 +0530)] 
Fix grub-mkrescue usage unit testing.

* tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.

15 years ago * util/grub.d/10_windows.in: Use path names instead of
Christian Franke [Tue, 18 May 2010 19:58:49 +0000 (21:58 +0200)] 
* util/grub.d/10_windows.in: Use path names instead of
drive letters to prevent warning from Cygwin 1.7.
Add drivemap command to menuentry if needed.

15 years ago2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
Samuel Thibault [Tue, 18 May 2010 18:10:37 +0000 (20:10 +0200)] 
2010-05-18  Justus Winter  <4winter@informatik.uni-hamburg.de>

* util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
gnumach and gnumach.gz.

15 years agoAdd btrfs probing support, currently only in the single-device case.
Colin Watson [Tue, 18 May 2010 12:01:59 +0000 (13:01 +0100)] 
Add btrfs probing support, currently only in the single-device case.
* kern/emu/getroot.c (find_root_device_from_mountinfo): New
function.
(grub_guess_root_device): Call find_root_device_from_mountinfo
before looking in /dev.

15 years ago * include/grub/i18n.h (gettext): Inline instead of using #define.
Vladimir 'phcoder' Serbinenko [Tue, 18 May 2010 12:00:51 +0000 (14:00 +0200)] 
* include/grub/i18n.h (gettext): Inline instead of using #define.
(grub_gettext): Likewise.
(_): Likewise.

15 years ago * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
Vladimir 'phcoder' Serbinenko [Tue, 18 May 2010 11:55:26 +0000 (13:55 +0200)] 
* Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
-DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
* util/grub-mkimage.c (image_targets): Add i386-multiboot.
(main): Add a slash after pkglibdirroot.

15 years ago * util/grub-install.in: Add missing "in" keyword.
Vladimir 'phcoder' Serbinenko [Tue, 18 May 2010 11:45:25 +0000 (13:45 +0200)] 
* util/grub-install.in: Add missing "in" keyword.

15 years ago2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
Vladimir 'phcoder' Serbinenko [Tue, 18 May 2010 12:21:15 +0000 (14:21 +0200)] 
2010-05-18  Vladimir Serbinenko  <phcoder@gmail.com>

* util/grub-mkrescue.in: Remove -O i386-pc duplication.
Reported by: Seth Goldberg.

15 years ago * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
Vladimir 'phcoder' Serbinenko [Tue, 18 May 2010 12:20:00 +0000 (14:20 +0200)] 
* po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.

15 years ago* configure.ac: Check for Linux device-mapper support.
Colin Watson [Tue, 18 May 2010 11:33:35 +0000 (12:33 +0100)] 
* configure.ac: Check for Linux device-mapper support.
* util/hostdisk.c (device_is_mapped): New function.
(find_partition_start): New function, partly broken out from
linux_find_partition and grub_util_biosdisk_get_grub_dev but with
device-mapper support added.
(linux_find_partition): Use find_partition_start.
(convert_system_partition_to_system_disk): Add `st' argument.
Support Linux /dev/mapper/* devices if device-mapper support is
available; only DM-RAID devices are understood at present.
(find_system_device): Add `st' argument.  Pass it to
convert_system_partition_to_system_disk.
(grub_util_biosdisk_get_grub_dev): Pass stat result to
find_system_device and convert_system_partition_to_system_disk.  Use
find_partition_start.
* conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
* util/deviceiter.c [__linux__]: Define MINOR.
(grub_util_iterate_devices): Add support for DM-RAID disk devices.
* util/mkdevicemap.c (grub_putchar): New function.
(grub_getkey): New function.
(grub_refresh): New function.
(main): Set debug=all if -v -v is used.

15 years agoFix build with non-GNU libcs.
Colin Watson [Tue, 18 May 2010 10:57:31 +0000 (11:57 +0100)] 
Fix build with non-GNU libcs.
* util/misc.c (canonicalize_file_name): Move to ...
* kern/emu/misc.c (canonicalize_file_name): ... here.  Needed by
grub_make_system_path_relative_to_its_root.

15 years ago* util/grub-mkrescue.in: Sync up with grub-install in terms of how
Colin Watson [Tue, 18 May 2010 10:51:37 +0000 (11:51 +0100)] 
* util/grub-mkrescue.in: Sync up with grub-install in terms of how
we handle finding grub-mkimage.  Default to finding grub-mkimage in
${bindir} with program_transform_name applied, and provide a
--grub-mkimage option to override this.

15 years agomerge from trunk
Colin Watson [Tue, 18 May 2010 10:14:13 +0000 (11:14 +0100)] 
merge from trunk

15 years ago Remove grub-mkisofs.
Vladimir 'phcoder' Serbinenko [Mon, 17 May 2010 21:33:03 +0000 (23:33 +0200)] 
Remove grub-mkisofs.

* conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
(grub_mkisofs_SOURCES): Removed.
(grub_mkisofs_CFLAGS): Removed.
* util/mkisofs/defaults.h: Removed.
* util/mkisofs/eltorito.c: Likewise.
* util/mkisofs/exclude.h: Likewise.
* util/mkisofs/hash.c: Likewise.
* util/mkisofs/include/: Likewise.
* util/mkisofs/include/fctldefs.h: Likewise.
* util/mkisofs/include/mconfig.h: Likewise.
* util/mkisofs/include/prototyp.h: Likewise.
* util/mkisofs/include/statdefs.h: Likewise.
* util/mkisofs/iso9660.h: Likewise.
* util/mkisofs/joliet.c: Likewise.
* util/mkisofs/match.c: Likewise.
* util/mkisofs/match.h: Likewise.
* util/mkisofs/mkisofs.c: Likewise.
* util/mkisofs/mkisofs.h: Likewise.
* util/mkisofs/msdos_partition.h: Likewise.
* util/mkisofs/multi.c: Likewise.
* util/mkisofs/name.c: Likewise.
* util/mkisofs/rock.c: Likewise.
* util/mkisofs/tree.c: Likewise.
* util/mkisofs/write.c: Likewise.