All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 8116] New: 2015.05-rc2 raspberrypi2_defconfig network interface not coming up
@ 2015-05-16  3:55 bugzilla at busybox.net
  2015-05-16  7:03 ` [Buildroot] [Bug 8116] " bugzilla at busybox.net
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2015-05-16  3:55 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8116

           Summary: 2015.05-rc2 raspberrypi2_defconfig network interface
                    not coming up
           Product: buildroot
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: albert.david at gmail.com
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


in 2015.05-rc2, default configuration of raspberrypi2(raspberrypi2_defconfig)
network interface doesnt show up after boot, but adding a "sleep 1" in
S40network(before line "/sbin/ifup -a") fixes the problem.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 8116] 2015.05-rc2 raspberrypi2_defconfig network interface not coming up
  2015-05-16  3:55 [Buildroot] [Bug 8116] New: 2015.05-rc2 raspberrypi2_defconfig network interface not coming up bugzilla at busybox.net
@ 2015-05-16  7:03 ` bugzilla at busybox.net
  2015-05-16 10:58 ` bugzilla at busybox.net
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2015-05-16  7:03 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8116

Peter Korsgaard <jacmet@uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #1 from Peter Korsgaard <jacmet@uclibc.org> 2015-05-16 07:03:26 UTC ---
It is because the rpi uses a usb<>ethernet adapter, and USB initialization
happens after (or rather in parallel) with the rootfs getting mounted and init
running - So eth0 isn't available by the time ifup runs.

Busybox ifup/ifdown isn't made to handle such dynamic setups, but perhaps we
could add a wait-for-eth0 init script for the rpi that does something like:

etc/init.d/S40eth0
#!/bin/sh
#
# Wait for (usb based) eth0 to get detected
#

case "$1" in
  start)
        echo -n "Waiting for eth0 ... "
        while [ ! -d /sys/class/net/eth0 ]; do sleep 1; done
        echo "done"
        ;;
  stop)
        ;;
  restart|reload)
        "$0" stop
        "$0" start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
esac

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 8116] 2015.05-rc2 raspberrypi2_defconfig network interface not coming up
  2015-05-16  3:55 [Buildroot] [Bug 8116] New: 2015.05-rc2 raspberrypi2_defconfig network interface not coming up bugzilla at busybox.net
  2015-05-16  7:03 ` [Buildroot] [Bug 8116] " bugzilla at busybox.net
@ 2015-05-16 10:58 ` bugzilla at busybox.net
  2015-05-16 13:16 ` bugzilla at busybox.net
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2015-05-16 10:58 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8116

--- Comment #2 from Floris Bos <bos@je-eigen-domein.nl> 2015-05-16 10:58:19 UTC ---
Was wondering if we shouldn't just (offer an option to) enable busybox's
ifplugd?

While the Pi is one of the few that has Ethernet through USB, I think this also
affects other platforms that have their Wifi through USB.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 8116] 2015.05-rc2 raspberrypi2_defconfig network interface not coming up
  2015-05-16  3:55 [Buildroot] [Bug 8116] New: 2015.05-rc2 raspberrypi2_defconfig network interface not coming up bugzilla at busybox.net
  2015-05-16  7:03 ` [Buildroot] [Bug 8116] " bugzilla at busybox.net
  2015-05-16 10:58 ` bugzilla at busybox.net
@ 2015-05-16 13:16 ` bugzilla at busybox.net
  2015-05-16 13:24 ` bugzilla at busybox.net
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2015-05-16 13:16 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8116

--- Comment #3 from Peter Korsgaard <jacmet@uclibc.org> 2015-05-16 13:16:52 UTC ---
(In reply to comment #2)
> Was wondering if we shouldn't just (offer an option to) enable busybox's
> ifplugd?
> 
> While the Pi is one of the few that has Ethernet through USB, I think this also
> affects other platforms that have their Wifi through USB.

Ifplugd is nice, but it wouldn't fix anything here as the problem is that eth0
isn't available yet when S40network runs, so ifplugd would also fail.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 8116] 2015.05-rc2 raspberrypi2_defconfig network interface not coming up
  2015-05-16  3:55 [Buildroot] [Bug 8116] New: 2015.05-rc2 raspberrypi2_defconfig network interface not coming up bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2015-05-16 13:16 ` bugzilla at busybox.net
@ 2015-05-16 13:24 ` bugzilla at busybox.net
  2015-05-16 13:33 ` bugzilla at busybox.net
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2015-05-16 13:24 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8116

--- Comment #4 from Floris Bos <bos@je-eigen-domein.nl> 2015-05-16 13:24:41 UTC ---
>Ifplugd is nice, but it wouldn't fix anything here as the problem is that eth0
>isn't available yet when S40network runs, so ifplugd would also fail.

Thought it also had an option for dealing with interfaces that do not exist
yet.


http://git.busybox.net/busybox/tree/networking/ifplugd.c

"-M  Monitor creation/destruction of interface
     (otherwise it must exist)"

Although I haven't tested it.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 8116] 2015.05-rc2 raspberrypi2_defconfig network interface not coming up
  2015-05-16  3:55 [Buildroot] [Bug 8116] New: 2015.05-rc2 raspberrypi2_defconfig network interface not coming up bugzilla at busybox.net
                   ` (3 preceding siblings ...)
  2015-05-16 13:24 ` bugzilla at busybox.net
@ 2015-05-16 13:33 ` bugzilla at busybox.net
  2015-07-07 15:53 ` bugzilla at busybox.net
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2015-05-16 13:33 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8116

--- Comment #5 from Peter Korsgaard <jacmet@uclibc.org> 2015-05-16 13:33:44 UTC ---
(In reply to comment #4)
> >Ifplugd is nice, but it wouldn't fix anything here as the problem is that eth0
> >isn't available yet when S40network runs, so ifplugd would also fail.
> 
> Thought it also had an option for dealing with interfaces that do not exist
> yet.
> 
> 
> http://git.busybox.net/busybox/tree/networking/ifplugd.c
> 
> "-M  Monitor creation/destruction of interface
>      (otherwise it must exist)"
> 
> Although I haven't tested it.

Ahh, you're right. I've never noticed that option. Sorry!

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 8116] 2015.05-rc2 raspberrypi2_defconfig network interface not coming up
  2015-05-16  3:55 [Buildroot] [Bug 8116] New: 2015.05-rc2 raspberrypi2_defconfig network interface not coming up bugzilla at busybox.net
                   ` (4 preceding siblings ...)
  2015-05-16 13:33 ` bugzilla at busybox.net
@ 2015-07-07 15:53 ` bugzilla at busybox.net
  2015-10-16  9:46 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2015-07-07 15:53 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8116

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at buildroot.uclibc |yann.morin.1998 at free.fr
                   |.org                        |

--- Comment #6 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2015-07-07 15:53:23 UTC ---
Yann, is this something you would like to fix in the default
raspberrypi2_defconfig, for improve the out of the box user experience for
users?

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 8116] 2015.05-rc2 raspberrypi2_defconfig network interface not coming up
  2015-05-16  3:55 [Buildroot] [Bug 8116] New: 2015.05-rc2 raspberrypi2_defconfig network interface not coming up bugzilla at busybox.net
                   ` (5 preceding siblings ...)
  2015-07-07 15:53 ` bugzilla at busybox.net
@ 2015-10-16  9:46 ` bugzilla at busybox.net
  2015-10-16 20:00 ` bugzilla at busybox.net
  2015-10-16 20:52 ` bugzilla at busybox.net
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2015-10-16  9:46 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8116

Peter Korsgaard <jacmet@uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Peter Korsgaard <jacmet@uclibc.org> 2015-10-16 09:46:17 UTC ---
Fixed in git by:

commit 49964858f45d2243c513e6d362e992ad89ec7a45
Author: Yann E. MORIN <yann.morin.1998@free.fr>
Date:   Sat Oct 3 14:31:45 2015 +0100

    package/initscripts: S40network: wait for network interfaces to appear

    On some machines, the network interface is slow to appear. For example,
    on the Raspberry Pi, the network interface eth0 is an ethernet-over-USB,
    and our standard boot process is too fast, so our network startup script
    is called before the USB bus is compeltely enumerated, thus it can't
    configure eth0.

    Closes #8116.

    [Peter: move to S40network, handle multiple interfaces]
    Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
    Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 8116] 2015.05-rc2 raspberrypi2_defconfig network interface not coming up
  2015-05-16  3:55 [Buildroot] [Bug 8116] New: 2015.05-rc2 raspberrypi2_defconfig network interface not coming up bugzilla at busybox.net
                   ` (6 preceding siblings ...)
  2015-10-16  9:46 ` bugzilla at busybox.net
@ 2015-10-16 20:00 ` bugzilla at busybox.net
  2015-10-16 20:52 ` bugzilla at busybox.net
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2015-10-16 20:00 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8116

--- Comment #8 from Beno?t Th?baudeau <benoit.thebaudeau.dev@gmail.com> 2015-10-16 20:00:53 UTC ---
I had experienced the same issue, and I had fixed it using BusyBox's ifplugd
with -M as suggested in comment #2. eth0 should be more "allow-hotplug" than
"auto" on RPi.

However, some services started quickly after S40network and configured to use
eth0 might be unhappy if it is not yet up, but it is the same issue if the
Ethernet cable is plugged later. So their configurations have to be adjusted
anyway.

At least, there is now a configurable choice between the sleeping S40network
and ifplugd.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 8116] 2015.05-rc2 raspberrypi2_defconfig network interface not coming up
  2015-05-16  3:55 [Buildroot] [Bug 8116] New: 2015.05-rc2 raspberrypi2_defconfig network interface not coming up bugzilla at busybox.net
                   ` (7 preceding siblings ...)
  2015-10-16 20:00 ` bugzilla at busybox.net
@ 2015-10-16 20:52 ` bugzilla at busybox.net
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2015-10-16 20:52 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8116

--- Comment #9 from Yann E. MORIN <yann.morin.1998@free.fr> 2015-10-16 20:52:01 UTC ---
[--SNIP--]
> At least, there is now a configurable choice between the sleeping S40network
> and ifplugd.

The sleeping solution is to make our RPi defconfig (as well as all our default
configs) "just work" out-of-the-box, nothing more.

Any more serious system would probably have to use something along the lines
of connman (my personal favourite) or NetworkManager or ifplugd. Or even
custom startup scripts.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

end of thread, other threads:[~2015-10-16 20:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-16  3:55 [Buildroot] [Bug 8116] New: 2015.05-rc2 raspberrypi2_defconfig network interface not coming up bugzilla at busybox.net
2015-05-16  7:03 ` [Buildroot] [Bug 8116] " bugzilla at busybox.net
2015-05-16 10:58 ` bugzilla at busybox.net
2015-05-16 13:16 ` bugzilla at busybox.net
2015-05-16 13:24 ` bugzilla at busybox.net
2015-05-16 13:33 ` bugzilla at busybox.net
2015-07-07 15:53 ` bugzilla at busybox.net
2015-10-16  9:46 ` bugzilla at busybox.net
2015-10-16 20:00 ` bugzilla at busybox.net
2015-10-16 20:52 ` bugzilla at busybox.net

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.