* Embedded initrd with static programs
@ 2003-12-23 15:04 Ashwin Bihari
2003-12-23 15:56 ` Wolfgang Denk
0 siblings, 1 reply; 6+ messages in thread
From: Ashwin Bihari @ 2003-12-23 15:04 UTC (permalink / raw)
To: linuxppc-embedded
Greetings,
I'm trying to create a initial ramdisk that will get loaded to perform the
following actions.
With a new (empty) hard drive, create the partitions according to the scheme
chosen, format the partitions as EXT3, get a tarball containing the root
file system, uncompress this tarball and then reboot.
Since I need to create the partitions non-interactively, I've found "sfdisk"
from the util-linux package to do this job for me. For the formatting of the
partitions as EXT3, I'm using "mke2fs" from the e2fsprogs package. The
problem is that programs contained with these two packages are all
dynamically linked.
I found the source for e2fsprogs, but I don't see a setting to be able to
compile the programs statically.
I'm using Busybox compiled statically to provide the basic Unix command set.
So basically I need the other two programs also statically compiled, does
anyone of any idea on how I would go about this??
Regards.
~Ashwin
_________________________________________________________________
Enjoy the holiday season with great tips from MSN.
http://special.msn.com/network/happyholidays.armx
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Embedded initrd with static programs
2003-12-23 15:04 Ashwin Bihari
@ 2003-12-23 15:56 ` Wolfgang Denk
0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2003-12-23 15:56 UTC (permalink / raw)
To: Ashwin Bihari; +Cc: linuxppc-embedded
In message <BAY9-F37onNzN9rvBmW0007186b@hotmail.com> you wrote:
>
> So basically I need the other two programs also statically compiled, does
> anyone of any idea on how I would go about this??
Edit the relevant Makefile and add "-static" to the compiler options?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
"This is a test of the Emergency Broadcast System. If this had been an
actual emergency, do you really think we'd stick around to tell you?"
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Embedded initrd with static programs
@ 2003-12-23 16:00 Ashwin Bihari
0 siblings, 0 replies; 6+ messages in thread
From: Ashwin Bihari @ 2003-12-23 16:00 UTC (permalink / raw)
To: wd; +Cc: linuxppc-embedded
> >
> > So basically I need the other two programs also statically compiled,
>does
> > anyone of any idea on how I would go about this??
>
>Edit the relevant Makefile and add "-static" to the compiler options?
>
>Best regards,
>
>Wolfgang Denk
>
Wolfgang,
I finally found the sources for this sucker and have got the e2fsprogs
statically compiled, working on util-linux. Thanks. :)
_________________________________________________________________
Enjoy the holiday season with great tips from MSN.
http://special.msn.com/network/happyholidays.armx
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Embedded initrd with static programs
@ 2003-12-23 16:06 ARIBAUD Albert
2003-12-23 16:35 ` Martin Hicks
0 siblings, 1 reply; 6+ messages in thread
From: ARIBAUD Albert @ 2003-12-23 16:06 UTC (permalink / raw)
To: linuxppc-embedded
> So basically I need the other two programs also statically
> compiled, does anyone of any idea on how I would go about
> this??
Mybe I am missing something, but why not use the dynamically
linked versions and include the necessary libraries in the
initial ramdisk?
Albert.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Embedded initrd with static programs
2003-12-23 16:06 Embedded initrd with static programs ARIBAUD Albert
@ 2003-12-23 16:35 ` Martin Hicks
0 siblings, 0 replies; 6+ messages in thread
From: Martin Hicks @ 2003-12-23 16:35 UTC (permalink / raw)
To: ARIBAUD Albert; +Cc: linuxppc-embedded
On Tue, Dec 23, 2003 at 05:06:55PM +0100, ARIBAUD Albert wrote:
>
> > So basically I need the other two programs also statically
> > compiled, does anyone of any idea on how I would go about
> > this??
>
> Mybe I am missing something, but why not use the dynamically
> linked versions and include the necessary libraries in the
> initial ramdisk?
It really depends on how many apps you're including. If you only need
one app then copying all of glibc in is a waste. If you've got a bunch
of apps then it's probably better to copy on the shared libs.
On the other hand, if you can get all your apps to compile against
uClibc (or one of the other small libs replacements) then you'll be much
better off. glibc is huge.
mh
--
Martin Hicks || mort@bork.org || PGP/GnuPG: 0x4C7F2BEE
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Embedded initrd with static programs
@ 2003-12-23 16:46 Ashwin Bihari
0 siblings, 0 replies; 6+ messages in thread
From: Ashwin Bihari @ 2003-12-23 16:46 UTC (permalink / raw)
To: mort, a.aribaud; +Cc: linuxppc-embedded
>It really depends on how many apps you're including. If you only need
>one app then copying all of glibc in is a waste. If you've got a bunch
>of apps then it's probably better to copy on the shared libs.
>
>On the other hand, if you can get all your apps to compile against
>uClibc (or one of the other small libs replacements) then you'll be much
>better off. glibc is huge.
>
>mh
I only intend to use a very small set of tools to accomplish what I want to.
So I figured I didn't need to bother with the shared libraries. And having
finally gotten all the stuff I needed statically compiled and working, I'm
pretty happy with it. :)
_________________________________________________________________
Get dial-up Internet access now with our best offer: 6 months @$9.95/month!
http://join.msn.com/?page=dept/dialup
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-12-23 16:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-23 16:06 Embedded initrd with static programs ARIBAUD Albert
2003-12-23 16:35 ` Martin Hicks
-- strict thread matches above, loose matches on Subject: below --
2003-12-23 16:46 Ashwin Bihari
2003-12-23 16:00 Ashwin Bihari
2003-12-23 15:04 Ashwin Bihari
2003-12-23 15:56 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).