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)

Submitter:  Hannes <h_2>
Submitted:  Thu 14 Oct 2010 02:39:58 PM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Invalid Privacy:  Public
Assigned to:  None Originator Name:  Hannes
Open/Closed:  Closed Release:  1.98
Release:  Reproducibility:  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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-16 phcoder StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code