Re: netgraph: documentation issue? What kernel options? Where to find?

2017-07-17 Thread Claude Buisson

On 07/16/2017 22:48, O. Hartmann wrote:

For a small SoC based system, I use a highly customised static kernel and build 
the
system via NanoBSD with no kernel modules.

Tyring to track down some network issues with recent CURRENT I figured out, 
that when
using the ppp client to connect via modem to the ISP and there is no

options NETGRAPH_ETHER
options NETGRAPH_PPPOE

in the kernel configuration, the resulting system fails to establish a ppp 
session. The
man page states, that a netgraph node is established, but as hard as I look, I 
can not
find any(!) information in the man pages what options are necessary/optional to 
provide
the correct module statically.

The same is for many other NETGRAPH_XXX features. Starting from man page "man 4
netgraph", section "SEE ALSO", I started tweaking the kernel with NETGRAPH_XXX, 
i.e.
ng_vlan -> NETGRAPH_VLAN until the compiler bails out with an error, for 
instance
ng_car -> NETGRAPH_CAR.

I tried to find out what options cover which netgraph module but there is - 
right,
nothing I can find on a direct route.

Since netgraph isn't so brand new (I guess ~ 2000 from the PDFs I found on the 
network),
there must be some documentation other than "reading the source code".

Please give me some hints where to find the entry point for the appropriate 
documented
options for netgraph modules.

Obviously, some ng_xxx modules are prerequisite for some services to work 
properly, as
ppp - but I can't find any hints for "options NETGRAPH_ETHER" or "options 
NETGRAPH_PPPOE"
in the manpages (looked at ppp, pppoed).

Thanks in advance,
kind regards

Oliver



Here, using ppoe:

/etc/ppp/ppp.conf
  ...
  set device PPPoE:re0
  ...

and I find:

# kldstat
 ...
 netgraph.ko
 ng_ether.ko
 ng_pppoe.ko
 ng_socket.ko
 ...

Hope this help

CBuisson
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: netgraph: documentation issue? What kernel options? Where to find?

2017-07-16 Thread O. Hartmann
Am Sun, 16 Jul 2017 16:29:40 -0600
Ian Lepore  schrieb:

> On Sun, 2017-07-16 at 22:48 +0200, O. Hartmann wrote:
> > For a small SoC based system, I use a highly customised static kernel
> > and build the
> > system via NanoBSD with no kernel modules.
> > 
> > Tyring to track down some network issues with recent CURRENT I
> > figured out, that when
> > using the ppp client to connect via modem to the ISP and there is no 
> > 
> > options NETGRAPH_ETHER
> > options NETGRAPH_PPPOE
> > 
> > in the kernel configuration, the resulting system fails to establish
> > a ppp session. The
> > man page states, that a netgraph node is established, but as hard as
> > I look, I can not
> > find any(!) information in the man pages what options are
> > necessary/optional to provide
> > the correct module statically.
> > 
> > The same is for many other NETGRAPH_XXX features. Starting from man
> > page "man 4
> > netgraph", section "SEE ALSO", I started tweaking the kernel with
> > NETGRAPH_XXX, i.e.
> > ng_vlan -> NETGRAPH_VLAN until the compiler bails out with an error,
> > for instance
> > ng_car -> NETGRAPH_CAR.
> > 
> > I tried to find out what options cover which netgraph module but
> > there is - right,
> > nothing I can find on a direct route.
> > 
> > Since netgraph isn't so brand new (I guess ~ 2000 from the PDFs I
> > found on the network),
> > there must be some documentation other than "reading the source
> > code".
> > 
> > Please give me some hints where to find the entry point for the
> > appropriate documented
> > options for netgraph modules.
> > 
> > Obviously, some ng_xxx modules are prerequisite for some services to
> > work properly, as
> > ppp - but I can't find any hints for "options NETGRAPH_ETHER" or
> > "options NETGRAPH_PPPOE"
> > in the manpages (looked at ppp, pppoed). 
> > 
> > Thanks in advance,
> > kind regards
> > 
> > Oliver
> >   
> 
> I can't help with anything specific to netgraph or its [lack of] docs.
> 
> For the general question "How do I know what undocumented device or
> option statement to put in my kernel config to get x" a good place
> to start is /usr/src/sys/conf/NOTES.  It's supposed to contain all the
> options and devices (except some machine/arch-specific stuff).  If you
> don't find it in NOTES, try "grep -i x *" in that dir, you may find
> the thing you're looking for in 'options' or 'files' and get some clues
> that way.

Yes, correct and I did this, too, but pulling in all of the options resulted in 
failues,
as far as I know NETGRAPH_CAR bailed out (with -DNO_CLEAN, I must confess).

> 
> For the netgraph stuff, I see that in NOTES it tells you how to find
> the manpages for netgraph things, so I guess I accidentally did answer
> that part too.  :)

No, not exactly,
it doesn't tell me which NETGRAPH_XXX I need for a certain service so I have to 
do
experiments: starting the service with a full install of all modules and see 
what modules
gets kloaded and then put the appropriate option into the kernel.

In my situation, using ppp/pppoe failed silently when disabling options 
NETGRAPH_ETHER,
NETGRAPH_PPPOE and the refering kernel modules weren't present.

Since I fight a problem with VLANs and routing on CURRENT, I'd appreciate a 
more dense
documentation - or a hint.

> 
> -- Ian


Thank you very much for the patience,

kind regards

Oliver

-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpPL7gaDvmLA.pgp
Description: OpenPGP digital signature


Re: netgraph: documentation issue? What kernel options? Where to find?

2017-07-16 Thread Ian Lepore
On Sun, 2017-07-16 at 22:48 +0200, O. Hartmann wrote:
> For a small SoC based system, I use a highly customised static kernel
> and build the
> system via NanoBSD with no kernel modules.
> 
> Tyring to track down some network issues with recent CURRENT I
> figured out, that when
> using the ppp client to connect via modem to the ISP and there is no 
> 
> options   NETGRAPH_ETHER
> options   NETGRAPH_PPPOE
> 
> in the kernel configuration, the resulting system fails to establish
> a ppp session. The
> man page states, that a netgraph node is established, but as hard as
> I look, I can not
> find any(!) information in the man pages what options are
> necessary/optional to provide
> the correct module statically.
> 
> The same is for many other NETGRAPH_XXX features. Starting from man
> page "man 4
> netgraph", section "SEE ALSO", I started tweaking the kernel with
> NETGRAPH_XXX, i.e.
> ng_vlan -> NETGRAPH_VLAN until the compiler bails out with an error,
> for instance
> ng_car -> NETGRAPH_CAR.
> 
> I tried to find out what options cover which netgraph module but
> there is - right,
> nothing I can find on a direct route.
> 
> Since netgraph isn't so brand new (I guess ~ 2000 from the PDFs I
> found on the network),
> there must be some documentation other than "reading the source
> code".
> 
> Please give me some hints where to find the entry point for the
> appropriate documented
> options for netgraph modules.
> 
> Obviously, some ng_xxx modules are prerequisite for some services to
> work properly, as
> ppp - but I can't find any hints for "options NETGRAPH_ETHER" or
> "options NETGRAPH_PPPOE"
> in the manpages (looked at ppp, pppoed). 
> 
> Thanks in advance,
> kind regards
> 
> Oliver
> 

I can't help with anything specific to netgraph or its [lack of] docs.

For the general question "How do I know what undocumented device or
option statement to put in my kernel config to get x" a good place
to start is /usr/src/sys/conf/NOTES.  It's supposed to contain all the
options and devices (except some machine/arch-specific stuff).  If you
don't find it in NOTES, try "grep -i x *" in that dir, you may find
the thing you're looking for in 'options' or 'files' and get some clues
that way.

For the netgraph stuff, I see that in NOTES it tells you how to find
the manpages for netgraph things, so I guess I accidentally did answer
that part too.  :)

-- Ian
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


netgraph: documentation issue? What kernel options? Where to find?

2017-07-16 Thread O. Hartmann
For a small SoC based system, I use a highly customised static kernel and build 
the
system via NanoBSD with no kernel modules.

Tyring to track down some network issues with recent CURRENT I figured out, 
that when
using the ppp client to connect via modem to the ISP and there is no 

options NETGRAPH_ETHER
options NETGRAPH_PPPOE

in the kernel configuration, the resulting system fails to establish a ppp 
session. The
man page states, that a netgraph node is established, but as hard as I look, I 
can not
find any(!) information in the man pages what options are necessary/optional to 
provide
the correct module statically.

The same is for many other NETGRAPH_XXX features. Starting from man page "man 4
netgraph", section "SEE ALSO", I started tweaking the kernel with NETGRAPH_XXX, 
i.e.
ng_vlan -> NETGRAPH_VLAN until the compiler bails out with an error, for 
instance
ng_car -> NETGRAPH_CAR.

I tried to find out what options cover which netgraph module but there is - 
right,
nothing I can find on a direct route.

Since netgraph isn't so brand new (I guess ~ 2000 from the PDFs I found on the 
network),
there must be some documentation other than "reading the source code".

Please give me some hints where to find the entry point for the appropriate 
documented
options for netgraph modules.

Obviously, some ng_xxx modules are prerequisite for some services to work 
properly, as
ppp - but I can't find any hints for "options NETGRAPH_ETHER" or "options 
NETGRAPH_PPPOE"
in the manpages (looked at ppp, pppoed). 

Thanks in advance,
kind regards

Oliver



pgp_OmyTJ8W7A.pgp
Description: OpenPGP digital signature


Re: kernel options

2016-07-24 Thread Ngie Cooper (yaneurabeya)

> On Jul 24, 2016, at 01:51, tech-lists  wrote:
> 
> Hi,
> 
> In -HEAD there is a generic kernel GENERIC-NODEBUG. The syntax of
> OPTIONS appears to be NOOPTIONS. Is there an inverse for DEVICE ?
> 
> For example, there is a line
> 
> device  fdc
> 
> in GENERIC. Would NODEVICE negate it?
> 
> I didn't see anything in NOTES to confirm.

`nodevice` works. See `man 5 config` for more details.
Cheers,
-Ngie


signature.asc
Description: Message signed with OpenPGP using GPGMail


kernel options

2016-07-24 Thread tech-lists
Hi,

In -HEAD there is a generic kernel GENERIC-NODEBUG. The syntax of
OPTIONS appears to be NOOPTIONS. Is there an inverse for DEVICE ?

For example, there is a line

device  fdc

in GENERIC. Would NODEVICE negate it?

I didn't see anything in NOTES to confirm.

thanks,
-- 
J.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: HFS+ driver kernel options?

2003-09-19 Thread Christian Brueffer
On Thu, Sep 18, 2003 at 11:22:37PM -0500, David Leimbach wrote:
 Hey... just looking to see what option I need to enable to get HFS+ 
 support...
 

All you need should be here:  http://people.freebsd.org/~yar/hfs/

- Christian

-- 
Christian Brueffer  [EMAIL PROTECTED]   [EMAIL PROTECTED]
GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc
GPG Fingerprint: A5C8 2099 19FF AACA F41B  B29B 6C76 178C A0ED 982D


pgp0.pgp
Description: PGP signature


Re: HFS+ driver kernel options?

2003-09-19 Thread Terry Lambert
David Leimbach wrote:
 Hey... just looking to see what option I need to enable to get HFS+
 support...
 
 I am going to try experimenting with building a ppc cross-build
 environment and
 try to install FreeBSD on my iPod and boot from it :)

(1) iPod's default to MSDOSFS for compatability with PC's.

(2) iPod's do not have a PPC, they have two ARM chips.

There's a Linux that runs on iPod's that you might want to look at,
if you are truly interested in doing a port of FreeBSD, but it
would be an ARM port.

-- Terry
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HFS+ driver kernel options?

2003-09-19 Thread David Leimbach
On Sep 19, 2003, at 5:45 AM, Terry Lambert wrote:

David Leimbach wrote:
Hey... just looking to see what option I need to enable to get HFS+
support...
I am going to try experimenting with building a ppc cross-build
environment and
try to install FreeBSD on my iPod and boot from it :)
(1)	iPod's default to MSDOSFS for compatability with PC's.

(2)	iPod's do not have a PPC, they have two ARM chips.

There's a Linux that runs on iPod's that you might want to look at,
if you are truly interested in doing a port of FreeBSD, but it
would be an ARM port.


You've misunderstood me.  I want to build FreeBSD-PPC and install it on 
an iPod
[filesystem wise] then use the iPod to boot my Mac.  It doesn't really 
matter to me what
CPU is in the iPod... just that its a handy firewire disk.

-- Terry
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HFS+ driver kernel options?

2003-09-19 Thread David Leimbach
On Sep 19, 2003, at 1:55 AM, Christian Brueffer wrote:

On Thu, Sep 18, 2003 at 11:22:37PM -0500, David Leimbach wrote:
Hey... just looking to see what option I need to enable to get HFS+
support...
All you need should be here:  http://people.freebsd.org/~yar/hfs/

Doesn't compile under CURRENT it seems.  I can give more details later
but right now I have to drive for a few hours so see ya later!
- Christian

--
Christian Brueffer  [EMAIL PROTECTED]   [EMAIL PROTECTED]
GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc
GPG Fingerprint: A5C8 2099 19FF AACA F41B  B29B 6C76 178C A0ED 982D
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


HFS+ driver kernel options?

2003-09-18 Thread David Leimbach
Hey... just looking to see what option I need to enable to get HFS+ 
support...

I am going to try experimenting with building a ppc cross-build 
environment and
try to install FreeBSD on my iPod and boot from it :)

Dave

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]