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

2008-02-06 Thread Bean
On Feb 6, 2008 11:32 PM, Robert Millan <[EMAIL PROTECTED]> wrote: > On Sat, Jan 26, 2008 at 11:01:49PM +0800, Bean wrote: > > > > * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical > > address of entry. > > (grub_multiboot_load_elf64): Likewise. > > (grub

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

2008-02-06 Thread Robert Millan
On Sat, Jan 26, 2008 at 11:01:49PM +0800, Bean wrote: > > * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical > address of entry. > (grub_multiboot_load_elf64): Likewise. > (grub_multiboot): Initialize mbi structure. > > > diff --git a/loader/i386/pc/mu

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

2008-02-02 Thread Bean
Committed. -- Bean ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel

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

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: 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: 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 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

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: 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-27 Thread walt
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 file (motd) to demonstrate that you can cat it okay, but when you try 'mul

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

2008-01-27 Thread Robert Millan
On Sun, Jan 27, 2008 at 12:09:20PM -0800, walt wrote: > > On Sun, 2008-01-27 at 09:53 +0100, Robert Millan wrote: > > > I just committed a check in grub-probe that attempts to read and verify > > files > > using GRUB filesystems and compares them with output from your system. E.g. > > if you do

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

2008-01-27 Thread Bean
On Jan 28, 2008 4:13 AM, walt <[EMAIL PROTECTED]> wrote: > > On Sun, 2008-01-27 at 09:35 +0800, Bean wrote: > > On Jan 27, 2008 5:24 AM, walt <[EMAIL PROTECTED]> wrote: > > > > > > Apparently "something bad" happens to the kernel in the process of > > > reading or loading it from the UFS fs. I can

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

2008-01-27 Thread walt
On Sun, 2008-01-27 at 09:35 +0800, Bean wrote: > On Jan 27, 2008 5:24 AM, walt <[EMAIL PROTECTED]> wrote: > > > > Apparently "something bad" happens to the kernel in the process of > > reading or loading it from the UFS fs. I can read small text files > > from a UFS fs, however, so I'm thinking m

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

2008-01-27 Thread walt
On Sun, 2008-01-27 at 09:53 +0100, Robert Millan wrote: > I just committed a check in grub-probe that attempts to read and verify files > using GRUB filesystems and compares them with output from your system. E.g. > if you do: grub-probe -t fs /full/path/to/file it will compare and verify it >

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

2008-01-27 Thread Robert Millan
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 the process of > reading or loading it from the UF

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

2008-01-26 Thread Bean
On Jan 27, 2008 5:24 AM, walt <[EMAIL PROTECTED]> wrote: > > On Sat, 2008-01-26 at 23:01 +0800, Bean wrote: > > this is the patch, problems found: > > > > 1, the mbi structure is not initialized to all zeros, this means some > > important member, like mods_count, will contain trash. > > 2, the entr

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

2008-01-26 Thread walt
On Sat, 2008-01-26 at 23:01 +0800, Bean wrote: > this is the patch, problems found: > > 1, the mbi structure is not initialized to all zeros, this means some > important member, like mods_count, will contain trash. > 2, the entry point in the header is virtual address, we need to > translate it t

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

2008-01-26 Thread Robert Millan
On Sat, Jan 26, 2008 at 10:19:36AM -0800, walt wrote: > > Btw it won't apply to CVS head; maybe it was scrambled when sending it? > > I had to use the -l flag to get it to apply, but it did apply okay. Ah, didn't know about this flag. Sounds useful! -- Robert Millan I know my rights; I want

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

2008-01-26 Thread Robert Millan
On Sun, Jan 27, 2008 at 02:24:16AM +0800, Bean wrote: > > > > Indeed! Unfortunately I still get the same free magic is broken :o( > > As an experiment, I g-zipped the kernel and now grub2 just reboots > > without printing anything when I do multiboot /netbsd.gz. (The same > > kernel still boots n

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

2008-01-26 Thread Bean
On Jan 27, 2008 2:24 AM, Bean <[EMAIL PROTECTED]> wrote: > On Jan 27, 2008 2:19 AM, walt <[EMAIL PROTECTED]> wrote: > > > > On Sat, 2008-01-26 at 18:24 +0100, Robert Millan wrote: > > > On Sat, Jan 26, 2008 at 11:01:49PM +0800, Bean wrote: > > > > this is the patch, problems found: > > > > > > > >

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

2008-01-26 Thread Bean
On Jan 27, 2008 2:19 AM, walt <[EMAIL PROTECTED]> wrote: > > On Sat, 2008-01-26 at 18:24 +0100, Robert Millan wrote: > > On Sat, Jan 26, 2008 at 11:01:49PM +0800, Bean wrote: > > > this is the patch, problems found: > > > > > > 1, the mbi structure is not initialized to all zeros, this means some >

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

2008-01-26 Thread walt
On Sat, 2008-01-26 at 18:24 +0100, Robert Millan wrote: > On Sat, Jan 26, 2008 at 11:01:49PM +0800, Bean wrote: > > this is the patch, problems found: > > > > 1, the mbi structure is not initialized to all zeros, this means some > > important member, like mods_count, will contain trash. > > 2, th

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

2008-01-26 Thread Robert Millan
On Sat, Jan 26, 2008 at 11:01:49PM +0800, Bean wrote: > this is the patch, problems found: > > 1, the mbi structure is not initialized to all zeros, this means some > important member, like mods_count, will contain trash. > 2, the entry point in the header is virtual address, we need to > translat

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

2008-01-26 Thread Bean
this is the patch, problems found: 1, the mbi structure is not initialized to all zeros, this means some important member, like mods_count, will contain trash. 2, the entry point in the header is virtual address, we need to translate it to physical address. * loader/i386/pc/multiboot.c (g

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

2008-01-24 Thread Robert Millan
On Thu, Jan 24, 2008 at 08:47:52AM -0800, walt wrote: > > On Thu, 2008-01-24 at 15:53 +0100, Robert Millan wrote: > > Btw, if you put that kernel image somewhere, chances are higher that someone > > gives it a try... > > http://rapidshare.com/files/86269193/netbsd.html Ouch, what an horrid downl

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

2008-01-24 Thread walt
On Thu, 2008-01-24 at 15:53 +0100, Robert Millan wrote: > Btw, if you put that kernel image somewhere, chances are higher that someone > gives it a try... http://rapidshare.com/files/86269193/netbsd.html grub2 will certainly get fixed faster if one of you does the fixing :o) ___

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

2008-01-24 Thread Robert Millan
Btw, if you put that kernel image somewhere, chances are higher that someone gives it a try. Setting up a NetBSD system (and figuring out how to play with kernel options) just to test that can be too much of a hassle for most of us. -- Robert Millan I know my rights; I want my phone call! Wh