Re: [PATCH] a.out support for multiboot and freebsd

2008-02-19 Thread Bean
On Feb 17, 2008 2:29 AM, Bean <[EMAIL PROTECTED]> wrote: > On Feb 17, 2008 2:12 AM, walt <[EMAIL PROTECTED]> wrote: > > > > On Sun, 2008-02-17 at 00:43 +0800, Bean wrote: > > > ... > > > Anyway, i think the bsd module should be fine, here is the whole > > > patch, if nobody objects, i would like to

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-16 Thread Bean
On Feb 17, 2008 2:12 AM, walt <[EMAIL PROTECTED]> wrote: > > On Sun, 2008-02-17 at 00:43 +0800, Bean wrote: > > ... > > Anyway, i think the bsd module should be fine, here is the whole > > patch, if nobody objects, i would like to commit it soon... > > I vote yes, thanks. I can boot freebsd direct

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-16 Thread walt
On Sun, 2008-02-17 at 00:43 +0800, Bean wrote: > ... > Anyway, i think the bsd module should be fine, here is the whole > patch, if nobody objects, i would like to commit it soon... I vote yes, thanks. I can boot freebsd directly, openbsd directly, netbsd directly or using multiboot. The only p

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-15 Thread walt
walt wrote: On Fri, 2008-02-15 at 22:14 +0800, Bean wrote: On Fri, Feb 15, 2008 at 9:29 PM, walt<[EMAIL PROTECTED]> wrote: I made a small openbsd image to send you, but it works perfectly with your g2ldr so there's no point in sending it :o) I think that problem is not worth your time o

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-15 Thread walt
On Fri, 2008-02-15 at 22:14 +0800, Bean wrote: > On Fri, Feb 15, 2008 at 9:29 PM, walt <[EMAIL PROTECTED]> wrote: > > I made a small openbsd image to send you, but it works perfectly with > > your g2ldr so there's no point in sending it :o) I think that problem > > is not worth your time or mi

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-15 Thread Bean
On Sat, Feb 16, 2008 at 2:43 AM, walt <[EMAIL PROTECTED]> wrote: > > Bean wrote: > > On Fri, Feb 15, 2008 at 9:29 PM, walt<[EMAIL PROTECTED]> wrote: > >> I made a small openbsd image to send you, but it works perfectly with > >> your g2ldr so there's no point in sending it :o) I think that

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-15 Thread walt
Bean wrote: On Fri, Feb 15, 2008 at 9:29 PM, walt<[EMAIL PROTECTED]> wrote: I made a small openbsd image to send you, but it works perfectly with your g2ldr so there's no point in sending it :o) I think that problem is not worth your time or mine. BTW, how big is your ufs partition ? I

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-15 Thread Bean
On Fri, Feb 15, 2008 at 9:29 PM, walt <[EMAIL PROTECTED]> wrote: > I made a small openbsd image to send you, but it works perfectly with > your g2ldr so there's no point in sending it :o) I think that problem > is not worth your time or mine. BTW, how big is your ufs partition ? I have tested

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-15 Thread Bean
On Fri, Feb 15, 2008 at 9:29 PM, walt <[EMAIL PROTECTED]> wrote: > > Bean wrote: > > On Feb 14, 2008 4:31 AM, walt<[EMAIL PROTECTED]> wrote: > >> Yes, this works perfectly except that I still can't read my openbsd > >> filesystem correctly. I can list / but none of the subdirectories, > >> an

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-15 Thread walt
Bean wrote: On Feb 14, 2008 4:31 AM, walt<[EMAIL PROTECTED]> wrote: Yes, this works perfectly except that I still can't read my openbsd filesystem correctly. I can list / but none of the subdirectories, and I can't even read a small text file from /. (I guess that also means I can't properly

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-13 Thread Bean
On Feb 14, 2008 4:31 AM, walt <[EMAIL PROTECTED]> wrote: > Yes, this works perfectly except that I still can't read my openbsd > filesystem correctly. I can list / but none of the subdirectories, > and I can't even read a small text file from /. (I guess that also > means I can't properly read th

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-13 Thread walt
Bean wrote: On Feb 14, 2008 1:25 AM, walt<[EMAIL PROTECTED]> wrote: ... I'm wondering if you have commited all of your UFS/FFS patches to cvs. Seems like I'm seeing some old UFS problems that you fixed once already(?). Is it possible that your build is not clean ? you can try to run make

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-13 Thread Bean
On Feb 14, 2008 1:25 AM, walt <[EMAIL PROTECTED]> wrote: > Bean wrote: > > > Ok. I also fix the alloc magic broken problem, it's caused by > > grub_elf_file, which will close the file when the elf magic is not > > found. However, the upper level still use that file, that cause the > > memory proble

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-13 Thread walt
Bean wrote: Ok. I also fix the alloc magic broken problem, it's caused by grub_elf_file, which will close the file when the elf magic is not found. However, the upper level still use that file, that cause the memory problem. The patch should be applied after the previous bsd.diff... I'm very

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-13 Thread Bean
On Feb 13, 2008 11:40 PM, Robert Millan <[EMAIL PROTECTED]> wrote: > > On Wed, Feb 13, 2008 at 06:40:14PM +0800, Bean wrote: > > On Feb 13, 2008 3:36 AM, Robert Millan <[EMAIL PROTECTED]> wrote: > > > On Wed, Feb 13, 2008 at 02:47:30AM +0800, Bean wrote: > > > > +/* ... and put our return a

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-13 Thread Robert Millan
On Wed, Feb 13, 2008 at 06:40:14PM +0800, Bean wrote: > On Feb 13, 2008 3:36 AM, Robert Millan <[EMAIL PROTECTED]> wrote: > > On Wed, Feb 13, 2008 at 02:47:30AM +0800, Bean wrote: > > > +/* ... and put our return address in its place (the kernel will > > > ignore > > > + it, but i

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-13 Thread Bean
On Feb 13, 2008 3:36 AM, Robert Millan <[EMAIL PROTECTED]> wrote: > On Wed, Feb 13, 2008 at 02:47:30AM +0800, Bean wrote: > > +/* ... and put our return address in its place (the kernel will > > ignore > > + it, but it expects %esp to point to it. */ > > +call *%eax > > U

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-12 Thread Robert Millan
On Wed, Feb 13, 2008 at 02:47:30AM +0800, Bean wrote: > +/* ... and put our return address in its place (the kernel will > ignore > + it, but it expects %esp to point to it. */ > +call *%eax Unmatched parenthesis here (sorry I guess that's my fault ;-)). -- Robert Mill

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-12 Thread Robert Millan
On Mon, Feb 11, 2008 at 01:51:49PM -0800, walt wrote: > > Any BSD kernel I try to load, including /boot/loader, gives me a 'free > magic broken' error. Same with 'multiboot netbsd'. Sounds like an error I've seen before. What is the exact error you see, and when? -- Robert Millan I know my

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-12 Thread Robert Millan
On Tue, Feb 12, 2008 at 05:46:49AM +0800, Bean wrote: > > > +_bsd_mod_CFLAGS = $(COMMON_CFLAGS) > > > +_bsd_mod_LDFLAGS = $(COMMON_LDFLAGS) > > > + > > > +# For freebsd.mod > > > +bsd_mod_SOURCES = loader/i386/pc/bsd_normal.c > > > +bsd_mod_CFLAGS = $(COMMON_CFLAGS) > > > +bsd_mod_LDFLAGS = $(COMMO

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-11 Thread Bean
On Feb 12, 2008 5:51 AM, walt <[EMAIL PROTECTED]> wrote: > > Any BSD kernel I try to load, including /boot/loader, gives me a 'free > magic broken' error. Same with 'multiboot netbsd'. > > A separate problem is that 'ls' will list the root directory of my > OpenBSD partition, but not any of the su

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-11 Thread walt
On Tue, 2008-02-12 at 04:46 +0800, Bean wrote: > On Feb 12, 2008 4:45 AM, Bean <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Change in this patch: > > > > 1. support OpenBSD kernel: > > > > set root=(hd0,3,a) > > openbsd /bsd > > > > The modules name is changed to bsd.mod. > > > > 2. Support setting

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-11 Thread Bean
On Feb 12, 2008 5:28 AM, Robert Millan <[EMAIL PROTECTED]> wrote: > On Tue, Feb 12, 2008 at 04:46:31AM +0800, Bean wrote: > > +# For _freebsd.mod > > +_bsd_mod_SOURCES = loader/i386/pc/bsd.c > > You forgot to rename the commend ;-) oh, yes. > > > +_bsd_mod_CFLAGS = $(COMMON_CFLAGS) > > +_bsd_mod_

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-11 Thread Robert Millan
On Tue, Feb 12, 2008 at 04:46:31AM +0800, Bean wrote: > +# For _freebsd.mod > +_bsd_mod_SOURCES = loader/i386/pc/bsd.c You forgot to rename the commend ;-) > +_bsd_mod_CFLAGS = $(COMMON_CFLAGS) > +_bsd_mod_LDFLAGS = $(COMMON_LDFLAGS) > + > +# For freebsd.mod > +bsd_mod_SOURCES = loader/i386/pc/bs

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-11 Thread Bean
On Feb 12, 2008 4:45 AM, Bean <[EMAIL PROTECTED]> wrote: > Hi, > > Change in this patch: > > 1. support OpenBSD kernel: > > set root=(hd0,3,a) > openbsd /bsd > > The modules name is changed to bsd.mod. > > 2. Support setting kernel flags > > one character represent one flag, for FreeBSD, it's "DhaC

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-11 Thread Bean
Hi, Change in this patch: 1. support OpenBSD kernel: set root=(hd0,3,a) openbsd /bsd The modules name is changed to bsd.mod. 2. Support setting kernel flags one character represent one flag, for FreeBSD, it's "DhaCcdgmnpqrsv", for OpenBSD, it's "abcsd". for example, to enable ask for root de

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-11 Thread Bean
On Feb 11, 2008 10:11 PM, walt <[EMAIL PROTECTED]> wrote: > Bean wrote: > > Hi, > > > > The following patch support freebsd a.out and elf, now you can load > > the kernel directly. > > > > 1. Boot through loader: > > > > set root=(hd0,0,a) > > freebsd /boot/loader > > > > It should be able to deduc

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-11 Thread walt
Bean wrote: Hi, The following patch support freebsd a.out and elf, now you can load the kernel directly. 1. Boot through loader: set root=(hd0,0,a) freebsd /boot/loader It should be able to deduce the root device from the root variable. I still see currdev=disk0s1c but that should be s1a, n

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-10 Thread Bean
Hi, The following patch support freebsd a.out and elf, now you can load the kernel directly. 1. Boot through loader: set root=(hd0,0,a) freebsd /boot/loader It should be able to deduce the root device from the root variable. 2. Booting directly: freebsd (hd0,0,a)/boot/kernel/kernel freebsd_loa

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-10 Thread walt
Bean wrote: On Feb 10, 2008 5:57 AM, walt<[EMAIL PROTECTED]> wrote: Bean wrote: Hi, This patch add a.out support for multiboot. It also support the boot2 loader (a.out format) of freebsd: set root=(hd0,0,a) aout_freebsd /boot/loader boot ... i'm using the web interface to send patch, maybe

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-10 Thread Bean
On Feb 10, 2008 5:22 PM, Vesa Jääskeläinen <[EMAIL PROTECTED]> wrote: > > Bean wrote: > > On Feb 10, 2008 5:57 AM, walt <[EMAIL PROTECTED]> wrote: > >> Bean wrote: > >>> Hi, > >>> > >>> This patch add a.out support for multiboot. It also support the boot2 > >>> loader (a.out format) of freebsd: > >

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-10 Thread Vesa Jääskeläinen
Bean wrote: On Feb 10, 2008 5:57 AM, walt <[EMAIL PROTECTED]> wrote: Bean wrote: Hi, This patch add a.out support for multiboot. It also support the boot2 loader (a.out format) of freebsd: set root=(hd0,0,a) aout_freebsd /boot/loader boot 2008-02-10 Bean<[EMAIL PROTECTED]> ... Hi Bean, and

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-09 Thread Bean
On Feb 10, 2008 5:57 AM, walt <[EMAIL PROTECTED]> wrote: > Bean wrote: > > Hi, > > > > This patch add a.out support for multiboot. It also support the boot2 > > loader (a.out format) of freebsd: > > > > set root=(hd0,0,a) > > aout_freebsd /boot/loader > > boot > > > > 2008-02-10 Bean<[EMAIL PROTEC

Re: [PATCH] a.out support for multiboot and freebsd

2008-02-09 Thread walt
Bean wrote: Hi, This patch add a.out support for multiboot. It also support the boot2 loader (a.out format) of freebsd: set root=(hd0,0,a) aout_freebsd /boot/loader boot 2008-02-10 Bean<[EMAIL PROTECTED]> ... Hi Bean, and thanks for the patch. Unfortunately, the patch is malformed in at le

[PATCH] a.out support for multiboot and freebsd

2008-02-09 Thread Bean
Hi, This patch add a.out support for multiboot. It also support the boot2 loader (a.out format) of freebsd: set root=(hd0,0,a) aout_freebsd /boot/loader boot 2008-02-10 Bean <[EMAIL PROTECTED]> * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _aout_freebsd.mod and aout_freebs