RFC: auto eth0 and auto eth1 in netbase
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
Quoted 6 lines · On Thu, 29 Nov 2007 22:23:54 +1030 Rod Whitby <[email protected]> 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.
Quoted 7 lines
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
Quoted 11 lines
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)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rod Whitby schreef:
Quoted 11 lines
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
- --
[email protected] will go go away in december 2007, please use [email protected] instead.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFHTs+aMkyGM64RGpERAtsvAJ9C+VMaervzVWZLtxXU6jKp7BTPyACcDAdM fjkhfc+Tflx0X5v42JKwjxY=
=bBvk
-----END PGP SIGNATURE-----
Quoted 7 lines · Koen Kooi
Rod Whitby schreef:
Quoted 6 lines
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.
Quoted 7 lines
Quoted 5 lines
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.
Signature · 3 lines
Chris Larson - clarson at kergoth dot com Dedicated Engineer - MontaVista - clarson at mvista dot com Core Developer/Architect - TSLib, BitBake, OpenEmbedded, OpenZaurus
Quoted 6 lines · Chris Larson
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
Quoted 8 lines · Rod Whitby
Quoted 6 lines · Chris Larson
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.
Quoted 4 lines
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).
Signature · 3 lines
Chris Larson - clarson at kergoth dot com Dedicated Engineer - MontaVista - clarson at mvista dot com Core Developer/Architect - TSLib, BitBake, OpenEmbedded, OpenZaurus
Quoted 9 lines · Chris Larson
Quoted 8 lines · Rod Whitby
Quoted 6 lines · Chris Larson
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.
Quoted 5 lines
Quoted 4 lines
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.
Quoted 5 lines · Khem Raj
Quoted 2 lines · Rod Whitby
Quoted 1 line
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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Khem Raj schreef:
Quoted 9 lines · Chris Larson
Quoted 8 lines · Rod Whitby
Quoted 7 lines
Quoted 6 lines · Chris Larson
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.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
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
- --
[email protected] will go go away in december 2007, please use [email protected] instead.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFHWcGiMkyGM64RGpERAiAnAJ0ZHNyCyLjmRlRjXnIi9bWxfWIUGACfTwip qPwF61BdfukK/IxyHKWNJ5o=
=lxi4
-----END PGP SIGNATURE-----
Hello Koen,
Quoted 18 lines · you
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Khem Raj schreef:
Quoted 14 lines · Chris Larson
Quoted 12 lines · Rod Whitby
Quoted 11 lines
Quoted 6 lines · Chris Larson
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'.
Quoted 8 lines
Quoted 2 lines
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 ;-).
Quoted 3 lines
regards,
Koen
Signature · 2 lines
Best regards, Paul mailto:[email protected]