Re: ifconfig_ed0="DHCP" does not work on 8.0-BETA3

2009-09-09 Thread Brooks Davis
On Wed, Sep 09, 2009 at 07:07:01PM +0200, Thierry Thomas wrote:
> Le Mer  9 sep 09 ? 17:52:57 +0200, Brooks Davis 
>  ?crivait?:
> 
> > I'd rather not mention the "link state changed" message since I'd love
> > to see it go away.  How's this?
> 
> Seems good, go!

Thanks.  I've committed it.

Brooks
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: ifconfig_ed0="DHCP" does not work on 8.0-BETA3

2009-09-09 Thread Thierry Thomas
Le Mer  9 sep 09 à 17:52:57 +0200, Brooks Davis 
 écrivait :

> I'd rather not mention the "link state changed" message since I'd love
> to see it go away.  How's this?

Seems good, go!
-- 
Th. Thomas.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: ifconfig_ed0="DHCP" does not work on 8.0-BETA3

2009-09-09 Thread Brooks Davis
On Sat, Sep 05, 2009 at 01:06:35PM +0200, Thierry Thomas wrote:
> Le Ven  4 sep 09 ? 23:57:47 +0200, Brooks Davis 
>  ?crivait?:
>  
> > This is a know issue with some devices supported by ed(4).  You can work
> > around it by changing DHCP to SYNCDHCP which will cause dhclient to
> > alwasy start immediatly on that interface instead of waiting for a link
> > state change that never happens.
> 
> Thanks for the hint!
> 
> What about the following patch?
> 
> --- man4_ed.4.diff begins here ---
> --- src/share/man/man4/ed.4.orig  2009-08-03 10:13:06.0 +0200
> +++ src/share/man/man4/ed.4   2009-09-05 12:51:51.0 +0200
> @@ -425,3 +425,11 @@
>  .Pp
>  PC Card attachment supports the D-Link DMF650TX LAN/Modem card's Ethernet
>  port only at this time.
> +.Pp
> +If the line "ed0: link state changed to UP" does not show up in dmesg, the 
> line
> +.Pp
> +ifconfig_ed0="DHCP"
> +.Pp
> +in
> +.Xr rc.conf 5
> +will be ineffective. In this case, replace "DHCP" by "SYNCDHCP".
> --- man4_ed.4.diff ends here ---
> 
> Don't hesitate to reword it - my englsh can be terrible!

I'd rather not mention the "link state changed" message since I'd love
to see it go away.  How's this?

Index: ed.4
===
--- ed.4(revision 196736)
+++ ed.4(working copy)
@@ -425,3 +425,21 @@
 .Pp
 PC Card attachment supports the D-Link DMF650TX LAN/Modem card's
Ethernet
 port only at this time.
+.Pp
+Some devices supported by
+.Nm
+do no generate the link state change events used by
+.Xr devd 8
+to start
+.Xr dhclinet 8 .
+If you have problems with
+.Xr dhclient 8
+not starting and the device is always attached to the network it may
+be possible to work around this by changing
+.Dq Li DHCP
+to
+.Dq Li SYNCDHCP
+in the
+.Va ifconfig_ed0
+entry in
+.Pa /etc/rc.conf .

=- Brooks


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


Re: ifconfig_ed0="DHCP" does not work on 8.0-BETA3

2009-09-05 Thread Thierry Thomas
Le Ven  4 sep 09 à 23:57:47 +0200, Brooks Davis 
 écrivait :
 
> This is a know issue with some devices supported by ed(4).  You can work
> around it by changing DHCP to SYNCDHCP which will cause dhclient to
> alwasy start immediatly on that interface instead of waiting for a link
> state change that never happens.

Thanks for the hint!

What about the following patch?

--- man4_ed.4.diff begins here ---
--- src/share/man/man4/ed.4.orig2009-08-03 10:13:06.0 +0200
+++ src/share/man/man4/ed.4 2009-09-05 12:51:51.0 +0200
@@ -425,3 +425,11 @@
 .Pp
 PC Card attachment supports the D-Link DMF650TX LAN/Modem card's Ethernet
 port only at this time.
+.Pp
+If the line "ed0: link state changed to UP" does not show up in dmesg, the line
+.Pp
+ifconfig_ed0="DHCP"
+.Pp
+in
+.Xr rc.conf 5
+will be ineffective. In this case, replace "DHCP" by "SYNCDHCP".
--- man4_ed.4.diff ends here ---

Don't hesitate to reword it - my englsh can be terrible!

Donation: if someone wants this card for investigations, I can bring it
at EuroBSDCon. It has 2 outputs: 1 RJ45 and 1 coaxial.

Regards,
-- 
Th. Thomas.


pgpidrKDKcZqJ.pgp
Description: PGP signature


Re: ifconfig_ed0="DHCP" does not work on 8.0-BETA3

2009-09-04 Thread Brooks Davis
On Fri, Sep 04, 2009 at 02:41:48PM -0700, Pyun YongHyeon wrote:
> On Fri, Sep 04, 2009 at 07:38:11PM +0200, Thierry Thomas wrote:
> > Hello,
> > 
> > I have a machine with the following ethernet PCI card:
> > 
> > ed0:  port 0xdc00-0xdc1f irq 16 at device 0.0 on pci2
> > ed0: WARNING: using obsoleted if_watchdog interface
> > ed0: Ethernet address: 00:50:bf:27:ba:24
> > ed0: [ITHREAD]
> > 
> > It's rather an ancient card, and it worked on FreeBSD 7.2-STABLE (and
> > several previous versions) with the line:
> > 
> > ifconfig_ed0="DHCP"
> > 
> > in /etc/rc.conf.
> > 
> > I upgraded this machine to 8.0-BETA3, and ed0 does not get an IP anymore
> > at boot time! Running `dhclient ed0' manually is working, and then
> > everything is OK.
> > 
> 
> I guess it's related with link state handling. Can you see
> "ed0: link state changed to UP" in dmesg output? Quick reading code
> reveals only some variants(pccard) support mii(4) but others looks
> dumb on link state handling. I vaguely remember I had ed(4)
> hardwares in FreeBSD 2.2.x days but didn't have chance to read the
> source.

This is a know issue with some devices supported by ed(4).  You can work
around it by changing DHCP to SYNCDHCP which will cause dhclient to
alwasy start immediatly on that interface instead of waiting for a link
state change that never happens.

-- brooks


pgpErHfkzFehV.pgp
Description: PGP signature


Re: ifconfig_ed0="DHCP" does not work on 8.0-BETA3

2009-09-04 Thread Thierry Thomas
Hello,

Le Ven  4 sep 09 à 23:41:48 +0200, Pyun YongHyeon 
 écrivait :

> I guess it's related with link state handling. Can you see
> "ed0: link state changed to UP" in dmesg output? Quick reading code
> reveals only some variants(pccard) support mii(4) but others looks
> dumb on link state handling. I vaguely remember I had ed(4)
> hardwares in FreeBSD 2.2.x days but didn't have chance to read the
> source.

No, no lines
ed0: link state changed to DOWN
ed0: link state changed to UP
in 8.0-BETA3!

> > and replacing s/ed0/rl0/ in /etc/rc.conf, everything is working.
> > 
> 
> Yes it should because it has active maintainer. :-)

Great! ;-)
-- 
Th. Thomas.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: ifconfig_ed0="DHCP" does not work on 8.0-BETA3

2009-09-04 Thread Pyun YongHyeon
On Fri, Sep 04, 2009 at 07:38:11PM +0200, Thierry Thomas wrote:
> Hello,
> 
> I have a machine with the following ethernet PCI card:
> 
> ed0:  port 0xdc00-0xdc1f irq 16 at device 0.0 on pci2
> ed0: WARNING: using obsoleted if_watchdog interface
> ed0: Ethernet address: 00:50:bf:27:ba:24
> ed0: [ITHREAD]
> 
> It's rather an ancient card, and it worked on FreeBSD 7.2-STABLE (and
> several previous versions) with the line:
> 
> ifconfig_ed0="DHCP"
> 
> in /etc/rc.conf.
> 
> I upgraded this machine to 8.0-BETA3, and ed0 does not get an IP anymore
> at boot time! Running `dhclient ed0' manually is working, and then
> everything is OK.
> 

I guess it's related with link state handling. Can you see
"ed0: link state changed to UP" in dmesg output? Quick reading code
reveals only some variants(pccard) support mii(4) but others looks
dumb on link state handling. I vaguely remember I had ed(4)
hardwares in FreeBSD 2.2.x days but didn't have chance to read the
source.

> Well, I know that this device could be deprecated, but I'm sure it is
> still running in many machines...
> 
> If I replace it by a newer card, e.g.
> 
> rl0:  port 0xd800-0xd8ff mem 0xfbeffc00-0xfbeffcff 
> irq 16 at device 0.0 on pci2
> miibus1:  on rl0
> rlphy0:  PHY 0 on miibus1
> rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> rl0: Ethernet address: 00:17:3f:d2:51:4c
> rl0: [ITHREAD]
> 
> and replacing s/ed0/rl0/ in /etc/rc.conf, everything is working.
> 

Yes it should because it has active maintainer. :-)

> Strange, is'nt it?
> -- 
> Th. Thomas.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


ifconfig_ed0="DHCP" does not work on 8.0-BETA3

2009-09-04 Thread Thierry Thomas
Hello,

I have a machine with the following ethernet PCI card:

ed0:  port 0xdc00-0xdc1f irq 16 at device 0.0 on pci2
ed0: WARNING: using obsoleted if_watchdog interface
ed0: Ethernet address: 00:50:bf:27:ba:24
ed0: [ITHREAD]

It's rather an ancient card, and it worked on FreeBSD 7.2-STABLE (and
several previous versions) with the line:

ifconfig_ed0="DHCP"

in /etc/rc.conf.

I upgraded this machine to 8.0-BETA3, and ed0 does not get an IP anymore
at boot time! Running `dhclient ed0' manually is working, and then
everything is OK.

Well, I know that this device could be deprecated, but I'm sure it is
still running in many machines...

If I replace it by a newer card, e.g.

rl0:  port 0xd800-0xd8ff mem 0xfbeffc00-0xfbeffcff 
irq 16 at device 0.0 on pci2
miibus1:  on rl0
rlphy0:  PHY 0 on miibus1
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:17:3f:d2:51:4c
rl0: [ITHREAD]

and replacing s/ed0/rl0/ in /etc/rc.conf, everything is working.

Strange, is'nt it?
-- 
Th. Thomas.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"