grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Bean
Subject: Re: [PATCH] a.out support for multiboot and freebsd
Date: Fri, 15 Feb 2008 22:03:36 +0800

On Fri, Feb 15, 2008 at 9:29 PM, walt <address@hidden> wrote:
>
> Bean wrote:
>  > On Feb 14, 2008 4:31 AM, walt<address@hidden>  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 the directories in /).  Everything I try
>  >> gives me 'out of partition' or similar.
>  >>
>  >> Progress! :o)
>  >
>  > In that case, it should be a fs problem, what's the disk layout, how
>  > big is your ufs partition ? It could be handy if you can make a small
>  > image that produce similar results.
>
>  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.
>
>  I still have the bigger problem that my grub2 doesn't work like your
>  g2ldr.  My version still halts with 'broken magic' or reboots instantly
>  when I type 'boot'.  These are bugs that I was seeing several weeks
>  ago and you already fixed them once, but now they are back again.
>
>  I still think that a patch or two never got committed to cvs, but I
>  don't know which one(s).  Could you try applying your bsd.diff and
>  bsd_2.diff to current cvs sources and see if it works for you?
>
>  Here is what I do:
>
>  Apply the two patches to a clean cvs tree.
>  ./autogen.sh  [because you patched an rmk file]
>  mkdir build
>  cd build
>  ../configure && make
>  rm ata.mod
>  ./grub-mkimage -d . -o grub2 *.mod

Don't include all the modules in the kernel, you only need those
necessary to access the boot partition, for example, i use the
following command to create core.img:

./grub-mkimage -d . -o core.img biosdisk iso9660 pc fat ntfs ext2 ufs
bsd boot ls multiboot

To create g2ldr, add the lnxboot.img header:

cat lnxboot.img core.img > g2ldr

This contain enough modules to do the test, no need to load extra
module from disk.

Also, please use linux to build grub2, *bsd may compile ok, but don't
know if the result is correct.

-- 
Bean




reply via email to

[Prev in Thread] Current Thread [Next in Thread]