On Thu, Mar 12, 2009 at 03:21:47PM +0100, Christer Weinigel wrote:
You do have a generic way, via the initramfs. Works great, every time.
If you have an MTD driver ported, then it is available if you use an initramfs.
If you don't have an initramfs, you can still use your kernel command line
mechanism to set your network interface MAC address.
Then dont, if you are only guaranteed one interface, use the kernel command
line to specify the mac and set it with ifconfig from an initramfs.
What exactly is so difficult about cpio-ing up an initramfs to do this work with
sed and ifconfig? You make it sound like its an impossible barrier. Its really
quite simple
You've convinced yourself that theres no other way to do this. What exactly is
your opposition to an initramfs? I just built busybox with ifconfig, sed and ash
in a static binary. The whole thing comes out at 800kb, and is compressed to
400kb. You could probably save an extra hundred kb or so if you went with msh
instead or something. Are you quite sure that your NV storage for your kernel
doesn't have an extra 400kb to spare for an initramfs? I assume that it must,
since eventually you'll need an initramfs anyway to run the production variant
of the system your building (I imagine they won't all ship with an NFS server in
tow :) ).
Neil
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html