All of lore.kernel.org
 help / color / mirror / Atom feed
* RFC: auto eth0 and auto eth1 in netbase
@ 2007-11-29 11:53 Rod Whitby
  2007-11-29 12:58 ` Graeme Gregory
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Rod Whitby @ 2007-11-29 11:53 UTC (permalink / raw)
  To: openembedded-devel

Some machines don't have consoles, so the only way to access them on the
first boot after a reflash is via the network.

Of course, an 'auto' keyword is required for this, and netbase currently
has none.

Is there any reason why at least eth0 should not have an 'auto' keyword?

Should this be OE-wide, only for Angstrom (koen thinks eth0 and eth1
should be auto), or only for specific machines (in which case, does
anyone object to ixp4xx having auto eth0)?

-- Rod



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

* Re: RFC: auto eth0 and auto eth1 in netbase
  2007-11-29 11:53 RFC: auto eth0 and auto eth1 in netbase Rod Whitby
@ 2007-11-29 12:58 ` Graeme Gregory
  2007-11-29 14:16 ` mwester
  2007-11-29 14:41 ` Koen Kooi
  2 siblings, 0 replies; 11+ messages in thread
From: Graeme Gregory @ 2007-11-29 12:58 UTC (permalink / raw)
  To: openembedded-devel

On Thu, 29 Nov 2007 22:23:54 +1030
Rod Whitby <rod@whitby.id.au> wrote:

> Some machines don't have consoles, so the only way to access them on
> the first boot after a reflash is via the network.
> 
> Of course, an 'auto' keyword is required for this, and netbase
> currently has none.
> 
> Is there any reason why at least eth0 should not have an 'auto'
> keyword?
> 
> Should this be OE-wide, only for Angstrom (koen thinks eth0 and eth1
> should be auto), or only for specific machines (in which case, does
> anyone object to ixp4xx having auto eth0)?
> 

It is quiet common to find commercial equipment doing this in the real
world. You just tell your dhcp server the MAC and you can find it on
first boot easilly.

So I think we should probably allow this as well.

+1 for me on eth0

G



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

* Re: RFC: auto eth0 and auto eth1 in netbase
  2007-11-29 11:53 RFC: auto eth0 and auto eth1 in netbase Rod Whitby
  2007-11-29 12:58 ` Graeme Gregory
@ 2007-11-29 14:16 ` mwester
  2007-11-29 14:41 ` Koen Kooi
  2 siblings, 0 replies; 11+ messages in thread
From: mwester @ 2007-11-29 14:16 UTC (permalink / raw)
  To: openembedded-devel

> Some machines don't have consoles, so the only way to access them on the
> first boot after a reflash is via the network.
> 
> Of course, an 'auto' keyword is required for this, and netbase currently
> has none.
> 
> Is there any reason why at least eth0 should not have an 'auto' keyword?
> 
> Should this be OE-wide, only for Angstrom (koen thinks eth0 and eth1
> should be auto), or only for specific machines (in which case, does
> anyone object to ixp4xx having auto eth0)?

I think the "principle of least surprise" would favor "auto eth0".  Most users expect that if it has a network port, regardless of what type of equipment "it" might be, it should make an attempt to join the network.

+1 for me.

Mike (mwester)



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

* Re: RFC: auto eth0 and auto eth1 in netbase
  2007-11-29 11:53 RFC: auto eth0 and auto eth1 in netbase Rod Whitby
  2007-11-29 12:58 ` Graeme Gregory
  2007-11-29 14:16 ` mwester
@ 2007-11-29 14:41 ` Koen Kooi
  2007-11-29 17:02   ` Chris Larson
  2 siblings, 1 reply; 11+ messages in thread
From: Koen Kooi @ 2007-11-29 14:41 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rod Whitby schreef:
> Some machines don't have consoles, so the only way to access them on the
> first boot after a reflash is via the network.
> 
> Of course, an 'auto' keyword is required for this, and netbase currently
> has none.
> 
> Is there any reason why at least eth0 should not have an 'auto' keyword?
> 
> Should this be OE-wide, only for Angstrom (koen thinks eth0 and eth1
> should be auto), or only for specific machines (in which case, does
> anyone object to ixp4xx having auto eth0)?

+1 for OE wide


- --
koen@dominion.kabel.utwente.nl will go go away in december 2007, please
use k.kooi@student.utwente.nl instead.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFHTs+aMkyGM64RGpERAtsvAJ9C+VMaervzVWZLtxXU6jKp7BTPyACcDAdM
fjkhfc+Tflx0X5v42JKwjxY=
=bBvk
-----END PGP SIGNATURE-----



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

* Re: RFC: auto eth0 and auto eth1 in netbase
  2007-11-29 14:41 ` Koen Kooi
@ 2007-11-29 17:02   ` Chris Larson
  2007-11-30 11:48     ` Rod Whitby
  0 siblings, 1 reply; 11+ messages in thread
From: Chris Larson @ 2007-11-29 17:02 UTC (permalink / raw)
  To: openembedded-devel

On Nov 29, 2007 7:41 AM, Koen Kooi <k.kooi@student.utwente.nl> wrote:
> Rod Whitby schreef:
> > Some machines don't have consoles, so the only way to access them on the
> > first boot after a reflash is via the network.
> >
> > Of course, an 'auto' keyword is required for this, and netbase currently
> > has none.
> >
> > Is there any reason why at least eth0 should not have an 'auto' keyword?
> >
> > Should this be OE-wide, only for Angstrom (koen thinks eth0 and eth1
> > should be auto), or only for specific machines (in which case, does
> > anyone object to ixp4xx having auto eth0)?
>
> +1 for OE wide

Afaik, the execution of the hotplug/coldplug scripts on startup should
generate the hotplug events for the ethernet interfaces and bring them
up that way.  In debian, the hotplug scripts bring them up with ifup
--allow=hotplug [iface], such that you need an 'allow-hotplug eth0' in
interfaces to have them brought up that way.  I'm too rusty with OE to
say how we do it today, but it's not likely that auto is needed.
-- 
Chris Larson - clarson at kergoth dot com
Dedicated Engineer - MontaVista - clarson at mvista dot com
Core Developer/Architect - TSLib, BitBake, OpenEmbedded, OpenZaurus



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

* Re: RFC: auto eth0 and auto eth1 in netbase
  2007-11-29 17:02   ` Chris Larson
@ 2007-11-30 11:48     ` Rod Whitby
  2007-11-30 16:59       ` Chris Larson
  0 siblings, 1 reply; 11+ messages in thread
From: Rod Whitby @ 2007-11-30 11:48 UTC (permalink / raw)
  To: openembedded-devel

Chris Larson wrote:
> Afaik, the execution of the hotplug/coldplug scripts on startup should
> generate the hotplug events for the ethernet interfaces and bring them
> up that way.  In debian, the hotplug scripts bring them up with ifup
> --allow=hotplug [iface], such that you need an 'allow-hotplug eth0' in
> interfaces to have them brought up that way.  I'm too rusty with OE to
> say how we do it today, but it's not likely that auto is needed.

Unfortunately, the busybox ifup applet does not support the
allow-hotplug keyword.

Based on the feedback, I'll add 'auto eth0'.

-- Rod



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

* Re: RFC: auto eth0 and auto eth1 in netbase
  2007-11-30 11:48     ` Rod Whitby
@ 2007-11-30 16:59       ` Chris Larson
  2007-12-07 19:39         ` Khem Raj
  0 siblings, 1 reply; 11+ messages in thread
From: Chris Larson @ 2007-11-30 16:59 UTC (permalink / raw)
  To: openembedded-devel

On Nov 30, 2007 4:48 AM, Rod Whitby <rod@whitby.id.au> wrote:
> Chris Larson wrote:
> > Afaik, the execution of the hotplug/coldplug scripts on startup should
> > generate the hotplug events for the ethernet interfaces and bring them
> > up that way.  In debian, the hotplug scripts bring them up with ifup
> > --allow=hotplug [iface], such that you need an 'allow-hotplug eth0' in
> > interfaces to have them brought up that way.  I'm too rusty with OE to
> > say how we do it today, but it's not likely that auto is needed.
>
> Unfortunately, the busybox ifup applet does not support the
> allow-hotplug keyword.
>
> Based on the feedback, I'll add 'auto eth0'.

Network interfaces should still be brought up when hotplugged.
Lacking the keyword just means there's no way to prevent it from
happening via interfaces(5).
-- 
Chris Larson - clarson at kergoth dot com
Dedicated Engineer - MontaVista - clarson at mvista dot com
Core Developer/Architect - TSLib, BitBake, OpenEmbedded, OpenZaurus



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

* Re: RFC: auto eth0 and auto eth1 in netbase
  2007-11-30 16:59       ` Chris Larson
@ 2007-12-07 19:39         ` Khem Raj
  2007-12-07 21:08           ` Rod Whitby
  2007-12-07 21:56           ` Koen Kooi
  0 siblings, 2 replies; 11+ messages in thread
From: Khem Raj @ 2007-12-07 19:39 UTC (permalink / raw)
  To: openembedded-devel

On Nov 30, 2007 8:59 AM, Chris Larson <clarson@kergoth.com> wrote:
> On Nov 30, 2007 4:48 AM, Rod Whitby <rod@whitby.id.au> wrote:
> > Chris Larson wrote:
> > > Afaik, the execution of the hotplug/coldplug scripts on startup should
> > > generate the hotplug events for the ethernet interfaces and bring them
> > > up that way.  In debian, the hotplug scripts bring them up with ifup
> > > --allow=hotplug [iface], such that you need an 'allow-hotplug eth0' in
> > > interfaces to have them brought up that way.  I'm too rusty with OE to
> > > say how we do it today, but it's not likely that auto is needed.
> >
> > Unfortunately, the busybox ifup applet does not support the
> > allow-hotplug keyword.
> >
> > Based on the feedback, I'll add 'auto eth0'.
>

fwiw with this change my nfsrooted rfs does not boot. I think its a
nice to have nfsroot option for dev work.



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

* Re: RFC: auto eth0 and auto eth1 in netbase
  2007-12-07 19:39         ` Khem Raj
@ 2007-12-07 21:08           ` Rod Whitby
  2007-12-07 21:56           ` Koen Kooi
  1 sibling, 0 replies; 11+ messages in thread
From: Rod Whitby @ 2007-12-07 21:08 UTC (permalink / raw)
  To: openembedded-devel

Khem Raj wrote:
>> On Nov 30, 2007 4:48 AM, Rod Whitby <rod@whitby.id.au> wrote:
>>> Based on the feedback, I'll add 'auto eth0'.
> 
> fwiw with this change my nfsrooted rfs does not boot. I think its a
> nice to have nfsroot option for dev work.

Do you have any more details on why it doesn't work, and do you have a
recommendation on how to meet both requirements?

(I don't use nfsroot with OE myself, so you'll need to give more details
and help debug why it doesn't work)

-- Rod



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

* Re: RFC: auto eth0 and auto eth1 in netbase
  2007-12-07 19:39         ` Khem Raj
  2007-12-07 21:08           ` Rod Whitby
@ 2007-12-07 21:56           ` Koen Kooi
  2007-12-10  6:32             ` Paul Sokolovsky
  1 sibling, 1 reply; 11+ messages in thread
From: Koen Kooi @ 2007-12-07 21:56 UTC (permalink / raw)
  To: Using the OpenEmbedded metadata to build Distributions

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Khem Raj schreef:
> On Nov 30, 2007 8:59 AM, Chris Larson <clarson@kergoth.com> wrote:
>> On Nov 30, 2007 4:48 AM, Rod Whitby <rod@whitby.id.au> wrote:
>>> Chris Larson wrote:
>>>> Afaik, the execution of the hotplug/coldplug scripts on startup should
>>>> generate the hotplug events for the ethernet interfaces and bring them
>>>> up that way.  In debian, the hotplug scripts bring them up with ifup
>>>> --allow=hotplug [iface], such that you need an 'allow-hotplug eth0' in
>>>> interfaces to have them brought up that way.  I'm too rusty with OE to
>>>> say how we do it today, but it's not likely that auto is needed.
>>> Unfortunately, the busybox ifup applet does not support the
>>> allow-hotplug keyword.
>>>
>>> Based on the feedback, I'll add 'auto eth0'.
> 
> fwiw with this change my nfsrooted rfs does not boot. I think its a
> nice to have nfsroot option for dev work.

doing any form of 'ifup' on the interface that connects to you nfsroot
with shutdown the interface before trying to bring it up. I have the
same problem on my PVR, and as a workaround I edited
/path/to/nfs/etc/network/interface on the nfs server and removed the auto.
Volunteers to teach ifup not to not close the link when using nfsroot?

regards,

Koen

- --
koen@dominion.kabel.utwente.nl will go go away in december 2007, please
use k.kooi@student.utwente.nl instead.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFHWcGiMkyGM64RGpERAiAnAJ0ZHNyCyLjmRlRjXnIi9bWxfWIUGACfTwip
qPwF61BdfukK/IxyHKWNJ5o=
=lxi4
-----END PGP SIGNATURE-----



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

* Re: RFC: auto eth0 and auto eth1 in netbase
  2007-12-07 21:56           ` Koen Kooi
@ 2007-12-10  6:32             ` Paul Sokolovsky
  0 siblings, 0 replies; 11+ messages in thread
From: Paul Sokolovsky @ 2007-12-10  6:32 UTC (permalink / raw)
  To: Koen Kooi

Hello Koen,

Friday, December 7, 2007, 11:56:50 PM, you wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1

> Khem Raj schreef:
>> On Nov 30, 2007 8:59 AM, Chris Larson <clarson@kergoth.com> wrote:
>>> On Nov 30, 2007 4:48 AM, Rod Whitby <rod@whitby.id.au> wrote:
>>>> Chris Larson wrote:
>>>>> Afaik, the execution of the hotplug/coldplug scripts on startup should
>>>>> generate the hotplug events for the ethernet interfaces and bring them
>>>>> up that way.  In debian, the hotplug scripts bring them up with ifup
>>>>> --allow=hotplug [iface], such that you need an 'allow-hotplug eth0' in
>>>>> interfaces to have them brought up that way.  I'm too rusty with OE to
>>>>> say how we do it today, but it's not likely that auto is needed.
>>>> Unfortunately, the busybox ifup applet does not support the
>>>> allow-hotplug keyword.
>>>>
>>>> Based on the feedback, I'll add 'auto eth0'.
>> 
>> fwiw with this change my nfsrooted rfs does not boot. I think its a
>> nice to have nfsroot option for dev work.

> doing any form of 'ifup' on the interface that connects to you nfsroot
> with shutdown the interface before trying to bring it up. I have the
> same problem on my PVR, and as a workaround I edited
> /path/to/nfs/etc/network/interface on the nfs server and removed the auto.
> Volunteers to teach ifup not to not close the link when using nfsroot?

  I've been having this issue in my queue. There're few problems with
current OE init scripts and nfsroot. I'm going to get to this one
sweet day, but if anyone gets to this earlier, even better ;-).

> regards,

> Koen




-- 
Best regards,
 Paul                            mailto:pmiscml@gmail.com




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

end of thread, other threads:[~2007-12-10  6:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-29 11:53 RFC: auto eth0 and auto eth1 in netbase Rod Whitby
2007-11-29 12:58 ` Graeme Gregory
2007-11-29 14:16 ` mwester
2007-11-29 14:41 ` Koen Kooi
2007-11-29 17:02   ` Chris Larson
2007-11-30 11:48     ` Rod Whitby
2007-11-30 16:59       ` Chris Larson
2007-12-07 19:39         ` Khem Raj
2007-12-07 21:08           ` Rod Whitby
2007-12-07 21:56           ` Koen Kooi
2007-12-10  6:32             ` Paul Sokolovsky

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.