]> git.proxmox.com Git - grub2.git/log
grub2.git
14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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).

14 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.

14 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.

14 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).

14 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).

14 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).

14 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.

14 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.

14 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>
14 years agoAdd ChangeLog
Vladimir 'phcoder' Serbinenko [Wed, 2 Jun 2010 14:52:16 +0000 (16:52 +0200)]
Add ChangeLog

14 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

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

14 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).

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

14 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.

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

14 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.

14 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'.

14 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.

14 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.

14 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.

14 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

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

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

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

14 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.

14 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.

14 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.

14 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

14 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.

14 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.

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

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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

14 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.

14 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.

14 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.

14 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.

14 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.

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

14 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).

14 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.

14 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!

14 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.

14 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.

14 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.

14 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.

14 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.

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

14 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

14 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.

14 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.

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

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

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

14 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.

14 years ago Unify grub-mkimage accross platforms.
Vladimir 'phcoder' Serbinenko [Mon, 17 May 2010 21:04:10 +0000 (23:04 +0200)]
Unify grub-mkimage accross platforms.

* Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
* conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
(grub_mkelfimage_SOURCES): Removed.
(util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
(util/grub-mkimage.c_DEPENDENCIES): .. this.
(bin_UTILITIES): Add grub-mkimage.
(grub_mkimage_SOURCES): New variable.
(kernel_img_HEADERS): Remove machine/kernel.h.
* conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
(pkglib_PROGRAMS): Add kernel.img.
(kernel_img_HEADERS): Add machine/kernel.h.
(kernel_img_FORMAT): Removed.
(bin_UTILITIES): Remove grub-mkimage.
(grub_mkimage_SOURCES): Removed.
(grub_mkimage_CFLAGS): Likewise.
(util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
* conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
(pkglib_PROGRAMS): Add kernel.img.
(bin_UTILITIES): Remove grub-mkimage.
(grub_mkimage_SOURCES): Removed.
(grub_mkimage_CFLAGS): Likewise.
(util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
* conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
(pkglib_PROGRAMS): Add kernel.img.
* conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
(pkglib_PROGRAMS): Add kernel.img.
* conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
(grub_mkimage_SOURCES): Removed.
(grub_mkimage_CFLAGS): Likewise.
(util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
* conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
(pkglib_PROGRAMS): Add kernel.img.
(bin_UTILITIES): Remove grub-mkimage.
(grub_mkimage_SOURCES): Removed.
(grub_mkimage_CFLAGS): Likewise.
(util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
* conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
(grub_mkimage_SOURCES): Removed.
(grub_mkimage_CFLAGS): Likewise.
(util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
* configure.ac (machine_CFLAGS): Add "-DMACHINE".
* include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
(grub_pe32_optional_header): ... this.
(grub_pe64_optional_header): ... and this. All users updated.
(GRUB_PE32_PE32_MAGIC): Split into ..
(GRUB_PE32_PE32_MAGIC): .. this.
(GRUB_PE32_PE64_MAGIC): .. and this.
(GRUB_PE32_SIGNATURE_SIZE): New definition.
* include/grub/elf.h (PT_GNU_STACK): New definition.
* include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
* include/grub/i386/efi/kernel.h: Likewise.
* include/grub/i386/kernel.h: Likewise.
* include/grub/i386/pc/kernel.h: Likewise.
* include/grub/i386/qemu/boot.h: Likewise.
* include/grub/mips/kernel.h: Likewise.
* include/grub/mips/qemu-mips/kernel.h: Likewise.
* include/grub/powerpc/ieee1275/kernel.h: Likewise.
* include/grub/powerpc/kernel.h: Likewise.
* include/grub/sparc64/ieee1275/boot.h: Likewise.
* include/grub/sparc64/ieee1275/kernel.h: Likewise.
* include/grub/sparc64/kernel.h: Likewise.
* include/grub/x86_64/efi/kernel.h: Likewise.
* include/grub/x86_64/kernel.h: Likewise.
* include/grub/offsets.h: New file.
* include/grub/kernel.h (grub_module_info): Split into ...
(grub_module_info32): ... this.
(grub_module_info64): ... and this.
* include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
* include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
(grub_boot_blocklist): Moved from here ...
* include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
* include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
* include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
* include/grub/types.h (grub_target_to_host16): Removed.
(grub_target_to_host32): Likewise.
(grub_target_to_host64): Likewise.
(grub_host_to_target16): Likewise.
(grub_host_to_target32): Likewise.
(grub_host_to_target64): Likewise.
(grub_host_to_target_addr): Likewise.

Support grub-mkrescue for efi, coreboot and qemu.

* conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
* kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
* util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
* util/grub-mkrawimage.c: Moved from here ...
* util/grub-mkimage.c: ... here. All users updated.
(ALIGN_ADDR): Use image_target.
(TARGET_NO_FIELD): New const.
(image_target_desc): New type.
(image_targets): New array.
(grub_target_to_host64): Use image_target.
(grub_target_to_host32): Likewise.
(grub_target_to_host16): Likewise.
(grub_host_to_target64): Likewise.
(grub_host_to_target32): Likewise.
(grub_host_to_target16): Likewise.
(grub_host_to_target_addr): Likewise.
(generate_image): Handle multiimage.
(main): Require -O parameter. All users updated.
* util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
util/efi/grub-mkimage.c
* util/grub-mkrescue.in: Handle coreboot, efi and qemu.
New option --rom-directory.
Use xorriso.
* util/i386/efi/grub-mkimage.c: Removed.
* util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
(grub_target_to_host32): Likewise.
(grub_target_to_host64): Likewise.
(grub_host_to_target16): Likewise.
(grub_host_to_target32): Likewise.
(grub_host_to_target64): Likewise.
* util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
(grub_target_to_host32): Likewise.
(grub_target_to_host64): Likewise.
(grub_host_to_target16): Likewise.
(grub_host_to_target32): Likewise.
(grub_host_to_target64): Likewise.

14 years agoRevert spurious change in Makefile.in
Vladimir 'phcoder' Serbinenko [Mon, 17 May 2010 20:28:51 +0000 (22:28 +0200)]
Revert spurious change in Makefile.in

14 years agoadd missing sh.mod
Vladimir 'phcoder' Serbinenko [Mon, 17 May 2010 20:23:22 +0000 (22:23 +0200)]
add missing sh.mod

14 years agoCherrypick bugfixes and coreboot+qemu support from expermental
Vladimir 'phcoder' Serbinenko [Mon, 17 May 2010 19:35:39 +0000 (21:35 +0200)]
Cherrypick bugfixes and coreboot+qemu support from expermental

14 years agomerge mainline into rescue-efi
Vladimir 'phcoder' Serbinenko [Mon, 17 May 2010 19:26:16 +0000 (21:26 +0200)]
merge mainline into rescue-efi

14 years agosource tree reorg for emu platform
BVK Chaitanya [Mon, 17 May 2010 15:40:53 +0000 (21:10 +0530)]
source tree reorg for emu platform

14 years agomerge with mainline
BVK Chaitanya [Mon, 17 May 2010 15:06:05 +0000 (20:36 +0530)]
merge with mainline

14 years ago Fix gfxmenu crash.
Vladimir 'phcoder' Serbinenko [Thu, 13 May 2010 01:56:14 +0000 (03:56 +0200)]
Fix gfxmenu crash.
Reported by: Thorsten Grützmacher.

* gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
timeout hook.
(circprog_set_property): Register and unregister timeout hook.
* gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
(label_destroy): Free template. and unregister hook.
(label_set_state): New function.
(label_set_property): Handle templates and hooks.
* gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
timeout hook.
(progress_bar_set_property): Register and unregister timeout hook.
* gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
* include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
* gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
(update_timeout_visit): Removed.
(update_timeouts): New function.
(redraw_timeouts): Likewise.
(grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
(grub_gfxmenu_clear_timeout): Likewise.
* include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
(grub_gfxmenu_timeout_notify): Likewise.
(grub_gfxmenu_timeout_notifications): New external variable.
(grub_gfxmenu_timeout_register): New function.
(grub_gfxmenu_timeout_unregister): Likewise.

14 years ago Transform (broken) vga terminal into (working) vga video driver.
Vladimir 'phcoder' Serbinenko [Sun, 9 May 2010 09:00:21 +0000 (11:00 +0200)]
Transform (broken) vga terminal into (working) vga video driver.

* conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
video/i386/pc/vga.c.
* include/grub/video.h (grub_video_driver_id):
Add GRUB_VIDEO_DRIVER_VGA.
* term/i386/pc/vga.c: Renamed to ...
* video/i386/pc/vga.c: ...this
(DEBUG_VGA): Removed.
(CHAR_WIDTH): Likewise.
(CHAR_HEIGHT): Likewise.
(TEXT_WIDTH): Likewise.
(TEXT_HEIGHT): Likewise.
(DEFAULT_FG_COLOR): Likewise.
(DEFAULT_BG_COLOR): Likewise.
(colored_char): Likewise.
(xpos): Likewise.
(ypos): Likewise.
(cursor_state): Likewise.
(fg_color): Likewise.
(bg_color): Likewise.
(text_buf): Likewise.
(page): Likewise.
(font): Likewise.
(framebuffer): New variable.
(set_read_map): Disabled.
(setup): New variable.
(is_target): Likewise.
(grub_vga_mod_init): Likewise.
(grub_vga_mod_fini): Likewise.
(check_vga_mem): Likewise.
(write_char): Likewise.
(write_cursor): Likewise.
(scroll_up): Likewise.
(grub_vga_putchar): Likewise.
(grub_vga_getcharwidth): Likewise.
(grub_vga_getwh): Likewise.
(grub_vga_getxy): Likewise.
(grub_vga_gotoxy): Likewise.
(grub_vga_cls): Likewise.
(grub_vga_setcolorstate): Likewise.
(grub_vga_setcursor): Likewise.
(grub_video_vga_init): New function.
(grub_video_vga_setup): Likewise.
(grub_video_vga_fini): Likewise.
(update_target): Likewise.
(grub_video_vga_blit_bitmap): Likewise.
(grub_video_vga_blit_render_target): Likewise.
(grub_video_vga_set_active_render_target): Likewise.
(grub_video_vga_get_active_render_target): Likewise.
(grub_video_vga_swap_buffers): Likewise.
(grub_video_vga_set_palette): Likewise.
(grub_video_vga_get_info_and_fini): Likewise.
(grub_vga_term): Removed.
(grub_video_vga_adapter): New variable.
(GRUB_MOD_INIT): Register a video driver instead of terminal.
(GRUB_MOD_FINI): Unrefister a video driver instead of terminal.