* [PATCH] connman: Ignore eth0 cleanup when booting over the network
@ 2012-08-30 23:34 Saul Wold
2012-08-31 7:28 ` Koen Kooi
2012-08-31 7:42 ` Simon Busch
0 siblings, 2 replies; 4+ messages in thread
From: Saul Wold @ 2012-08-30 23:34 UTC (permalink / raw)
To: openembedded-core
There was a change to connman, such that it cleans up the
route table for devices at startup, this was causing the
network to get lost and NFS to loose it connection.
The -I option will cause the device to be ignored.
[YOCTO #3008]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
meta/recipes-connectivity/connman/connman/connman | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-connectivity/connman/connman/connman b/meta/recipes-connectivity/connman/connman/connman
index f01bf37..2c8354a 100644
--- a/meta/recipes-connectivity/connman/connman/connman
+++ b/meta/recipes-connectivity/connman/connman/connman
@@ -29,7 +29,7 @@ done
do_start() {
EXTRA_PARAM=""
if test $nfsroot -eq 1 ; then
- EXTRA_PARAM="-P ethernet"
+ EXTRA_PARAM="-P ethernet -I eth0"
fi
$DAEMON $EXTRA_PARAM
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] connman: Ignore eth0 cleanup when booting over the network
2012-08-30 23:34 [PATCH] connman: Ignore eth0 cleanup when booting over the network Saul Wold
@ 2012-08-31 7:28 ` Koen Kooi
2012-08-31 16:48 ` Saul Wold
2012-08-31 7:42 ` Simon Busch
1 sibling, 1 reply; 4+ messages in thread
From: Koen Kooi @ 2012-08-31 7:28 UTC (permalink / raw)
To: Saul Wold; +Cc: openembedded-core
Op 31 aug. 2012, om 01:34 heeft Saul Wold <sgw@linux.intel.com> het volgende geschreven:
> There was a change to connman, such that it cleans up the
> route table for devices at startup, this was causing the
> network to get lost and NFS to loose it connection.
>
> The -I option will cause the device to be ignored.
Apart from the missing PR bump, what happens when you don't boot of the network? Will connman keep ignoring eth0?
FWIW I asked about nfsroot and connman and Marcel said: don't do that! So I'm inclined to say that if you're using nfsroot you shouldn't be using connman.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] connman: Ignore eth0 cleanup when booting over the network
2012-08-31 7:28 ` Koen Kooi
@ 2012-08-31 16:48 ` Saul Wold
0 siblings, 0 replies; 4+ messages in thread
From: Saul Wold @ 2012-08-31 16:48 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-core
On 08/31/2012 12:28 AM, Koen Kooi wrote:
>
> Op 31 aug. 2012, om 01:34 heeft Saul Wold <sgw@linux.intel.com> het volgende geschreven:
>
>> There was a change to connman, such that it cleans up the
>> route table for devices at startup, this was causing the
>> network to get lost and NFS to loose it connection.
>>
>> The -I option will cause the device to be ignored.
>
> Apart from the missing PR bump, what happens when you don't boot of the network? Will connman keep ignoring eth0?
> FWIW I asked about nfsroot and connman and Marcel said: don't do that! So I'm inclined to say that if you're using nfsroot you shouldn't be using connman.
>
What if there are multiple network interfaces, but just one (eth0, usb0,
...) is the nfsroot provider?
Is there a way to determine which interface nfs is active on and only
ignore that one?
I am going to disable connmand for now in a v2 patch, but I think we
need to address this better either via connman or here in oe-core.
Sau!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] connman: Ignore eth0 cleanup when booting over the network
2012-08-30 23:34 [PATCH] connman: Ignore eth0 cleanup when booting over the network Saul Wold
2012-08-31 7:28 ` Koen Kooi
@ 2012-08-31 7:42 ` Simon Busch
1 sibling, 0 replies; 4+ messages in thread
From: Simon Busch @ 2012-08-31 7:42 UTC (permalink / raw)
To: Saul Wold; +Cc: openembedded-core
Am 31.08.2012 01:34, schrieb Saul Wold:
> There was a change to connman, such that it cleans up the
> route table for devices at startup, this was causing the
> network to get lost and NFS to loose it connection.
>
> The -I option will cause the device to be ignored.
>
> [YOCTO #3008]
>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
> meta/recipes-connectivity/connman/connman/connman | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-connectivity/connman/connman/connman b/meta/recipes-connectivity/connman/connman/connman
> index f01bf37..2c8354a 100644
> --- a/meta/recipes-connectivity/connman/connman/connman
> +++ b/meta/recipes-connectivity/connman/connman/connman
> @@ -29,7 +29,7 @@ done
> do_start() {
> EXTRA_PARAM=""
> if test $nfsroot -eq 1 ; then
> - EXTRA_PARAM="-P ethernet"
> + EXTRA_PARAM="-P ethernet -I eth0"
> fi
> $DAEMON $EXTRA_PARAM
> }
>
What about other devices where eht0 is not available but rndis0 for
example which has to be ignored?
As of right we have this fix for several machines in meta-smartphone
already ignoring rndis0 and usb0.
regards,
Simon
--
Simon Busch - http://mm.gravedo.de/blog/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-31 17:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-30 23:34 [PATCH] connman: Ignore eth0 cleanup when booting over the network Saul Wold
2012-08-31 7:28 ` Koen Kooi
2012-08-31 16:48 ` Saul Wold
2012-08-31 7:42 ` Simon Busch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox