bugGNU GRUB - Bugs: bug #31331, kfreebsd_module doesn't work...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #31331: kfreebsd_module doesn't work (right)

Submitted by:  Hannes <h_2>
Submitted on:  Thu 14 Oct 2010 02:39:58 PM UTC  
 
Category: BootingSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: Hannes
Open/Closed: ClosedRelease: 
Release: 1.98Reproducibility: Every Time
Planned Release: None

Sat 16 Oct 2010 03:17:53 PM UTC, comment #2:

For loading ELF (.ko) you need to use kfreebsd_module_elf. kfreebsd_module is for e.g. mfsroot and then it's used as:
kfreebsd_module <FILE> type=mfs_root
If your problem persists with kfreebsd_module_elf be sure to load all required dependencies. If the problem persists open a separate bug.

Vladimir Serbinenko <phcoder>
Project Administrator
Thu 14 Oct 2010 02:49:56 PM UTC, comment #1:

concerning the config:

  • there actually is a leading / for the kfreebsd_module ... nfscommon
  • the $ was inserted by nano it resolves to »4"«
Hannes <h_2>
Thu 14 Oct 2010 02:39:58 PM UTC, original submission:

I am trying to setup GRUB2 on a PXE-Server to enable me to boot multiple versions of Debian and FreeBSD from my server.

Since FreeBSD ist my main platform I started moving that to the server. After fighting with the (non-existant) documentation for about two weeks I got everything to the point where I can load the kernel.

However the kernel won't mount root from NFS. As an alternative to an NFS-Mount, I decided to go for an MFSROOT first, as described here:
http://www.martini.nu/blog/2010/01/freebsd-pxe-grub.html

I set up an MFSROOT with /etc /bin/ /sbin/ /lib and /libexec, and I can manage to boot that with a lot of hacking to some point.

Anyway, what I realised was that all the modules (except the mfsroot) that grub supposedly loaded (tmpfs, NFS), where actually not* loaded, kldstat (the FreeBSD equivalent to lsmod) shows only the kernel. This could explain the Kernel not being able to boot over NFS and it causes other problems.

Maybe I am also doing something wrong, e.g. I have no clue about the "type=" parameter, since I found no docu.

Thank you very much for your help.

Regards,
Hannes

PS: This is the config:

menuentry "FreeBSD STABLE amd64 over PXE" {
echo "Loading Kernel..."
kfreebsd /freebsd_stable_amd64/kernel/kernel.gz Dh
echo "Loading MFSROOT..."
kfreebsd_module /freebsd_stable_amd64/mfsroot.gz type=mfs_root
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/md0c

echo "Loading Modules..."
kfreebsd_module /freebsd_stable_amd64/kernel/nfscl.ko
kfreebsd_module freebsd_stable_amd64/kernel/nfscommon.ko
kfreebsd_module /freebsd_stable_amd64/kernel/nfsclient.ko
kfreebsd_module /freebsd_stable_amd64/kernel/tmpfs.ko

echo "Setting variables...."
set kFreeBSD.boot.nfsroot.server=192.168.3.200
set kFreeBSD.boot.nfsroot.path="/p00l/data/pxeboot/freebsd_stable_amd64"
# set kFreeBSD.vfs.root.mountfrom="nfs:192.168.3.200:/p00l/data/pxeboot/freebsd_stable_amd64"
set kFreeBSD.vfs.root.mountfrom.options=rw
set kFreeBSD.vfs.nfs.diskless_rootpath="192.168.3.200:/p00l/data/pxeboot/freebsd_stable_amd6$

echo "...done."
}

Hannes <h_2>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by h_2 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 16 Oct 2010 03:17:53 PM UTCphcoderStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1