Re: [RFC][PATCH] Basic unit testing support for GRUB

2009-12-03 Thread BVK
Please see the other thread "Syntax checker for GRUB script configuration file" for this tool. -- bvk.chaitanya ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel

[PATCH] Syntax checker for GRUB script config file

2009-12-03 Thread BVK
Hi, Attached patch (experimental) adds a new tool, grub-script-check, that can be used to check grub.cfg file syntax. Idea is to use this tool during update-grub to catch any syntax errors and reject the update. This tool uses the same parsing code as the normal mode script engine, except that

Re: USB device not seen by grub

2009-12-03 Thread Chris Jones
On Thu, Dec 03, 2009 at 05:52:37PM EST, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Chris Jones wrote: [..] > > Barring typos or omissions, the trace reveals that the perceived > > 'hang' after issuing 'insmod uhci' is in fact grub looping over the > > following code: > > /build/buildd/grub2

Re: USB device not seen by grub

2009-12-03 Thread richardvo...@gmail.com
2009/12/3 Vladimir 'φ-coder/phcoder' Serbinenko : > Chris Jones wrote: >> I am trying to have grub boot off a partition on a USB stick. >> >> > You can't chainload to disk invisible by BIOS. But you can load > supported OSes from it. What would be necessary to enable chainload to such devices? In

Re: USB device not seen by grub

2009-12-03 Thread Chris Jones
On Thu, Dec 03, 2009 at 05:52:37PM EST, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Chris Jones wrote: [..] > > Barring typos or omissions, the trace reveals that the perceived > > 'hang' after issuing 'insmod uhci' is in fact grub looping over the > > following code: > > /build/buildd/grub2

Re: gettext: normal_menu.c

2009-12-03 Thread Carles Pina i Estany
Hello, On Nov/29/2009, Carles Pina i Estany wrote: > + grub_printf (_("Failed to boot default entries.")); > + grub_putchar ('\n'); This is the only string that I've spotted that it's "String\n" other ones are: "\nString" "String\n " Up to the discussion in the grub_printfnl I would change

Re: new function: grub_printfnl

2009-12-03 Thread Carles Pina i Estany
Hello, On Dec/01/2009, Jordi Mallach wrote: > On Sat, Nov 28, 2009 at 08:07:09PM +0100, Robert Millan wrote: > > > Gettextizzing files I have a very common situation: > > > grub_printf ("Bla bla bla\n"); > > Uhm I wonder what's the common approach to this. Maybe Jordi or someone > > else can tel

Re: USB device not seen by grub

2009-12-03 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Chris Jones wrote: > On Thu, Dec 03, 2009 at 03:24:31PM EST, Vladimir 'φ-coder/phcoder' Serbinenko > wrote: > >> Chris Jones wrote: >> Can you issue: debug=all insmod uhci insmod usbms debug=all ls -l debug= ls -l And to post the result?

Re: USB device not seen by grub

2009-12-03 Thread Chris Jones
On Thu, Dec 03, 2009 at 03:24:31PM EST, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Chris Jones wrote: > >> Can you issue: > >> debug=all > >> insmod uhci > >> insmod usbms > >> debug=all > >> ls -l > >> debug= > >> ls -l > >> And to post the result? Barring typos or omissions, the trace revea

Re: [PATCH]: Fix sparc64 build...

2009-12-03 Thread David Miller
From: Vladimir '$B&U(B-coder/phcoder' Serbinenko Date: Thu, 03 Dec 2009 22:56:34 +0100 > The problem is that nobody of us has such hardware. I would happily do a > sparc boot every 2 weeks but I just don't have a sparc You can get an Ultra5 for ~$100.00 USD on EBAY :-) Anyways, no matter, I'm

Re: [PATCH]: Fix sparc64 build...

2009-12-03 Thread Vladimir 'φ-coder/phcoder' Serbinenko
David Miller wrote: > From: Vladimir 'φ-coder/phcoder' Serbinenko > Date: Thu, 03 Dec 2009 21:22:27 +0100 > > >> For me the main reason for or against it is break probability. Merging >> will avoid stupid breakages like ones you fixed but may introduce more >> subtle ones >> > > You lack a

Re: USB device not seen by grub

2009-12-03 Thread Chris Jones
On Thu, Dec 03, 2009 at 03:24:31PM EST, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Chris Jones wrote: > >> Can you issue: > >> debug=all > >> insmod uhci > >> insmod usbms > >> debug=all > >> ls -l > >> debug= > >> ls -l > >> And to post the result? > >> > > > > Certainly. > > > > Any way

Re: [PATCH]: Fix sparc64 build...

2009-12-03 Thread David Miller
From: Vladimir '$B&U(B-coder/phcoder' Serbinenko Date: Thu, 03 Dec 2009 21:22:27 +0100 > David Miller wrote: >>> Committed. >>> >> >> Thanks. >> >> > You can commit to bzr yourself actually. And unless Robert objects I > guess your permission to tangle with sparc parts as you see fit is

Re: [PATCH]: Fix sparc64 build...

2009-12-03 Thread David Miller
From: Vladimir '$B&U(B-coder/phcoder' Serbinenko Date: Thu, 03 Dec 2009 21:22:27 +0100 > For me the main reason for or against it is break probability. Merging > will avoid stupid breakages like ones you fixed but may introduce more > subtle ones You lack a cross-build environment? I test bui

Re: USB device not seen by grub

2009-12-03 Thread Chris Jones
On Thu, Dec 03, 2009 at 03:02:27PM EST, Duboucher Thomas wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 [..] > You could do this easily using a serial null-modem cable, but I don't > think you have one. :( ;-) Another fascinating hardware aspect I never got down to investigating

Re: USB device not seen by grub

2009-12-03 Thread Vladimir 'φ-coder/phcoder' Serbinenko
> > You could do this easily using a serial null-modem cable, but I don't > think you have one. :( > Also, the uhci module was making Grub2 hang on an HP nc8430, though I > don' remember having reported this here. > There is an issue that somewhere grub misses a delay between uhci commands

Re: [PATCH]: Fix sparc64 build...

2009-12-03 Thread Vladimir 'φ-coder/phcoder' Serbinenko
David Miller wrote: >> Committed. >> > > Thanks. > > You can commit to bzr yourself actually. And unless Robert objects I guess your permission to tangle with sparc parts as you see fit is still valid >> BTW in experimental we merged sparc64's and i386's grub-install. Do >> you think it wou

Re: USB device not seen by grub

2009-12-03 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Chris Jones wrote: >> Can you issue: >> debug=all >> insmod uhci >> insmod usbms >> debug=all >> ls -l >> debug= >> ls -l >> And to post the result? >> > > Certainly. > > Any way I could redirect the output to something like a file, both in > the interest of efficiency and accuracy? > No. W

Re: USB device not seen by grub

2009-12-03 Thread Duboucher Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Jones a écrit : > On Thu, Dec 03, 2009 at 10:16:17AM EST, Vladimir 'φ-coder/phcoder' Serbinenko > wrote: >> Chris Jones wrote: > >>> I am trying to have grub boot off a partition on a USB stick. >>> >>> >> You can't chainload to disk invisib

Re: [PATCH]: Fix sparc64 build...

2009-12-03 Thread David Miller
From: Vladimir '$B&U(B-coder/phcoder' Serbinenko Date: Thu, 03 Dec 2009 12:26:05 +0100 > Hello, nice to see you again. > David Miller wrote: >> So I finally am about to have enough time to start looking into >> sparc64 support again. >> >> > >> And, surprise! The trunk doesn't even build.

Re: USB device not seen by grub

2009-12-03 Thread Chris Jones
On Thu, Dec 03, 2009 at 10:16:17AM EST, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Chris Jones wrote: > > I am trying to have grub boot off a partition on a USB stick. > > > > > You can't chainload to disk invisible by BIOS. But you can load > supported OSes from it. > > I issued the follo

Re: USB device not seen by grub

2009-12-03 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Chris Jones wrote: > I am trying to have grub boot off a partition on a USB stick. > > You can't chainload to disk invisible by BIOS. But you can load supported OSes from it. > I issued the following command from the grub command line: > > % insmod uhci > > grub was hung and I had to do a hard r

Re: USB device not seen by grub

2009-12-03 Thread BandiPat
Chris Jones wrote: I am trying to have grub boot off a partition on a USB stick. I issued the following command from the grub command line: % insmod uhci grub was hung and I had to do a hard reset. Is this to be expected, considering that this is a fairly old system and the BIOS knows nothing

Re: grub.info

2009-12-03 Thread Vladimir 'φ-coder/phcoder' Serbinenko
> I took a look at grub.texi. Although I haven't written any texi files > before, I was able to figure out the format and run makeinfo without > any errors. That means that I only have to worry about small things > like content. :) > > I have examined the hierarchy of the manual and it currently

Re: [PATCH]: Fix sparc64 build...

2009-12-03 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Hello, nice to see you again. David Miller wrote: > So I finally am about to have enough time to start looking into > sparc64 support again. > > > And, surprise! The trunk doesn't even build. :-) > Committed. BTW in experimental we merged sparc64's and i386's grub-install. Do you think it w

[PATCH]: Fix sparc64 build...

2009-12-03 Thread David Miller
So I finally am about to have enough time to start looking into sparc64 support again. And, surprise! The trunk doesn't even build. :-) 2009-12-03 David S. Miller * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES, grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/prog