Issue with boot != root and chainloading

2008-07-22 Thread Andy Kittner
Hi all, First of all I hope I've come to the right place with my little bug (from what I've read this list seems to be preferred to the tracker?). Anyway here it goes: I have two hard drives in my notebook, and tried installing grub (svn r1724) with it's root on the second one (/dev/sdb5 to

Re: Issue with boot != root and chainloading

2008-07-22 Thread Pavel Roskin
Quoting Andy Kittner <[EMAIL PROTECTED]>: Everything went smooth, however after rebooting I get dropped in rescue mode with this message: "unknown device fd1,5" Please check your /boot/grub/device.map. You may need to remove it and let grub-install regenerate it. It would be great if you p

Re: Issue with boot != root and chainloading

2008-07-22 Thread Felix Zielcke
From: "Pavel Roskin" <[EMAIL PROTECTED]> I've seen that fd1 somewhere, but I don't remember where. I guess GRUB just defaults to that value if it cannot figure out the real device number of the root device. Maybe this Debian bug ? :) For the reporter fd0 wasn't in device.map http://bug

Re: Issue with boot != root and chainloading

2008-07-22 Thread Andy Kittner
On Tue, Jul 22, 2008 at 09:50:21AM -0400, Pavel Roskin wrote: Quoting Andy Kittner <[EMAIL PROTECTED]>: Everything went smooth, however after rebooting I get dropped in rescue mode with this message: "unknown device fd1,5" Please check your /boot/grub/device.map. You may need to remove it

[PATCH] File readahead buffering

2008-07-22 Thread Colin D Bennett
This patch speeds up loading a TGA image on my test system from 29 seconds to approximately 1 second. I noticed that on my 1 GHz test system running from an IDE CompactFlash drive, loading a certain TGA image in GRUB takes about 29 seconds. This seems pretty outrageous, so after looking at the cod

Traces Scrolling - Grub2

2008-07-22 Thread Viswesh S
Hi,   Enabling more traces in Grub2 doesnt help too much, as the screen will have only the last certain traces.   Is there anyway I can see all the traces.   Thanks,   Viswesh.   ps:- If there is a previous thread on this,let me know.   Explore your hobbies and int

Re: [PATCH] Kernel fixes for Cygwin

2008-07-22 Thread Christian Franke
Bean wrote: On Mon, Jul 21, 2008 at 6:33 PM, Christian Franke <[EMAIL PROTECTED]> wrote: Hi, due to the complexity of PE, a stand-alone converter may likely be larger than the ~680 LoC converter I already offered here. It was rejected, see this thread: http://lists.gnu.org/archive/html/grub-

Re: [PATCH] File readahead buffering

2008-07-22 Thread Pavel Roskin
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 noticed that on my 1 GHz test system running from an IDE CompactFlash > drive, loading a certain TGA image in GRUB takes about 2

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 noticed that on my 1 GHz test system runni

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

2008-07-22 Thread Marco Gerards
Marco Gerards <[EMAIL PROTECTED]> writes: [...] > Although what if we want additional handlers. Like image readers or > so? We do not need to centralize this. What about this: [...] Here is a patch to register and deal with handlers. It decentralizes handlers and should remove some maintain

Re: [PATCH] Drivemap module

2008-07-22 Thread Robert Millan
On Mon, Jul 21, 2008 at 02:55:41AM +0200, Javier Martín wrote: > Hmm... isn't the ChangeLog too spartan? I tend to agree with that. I don't mind as much, as I get used myself, but it's really a PITA sometimes. -- Robert Millan I know my rights; I want my phone call! What good is a phone call

Re: device.map (Re: Next release?)

2008-07-22 Thread Robert Millan
On Mon, Jul 21, 2008 at 05:26:17PM -0400, Pavel Roskin wrote: > > > > This is mostly implemented already. I sent a proof of concept in a mail > > titled "[PATCH] disk/fs_uuid.c". > > > > It will only search hard drives unless no match is found (in that case your > > boot is broken, so you wouldn

Re: Next release?

2008-07-22 Thread Robert Millan
On Mon, Jul 21, 2008 at 04:48:33PM -0400, Pavel Roskin wrote: > On Sat, 2008-07-19 at 22:16 +0200, Yoshinori K. Okuji wrote: > > > I am totally against ripping off device.map. Pavel's idea is too > > idealistic, > > and that regresses the flexibility. > > Actually, it could be said that having d

Re: menu loop (patch)

2008-07-22 Thread Robert Millan
On Sun, Jul 20, 2008 at 09:21:47AM +0300, [EMAIL PROTECTED] wrote: > > I also like no wrapping mode. But lets assume we have nice graphical menu > with "cylinder" of menu entries that roll when you press key up/down. Oh my god. Tell me you're not planning to implement OpenGL in GRUB! ;-) -- R

Re: [PATCH] File readahead buffering

2008-07-22 Thread Pavel Roskin
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 -- a 1024x768 RGB > PNG file may take more time to decompress than a TGA image would take > to load -- althoug

Re: Putting core.img anywhere

2008-07-22 Thread Robert Millan
On Mon, Jul 21, 2008 at 11:13:08AM +0200, Jean-Christophe Haessig wrote: > > As I stated earlier my disks are not DOS-partitioned (e.g. > pvcreate /dev/hda). I didn't want to have one useless level Turns out it wasn't as useless as you thought :-) > since LVM already does the job (better). LVM

Re: [PATCH] grub-probe -t prefix, fix update-grub_lib for Cygwin

2008-07-22 Thread Robert Millan
On Sun, Jul 20, 2008 at 02:40:14PM +0200, Christian Franke wrote: > The shell function make_system_path_relative_to_its_root() does not work > on Cygwin due to path mapping (e.g. /boot/grub/ is actually > /cygwin/boot/grub). > > This patch adds '-t prefix' to grub-probe. It prints result from >

[PATCH] New tool to convert pe image to elf

2008-07-22 Thread Bean
Hi, This patch add a new tool grub-pe2elf, which can be used to convert pe image created by cygwin. It's written using grub environment, no external library or tool is required. For example, to convert pe module hello.mod to elf: grub-pe2elf hello.mod The relocation issue is fixed, I also remove

Re: device.map (Re: Next release?)

2008-07-22 Thread Pavel Roskin
On Tue, 2008-07-22 at 23:36 +0200, Robert Millan wrote: > On Mon, Jul 21, 2008 at 05:26:17PM -0400, Pavel Roskin wrote: > > > > > > This is mostly implemented already. I sent a proof of concept in a mail > > > titled "[PATCH] disk/fs_uuid.c". > > > > > > It will only search hard drives unless no

Re: Next release?

2008-07-22 Thread Pavel Roskin
On Tue, 2008-07-22 at 23:37 +0200, Robert Millan wrote: > > Suppose that we don't have device.map. Then I don't need to add entries > > for temporary devices. Also, I won't be able to create a cross-drive > > configuration by accident, simple because it won't be allowed by > > default. > > But

Re: [PATCH] New tool to convert pe image to elf

2008-07-22 Thread Christian Franke
Bean wrote: This patch add a new tool grub-pe2elf, which can be used to convert pe image created by cygwin. It's written using grub environment, no external library or tool is required. For example, to convert pe module hello.mod to elf: grub-pe2elf hello.mod The relocation issue is fixed, I al

Re: device.map (Re: Next release?)

2008-07-22 Thread Robert Millan
On Tue, Jul 22, 2008 at 05:57:56PM -0400, Pavel Roskin wrote: > On Tue, 2008-07-22 at 23:36 +0200, Robert Millan wrote: > > On Mon, Jul 21, 2008 at 05:26:17PM -0400, Pavel Roskin wrote: > > > > > > > > This is mostly implemented already. I sent a proof of concept in a mail > > > > titled "[PATCH]

Re: Next release?

2008-07-22 Thread Robert Millan
On Tue, Jul 22, 2008 at 06:01:41PM -0400, Pavel Roskin wrote: > On Tue, 2008-07-22 at 23:37 +0200, Robert Millan wrote: > > > > Suppose that we don't have device.map. Then I don't need to add entries > > > for temporary devices. Also, I won't be able to create a cross-drive > > > configuration b

Re: Strong Crypto Support for GRUB2

2008-07-22 Thread Robert Millan
On Mon, Jul 21, 2008 at 10:38:37PM +0200, Simon Peter wrote: > > > What's missing to get my code into GRUB2 mainline? > > I think you'll have to assign copyright to the FSF. > > What part of it? > > I learned that Michael Gorven already replaced the problematic parts > (RIPEMD and AES) with versi

Re: Traces Scrolling - Grub2

2008-07-22 Thread Robert Millan
On Tue, Jul 22, 2008 at 08:55:48AM -0700, Viswesh S wrote: > Hi, >   > Enabling more traces in Grub2 doesnt help too much, as the screen will have > only the last certain traces. >   > Is there anyway I can see all the traces. >   > Thanks, >   > Viswesh. >   > ps:- If there is a previous thread o

Re: [PATCH] avoid expensive load of all fonts

2008-07-22 Thread Robert Millan
Committed. On Fri, Jul 04, 2008 at 03:55:01PM +0200, Robert Millan wrote: > > This makes update-grub avoid expensive load of complete font files > and instead rely on ascii.pff when it is available. In qemu, it brings > startup time roughly from 25s to 1s. > > -- > Robert Millan > > I know

Re: Next release?

2008-07-22 Thread Pavel Roskin
On Wed, 2008-07-23 at 00:09 +0200, Robert Millan wrote: > On Tue, Jul 22, 2008 at 06:01:41PM -0400, Pavel Roskin wrote: > > On Tue, 2008-07-22 at 23:37 +0200, Robert Millan wrote: > > > > > > Suppose that we don't have device.map. Then I don't need to add entries > > > > for temporary devices. A

Re: device.map (Re: Next release?)

2008-07-22 Thread Pavel Roskin
On Wed, 2008-07-23 at 00:08 +0200, Robert Millan wrote: > I don't think it's that unusual. Let's take an example. We have 1 PATA > disk and 1 SATA disk, and are installing GNU/Linux in it. We only have > one /boot partition (or directory in /). Turns out we have no idea which > of the two disk

Re: [PATCH] avoid expensive load of all fonts

2008-07-22 Thread Pavel Roskin
On Wed, 2008-07-23 at 00:23 +0200, Robert Millan wrote: > > - ruby $(srcdir)/util/unifont2pff.rb 0-127 $(UNIFONT_HEX) > $@ > > + ruby $(srcdir)/util/unifont2pff.rb 0x0-0x7f $(UNICODE_ARROWS) > > $(UNICODE_LINES) $(UNIFONT_HEX) > $@ We should be able to use 0x20-0x7f. I checked it and it seem

Re: Issue with boot != root and chainloading

2008-07-22 Thread Pavel Roskin
On Tue, 2008-07-22 at 16:01 +0200, Felix Zielcke wrote: > From: "Pavel Roskin" <[EMAIL PROTECTED]> > > > > I've seen that fd1 somewhere, but I don't remember where. I guess > > GRUB just defaults to that value if it cannot figure out the real > > device number of the root device. > > > > M

Re: [PATCH] avoid expensive load of all fonts

2008-07-22 Thread Robert Millan
On Tue, Jul 22, 2008 at 06:49:08PM -0400, Pavel Roskin wrote: > On Wed, 2008-07-23 at 00:23 +0200, Robert Millan wrote: > > > - ruby $(srcdir)/util/unifont2pff.rb 0-127 $(UNIFONT_HEX) > $@ > > > + ruby $(srcdir)/util/unifont2pff.rb 0x0-0x7f $(UNICODE_ARROWS) > > > $(UNICODE_LINES) $(UNIFONT_HEX) >

Re: [PATCH] File readahead buffering

2008-07-22 Thread Bean
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 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 >> > seco

Re: [PATCH] File readahead buffering

2008-07-22 Thread Javier Martín
El mié, 23-07-2008 a las 10:05 +0800, Bean escribió: > 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: > > However, I have not been able to load any > > PNG images that I have tried to use

Re: grub-probe fails to find PC partition due to Apple disklabel

2008-07-22 Thread Chris Knadle
Felix Zielcke asked me about the Apple/PC hybrid disk problem, so I'm trying to figure out how to fix it. Sorry for letting this fall through the cracks; this is from three months ago. On Monday 14 April 2008, Pavel Roskin wrote: > On Mon, 2008-04-14 at 10:21 -0400, Chris Knadle wrote: > >I

Re: grub-probe fails to find PC partition due to Apple disklabel

2008-07-22 Thread Pavel Roskin
Quoting Chris Knadle <[EMAIL PROTECTED]>: I'm trying to figure out how to get grub to check the first sector. Mainly I'm asking for hints. I think it involves running a new instance of grub_disk_read for the first sector (sector 0 of the partition) within the apple_partition_map_iterate

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 -- a > > 1024x768 RGB PNG

Re: [PATCH] grub-probe -t prefix, fix update-grub_lib for Cygwin

2008-07-22 Thread Christian Franke
Robert Millan wrote: On Sun, Jul 20, 2008 at 02:40:14PM +0200, Christian Franke wrote: The shell function make_system_path_relative_to_its_root() does not work on Cygwin due to path mapping (e.g. /boot/grub/ is actually /cygwin/boot/grub). This patch adds '-t prefix' to grub-probe. It prin

Re: [PATCH] New tool to convert pe image to elf

2008-07-22 Thread Bean
Hi, I change the structure of grub-pe2elf, now it uses sub function to do various task instead of one huge trunk. I also include the build script by Christian Franke, as it's needed to compile successfully in cygwin. I make some adjustment: 1, use grub-pe2elf to generate module file instead of o