Re: booting kernel of NetBSD (Re: UFS (FFS) support seems broken in grub2)

2008-01-28 Thread Robert Millan
On Sun, Jan 27, 2008 at 05:54:26PM -0800, walt wrote: > > Heh. I'm assuming an .rmk file involves ruby somehow? The bonehead > build process that I'm using doesn't turn an .rmk into a .mk AFAICT, > but I'd like to know how to do it. Try ./autogen.sh -- Robert Millan I know my rights; I want

Re: booting kernel of NetBSD (Re: UFS (FFS) support seems broken in grub2)

2008-01-28 Thread Marco Gerards
Robert Millan <[EMAIL PROTECTED]> writes: > On Sat, Jan 26, 2008 at 01:24:57PM -0800, walt wrote: >> >> Yes! I just discovered that I can multiboot the netbsd kernel off >> of a FAT32 fs or even an NTFS fs, but *not* off of a UFS fs :o/ >> >> Apparently "something bad" happens to the kernel in

Re: [PATCH] use at_keyboard.c on i386-ieee1275

2008-01-28 Thread Marco Gerards
"Yoshinori K. Okuji" <[EMAIL PROTECTED]> writes: > On Friday 25 January 2008 09:56, Marco Gerards wrote: >> "Yoshinori K. Okuji" <[EMAIL PROTECTED]> writes: >> > On Thursday 24 January 2008 13:39, Robert Millan wrote: >> >> So perhaps it's a good idea to release 1.96 with known regressions after >

Re: What is the current status?

2008-01-28 Thread Marco Gerards
Dean Loros <[EMAIL PROTECTED]> writes: Hi, > I've been following the list (sort-of) for some time now & I have > several questions-- > > 1. Is Grub2 up to the usability of Grub? If it isn't, please report so. We are close to having something stable. Bug reports can help us a lot. > 2. I've be

Re: status of GRUB on XO

2008-01-28 Thread Marco Gerards
Robert Millan <[EMAIL PROTECTED]> writes: Hi Robert, > Reporting current status of GRUB on XO: > > - Missing some parts of AT keyboard driver (arrows don't work). Is this a general issue with your driver? For arrow keys you need to process multiple scancodes, IIRC. > - Can only access SD c

Re: Redefining GRUB_MOD_GAP in init.c

2008-01-28 Thread Robert Millan
On Sun, Jan 27, 2008 at 10:25:32PM -0500, Pavel Roskin wrote: > Hi Robert, > > I'm concerned about your latest commit: > > * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip > `GRUB_MOD_GAP' for platforms in which it's not defined. > > The algorithm for calculating the

Re: status of GRUB on XO

2008-01-28 Thread Robert Millan
On Mon, Jan 28, 2008 at 09:52:10AM +0100, Marco Gerards wrote: > > > > - Missing some parts of AT keyboard driver (arrows don't work). > > Is this a general issue with your driver? For arrow keys you need to > process multiple scancodes, IIRC. Yes. Other keys that are composed in the same way

Re: [PATCH] a.out kernel loader

2008-01-28 Thread Robert Millan
On Mon, Jan 28, 2008 at 04:10:42AM +0800, Bean wrote: > > > > > > > > How FreeBSD-specific is this? Will the same module apply to other a.out > > > > binaries ? (I ask since you gave it a generic name) > > > > > > it's an old format of the unix system: > > > > > > http://en.wikipedia.org/wiki/A.o

Re: Compiling grub2 on *BSD?

2008-01-28 Thread Bean
On Jan 27, 2008 2:15 AM, Bean <[EMAIL PROTECTED]> wrote: > On Jan 27, 2008 1:21 AM, Robert Millan <[EMAIL PROTECTED]> wrote: > > > FreeBSD: > > > > > > lnxboot.S: Assembler messages: > > > lnxboot.S:49: Error: `0x200+data_start - data_next(%ebx,%eax)' is not a > > > valid 16 bit base/index expressi

Re: booting kernel of NetBSD (Re: UFS (FFS) support seems broken in grub2)

2008-01-28 Thread Bean
On Jan 28, 2008 9:54 AM, walt <[EMAIL PROTECTED]> wrote: > > On Mon, 2008-01-28 at 04:25 +0800, Bean wrote: > ... > > > > please make a small ufs image containing the netbsd kernel, i don't a > > > > a bsd system at hand > > http://leaf.dragonflybsd.org/~wa1ter/ufs.gz > > I included a small text fi

GRUB_MOD_GAP for non-ieee1275 ELF platforms

2008-01-28 Thread Robert Millan
On Mon, Jan 28, 2008 at 10:09:10AM +0100, Robert Millan wrote: > > Also, I don't see how GRUB_MOD_GAP would not be defined to 0x8000 for > > i386-ieee1275 platform considering that > > include/grub/i386/ieee1275/kernel.h simply includes > > include/grub/powerpc/ieee1275/kernel.h > > Sounds strange

Re: booting kernel of NetBSD (Re: UFS (FFS) support seems broken in grub2)

2008-01-28 Thread Bean
On Jan 28, 2008 4:57 PM, Marco Gerards <[EMAIL PROTECTED]> wrote: > Robert Millan <[EMAIL PROTECTED]> writes: > > > On Sat, Jan 26, 2008 at 01:24:57PM -0800, walt wrote: > >> > >> Yes! I just discovered that I can multiboot the netbsd kernel off > >> of a FAT32 fs or even an NTFS fs, but *not* off

Re: booting kernel of NetBSD (Re: UFS (FFS) support seems broken in grub2)

2008-01-28 Thread Robert Millan
On Mon, Jan 28, 2008 at 06:06:51PM +0800, Bean wrote: > > grub-probe is nice, but i normally use grub-fstest to debug fs > problem, because it have more options. Ah, I noticed grub-fstest is not in CVS yet. I'll comment on your patch now.. -- Robert Millan I know my rights; I want my phone c

Re: grub-fstest: debug tool for filesystem driver

2008-01-28 Thread Robert Millan
On Sat, Jan 05, 2008 at 08:11:21PM +0800, Bean wrote: > diff --git a/conf/i386-pc.rmk b/conf/i386-pc.rmk > index 2638ee5..a25dd76 100644 > --- a/conf/i386-pc.rmk > +++ b/conf/i386-pc.rmk > @@ -59,6 +59,9 @@ sbin_UTILITIES = grub-setup grub-mkdevicemap grub-probe > ifeq ($(enable_grub_emu), yes) >

Re: Compiling grub2 on *BSD?

2008-01-28 Thread Robert Millan
> > - movsbl %dh, %eax > > - movl%eax, %ss:(DATA_ADDR + GRUB_KERNEL_MACHINE_INSTALL_DOS_PART) > > + // Check for the multiboot signature > > + cmpl$0x1badb002, %ss:(DATA_ADDR + 0x50) > > + jz 1f > [...] > > if there is no objection, I'd like to check in

Re: Compiling grub2 on *BSD?

2008-01-28 Thread Bean
On Jan 28, 2008 6:47 PM, Robert Millan <[EMAIL PROTECTED]> wrote: > > > - movsbl %dh, %eax > > > - movl%eax, %ss:(DATA_ADDR + > > > GRUB_KERNEL_MACHINE_INSTALL_DOS_PART) > > > + // Check for the multiboot signature > > > + cmpl$0x1badb002, %ss:(DATA_ADDR + 0x50) >

Re: [PATCH] a.out kernel loader

2008-01-28 Thread Bean
On Jan 28, 2008 5:11 PM, Robert Millan <[EMAIL PROTECTED]> wrote: > On Mon, Jan 28, 2008 at 04:10:42AM +0800, Bean wrote: > > > > > > > > > > How FreeBSD-specific is this? Will the same module apply to other > > > > > a.out > > > > > binaries ? (I ask since you gave it a generic name) > > > > >

Re: Compiling grub2 on *BSD?

2008-01-28 Thread Marco Gerards
Robert Millan <[EMAIL PROTECTED]> writes: >> > - movsbl %dh, %eax >> > - movl%eax, %ss:(DATA_ADDR + >> > GRUB_KERNEL_MACHINE_INSTALL_DOS_PART) >> > + // Check for the multiboot signature >> > + cmpl$0x1badb002, %ss:(DATA_ADDR + 0x50) >> > + jz 1f >> [..

Re: booting kernel of NetBSD (Re: UFS (FFS) support seems broken in grub2)

2008-01-28 Thread Bean
On Jan 28, 2008 9:00 PM, Marco Gerards <[EMAIL PROTECTED]> wrote: > Bean <[EMAIL PROTECTED]> writes: > > > On Jan 28, 2008 9:54 AM, walt <[EMAIL PROTECTED]> wrote: > >> > >> On Mon, 2008-01-28 at 04:25 +0800, Bean wrote: > >> ... > >> > > > please make a small ufs image containing the netbsd kernel

PCI support

2008-01-28 Thread Marco Gerards
Hi, Here is a patch that allows you to iterate over PCI devices. The file pci.c adds a function to iterate over the devices and a function to generate an address to query the PCI device. Furthermore, there is a function to actually access the hardware, which is machine specific. I only implement

Re: [PATCH] a.out kernel loader

2008-01-28 Thread Bean
On Jan 28, 2008 10:37 PM, walt <[EMAIL PROTECTED]> wrote: > > On Mon, 2008-01-28 at 19:48 +0800, Bean wrote: > > On Jan 28, 2008 5:11 PM, Robert Millan <[EMAIL PROTECTED]> wrote: > > > On Mon, Jan 28, 2008 at 04:10:42AM +0800, Bean wrote: > > > > > > > > > > > > > > How FreeBSD-specific is this? W

Re: [PATCH] a.out kernel loader

2008-01-28 Thread walt
On Mon, 2008-01-28 at 19:48 +0800, Bean wrote: > On Jan 28, 2008 5:11 PM, Robert Millan <[EMAIL PROTECTED]> wrote: > > On Mon, Jan 28, 2008 at 04:10:42AM +0800, Bean wrote: > > > > > > > > > > > > How FreeBSD-specific is this? Will the same module apply to other > > > > > > a.out > > > > > > bin

Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms

2008-01-28 Thread Pavel Roskin
On Mon, 2008-01-28 at 10:30 +0100, Robert Millan wrote: > On Mon, Jan 28, 2008 at 10:09:10AM +0100, Robert Millan wrote: > > > Also, I don't see how GRUB_MOD_GAP would not be defined to 0x8000 for > > > i386-ieee1275 platform considering that > > > include/grub/i386/ieee1275/kernel.h simply include

Re: grub-fstest: debug tool for filesystem driver

2008-01-28 Thread Robert Millan
On Mon, Jan 28, 2008 at 10:48:13PM +0800, Bean wrote: > +#include > +#include > +#include > +#include > + > +#define _GNU_SOURCE 1 > +#include I suspect this wouldn't work in practice, because any system header can drag in. -- Robert Millan I know my rights; I want my phone call! What

Re: PCI support

2008-01-28 Thread Robert Millan
On Mon, Jan 28, 2008 at 03:03:33PM +0100, Marco Gerards wrote: > > I wanted to wait with this patch until the ATA driver is adapted. But > I won't have time for that this week. So I can better get this > committed and people working on this ;-). There is some code for ATA, > but it was not test

Re: PCI support

2008-01-28 Thread Marco Gerards
Robert Millan <[EMAIL PROTECTED]> writes: > On Mon, Jan 28, 2008 at 03:03:33PM +0100, Marco Gerards wrote: >> >> I wanted to wait with this patch until the ATA driver is adapted. But >> I won't have time for that this week. So I can better get this >> committed and people working on this ;-).

Re: booting kernel of NetBSD (Re: UFS (FFS) support seems broken in grub2)

2008-01-28 Thread Marco Gerards
Bean <[EMAIL PROTECTED]> writes: > On Jan 28, 2008 9:54 AM, walt <[EMAIL PROTECTED]> wrote: >> >> On Mon, 2008-01-28 at 04:25 +0800, Bean wrote: >> ... >> > > > please make a small ufs image containing the netbsd kernel, i don't a >> > > > a bsd system at hand >> >> http://leaf.dragonflybsd.org/~w

Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms

2008-01-28 Thread Pavel Roskin
On Mon, 2008-01-28 at 17:29 +0100, Robert Millan wrote: > On Mon, Jan 28, 2008 at 08:44:51AM -0500, Pavel Roskin wrote: > > > What do you suggest? > > > > I would prefer to have GRUB_MOD_GAP is all headers. Once it's not > > needed, it could be removed across the board. > > Ok, does this seem f

Re: grub-fstest: debug tool for filesystem driver

2008-01-28 Thread Robert Millan
On Tue, Jan 29, 2008 at 01:35:35AM +0800, Bean wrote: > On Jan 29, 2008 1:27 AM, Robert Millan <[EMAIL PROTECTED]> wrote: > > On Mon, Jan 28, 2008 at 10:48:13PM +0800, Bean wrote: > > > +#include > > > +#include > > > +#include > > > +#include > > > + > > > +#define _GNU_SOURCE 1 > > > +#inclu

Re: grub-fstest: debug tool for filesystem driver

2008-01-28 Thread Bean
On Jan 28, 2008 6:45 PM, Robert Millan <[EMAIL PROTECTED]> wrote: > Can we move this to common.rmk ? AFAICT, there's nothing i386-pc-specific > about > this. > > As for the list of filesystems, please reuse the filesystem chunk used on > other > commands; this will improve readability, ensure t

Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms

2008-01-28 Thread Robert Millan
On Mon, Jan 28, 2008 at 11:34:07AM -0500, Pavel Roskin wrote: > > On Mon, 2008-01-28 at 17:29 +0100, Robert Millan wrote: > > On Mon, Jan 28, 2008 at 08:44:51AM -0500, Pavel Roskin wrote: > > > > What do you suggest? > > > > > > I would prefer to have GRUB_MOD_GAP is all headers. Once it's not >

Re: IA64 port

2008-01-28 Thread Robert Millan
Hi Tristan! On Mon, Jan 28, 2008 at 05:09:05PM +0100, Tristan Gingold wrote: > Hi, > > here is the patch to add support for ia64. This is mostly new files > (as well as new commands used to debug), and a few fixes in kern/efi/mm.c and > fs/fat.c. > > Ia64 uses EFI so this port leverage on the

Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms

2008-01-28 Thread Robert Millan
On Mon, Jan 28, 2008 at 08:44:51AM -0500, Pavel Roskin wrote: > > What do you suggest? > > I would prefer to have GRUB_MOD_GAP is all headers. Once it's not > needed, it could be removed across the board. Ok, does this seem fine? -- Robert Millan I know my rights; I want my phone call! What

Re: PCI support

2008-01-28 Thread Robert Millan
On Mon, Jan 28, 2008 at 07:32:33PM +0100, Marco Gerards wrote: > > --- qemu-0.9.0+20070816/hw/pc.c~2007-06-06 18:26:13.0 +0200 > > +++ qemu-0.9.0+20070816/hw/pc.c 2008-01-28 18:25:00.0 +0100 > > @@ -676,6 +676,8 @@ > > qemu_irq *cpu_irq; > > qemu_irq *i8259; > > >

Re: grub-fstest: debug tool for filesystem driver

2008-01-28 Thread Bean
On Jan 29, 2008 1:27 AM, Robert Millan <[EMAIL PROTECTED]> wrote: > On Mon, Jan 28, 2008 at 10:48:13PM +0800, Bean wrote: > > +#include > > +#include > > +#include > > +#include > > + > > +#define _GNU_SOURCE 1 > > +#include > > I suspect this wouldn't work in practice, because any system hea

Re: [PATCH] a.out kernel loader

2008-01-28 Thread walt
Bean wrote: On Jan 28, 2008 10:37 PM, walt<[EMAIL PROTECTED]> wrote: ... Good news and bad news. With this patch and your most recent ufs patch I can aout /boot/loader or multiboot /netbsd from a UFS partition, that is the good news. The bad news is that when I type 'boot', /boot/loader prin

eltorito support ..

2008-01-28 Thread Kalamatee
Hi, I read in previous mails that eltorito support would be getting worked on for the summer of code projects, and that it should be getting merged into the grub2 codebase at somepoint. Im just wondering what is the current situation with this? Is there any timeline when it will be completed? T

Re: Compiling grub2 on *BSD?

2008-01-28 Thread jakllsch
On Sun, Jan 27, 2008 at 09:56:50AM +0100, Robert Millan wrote: > On Sat, Jan 26, 2008 at 12:11:48PM -0800, walt wrote: > > > What is the problem initially? > > > > kernel_img-kern_device.o: In function `grub_device_iterate': > > ../kern/device.c:84: undefined reference to `__enable_execute_stack'

PATCH: silently accept empty lines in rescue mode

2008-01-28 Thread Tristan Gingold
Hi, extracted from my IA64 patch. Tristan. 2008-01-28 Tristan Gingold <[EMAIL PROTECTED]> * kern/rescue.c: Silently accept empty lines. diff -ruNp -x '*~' -x CVS grub2.orig/kern/rescue.c grub2/kern/rescue.c --- grub2.orig/kern/rescue.c2007-09-03 22:28:23.0 +0200 +++ grub2

Re: IA64 port

2008-01-28 Thread Tristan Gingold
On Mon, Jan 28, 2008 at 05:55:04PM +0100, Robert Millan wrote: > > Hi Tristan! [...] > > This port deviate from other grub ports in modules: I currently use a trick > > to provide basic module support: they are prelinked during installation. > > This makes the initial port easier (and possible ot

Re: [PATCH] a.out kernel loader

2008-01-28 Thread Bean
On Jan 29, 2008 6:04 AM, walt <[EMAIL PROTECTED]> wrote: > Bean wrote: > > On Jan 28, 2008 10:37 PM, walt<[EMAIL PROTECTED]> wrote: > ... > >> Good news and bad news. With this patch and your most recent ufs patch > >> I can aout /boot/loader or multiboot /netbsd from a UFS partition, that > >> i

Re: [PATCH] a.out kernel loader

2008-01-28 Thread Bean
On Jan 29, 2008 3:11 PM, <[EMAIL PROTECTED]> wrote: > On Mon, Jan 28, 2008 at 06:37:16AM -0800, walt wrote: > > > > When I type 'boot' after loading the netbsd kernel with multiboot, the > > machine reboots instantly instead of starting the OS. > > > > Any ideas? > > > > I've encountered this in q

Re: [PATCH] a.out kernel loader

2008-01-28 Thread jakllsch
On Mon, Jan 28, 2008 at 06:37:16AM -0800, walt wrote: > > When I type 'boot' after loading the netbsd kernel with multiboot, the > machine reboots instantly instead of starting the OS. > > Any ideas? > I've encountered this in qemu where it tells you you are executing code outside ram/rom at the

grub-emu screen is black.

2008-01-28 Thread Franklin PIAT
al=white/black", grub-emu is completely black (I have to press "c" then "esc" twice). grub version : Debian/sid's grub-pc_1.95+20080128-1_i386.deb Franklin. ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel