On Thu, Mar 12, 2009 at 07:25:10PM +0100, Christer Weinigel wrote:
You didn't read what I wrote very closely, I specifically said you have to dig
or host to do name lookups, specifically because of the issues with getXbyY.
When I said I built busybox in 800k (400k compressed), That was with glibc
statically linked. End of story. You're making up problems here, its not that
big a deal. I've not looked at the figures lately, but how much space does the
dhcp client and nfs root code take up in the kernel these days? I imagine that
what you save there by turning those off will be a good start in offsetting the
space you need for an initramfs.
I never said you can't still use that command line option to implement this
solution, you just have to parse it in userspace.
You yourself called it a hack in your last note (and I agree). And, as you're
finding out, the DHCP and NFS code in the kernel is in fact useless if you can't
assign a mac address to your ethernet interface, which in turn you cant do
unless you introduce some unacceptable code to the kernel.
So, If I read this right:
1) You have undertaken hobby projects for which you have investigated,
implemented and learned how to implement an initramfs, and feel comfortable
doing so.
2) You have a work project for which an initramfs would be helpful and based on
this thread, required (assuming you don't want to carry extra driver patches on
your own)
3) Your knoweldge from (1) is insufficient to implement the required initramfs in (2)
in (assuming your example time frame) 1 week?
Seriously?
Ok, well, thats a start. Have you considered making some non-essential
functions modular, and storing those functions on your NFS root? That would
give you the additional space to store an initramfs, which you can use to mout
and pivot to your nfs root, which then gives you access to the additional
modules. Thats not hard to do at all.
I sympathize with you. This is exactly what soured me on embedded work a few
years back. Embedded shops are forever compromising doing things correctly in
the name of time and schedules, never paying any heed to the possibility that
taking extra time to do things in an agreed upon, organized and standard fashion
might pay off for them in the long run. I encourage you to tell your management
that taking the time to develop this would let you save this time over and over
again in subsequnt probjects. Track how much time you take keeping up with
that mac address assignment patch as you update kernels. I had to do that
several times on various projects, and sometimes it helped (although usually it
just made me mad :) )
Neil
/Christer
--
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