unsubscribe

2011/8/20 <uclinux-dev-requ...@uclinux.org>

> Send uClinux-dev mailing list submissions to
>        uclinux-dev@uclinux.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> or, via email, send a message with subject or body 'help' to
>        uclinux-dev-requ...@uclinux.org
>
> You can reach the person managing the list at
>        uclinux-dev-ow...@uclinux.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of uClinux-dev digest..."
>
>
> Today's Topics:
>
>   1. Re: FEC and brctl after unplug in/out Ethernet cable (nunya si)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 18 Aug 2011 16:26:11 -0600
> From: nunya si <nunya034...@gmail.com>
> Subject: Re: [uClinux-dev] FEC and brctl after unplug in/out Ethernet
>        cable
> To: uclinux-dev@uclinux.org
> Message-ID:
>        <CAJ6eg7A3=ztd3juhscwelzbnn9spmqz9kgymbmof5v6pew2...@mail.gmail.com
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Wed, Aug 17, 2011 at 6:50 PM, Greg Ungerer <g...@snapgear.com> wrote:
> > Hi Nunya,
> >
> > On 17/08/11 02:22, nunya si wrote:
> >>
> >> I have project where I take new uClinux on a coldfire 5275 dev board
> >> and bridge both Ethernet interfaces together with brctl.
> >>
> >> If Ethernet plugged in when I turn on the board everything work just
> >> fine BUT if I turn on board and THEN plug in Ethernet after it has
> >> booted then I can talk to the local address but nothing passes in/out
> >> of the bridge. Also if I power board up with Ethernet and un-plug and
> >> re-plug in Ethernet then same problem, talk locally but not across
> >> bridge.
> >>
> >> Doing "ifconfig eth0 up" every time I plug in cable will cause
> >> everything to work.
> >>
> >> I play with:
> >>
> >> fec_enet_adjust_link(struct net_device *dev) function in fec.c and if
> >> run only once:
> >>
> >> static char rerun=0;
> >> if(rerun++>0) return;
> >>
> >> ácan solve up/down/up issue, but not plug in after boot issue. Not
> >> know how to run ifconfig from driver automatic.
> >>
> >> What can do to solve issue to make eth0... Work in bridge after plug
> >> in/out Ethernet all by itself?
> >
> > Do you have either mii-tool or ethtool on your target?
> > It would be good to know what they report as the link
> > status on eth0.
> >
> > Regards
> > Greg
> >
> >
> >
>
> Thank You Greg,
>
> I install ethtool and report is as follows:
>
> /> ethtool eth0
> Settings for eth0:
>        Supported ports: [ TP MII ]
>        Supported link modes:   10baseT/Half 10baseT/Full
>                                100baseT/Half 100baseT/Full
>        Supports auto-negotiation: Yes
>        Advertised link modes:  10baseT/Half 10baseT/Full
>                                100baseT/Half 100baseT/Full
>        Advertised auto-negotiation: Yes
>        Speed: 100Mb/s
>        Duplex: Full
>        Port: MII
>        PHYAD: 1
>        Transceiver: external
>        Auto-negotiation: on
>        Link detected: yes
>
> Also /proc/kmsg announces: "PHY: 1:01 - Link is Up - 100/Full
>
> Also bridge reports after link up: br0: port 1(eth0) entering forwarding
> state
>
> but still bridge is broken...
>
> I have bad fix like this in fec.c last lines of function static void
> fec_enet_adjust_link(struct net_device *dev):
>
>        if (status_change)
>        {
>                phy_print_status(phy_dev);
>                dev_ioctl(dev_net(dev), SIOCSIFFLAGS, "eth0");  // hack make
> eth0 work
>        }
>
> And this fixes everything so far... no right way to fix but working.
>
> Ideas?
>
> Regards (and thank You),
> Nunya Si
>
>
> ------------------------------
>
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>
> End of uClinux-dev Digest, Vol 100, Issue 14
> ********************************************
>
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to