NetworkManager does not detect eth0 on armel

Bug #356517 reported by Paul Larson
6
Affects Status Importance Assigned to Milestone
OEM Priority Project
Fix Released
High
Unassigned
network-manager (Ubuntu)
Fix Released
High
Alexander Sack
Jaunty
Fix Released
High
Alexander Sack
udev (Ubuntu)
Invalid
Undecided
Unassigned
Jaunty
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: udev

This is on a babbage development board running a daily build from April 6.
If I type ifup eth0, it fails since there is no entry for eth0 in /var/run/network/ifstate, also connman does not see eth0. However, the network can successfully be brought up manually by going out to a shell and running 'sudo dhclient eth0'.

My best guess at the moment is that udev might be the issue, since I don't see any entry for it in /etc/udev/rules.d/70-persistent-net.rules

Current kernel I am running is:
linux-image-2.6.28-11-imx51 2.6.28-11.40
and udev:
udev 140-2

ProblemType: Bug
Architecture: armel
DistroRelease: Ubuntu 9.04
Package: udev 140-2
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: udev
Uname: Linux 2.6.28-11-imx51 armv7l

Revision history for this message
Paul Larson (pwlars) wrote :
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

You simply don't have an entry for this in /etc/network/interfaces
we don't create them by default

Changed in udev (Ubuntu):
status: New → Invalid
Revision history for this message
Paul Larson (pwlars) wrote :

/etc/network/interfaces is exactly the same as on my laptop:
auto lo
iface lo inet loopback

Yet as an example, ifup eth0 works on my laptop, as does connman. Why would this be required on one and not another?

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: [Bug 356517] Re: udev does not detect eth0 on armel

On Mon, 2009-04-06 at 20:29 +0000, Paul Larson wrote:

> /etc/network/interfaces is exactly the same as on my laptop:
> auto lo
> iface lo inet loopback
>
> Yet as an example, ifup eth0 works on my laptop, as does connman. Why
> would this be required on one and not another?
>
The ifstate entry is created by NetworkManager when that brings the
interface up.

Scott
--
Scott James Remnant
<email address hidden>

Revision history for this message
Paul Larson (pwlars) wrote :

Scott James Remnant wrote:
> On Mon, 2009-04-06 at 20:29 +0000, Paul Larson wrote:
>
>> /etc/network/interfaces is exactly the same as on my laptop:
>> auto lo
>> iface lo inet loopback
>>
>> Yet as an example, ifup eth0 works on my laptop, as does connman. Why
>> would this be required on one and not another?
>>
> The ifstate entry is created by NetworkManager when that brings the
> interface up.
>
> Scott
So are you saying this should be a bug against NetworkManager instead of
udev? NetworkManager does not see the interface either.

Revision history for this message
Oliver Grawert (ogra) wrote : Re: udev does not detect eth0 on armel

cat /proc/net/dev shows eth0 is existing

sudo ifconfig eth0 up && sudo dhclient eth0
get the interface up properly and assign a dhcp IP ...

Revision history for this message
Alexander Sack (asac) wrote :

if its just networkmanager/connman not recognizing this as a wired net device, please post your lshal output.

Revision history for this message
Oliver Grawert (ogra) wrote :
Revision history for this message
Oliver Grawert (ogra) wrote :

above is the lshal output, i'd like to notice that NM works fine with any wired USB NIC i attach.
it used to work before with the onboard card (sadly i cant say since when it changed, there were issues with the payload stability of the onboard driver so i used USB NICs since a while)

Revision history for this message
Alexander Sack (asac) wrote :

The problem is:

info.parent = '/org/freedesktop/Hal/devices/computer' (string)

which is a bit of a problem. Isnt this a pci device and should have a different parent?

Revision history for this message
Oliver Grawert (ogra) wrote :

ARM boards dont expose a PCI bus (if they even have one) (lscpci on arm is usually a no-op) so the parent is right here ...
and as i said, it used to work before ...

Revision history for this message
Oliver Grawert (ogra) wrote :
Revision history for this message
Oliver Grawert (ogra) wrote :

the testing here additionally exposed bug 356975

Revision history for this message
Oliver Grawert (ogra) wrote :

rebuilding NM with the lp199140_dont_manage_virtual_devices.patch unapplied makes it work

Changed in network-manager (Ubuntu):
assignee: nobody → asac
importance: Undecided → High
milestone: none → ubuntu-9.04
status: New → In Progress
Revision history for this message
Alexander Sack (asac) wrote :

putting on release team radar.

This is a regression from lp199140_dont_manage_virtual_devices.patch which blacklists all virtual devices; unfortunately armel doesn't expose any bus, so their network devices are virtual too.

Hackish workaround would be to disable the blacklisting from above patch on armel arch.

Steve Langasek (vorlon)
summary: - udev does not detect eth0 on armel
+ NetworkManager does not detect eth0 on armel
Revision history for this message
Jerone Young (jerone) wrote :

When using 2.6.26 kernel provided by Freescale, NM detects the network device just fine. While they do compile the network driver into the kernel. Maybe that info can help some.

Revision history for this message
Oliver Grawert (ogra) wrote :

did you use the same NM version with the mentioned patch included to verify that.
can you please attach more data if you make such assumptions...
if the device is not attached to the computer device in hal, where and how is it attached in the monolithic 2.6.26 kernel ?

Revision history for this message
Jerone Young (jerone) wrote :

Checked into this a little more. Guys from Freescale tried it out with our latest build. It's broken for that case now too.

It seems that what I said is no longer true with the newest builds. It was this way till around early March with the monolithic Freescale kernel. Now this is nolonger the case, and network manager isn't picking it up anymore.

Now it also demostrates the same behavior

Changed in oem-priority:
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager - 0.7.1~rc4.1.cf199a964-0ubuntu2

---------------
network-manager (0.7.1~rc4.1.cf199a964-0ubuntu2) jaunty; urgency=low

  * fix LP: #356517 - NetworkManager does not detect eth0 on armel; on armel
    network devices have no visible bus and hence appear similar to virtual
    devices that got blacklisted by the fix for LP: #199140; for jaunty
    we workaround the issue by explicitly disabling the virtual device
    blacklisting on __ARMEL__
    - add patches/lp356517_manage_virtual_devices_on_armel.patch
    - update patches/series

 -- Alexander Sack <email address hidden> Tue, 14 Apr 2009 13:53:20 +0200

Changed in network-manager (Ubuntu Jaunty):
status: In Progress → Fix Released
Revision history for this message
Paul Larson (pwlars) wrote :

Confirmed fix

Revision history for this message
prlancas (prlancas) wrote :

This fix also sorts out bug #356517 which I guess is a similar problem when using the ndiswrapper for wireless drives it must see it as virtual device and not use it at least with my particular drivers anyway.

Jerone Young (jerone)
Changed in oem-priority:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.