grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* Grub kfreebsd with pxe & nfs
@ 2014-10-26 18:03 Beeblebrox
  2014-10-26 18:24 ` Andrei Borzenkov
  0 siblings, 1 reply; 4+ messages in thread
From: Beeblebrox @ 2014-10-26 18:03 UTC (permalink / raw)
  To: grub-devel

I have two separate issues involving the {kfreebsd} code in grub.cfg:

* First is, code snippet to get mount_root to use NFS V3 instead of V2. The code for this in FreeBSD's /boot/loader.conf is: {boot-nfsroot-options=“nfsv3”}

The comparable grub.cfg code should be as below, but does not work (mount_root hangs for some time, then falls back to V2)
{set kfreebsd.boot.nfsroot.options="nfsv3"}

* Second issue is, how to over-ride the {option root-path "192.168.2.1:/data/amd64"} code defined by dhcp? This is needed for example when I want to boot a i386 version of FreeBSD rather than amd64. As above, this does not work correctly:
{set kfreebsd.vfs.root.mountfrom="nfs:192.168.2.1:/data/amd64/alt_root/path"}

Also, which file in the grub code can I look through to get a list of options supported by the kfreebsd operator?

-- 
FreeBSD_amd64_11-Current_RadeonKMS


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Grub kfreebsd with pxe & nfs
  2014-10-26 18:03 Grub kfreebsd with pxe & nfs Beeblebrox
@ 2014-10-26 18:24 ` Andrei Borzenkov
  2014-10-26 19:19   ` Beeblebrox
  0 siblings, 1 reply; 4+ messages in thread
From: Andrei Borzenkov @ 2014-10-26 18:24 UTC (permalink / raw)
  To: Beeblebrox; +Cc: grub-devel

В Sun, 26 Oct 2014 20:03:00 +0200
Beeblebrox <zaphod@berentweb.com> пишет:

> I have two separate issues involving the {kfreebsd} code in grub.cfg:
> 
> * First is, code snippet to get mount_root to use NFS V3 instead of V2. The code for this in FreeBSD's /boot/loader.conf is: {boot-nfsroot-options=“nfsv3”}
> 
> The comparable grub.cfg code should be as below, but does not work (mount_root hangs for some time, then falls back to V2)
> {set kfreebsd.boot.nfsroot.options="nfsv3"}
> 

This should be kFreeBSD.... 

> * Second issue is, how to over-ride the {option root-path "192.168.2.1:/data/amd64"} code defined by dhcp? This is needed for example when I want to boot a i386 version of FreeBSD rather than amd64. As above, this does not work correctly:
> {set kfreebsd.vfs.root.mountfrom="nfs:192.168.2.1:/data/amd64/alt_root/path"}
> 

Same.

> Also, which file in the grub code can I look through to get a list of options supported by the kfreebsd operator?
> 

Which operator? freebsd loader simply strips kFreeBSD. prefix from
variable name and exports the rest as environment variable for
FreeBSD kernel. So list of options is whatever is supported by
FreeBSD kernel.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Grub kfreebsd with pxe & nfs
  2014-10-26 18:24 ` Andrei Borzenkov
@ 2014-10-26 19:19   ` Beeblebrox
  2014-11-01 14:30     ` Andrei Borzenkov
  0 siblings, 1 reply; 4+ messages in thread
From: Beeblebrox @ 2014-10-26 19:19 UTC (permalink / raw)
  To: Andrei Borzenkov; +Cc: grub-devel


> > * First is, code snippet to get mount_root to use NFS V3 instead of
> > V2. grub.cfg code should be as below, but does not work

> This should be kFreeBSD.... 
Still does not work with 
{set kFreeBSD.boot.nfsroot.options="nfsv3"}
mount_root this time does not hang, but resulting mounted root is still V2

* grub.cfg does not accept kFreeBSD for all parameters, and needs mixed syntax. Example:
menuentry 'FreeBSD 11_amd64' {
   kfreebsd kernel/kernel
# NOT kFreeBSD kernel/kernel
   set FreeBSD.acpi_load=YES
   kfreebsd_loadenv device.hints
# NOT kFreeBSD_loadenv device.hints
   kfreebsd_module kernel/if_sis.ko
# NOT kFreeBSD_module kernel/if_sis.ko

* I disabled these 3 params:
   # set kFreeBSD.vfs.root.mountfrom="nfs:192.168.2.1:/data/amd64"
   # set kFreeBSD.vfs.root.mountfrom.options="ro"
   # set kFreeBSD.boot.nfsroot.options="nfsv3"
And saw that FreeBSD boots normally through grub. This means that the {set kFreeBSD.*} settings are very likely being ignored as boot settings. The mount_root is successful because FreeBSD executes what is passed from dhcp.

Regards.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Grub kfreebsd with pxe & nfs
  2014-10-26 19:19   ` Beeblebrox
@ 2014-11-01 14:30     ` Andrei Borzenkov
  0 siblings, 0 replies; 4+ messages in thread
From: Andrei Borzenkov @ 2014-11-01 14:30 UTC (permalink / raw)
  To: Beeblebrox; +Cc: grub-devel

В Sun, 26 Oct 2014 21:19:38 +0200
Beeblebrox <zaphod@berentweb.com> пишет:

> 
> > > * First is, code snippet to get mount_root to use NFS V3 instead of
> > > V2. grub.cfg code should be as below, but does not work
> 
> > This should be kFreeBSD.... 
> Still does not work with 
> {set kFreeBSD.boot.nfsroot.options="nfsv3"}
> mount_root this time does not hang, but resulting mounted root is still V2
> 
> * grub.cfg does not accept kFreeBSD for all parameters, and needs mixed syntax. Example:
> menuentry 'FreeBSD 11_amd64' {
>    kfreebsd kernel/kernel
> # NOT kFreeBSD kernel/kernel

kfreebsd is not parameter, it is command. kFreeBSD. is variable name
prefix.

>    set FreeBSD.acpi_load=YES
>    kfreebsd_loadenv device.hints
> # NOT kFreeBSD_loadenv device.hints
>    kfreebsd_module kernel/if_sis.ko
> # NOT kFreeBSD_module kernel/if_sis.ko
> 
> * I disabled these 3 params:
>    # set kFreeBSD.vfs.root.mountfrom="nfs:192.168.2.1:/data/amd64"
>    # set kFreeBSD.vfs.root.mountfrom.options="ro"
>    # set kFreeBSD.boot.nfsroot.options="nfsv3"
> And saw that FreeBSD boots normally through grub. This means that the {set kFreeBSD.*} settings are very likely being ignored as boot settings.

It is possible to verify that those variables are actually passed from
grub to kernel?   

> The mount_root is successful because FreeBSD executes what is passed
 from dhcp.
> 
> Regards.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-01 14:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-26 18:03 Grub kfreebsd with pxe & nfs Beeblebrox
2014-10-26 18:24 ` Andrei Borzenkov
2014-10-26 19:19   ` Beeblebrox
2014-11-01 14:30     ` Andrei Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).