Google SoC, Fancy Menus or USB keyboard

2008-04-02 Thread Colin D Bennett
I am interested in possibly contributing to the GRUB project in the Google Summer of Code, and I was interested in further discussing the Fancy Menus idea. I have not used GRUB 2 yet (I am using Gentoo Linux primarily, with GRUB 0.9x), though I have downloaded and browsed the source code. I as

Re: Google SoC, Fancy Menus or USB keyboard

2008-04-02 Thread Colin D Bennett
Pavel Roskin wrote: On Wed, 2008-04-02 at 17:43 -0700, Colin D Bennett wrote: Does GRUB code run in real mode? I was thinking that double-buffering the graphics might be important for fancy graphics effects, and wondered whether is it difficult to allocate and deal with a megabyte or so

Re: Google SoC, Fancy Menus or USB keyboard

2008-04-02 Thread Colin D Bennett
Pavel Roskin wrote: On Wed, 2008-04-02 at 18:54 -0700, Colin D Bennett wrote: I was debugging the code to switch to the protected mode lately, so I can assure you that the address space is linear :) Is there anyone in particular on the GRUB project that I should be in contact with about

Re: Some GRUB ideas

2008-04-07 Thread Colin D Bennett
komputes wrote: Something like that would be nice. Or at least a passing mention in menu.lst that Grub starts counting from 0 not 1 in its drive/partition designations--i.e. (hd0,1) = /dev/sda2, etc. That confuses a lot of newcommers to linux, who would appreciate a command that will help them

Re: Google's Summer of Code 2008 / GRUB 2

2008-04-21 Thread Colin D Bennett
On Tue, 22 Apr 2008 00:00:06 +0300 Vesa Jääskeläinen <[EMAIL PROTECTED]> wrote: > We want to welcome both Colin and Marco to be part of GRUB 2! Hi, I'm going to be working on the "Fancy Menus" feature for GRUB 2. Once I begin producing real code, I will have my Bazaar VCS development branch avail

Re: Google's Summer of Code 2008 / GRUB 2

2008-04-23 Thread Colin D Bennett
Hi Marco, Nice to meet you! On Wed, 23 Apr 2008 11:47:36 +0200 Marco Gerards <[EMAIL PROTECTED]> wrote: > First of all, the code. I think it would be a good idea if I would > send in patches for my code so it will be immediately integrated into > GRUB 2. This would work as everyone will make su

Coding style / indent options

2008-04-29 Thread Colin D Bennett
Does anyone have a set of GNU indent (or astyle) options that correspond to the proper format for GRUB source code? I want to make sure I'm using the correct style so that I don't produce spurious changes when files I'm editing are reformatted. I tried using GNU indent (with the default GNU style)

Re: retiring device.map

2008-05-08 Thread Colin D Bennett
On Thu, 8 May 2008 01:39:47 +0800 Bean <[EMAIL PROTECTED]> wrote: > On Thu, May 8, 2008 at 1:22 AM, Pavel Roskin <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-05-07 at 15:03 +0200, Robert Millan wrote: > > > On Tue, May 06, 2008 at 11:43:48AM -0400, Pavel Roskin wrote: > > > > On Tue, 2008-05-06 a

Higher resolution timers

2008-05-12 Thread Colin D Bennett
To implement a nice GUI with some animations, it will be important to have a timer with a better resolution than 1/18 second (which appears to be the current GRUB timer resolution on the PC). What would be the best way to do this? Possibilities that I am aware of are: * RDTSC instruction (must c

Re: Higher resolution timers

2008-05-20 Thread Colin D Bennett
On Sun, 18 May 2008 19:27:05 +0300 Vesa Jääskeläinen <[EMAIL PROTECTED]> wrote: > Colin D Bennett wrote: > > I think that using the TSC (w/ RDTSC instruction) and calibrating it > > with a quick 2-3 RTC tick loop at startup might be the easiest > > option. >

Re: Higher resolution timers

2008-05-20 Thread Colin D Bennett
On Mon, 12 May 2008 09:33:54 -0700 Colin D Bennett <[EMAIL PROTECTED]> wrote: > I think that using the TSC (w/ RDTSC instruction) and calibrating it > with a quick 2-3 RTC tick loop at startup might be the easiest option. Just wondered if something like this would be a practic

Re: Higher resolution timers

2008-05-23 Thread Colin D Bennett
On Fri, 23 May 2008 13:55:21 +0200 Marco Gerards <[EMAIL PROTECTED]> wrote: > Colin D Bennett <[EMAIL PROTECTED]> writes: > > > On Mon, 12 May 2008 09:33:54 -0700 > > Colin D Bennett <[EMAIL PROTECTED]> wrote: > > > >> I think that using the

GRUB integral types? Why grub_uint32_t and not uint32_t?

2008-05-29 Thread Colin D Bennett
I was wondering why it is necessary to use the integral types with the "grub_" prefix instead of the standard uint32_t, int16_t, etc.? It makes the most simple code much more verbose when we have to write "grub_" so many times, and this seems like a case where it is not needed. Colin __

Re: why not support gzipped font file?

2008-05-31 Thread Colin D Bennett
On Sun, 1 Jun 2008 10:50:05 +0800 "y.volta" <[EMAIL PROTECTED]> wrote: > Hi, > > I noticed that, /font/manager.c:51: > > file = grub_file_open (filename); > > so, we can only use pure font file, this will need more than 1MB > bytes for font file, and more time to load

Re: Floating point usage

2008-06-05 Thread Colin D Bennett
On Thu, 05 Jun 2008 17:23:00 +0200 Stefan Reinauer <[EMAIL PROTECTED]> wrote: > Jan Kleinsorge wrote: > > Pavel Roskin wrote: > > > >> Hello! > >> > >> I tried to compile the current grub on Fedora 9 for PowerPC, but it > >> failed due to floating point usage in ls. Sorry, I don't have the > >

Installing GRUB 2 on a CompactFlash card

2008-06-05 Thread Colin D Bennett
I want to install GRUB 2 on a CompactFlash card, which I will boot on my Mini-ITX VIA C3 system for testing, by attaching the CF card to an IDE-CF adapter. Before I run grub-install, I wanted to get a confirmation that I'm doing the right thing, so I don't end up wiping out my development system's

Re: Installing GRUB 2 on a CompactFlash card

2008-06-09 Thread Colin D Bennett
On Fri, 06 Jun 2008 18:57:39 -0400 Pavel Roskin <[EMAIL PROTECTED]> wrote: > On Fri, 2008-06-06 at 02:11 -0400, Pavel Roskin wrote: > > Quoting Colin D Bennett <[EMAIL PROTECTED]>: > > > > > If I create one partition on the CF card, for GRUB, I assume I >

64 bit arithmetic?

2008-06-10 Thread Colin D Bennett
I'm working on implementing a higher resolution timer using the x86 TSC. However, this entails 64-bit arithmetic since on a 2GHz machine it will overflow a 32-bit number every couple of seconds (the TSC counter CPU cycles since boot). So to convert the TSC value into a value in milliseconds, I ne

Re: 64 bit arithmetic?

2008-06-11 Thread Colin D Bennett
On Wed, 11 Jun 2008 00:54:35 +0800 Bean <[EMAIL PROTECTED]> wrote: > On Wed, Jun 11, 2008 at 12:26 AM, Colin D Bennett <[EMAIL PROTECTED]> > wrote: > > I'm working on implementing a higher resolution timer using the x86 > > TSC. However, this entails 64-bit ari

Re: [PATCH] Drivemap module

2008-06-12 Thread Colin D Bennett
On Fri, 13 Jun 2008 00:43:31 +0200 Javier Martín <[EMAIL PROTECTED]> wrote: > Hi there, I checked your comment, reread the GNU coding guidelines and > fixed some things (stated below the relevant parts of your message). > Here is the new version of the patch. > > El jue, 12-06-2008 a las 16:31 -0

Re: [PATCH] Drivemap module

2008-06-12 Thread Colin D Bennett
On Thu, 12 Jun 2008 21:00:21 -0400 Pavel Roskin <[EMAIL PROTECTED]> wrote: > On Thu, 2008-06-12 at 15:58 -0700, Colin D Bennett wrote: > > I highly recommend running > > > > indent --no-tabs > > Why no tabs? Tabs are heavily used in the code. GNU inden

[PATCH] Tidy up 'make' output

2008-06-17 Thread Colin D Bennett
When thousands of long, wrapped lines full of command line options and file names are scrolling by on your terminal, it is very hard to pick out the irregularities in the build process, such as error and warnings. To make the output of ``make`` easier to parse by eye as it scrolls by, I added supp

[PATCH] Fix grub-install to use prefix for modules dir

2008-06-17 Thread Colin D Bennett
I fixed ``grub-install`` so it can function when installed to a prefix other than ``/usr/local``. This simply meant adding --directory="${pkglibdir} to the command line arguments for grub_mkimage. Regards, Colin=== modified file 'util/i386/pc/grub-install.in' --- util/i386/pc/grub-install.in

Re: [PATCH] Tidy up 'make' output

2008-06-17 Thread Colin D Bennett
On Tue, 17 Jun 2008 15:57:47 -0400 Pavel Roskin <[EMAIL PROTECTED]> wrote: > On Tue, 2008-06-17 at 10:44 -0700, Colin D Bennett wrote: > > When thousands of long, wrapped lines full of command line options > > and file names are scrolling by on your terminal, it is very har

Re: [PATCH] Fix grub-install to use prefix for modules dir

2008-06-17 Thread Colin D Bennett
On Tue, 17 Jun 2008 15:46:12 -0400 Pavel Roskin <[EMAIL PROTECTED]> wrote: > On Tue, 2008-06-17 at 10:51 -0700, Colin D Bennett wrote: > > I fixed ``grub-install`` so it can function when installed > > to a prefix other than ``/usr/local``. This simply meant adding &

Re: [PATCH] Fix grub-install to use prefix for modules dir

2008-06-17 Thread Colin D Bennett
On Tue, 17 Jun 2008 15:46:12 -0400 Pavel Roskin <[EMAIL PROTECTED]> wrote: > On Tue, 2008-06-17 at 10:51 -0700, Colin D Bennett wrote: > > I fixed ``grub-install`` so it can function when installed > > to a prefix other than ``/usr/local``. This simply meant adding &

Re: [PATCH] Tidy up 'make' output

2008-06-17 Thread Colin D Bennett
On Tue, 17 Jun 2008 22:37:10 +0200 Robert Millan <[EMAIL PROTECTED]> wrote: > On Tue, Jun 17, 2008 at 10:44:48AM -0700, Colin D Bennett wrote: > > with output that, in my opinion, makes it easier to see warnings and > > errors: > > > > COMPILE

Re: [PATCH] Fix grub-install to use prefix for modules dir

2008-06-17 Thread Colin D Bennett
On Tue, 17 Jun 2008 20:04:29 -0400 Pavel Roskin <[EMAIL PROTECTED]> wrote: > On Tue, 2008-06-17 at 13:04 -0700, Colin D Bennett wrote: > > > I'm not sure. All I know is that I did > > ./configure --prefix=/home/cdb/bin/grub && make && make insta

DEFLATE compression

2008-06-23 Thread Colin D Bennett
How does GRUB support decompressing DEFLATE compressed data? Based on my reading of io/gzio.c, it looks like a gzip header is required to inflate deflated data. I am implementing a new font format and will be embedding multiple blocks of compressed bitmaps in the font file for a good combination

[RFC] High resolution time support using x86 TSC

2008-06-23 Thread Colin D Bennett
it on another platform and finds problems, please let me know and I can try to fix it. Regards, Colin === modified file 'ChangeLog' --- ChangeLog 2008-06-21 14:21:03 + +++ ChangeLog 2008-06-23 14:40:22 + @@ -1,3 +1,87 @@ +2008-06-22 Colin D Bennett <[EMAIL PROTECTED]> + +

Re: DEFLATE compression

2008-06-23 Thread Colin D Bennett
On Mon, 23 Jun 2008 23:25:13 +0800 Bean <[EMAIL PROTECTED]> wrote: > On Mon, Jun 23, 2008 at 11:14 PM, Vesa Jääskeläinen <[EMAIL PROTECTED]> > wrote: > > Hi Bean, > > > > Can you check the interface as you have previously worked with it? > > This would free Colin to work on more important aspects.

grub_strdup() error; or: grub_malloc() zeroes memory?

2008-06-28 Thread Colin D Bennett
It looks like grub_strdup() does not terminate the returned string with a 0 byte. The only way I could see it working is if grub_malloc() filled the returned memory with zeroes. Does it? From kern/misc.c: (circa line 476) char * grub_strdup (const char *s) { grub_size_t len;

Re: grub_strdup() error; or: grub_malloc() zeroes memory?

2008-06-28 Thread Colin D Bennett
On Sat, 28 Jun 2008 18:25:01 +0300 Vesa Jääskeläinen <[EMAIL PROTECTED]> wrote: > Colin D Bennett wrote: > > It looks like grub_strdup() does not terminate the returned string > > with a 0 byte. The only way I could see it working is if > > grub_malloc() filled the

Re: [RFC] High resolution time support using x86 TSC

2008-07-04 Thread Colin D Bennett
On Thu, 03 Jul 2008 20:52:53 +0200 Marco Gerards <[EMAIL PROTECTED]> wrote: > Hi Colin, > > Colin D Bennett <[EMAIL PROTECTED]> writes: > > > + * kern/i386/linuxbios/init.c (grub_get_time_ms): > > + Define grub_get_time_ms() to always return 0. This

Re: [RFC] High resolution time support using x86 TSC

2008-07-04 Thread Colin D Bennett
Hi Marco, On Thu, 03 Jul 2008 20:52:53 +0200 Marco Gerards <[EMAIL PROTECTED]> wrote: > Hi Colin, > > Colin D Bennett <[EMAIL PROTECTED]> writes: > > > I have implemented high resolution time support (through the > > new grub_get_time_ms() function) using th

Re: [RFC] TSC patch v2

2008-07-04 Thread Colin D Bennett
your comments when you have a chance. Thanks! Regards, Colin === modified file 'ChangeLog' --- ChangeLog 2008-07-04 02:26:10 + +++ ChangeLog 2008-07-04 18:08:36 + @@ -1,3 +1,70 @@ +2008-07-04 Colin D Bennett <[EMAIL PROTECTED]> + + High resolution timer support. Implement

Re: [RFC] TSC patch v2

2008-07-04 Thread Colin D Bennett
On Fri, 04 Jul 2008 22:49:59 +0300 Vesa Jääskeläinen <[EMAIL PROTECTED]> wrote: > Hi Colin, > > Colin D Bennett wrote: > > Here is an updated version of the TSC patch. > > > > I addressed the issues in your comments with the exception of > > supporting

Re: subversion repository structure

2008-07-12 Thread Colin D Bennett
On Sun, 13 Jul 2008 03:54:44 +0200 "Yoshinori K. Okuji" <[EMAIL PROTECTED]> wrote: > Hello, > > Thank all of you for making effort on moving the version control > system to Subversion. I think this is a big improvement, and I like > it. > > Now, I would like to talk about the structure. Currentl

Re: Next release?

2008-07-16 Thread Colin D Bennett
On Tue, 15 Jul 2008 19:52:15 -0400 Pavel Roskin <[EMAIL PROTECTED]> wrote: > On Wed, 2008-07-16 at 01:32 +0200, Yoshinori K. Okuji wrote: > > > If a boot drive is the same as a root drive, you are right. > > Otherwise we need to do so. > > > > I think we have seen tons of examples with GRUB Legac

Re: subversion repository structure

2008-07-16 Thread Colin D Bennett
On Thu, 17 Jul 2008 11:20:47 +0800 Bean <[EMAIL PROTECTED]> wrote: > On Wed, Jul 16, 2008 at 6:23 AM, Pavel Roskin <[EMAIL PROTECTED]> wrote: > > On Tue, 2008-07-15 at 23:02 +0200, Yoshinori K. Okuji wrote: > > > >> I don't agree on this. GRUB Legacy and GRUB 2 are developed fully > >> independent

Re: Idea: elimination of the normal mode (revised version)

2008-07-18 Thread Colin D Bennett
On Thu, 17 Jul 2008 11:24:23 +0800 Bean <[EMAIL PROTECTED]> wrote: > On Mon, Jul 7, 2008 at 8:29 AM, Bean <[EMAIL PROTECTED]> wrote: > > Hi, > > > > First of all, we can still keep rescue and normal command. But > > instead of depending on normal.mod, normal command depends on > > module arg, whic

Re: menu loop (patch)

2008-07-19 Thread Colin D Bennett
On Sat, 19 Jul 2008 17:40:43 +0200 Robert Millan <[EMAIL PROTECTED]> wrote: > On Thu, Jul 17, 2008 at 11:22:27PM +0200, Carles Pina i Estany wrote: > > > > Hello, > > Carles! Que n'és de petit el món ;-) > > > I'm a Grub user (thanks for your nice work!) and I always wanted to > > have a menu

Re: menu loop (patch)

2008-07-19 Thread Colin D Bennett
On Sun, 20 Jul 2008 00:06:40 +0200 Carles Pina i Estany <[EMAIL PROTECTED]> wrote: > > Hello, > > On Jul/19/2008, Colin D Bennett wrote: > > On Sat, 19 Jul 2008 17:40:43 +0200 > > Robert Millan <[EMAIL PROTECTED]> wrote: > > > > > On Thu, Jul

Re: menu loop (patch)

2008-07-19 Thread Colin D Bennett
On Sun, 20 Jul 2008 01:31:55 +0200 Carles Pina i Estany <[EMAIL PROTECTED]> wrote: > > Hello, > > On Jul/19/2008, Isaac Dupree wrote: > > Carles Pina i Estany wrote: > >> fast check in KDE: it's looping > >> > >> Also, Iceweasel menus are looping here (maybe because it's executed > >> in KDE and

Re: Strong Crypto Support for GRUB2

2008-07-21 Thread Colin D Bennett
On Mon, 21 Jul 2008 01:49:52 +0200 Simon Peter <[EMAIL PROTECTED]> wrote: > Did the message below ever arrive on the list? > > I'm still interested in getting strong crypto into grub mainline and > while it's still not in, I just saw you guys proposed this as a > project for Google's summer of co

[PATCH] File readahead buffering

2008-07-22 Thread Colin D Bennett
you prefer it as a function, or if there is a better solution. Regards, Colin === modified file 'ChangeLog' --- ChangeLog 2008-07-21 09:40:01 + +++ ChangeLog 2008-07-22 15:42:00 + @@ -1,3 +1,17 @@ +2008-07-22 Colin D Bennett <[EMAIL PROTECTED]> + + * include/grub/file.h (gr

Re: [PATCH] File readahead buffering

2008-07-22 Thread Colin D Bennett
On Tue, 22 Jul 2008 14:48:31 -0400 Pavel Roskin <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-22 at 08:43 -0700, Colin D Bennett wrote: > > This patch speeds up loading a TGA image on my test system from 29 > > seconds to approximately 1 second. > > > > I not

Re: [PATCH] File readahead buffering

2008-07-22 Thread Colin D Bennett
On Tue, 22 Jul 2008 17:44:53 -0400 Pavel Roskin <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-22 at 12:06 -0700, Colin D Bennett wrote: > > > I agree that TGA is not, in general, a great choice for an image > > format (unless it is faster to load a large background image -

Re: [PATCH] File readahead buffering

2008-07-23 Thread Colin D Bennett
On Wed, 23 Jul 2008 10:05:36 +0800 Bean <[EMAIL PROTECTED]> wrote: > On Wed, Jul 23, 2008 at 3:06 AM, Colin D Bennett <[EMAIL PROTECTED]> > wrote: > > On Tue, 22 Jul 2008 14:48:31 -0400 > > Pavel Roskin <[EMAIL PROTECTED]> wrote: > > > >> On Tu

Re: [PATCH] File readahead buffering

2008-07-23 Thread Colin D Bennett
On Wed, 23 Jul 2008 07:33:32 -0700 Colin D Bennett <[EMAIL PROTECTED]> wrote: > On Wed, 23 Jul 2008 10:05:36 +0800 > Bean <[EMAIL PROTECTED]> wrote: > > > On Wed, Jul 23, 2008 at 3:06 AM, Colin D Bennett <[EMAIL PROTECTED]> > > wrote: > > > On Tu

Re: gfxterm distinction between fg color and cursor color

2008-07-24 Thread Colin D Bennett
On Thu, 24 Jul 2008 18:18:40 +0200 Robert Millan <[EMAIL PROTECTED]> wrote: > Why does gfxterm make a distinction between foreground color and > cursor color? Do we really want this? > > Currently, the variable-based hooks for changing colors have no > effect in cursor color because of this. >

Re: Linking

2008-07-25 Thread Colin D Bennett
On Fri, 25 Jul 2008 03:22:57 -0700 (PDT) Viswesh S <[EMAIL PROTECTED]> wrote: > The reason for hello to be put in a directory because it is a module > and not a simple command.Understood myself Actually, no. Every C source file in the 'commands' directory is currently a module itself. I think t

Re: Linking

2008-07-25 Thread Colin D Bennett
after looking at the .mk files, I was saddened. However, now that I know to change only the .rmk files, life is happy and the build system is actually easy to work with. Regards, Colin > - Original Message > From: Colin D Bennett <[EMAIL PROTECTED]> > To: grub-devel@

Remove conf/*.mk from svn (was: Re: Linking)

2008-07-25 Thread Colin D Bennett
On Thu, 24 Jul 2008 22:17:06 -0700 (PDT) Viswesh S <[EMAIL PROTECTED]> wrote: > I have modified the conf/common.mk accordingly as shown below. GRUB developers, I think we should remove conf/*.mk from the Subversion repository. If people are going to be developing on GRUB and checking out svn br

Re: atoi

2008-07-26 Thread Colin D Bennett
On Sat, 26 Jul 2008 06:52:31 -0700 (PDT) Viswesh S <[EMAIL PROTECTED]> wrote: > Hi, > Just a confirmation, > Is there an implementation for atoi or similar conversion implemented > in grub2 already. I suppose, I need to implement it myself. > I am planning to implement a setpci command in grub2.H

Re: [PATCH] File readahead buffering

2008-07-26 Thread Colin D Bennett
On Thu, 24 Jul 2008 17:51:23 +0800 Bean <[EMAIL PROTECTED]> wrote: > On Wed, Jul 23, 2008 at 10:56 PM, Colin D Bennett <[EMAIL PROTECTED]> > wrote: > > On Wed, 23 Jul 2008 07:33:32 -0700 > > Colin D Bennett <[EMAIL PROTECTED]> wrote: > > > >>

Re: [PATCH] buffered file read

2008-07-27 Thread Colin D Bennett
On Mon, 28 Jul 2008 01:52:40 +0800 Bean <[EMAIL PROTECTED]> wrote: > Hi, > > This patch add a new module bufio, which reads block of data at a > time, and return the required range to the upper level. This is > extremely useful in modules like png, where data are normally read one > byte at a tim

[PATCH] High resolution time/TSC patch v3

2008-07-28 Thread Colin D Bennett
to take another crack at it. Comments are welcome! Regards, Colin === modified file 'ChangeLog' --- ChangeLog 2008-07-27 19:57:43 + +++ ChangeLog 2008-07-28 16:51:30 + @@ -1,3 +1,68 @@ +2008-07-28 Colin D Bennett <[EMAIL PROTECTED]> + + High resolution timer support. Imp

Re: [PATCH] buffered file read

2008-07-29 Thread Colin D Bennett
On Wed, 30 Jul 2008 11:48:19 +0800 Bean <[EMAIL PROTECTED]> wrote: > On Mon, Jul 28, 2008 at 1:08 PM, Bean <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have added a buffer length parameter to grub_buffile_open: > > > ... > > If no one objects, I'd commit this patch soon. > Sounds good to me!

Re: Set the menu choice for next reboot without access to conf file?

2008-07-30 Thread Colin D Bennett
On Wed, 30 Jul 2008 15:25:11 -0700 "David Mathog" <[EMAIL PROTECTED]> wrote: > We have some systems which are remotely administered and dual boot > linux and Windows. Under linux there is access to the grub config > file, but under Windows there is not. The default grub menu option > boots Windo

Re: TSC on coreboot (Re: [PATCH] High resolution time/TSC patch v3)

2008-08-03 Thread Colin D Bennett
On Mon, 4 Aug 2008 01:53:48 +0200 Robert Millan <[EMAIL PROTECTED]> wrote: > On Sun, Aug 03, 2008 at 09:48:16PM +0200, Robert Millan wrote: > > On Mon, Jul 28, 2008 at 10:05:33AM -0700, Colin D Bennett wrote: > > > +/* Calibrate the TSC based on the RTC

[PATCH][RFC] gdb support in GRUB build system

2008-08-05 Thread Colin D Bennett
I following the GRUB 2 gdb debugging instructions this week and I was successful in using QEMU and gdb to debug GRUB. I wondered if we could make this a bit easier -- primarily by making GRUB's build system generate the '.elf' files with full symbol info without requiring a patch. Attached is a p

Re: [PATCH][RFC] gdb support in GRUB build system

2008-08-05 Thread Colin D Bennett
On Tue, 05 Aug 2008 17:05:57 +0200 Felix Zielcke <[EMAIL PROTECTED]> wrote: > Am Dienstag, den 05.08.2008, 07:42 -0700 schrieb Colin D Bennett: > > I following the GRUB 2 gdb debugging instructions this week and I > > was successful in using QEMU and gdb to debug GRUB. I won

Re: [PATCH] Drivemap module

2008-08-05 Thread Colin D Bennett
On Tue, 05 Aug 2008 01:10:25 +0200 Javier Martín <[EMAIL PROTECTED]> wrote: > Besides, sometimes checks like "if (a=b)", or more > frequently "if (a=f())" are intentionally used in C, so the error > might become even more difficult to spot and correct. Respect and heed the gcc warnings!! Note th

Re: [PATCH] Drivemap module

2008-08-05 Thread Colin D Bennett
On Tue, 05 Aug 2008 13:23:11 +0200 Marco Gerards <[EMAIL PROTECTED]> wrote: > Hi Javier, > > Javier Martín <[EMAIL PROTECTED]> writes: > > While tools like `svn diff' can help in these kind of problems, > > their utility is greatly diminished if the offending change is part > > of a multi-line ch

Re: [PATCH] Misc patches for grub2

2008-08-05 Thread Colin D Bennett
On Tue, 5 Aug 2008 22:14:37 +0800 Bean <[EMAIL PROTECTED]> wrote: > On Tue, Aug 5, 2008 at 6:36 PM, Marco Gerards <[EMAIL PROTECTED]> > wrote: > > For some reason I have some doubts about lib/. But I do not have a > > better name in mind either. What does belong in there? Do you > > happen to h

Re: Remove conf/*.mk from svn

2008-08-05 Thread Colin D Bennett
On Tue, 05 Aug 2008 20:41:53 +0200 Javier Martín <[EMAIL PROTECTED]> wrote: > El mar, 05-08-2008 a las 17:48 +0200, Marco Gerards escribió: > > Vesa Jääskeläinen <[EMAIL PROTECTED]> writes: > > > > > Marco Gerards wrote: > > >> Colin D Bennet

Re: [PATCH][RFC] gdb support in GRUB build system

2008-08-05 Thread Colin D Bennett
On Tue, 5 Aug 2008 22:14:03 +0200 Robert Millan <[EMAIL PROTECTED]> wrote: > On Tue, Aug 05, 2008 at 07:42:29AM -0700, Colin D Bennett wrote: > > > > We could make it a 'configure' option like '--enable-debug' or > > something, but it seems like

Re: [PATCH] Warning fixes

2008-08-06 Thread Colin D Bennett
On Wed, 06 Aug 2008 09:39:02 -0400 Pavel Roskin <[EMAIL PROTECTED]> wrote: > Hello! > > I've fixed the trivial stuff, but this may require comments. I'll be > mostly offline for the next 3 weeks, so if it's OK, please apply it > for me. Along these lines, can we use a gcc option to turn off the

Re: [PATCH] Warning fixes

2008-08-06 Thread Colin D Bennett
On Wed, 06 Aug 2008 10:32:26 -0400 Pavel Roskin <[EMAIL PROTECTED]> wrote: > Quoting Colin D Bennett <[EMAIL PROTECTED]>: > > > Along these lines, can we use a gcc option to turn off the > > "trampoline requires executable stack" warnings that are gener

Re: Encryption Support for GRUB

2008-08-06 Thread Colin D Bennett
On Wed, 6 Aug 2008 11:04:16 -0500 (CDT) "W. Michael Petullo" <[EMAIL PROTECTED]> wrote: > 1. How do I know exactly what subset of libc is available to me as a > GRUB developer? Obviously, system calls would not be expected to work > because the operating system has not yet been loaded, but I woul

Re: [PATCH][RFC] gdb support in GRUB build system

2008-08-07 Thread Colin D Bennett
On Thu, 07 Aug 2008 09:37:22 +0200 Felix Zielcke <[EMAIL PROTECTED]> wrote: > Am Dienstag, den 05.08.2008, 23:54 +0200 schrieb Robert Millan: > > On Tue, Aug 05, 2008 at 01:50:21PM -0700, Colin D Bennett wrote: > > > In that case, should --enable-debug be the default,

Re: [PATCH][RFC] gdb support in GRUB build system

2008-08-07 Thread Colin D Bennett
On Thu, 7 Aug 2008 18:07:43 +0200 Robert Millan <[EMAIL PROTECTED]> wrote: > On Thu, Aug 07, 2008 at 08:50:45AM -0700, Colin D Bennett wrote: > > > Having debug symbols in the userland tools could be maybe a bit > > > useful for example in the case of the grub-probe s

Re: [PATCH] New command checktime

2008-08-07 Thread Colin D Bennett
I just have a couple of suggestions: On Fri, 8 Aug 2008 01:52:07 +0800 Bean <[EMAIL PROTECTED]> wrote: > On Thu, Aug 7, 2008 at 7:19 PM, Bean <[EMAIL PROTECTED]> wrote: > 1. date [MMDDhhmm[[CC]YY][.ss]] > > Set/Display current datetime, to set date, The format is the same as > the date command,

Re: How to synchronize local svn with official svn?

2008-08-09 Thread Colin D Bennett
On Sun, 10 Aug 2008 09:42:39 +0800 "y.volta" <[EMAIL PROTECTED]> wrote: > hi all, > > I have a question about using svn: how can i synchronize the > local copy with the local svn and official svn? for examle: > > 1. i checkout the official grub2 from SA > (svn://svn.sv.gnu.org/grub/trunk

Re: [PATCH] add pkzip support for gzio

2008-08-11 Thread Colin D Bennett
On Mon, 11 Aug 2008 23:41:38 +0800 "y.volta" <[EMAIL PROTECTED]> wrote: > hi, > > i've made a little patch for pkziped ( deflate mode ) file. by > using this, we can have both gunzip and pkunzip supported: they have > only header different with the same file. ;-) > > please note, if your

Re: [PATCH] add pkzip support for gzio

2008-08-12 Thread Colin D Bennett
On Tue, 12 Aug 2008 10:45:50 +0800 Bean <[EMAIL PROTECTED]> wrote: > Also, it's better not to call gzio. I'm thinking about seperating the > deflate decompression routine and create a zlib like library, so that > the decoder can be used in both gzio, png and zipfs. Also, pure DEFLATE compression

Re: [PATCH] try2, Enable grub_cpu_idle for i386/pc to halt the CPU

2008-08-16 Thread Colin D Bennett
On Thu, 14 Aug 2008 22:27:07 -0500 David Fries <[EMAIL PROTECTED]> wrote: > On Wed, Aug 13, 2008 at 11:34:22AM +0200, Marco Gerards wrote: > > Please do not add .mk changes in a patch, it is a generated file :-) > > What's a generated file doing in the repository if people aren't > supposed to se

Re: Dell Media Direct button

2008-08-20 Thread Colin D Bennett
On Wed, 20 Aug 2008 12:12:59 +0200 Robert Millan <[EMAIL PROTECTED]> wrote: > On Wed, Aug 20, 2008 at 10:57:22AM +0200, Per Öberg wrote: > > Hi > > > > Some laptops, e.g., from Dell have a special button that they use to > > boot a special embedded OS for media only instead of the ordinary > > OS

[PATCH] GSoC #01 grub-mkrescue i386-pc multiple overlays

2008-08-31 Thread Colin D Bennett
overlays potentially overriding the earlier ones if file names are the same. Regards, Colin 2008-08-30 Colin D Bennett <[EMAIL PROTECTED]> * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories. === modified file 'util/i386/pc/grub-mkrescue.in' --- util/i386/

[PATCH] GSoC #02 Minor tweak: Comment fix.

2008-08-31 Thread Colin D Bennett
One-liner: Fix an incorrect comment in include/grub/normal.h for GRUB_COMMAND_FLAG_NO_ARG_PARSE. The incorrect comment appears to have been a copy-and-paste error. Regards, Colin 2008-08-30 Colin D Bennett <[EMAIL PROTECTED]> * include/grub/normal.h: Fixed incorrect comme

[PATCH] GSoC #03 Menu viewer interface

2008-08-31 Thread Colin D Bennett
This patch introduces a "menu viewer" handler interface. This will allow the graphical menu to be used interchangeably with the terminal based menu that normal.mod provides. Regards, Colin 2008-08-30 Colin D Bennett <[EMAIL PROTECTED]> Introduced menu_

[PATCH] GSoC #04 Multiple fallback entries

2008-08-31 Thread Colin D Bennett
This patch adds support for multiple fallback entries. The entry numbers in the 'fallback' environment variable should be space-separated. Regards, Colin 2008-08-30 Colin D Bennett <[EMAIL PROTECTED]> Allow multiple fallback entries. * inclu

[PATCH] GSoC #05 Menu entry class attribute

2008-08-31 Thread Colin D Bennett
e icon to be used in a graphical menu, but there are other possible uses for them as well. The idea originates from the CSS (cascading style sheets) and HTML 'class' concept. Regards, Colin 2008-08-30 Colin D Bennett <[EMAIL PROTECTED]> Support classes for menu ent

[PATCH] GSoC #06 VBE optimization for BGR/BGRA color modes

2008-08-31 Thread Colin D Bennett
RGB888, etc., since it began to be highly unreadable when B8G8R8A8 was added into the mix. It seems that having the color components (letters) grouped together in the name makes it much easier for me to determine the mode name at a glance. Regards, Colin 2008-08-30 Colin D Bennett <[EMAIL PROTEC

[PATCH] GSoC #07 VBE double buffering

2008-08-31 Thread Colin D Bennett
This patch adds double buffering support to the VBE video driver. It uses page flipping if possible, and falls back on using an offscreen buffer which is blitted to video memory if page flipping is not possible. Regards, Colin 2008-08-30 Colin D Bennett <[EMAIL PROTECTED]> VBE

[PATCH] GSoC #08 vbeinfo enhancements

2008-08-31 Thread Colin D Bennett
This patch adds more information to the vbeinfo output, including the video adapter VBE version, total video memory, and the color layout of each video mode. Regards, Colin 2008-08-30 Colin D Bennett <[EMAIL PROTECTED]> * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE v

[PATCH] GSoC #09 Bitmap scaling

2008-08-31 Thread Colin D Bennett
{ + int dx; + for (dx = 0; dx < dw; dx++) +{ + grub_uint8_t *dptr; + grub_uint8_t *sptr; + int sx; + int sy; + int comp; + + /* Compute the source coordinate that the destination coordinate + * maps to. Note: s

Re: [PATCH] GSoC #08 vbeinfo enhancements

2008-08-31 Thread Colin D Bennett
On Sun, 31 Aug 2008 12:30:24 +0300 Vesa Jääskeläinen <[EMAIL PROTECTED]> wrote: > Colin D Bennett wrote: > > This patch adds more information to the vbeinfo output, including > > the video adapter VBE version, total video memory, and the color > > layout of each vide

Re: [PATCH] GSoC #01 grub-mkrescue i386-pc multiple overlays

2008-08-31 Thread Colin D Bennett
On Sun, 31 Aug 2008 12:32:59 +0300 Vesa Jääskeläinen <[EMAIL PROTECTED]> wrote: > Colin D Bennett wrote: > > This is the first of many patches that I will be posting of my > > Google Summer of Code 2008 work on GRUB. > > Hi Colin, > > Thanks for your patches so

Re: [patch] background_image: image centering and scaling

2008-08-31 Thread Colin D Bennett
On Fri, 29 Aug 2008 22:11:02 -0700 Olaf Mandel <[EMAIL PROTECTED]> wrote: > Vesa Jääskeläinen schrieb: > -Snipp- > > I will however look at if there are some ideas that you have > > provided what is still missing from new graphical menu > > implementation that should be there. > -Snipp- > > Hello

Re: [RFC] USB Support

2008-08-31 Thread Colin D Bennett
On Thu, 28 Aug 2008 12:16:59 +0200 Felix Zielcke <[EMAIL PROTECTED]> wrote: > + grub_usb_iterate (usb_iterate); > +} > + > + > > Weird ` ' character which seems not to make sense. Actually that is a form feed character, which the GNU coding standard recommends to be used to break up source cod

[PATCH] GSoC #01 grub-mkrescue i386-pc multiple overlays (v2)

2008-08-31 Thread Colin D Bennett
On Sun, 31 Aug 2008 15:49:45 +0200 Robert Millan <[EMAIL PROTECTED]> wrote: > Hi, > > I'd suggest mentioning in --help that --overlay can be specified > multiple times. It is so. New patch attached. Regards, Colin 2008-08-30 Colin D Bennett <[EMAIL PROTECTED]>

Re: [RFC] USB Support

2008-08-31 Thread Colin D Bennett
On Sun, 31 Aug 2008 18:13:56 +0200 Felix Zielcke <[EMAIL PROTECTED]> wrote: > Thanks for the copy&paste and even the link to it. > I still find it weird and I even wasn't able yet to produce them in > Emacs. > Control-L is the wrong key combination for it ;) Try C-q C-L. Cheers, Colin

[PATCH] GSoC #08 [v2] vbeinfo enhancements

2008-08-31 Thread Colin D Bennett
On Sun, 31 Aug 2008 18:59:53 +0300 Vesa Jääskeläinen <[EMAIL PROTECTED]> wrote: > Colin D Bennett wrote: > > On Sun, 31 Aug 2008 12:30:24 +0300 > > Vesa Jääskeläinen <[EMAIL PROTECTED]> wrote: > > > >> Colin D Bennett wrote: > >>> This patch

Re: [PATCH] GSoC #08 [v3] vbeinfo enhancements

2008-08-31 Thread Colin D Bennett
This refinement is against current SVN head. It introduces the VBE mode info field constant values into vbe.h and these are used instead of the magic numbers in vbeinfo.c. Regards, Colin 2008-08-31 Colin D Bennett <[EMAIL PROTECTED]> * commands/i386/pc/vbeinfo.c (grub_cmd_v

[PATCH] GSoC #12 videotest enhancements

2008-09-01 Thread Colin D Bennett
u code (an upcoming patch). Regards, Colin 2008-08-30 Colin D Bennett <[EMAIL PROTECTED]> Enhance the 'videotest' command with a number of different tests. * commands/videotest.c (grub_cmd_videotest): Support running different tests and handling command line arguments for several f

Re: [RFC] make output of compiling a bit less verbose to make warnings more visible

2008-09-02 Thread Colin D Bennett
On Tue, 02 Sep 2008 22:43:54 +0300 Vesa Jääskeläinen <[EMAIL PROTECTED]> wrote: > Robert Millan wrote: > > On Tue, Sep 02, 2008 at 07:10:05PM +0200, Felix Zielcke wrote: > >> Am Dienstag, den 02.09.2008, 18:43 +0200 schrieb Felix Zielcke: > >>> Hello, > >>> > >>> I think it would be good if the ou

Re: Can LUA e coming with future Grub2

2008-09-02 Thread Colin D Bennett
On Wed, 3 Sep 2008 09:08:13 +0800 "y.volta" <[EMAIL PROTECTED]> wrote: > hi, > > i get to know the Fancy menu branch has lua supported, and just > wondering, the official release of Grub2 will have Lua inside ( as a > mod )? It would be cool, to be sure! I never used Lua before, and it was

Re: About VBE double buffering

2008-09-14 Thread Colin D Bennett
On Wed, 10 Sep 2008 08:24:21 +0800 "y.volta" <[EMAIL PROTECTED]> wrote: > > I noticed that `grub_vbe_bios_set_display_start () which used > AX=4F07h INT10h' used in the fancy menu patch. This will use the > video buffer to do buffering, but this function will fail on some > system, Collin tol

  1   2   >