Re: multiboot2

2009-03-04 Thread phcoder
In 4 and 7 I meant parameters passed from the bootloader to the OS. With that, you also don't need to worry about "higher numbers are newer version", as we can determine our own versioning, and load appropriate features. With that we can avoid alternative bootloaders with version passing like 13

[PATCH]: Fix several warnings on sparc64.

2009-03-04 Thread David Miller
Many of these warnings are for two reasons: 1) grub_ssize_t is != 'int' on sparc64, and many pieces of code try to pass an int pointer in for the final arg of several ieee1275 "get property" functions which take a grub_ssize_t pointer. 2) The third arg to grub_ieee1275_get_integer_prope

[PATCH]: Allow targets to define boot block image format.

2009-03-04 Thread David Miller
This facility will be used on sparc because the bootblocks I will generate will be in A.OUT, so we need to pass that to objcopy instead of 'binary'. 2009-03-04 David S. Miller * genmk.rb: Allow rmk file to specify pkglib_IMAGES object file format in IMG_FMT. * conf/i38

[PATCH]: Add sparc64 boot block code.

2009-03-04 Thread David Miller
2009-03-04 David S. Miller * include/grub/sparc64/ieee1275/boot.h: New file. * boot/sparc/ieee1275/boot.S: Likewise. * boot/sparc/ieee1275/diskboot.S: Likewise. * conf/sparc64-ieee1275.rmk: Build sparc boot blocks. * conf/sparc64-ieee1275.mk: Regenerate.

[PATCH]: Strip boot block built objects.

2009-03-04 Thread David Miller
In order for the boot block images for sparc to work properly, we have to strip them out before doing the objcopy. This is harmless on i386-pc and some other future grub targets might need this too, so do it universally. 2009-03-04 David S. Miller * genmk.rb: Strip object files built

Re: [PATCH]: Add sparc64 boot block code.

2009-03-04 Thread David Miller
From: David Miller Date: Wed, 04 Mar 2009 01:07:35 -0800 (PST) > > 2009-03-04 David S. Miller > > * include/grub/sparc64/ieee1275/boot.h: New file. > * boot/sparc/ieee1275/boot.S: Likewise. > * boot/sparc/ieee1275/diskboot.S: Likewise. > * conf/sparc64-ieee1275.rmk: B

Re: [PATCH] implement grub_millisleep in util/misc.c for grub-emu

2009-03-04 Thread Felix Zielcke
Am Samstag, den 28.02.2009, 21:51 +0100 schrieb Christian Franke: > I would suggest to remove the #define and commit the patch. > Ok commited. -- Felix Zielcke ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/gr

Re: [PATCH 1/7]: Fix sparc64 setjmp implementation.

2009-03-04 Thread Vesa Jääskeläinen
David Miller wrote: > + stx %g1, [%sp + 2047 + (14 * 8)] > +retl > + restore %o1, 0, %o0 Please check your white spaces. As we can see here those three commands are on different columns (mixed tabs and spaces). This applies to every other patch you sent too...

Re: [PATCH 1/7]: Fix sparc64 setjmp implementation.

2009-03-04 Thread David Miller
From: Vesa Jääskeläinen Date: Wed, 04 Mar 2009 12:59:37 +0200 > David Miller wrote: > > > + stx %g1, [%sp + 2047 + (14 * 8)] > > +retl > > +restore %o1, 0, %o0 > > Please check your white spaces. As we can see here those three commands > are on different columns (mixed tabs an

Re: [PATCH 1/7]: Fix sparc64 setjmp implementation.

2009-03-04 Thread Vesa Jääskeläinen
David Miller wrote: > This corrects the sparc64 setjmp implementation. > > We need to store the return address register, the > stack pointer, and frame pointer into the jump buf. > > And on longjmp we need restore those registers, flush the register > window state, and pull in the top-most regist

Re: [PATCH 1/7]: Fix sparc64 setjmp implementation.

2009-03-04 Thread David Miller
From: Vesa Jääskeläinen Date: Wed, 04 Mar 2009 13:34:46 +0200 > David Miller wrote: > > diff --git a/include/grub/sparc64/setjmp.h b/include/grub/sparc64/setjmp.h > > index 12d8e01..183a820 100644 > > --- a/include/grub/sparc64/setjmp.h > > +++ b/include/grub/sparc64/setjmp.h > > @@ -19,8 +19,7 @

Re: [PATCH 0/7]: Get sparc building again.

2009-03-04 Thread Vesa Jääskeläinen
David Miller wrote: > Here is a series of patches that fix the most obvious sparc bugs and > get the grub2 tree building again. > > I have code for boot/ that will implement the sparc boot blocks and > things of that nature, but that will come later. > > First things first, let's get it to actual

Re: [PATCH 3/7]: Implement proper sparc64 kern startup.

2009-03-04 Thread Vesa Jääskeläinen
David Miller wrote: > This replaces the C implementation with a proper assembler > one. Also add missing grub_prefix[] declaration to > kernel.h > > 2009-03-03 David S. Miller > > * kern/sparc64/ieee1275/init.c: Delete, replace with... > * kern/sparc64/ieee1275/crt0.S: assembler i

Re: [PATCH 3/7]: Implement proper sparc64 kern startup.

2009-03-04 Thread David Miller
From: Vesa Jääskeläinen Date: Wed, 04 Mar 2009 13:40:20 +0200 > David Miller wrote: > > This replaces the C implementation with a proper assembler > > one. Also add missing grub_prefix[] declaration to > > kernel.h > > > > 2009-03-03 David S. Miller > > > > * kern/sparc64/ieee1275/init.

Re: [PATCH 5/7]: Add sparc64 loader implementation.

2009-03-04 Thread Vesa Jääskeläinen
David Miller wrote: > 2009-03-03 David S. Miller > > * include/grub/sparc64/ieee1275/loader.h: New file. > * include/grub/sparc64/ieee1275/memory.h: Likewise. > * include/grub/sparc64/kernel.h: Likewise. > * loader/sparc64/ieee1275/linux.c: Likewise. > * loader/spa

Re: [PATCH 5/7]: Add sparc64 loader implementation.

2009-03-04 Thread David Miller
From: Vesa Jääskeläinen Date: Wed, 04 Mar 2009 13:44:16 +0200 > David Miller wrote: > > 2009-03-03 David S. Miller > > > > * include/grub/sparc64/ieee1275/loader.h: New file. > > * include/grub/sparc64/ieee1275/memory.h: Likewise. > > * include/grub/sparc64/kernel.h: Likewise. > >

Re: [PATCH 5/7]: Add sparc64 loader implementation.

2009-03-04 Thread phcoder
Sure, then powerpc needs the same. I'll unify both sparc and powerpc in this way after my patches are added, promise :-) If you need powerpc testing you can contact me. I can offer testing on iMac G3. But I'm not yet familiar with powerpc. ___ Gr

Re: [PATCH 7/7]: Get cob-webs out of sparc64-ieee1275.rmk

2009-03-04 Thread Vesa Jääskeläinen
David Miller wrote: > There is no way anyone tried to build the sparc target in > years :-) This updates sparc64-ieee1275.rmk with modern > times and regenerates sparc64-ieee1275.mk as well as > DISTLIST. > > 2009-03-03 David S. Miller > > * conf/sparc64-ieee1275.rmk: Update. > * co

Re: [PATCH]: Fix several warnings on sparc64.

2009-03-04 Thread Vesa Jääskeläinen
David Miller wrote: > Many of these warnings are for two reasons: > > 1) grub_ssize_t is != 'int' on sparc64, and many pieces of code >try to pass an int pointer in for the final arg of several >ieee1275 "get property" functions which take a grub_ssize_t >pointer. > > 2) The third arg

Re: [PATCH 7/7]: Get cob-webs out of sparc64-ieee1275.rmk

2009-03-04 Thread David Miller
From: Vesa Jääskeläinen Date: Wed, 04 Mar 2009 13:50:37 +0200 > David Miller wrote: > > There is no way anyone tried to build the sparc target in > > years :-) This updates sparc64-ieee1275.rmk with modern > > times and regenerates sparc64-ieee1275.mk as well as > > DISTLIST. > > > > 2009-03-03

Re: [PATCH]: Fix several warnings on sparc64.

2009-03-04 Thread David Miller
From: Vesa Jääskeläinen Date: Wed, 04 Mar 2009 13:56:08 +0200 > David Miller wrote: > > Many of these warnings are for two reasons: > > > > 1) grub_ssize_t is != 'int' on sparc64, and many pieces of code > >try to pass an int pointer in for the final arg of several > >ieee1275 "get prope

Re: [PATCH]: Strip boot block built objects.

2009-03-04 Thread Vesa Jääskeläinen
David Miller wrote: > In order for the boot block images for sparc to work properly, > we have to strip them out before doing the objcopy. > > This is harmless on i386-pc and some other future grub > targets might need this too, so do it universally. Please have a look at mail from me with subjec

Re: [PATCH]: Strip boot block built objects.

2009-03-04 Thread David Miller
From: Vesa Jääskeläinen Date: Wed, 04 Mar 2009 13:59:43 +0200 > David Miller wrote: > > In order for the boot block images for sparc to work properly, > > we have to strip them out before doing the objcopy. > > > > This is harmless on i386-pc and some other future grub > > targets might need thi

Re: [PATCH 7/7]: Get cob-webs out of sparc64-ieee1275.rmk

2009-03-04 Thread Vesa Jääskeläinen
David Miller wrote: > Are you going to apply my patches or do I have to rewrite > everything? Personally I have nothing against resurrecting sparc support :) Lets see what kind of other comments they generate... ___ Grub-devel mailing list Grub-devel

Re: [PATCH]: Strip boot block built objects.

2009-03-04 Thread Vesa Jääskeläinen
David Miller wrote: > From: Vesa Jääskeläinen > Date: Wed, 04 Mar 2009 13:59:43 +0200 > >> David Miller wrote: >>> In order for the boot block images for sparc to work properly, >>> we have to strip them out before doing the objcopy. >>> >>> This is harmless on i386-pc and some other future grub

Re: [PATCH 1/7]: Fix sparc64 setjmp implementation.

2009-03-04 Thread Javier Martín
El mié, 04-03-2009 a las 03:36 -0800, David Miller escribió: > From: Vesa Jääskeläinen > Date: Wed, 04 Mar 2009 13:34:46 +0200 > > > David Miller wrote: > > > diff --git a/include/grub/sparc64/setjmp.h b/include/grub/sparc64/setjmp.h > > > index 12d8e01..183a820 100644 > > > --- a/include/grub/sp

[PATCH] Support up to 256 SCSI disks on Linux

2009-03-04 Thread Colin Watson
Linux's Documentation/devices.txt file says that up to 256 SCSI disks are supported. GRUB currently only supports the first 16. Wikimedia filed an Ubuntu bug report about this (https://bugs.launchpad.net/bugs/335174), so here's a patch to extend this. (I really haven't been able to test this much a

Re: [PATCH 7/7]: Get cob-webs out of sparc64-ieee1275.rmk

2009-03-04 Thread Vincent Pelletier
Le Wednesday 04 March 2009 03:15:39 David Miller, vous avez écrit : > There is no way anyone tried to build the sparc target in > years :-) Literaly years. More than 3 I think. I gave it a try ~2 1/2 years ago, and started writing a patch... And gave up. Thanks a lot for taking care of this. I had

Re: [PATCH] make partition active

2009-03-04 Thread Robert Millan
On Mon, Mar 02, 2009 at 11:52:13AM +0800, Bean wrote: > > Then we could use parttool syntax. Then parttype can be implemented like > > grub> parttool hd0,1 type=7 > > makeactive like: > > grub> parttool hd0,1 boot+ > > And it can even be done by one command > > grub> parttool hd0,1 boot+ type=7 > >

Re: [PATCH] Handler support

2009-03-04 Thread Robert Millan
On Mon, Mar 02, 2009 at 01:52:21AM +0800, Bean wrote: > > Hi, > > Fixed and committed. So what happened to the terminal module? Is there a new way to change terminals? :-) -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your

Migrating to GRUB 2 in Debian (Re: Interesting GSoC project ideas for 09)

2009-03-04 Thread Robert Millan
On Sat, Feb 28, 2009 at 11:28:05PM -0500, Pavel Roskin wrote: > On Sat, 2009-02-28 at 12:54 +0100, phcoder wrote: > > Robert Millan wrote: > > > Seems nice. Would you be willing to write a summary for these? Then we > > > could add it to grub-soc.html. > > Where is this file? > > Here is elaborat

Re: [PATCH 1/7]: Fix sparc64 setjmp implementation.

2009-03-04 Thread David Miller
From: Javier Martín Date: Wed, 04 Mar 2009 16:58:22 +0100 > As an example of what this entails, the failure to think with the future > in mind has extraordinarily hampered the 32->64 bit transition: many > Windows apps (among them the Vorbis codecs!) had be nearly rewritten > because they used "u

Re: Interesting GSoC project ideas for 09

2009-03-04 Thread Robert Millan
On Sun, Mar 01, 2009 at 06:15:43PM +0100, phcoder wrote: > I personally see following features still missing from grub2 comparing > to grub1: > -network Notice that in the GRUB Legacy shipped by Debian, network is disabled anyway (without module support, you can't ship a prebuilt image that supp

Re: Menu locks / password authentication

2009-03-04 Thread Robert Millan
On Tue, Mar 03, 2009 at 05:32:40PM +0200, Vesa Jääskeläinen wrote: > Robert Millan wrote: > > It's funny, we're all discussing about performing security measurements in > > GRUB and nobody mentioned that our user interface lacks even the most basic > > lock mechanism :-) > > > > Perhaps this would

Re: Set an LVM volume as default root device

2009-03-04 Thread Robert Millan
On Sat, Feb 28, 2009 at 06:55:09PM +0100, Aesir wrote: > Hi everyone, > > while discovering the beauties of grub2 I'm trying to get a working setup > with /boot partition on LVM. Unfortunately until now to boot this system I > had to set root device and prefix "by hand" from the rescue shell. In

Re: fault on compiling grub2 of version 2010

2009-03-04 Thread Robert Millan
On Wed, Mar 04, 2009 at 01:14:43AM +0800, liu Aleaxander wrote: > configured with --enable-grub-emu. > > /home/Aleax/project/grub/grub2/commands/handler.c:46: undefined reference to > `grub_handler_class_list' > /home/Aleax/project/grub/grub2/commands/handler.c:62: undefined reference to > `grub_n

Re: Detection and installation of Grub on Raid1 disks.

2009-03-04 Thread Robert Millan
On Wed, Mar 04, 2009 at 09:04:16AM +1300, Centurion Computer Technology (2005) Ltd wrote: > > Has anything chaged since the december build that may have fixed this? > > If not, I'll pull the latest svn and have a hack and see if I can solve > this. Could be, yes. Always try latest SVN when you

[PATCH] parttool

2009-03-04 Thread phcoder
Hello here is the implementation of parttool with the syntax I proposed earlier and equivalent of parttype, makeactive and hide/unhide -- Regards Vladimir 'phcoder' Serbinenko Index: conf/common.rmk === --- conf/common.rmk (revision

Re: [PATCH] Support up to 256 SCSI disks on Linux

2009-03-04 Thread Robert Millan
On Wed, Mar 04, 2009 at 04:35:09PM +, Colin Watson wrote: > Linux's Documentation/devices.txt file says that up to 256 SCSI disks > are supported. GRUB currently only supports the first 16. Wikimedia > filed an Ubuntu bug report about this > (https://bugs.launchpad.net/bugs/335174), so here's a

Re: [PATCH] Support up to 256 SCSI disks on Linux

2009-03-04 Thread Robert Millan
On Wed, Mar 04, 2009 at 10:16:29PM +0100, Robert Millan wrote: > >else if (major == SCSI_DISK0_MAJOR) > > -sprintf (name, "/dev/sd%c", 'a' + minor / 16); > > +grub_util_getdiskname_scsi (name, 0, minor / 16); > > + else if (major == SCSI_DISK1_MAJOR) > > +grub_util_getdiskname_scsi

Re: [PATCH 0/7]: Get sparc building again.

2009-03-04 Thread Robert Millan
On Tue, Mar 03, 2009 at 06:15:08PM -0800, David Miller wrote: > > Here is a series of patches that fix the most obvious sparc bugs and > get the grub2 tree building again. > > I have code for boot/ that will implement the sparc boot blocks and > things of that nature, but that will come later. >

Re: [PATCH 0/7]: Get sparc building again.

2009-03-04 Thread David Miller
From: Robert Millan Date: Wed, 4 Mar 2009 22:26:51 +0100 > On Tue, Mar 03, 2009 at 06:15:08PM -0800, David Miller wrote: > > > > Here is a series of patches that fix the most obvious sparc bugs and > > get the grub2 tree building again. > > > > I have code for boot/ that will implement the spar

Re: [PATCH 0/7]: Get sparc building again.

2009-03-04 Thread Robert Millan
On Wed, Mar 04, 2009 at 01:33:29PM -0800, David Miller wrote: > From: Robert Millan > Date: Wed, 4 Mar 2009 22:26:51 +0100 > > > On Tue, Mar 03, 2009 at 06:15:08PM -0800, David Miller wrote: > > > > > > Here is a series of patches that fix the most obvious sparc bugs and > > > get the grub2 tree

[PATCH 1/10]: Fix sparc64 setjmp

2009-03-04 Thread David Miller
2009-03-03 David S. Miller * normal/sparc64/setjmp.S: Fix setjmp implementation. * include/grub/sparc64/setjmp.h: Update grub_jmp_buf[]. --- include/grub/sparc64/setjmp.h |7 --- normal/sparc64/setjmp.S | 20 ++-- 2 files changed, 18 insertions(

[PATCH 2/10]: Fix sparc64 cache flush

2009-03-04 Thread David Miller
2009-03-03 David S. Miller * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation. --- kern/sparc64/cache.S | 24 ++-- 1 files changed, 10 insertions(+), 14 deletions(-) diff --git a/kern/sparc64/cache.S b/kern/sparc64/cache.S index 2ebb693..dac3f93 1006

[PATCH 3/10]: Implement proper sparc64 kern startup.

2009-03-04 Thread David Miller
2009-03-03 David S. Miller * kern/sparc64/ieee1275/init.c: Delete, replace with... * kern/sparc64/ieee1275/crt0.S: assembler implementation. * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[]. --- include/grub/sparc64/ieee1275/kernel.h |6 +- kern/sparc6

[PATCH 0/10]: Respin of sparc patches.

2009-03-04 Thread David Miller
This is a respin of the sparc64 grub patches I posted with changes based upon feedback (whitespace, use common code, type police, don't include generated files, etc.) It's also made against current top of trunk (there were some sparc64-ieee1275.rmk changes in the past 24 hours so this was necessa

[PATCH 4/10]: Add sparc64 loader implementation.

2009-03-04 Thread David Miller
2009-03-03 David S. Miller * include/grub/sparc64/ieee1275/loader.h: New file. * include/grub/sparc64/ieee1275/memory.h: Likewise. * include/grub/sparc64/kernel.h: Likewise. * loader/sparc64/ieee1275/linux.c: Likewise. --- include/grub/sparc64/ieee1275/loader.h |

[PATCH 5/10]: Fix multiboot2 build on sparc

2009-03-04 Thread David Miller
2009-03-03 David S. Miller * loader/ieee1275/multiboot2.c (grub_mb2_arch_boot): Handle sparc like powerpc. --- loader/ieee1275/multiboot2.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/loader/ieee1275/multiboot2.c b/loader/ieee1275/multiboot2.c index

[PATCH 7/10]: Fix several warnings on sparc64.

2009-03-04 Thread David Miller
2009-03-04 David S. Miller * kern/ieee1275/cmain.c (grub_ieee1275_init): Third arg to grub_ieee1275_get_integer_property is a grub_uint32_t pointer. * kern/ieee1275/init.c (grub_machine_init): Fix type of 'actual'. * kern/ieee1275/openfw.c (grub_children_i

[PATCH 8/10]: Allow targets to define boot block image format.

2009-03-04 Thread David Miller
2009-03-04 David S. Miller * genmk.rb: Allow rmk file to specify pkglib_IMAGES object file format in IMG_FMT. * conf/i386-pc.rmk (IMG_FMT): Define. --- conf/i386-pc.rmk |1 + genmk.rb |2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/c

[PATCH 6/10]: Get cob-webs out of sparc64-ieee1275.rmk

2009-03-04 Thread David Miller
2009-03-03 David S. Miller * conf/sparc64-ieee1275.rmk: Update. --- conf/sparc64-ieee1275.rmk | 302 +--- 1 files changed, 89 insertions(+), 213 deletions(-) diff --git a/conf/sparc64-ieee1275.rmk b/conf/sparc64-ieee1275.rmk index 1658a66..5be3e

[PATCH 10/10]: Strip boot block built objects.

2009-03-04 Thread David Miller
2009-03-04 David S. Miller * genmk.rb: Strip object files built for boot images. --- genmk.rb |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/genmk.rb b/genmk.rb index fe022cd..83ef639 100644 --- a/genmk.rb +++ b/genmk.rb @@ -61,6 +61,7 @@ MOSTLYCLEANFILES += #{

[PATCH 9/10]: Add sparc64 boot block code.

2009-03-04 Thread David Miller
2009-03-04 David S. Miller * include/grub/sparc64/ieee1275/boot.h: New file. * boot/sparc/ieee1275/boot.S: Likewise. * boot/sparc/ieee1275/diskboot.S: Likewise. * conf/sparc64-ieee1275.rmk: Build sparc boot blocks. * conf/sparc64-ieee1275.mk: Regenerate. -

Re: [PATCH] Handler support

2009-03-04 Thread Bean
On Thu, Mar 5, 2009 at 4:55 AM, Robert Millan wrote: > On Mon, Mar 02, 2009 at 01:52:21AM +0800, Bean wrote: >> >> Hi, >> >> Fixed and committed. > > So what happened to the terminal module?  Is there a new way to change > terminals? :-) Hi, Handler is the new generic handler manipulation comman