--- Begin Message ---
Subject: |
GRUB: Hercules console and vbeset command |
Date: |
Thu, 14 Dec 2000 11:08:18 +0100 |
Hi Okuji Yoshinori,
I've appended a patch to the current GRUB in cvs. This patch adds two
features to GRUB:
- The "terminal" command knows about a "hercules" type:
"terminal hercules"
switches to a hercules screen. In our test machines we usually have two
graphics cards installed: The primary VGA card and an additional Hercules
graphics card for debugging purposes.
(added hercules functions to shared.h, asm.S, stage2.c, char_io.c and
builtins.c)
- There is a new command vbeset: vbeset <mode> switches into VESA2 graphics
mode <mode>. This works simular to testvbe but there are some differents
to testvbe:
* the mode will _not_ switched back to text after the command finished
* the VESA2 graphics mode info and controller mode info is stored in a
memory block, and pointers to this info is stored in the multiboot_info
structure (create_vbe_module in boot.c) so that all multiboot modules
can use the information
(added vbeset stuff to shared.h, builtins.c and boot.c)
drawbacks of my solution:
* because I allocate a memory chunk with help of the cur_addr pointer,
a multiboot kernel has to be loaded before the vbeset command may be
executed.
* for each vbeset command a new chunk of memory is allocated
=> perhaps we could overcome these two drawbacks when we allocate a single
memory area for the VESA2 info and reuse it on every vbeset command.
Please apply the patch with the following commands to the current CVS release
(12-14-2000) of grub:
cd grub/stage2
patch < grub_stage2_patch
Greetings,
Frank
--
Frank Mehnert
## Dept. of Computer Science, Dresden University of Technology, Germany ##
## E-Mail: address@hidden http://os.inf.tu-dresden.de/~fm3 ##
grub_stage2_patch
Description: GRUB Patch
--- End Message ---