* [gentoo-dev] Re: [geRe: [gentoo-dev] 'submerge' was Re: Re: [gentoo-dev] Gentoo Embedded
@ 2003-10-29 15:06 Vano D
2003-10-29 16:02 ` [gentoo-dev] " Vano D
0 siblings, 1 reply; 7+ messages in thread
From: Vano D @ 2003-10-29 15:06 UTC (permalink / raw
To: gentoo-dev
> Turns out I had a lot of extra time at work today... ;-)un.
Dont you love it when you have extra time to do stuff you like ? :)
> like I said before, a basic system can be done with:
>
> sys-kernel/linux-headers
> glibc
> =busybox-0.60.5-r1
> =gawk-3.1.2-r3
> =baselayout-1.8.6.8-r1
> tinylogin
Will look at submerge as soon as I get some time. Looks very interesting
from what I saw.
I already tried to create a small system (got carried away, my goal
wasnt an embedded system.. but anyway) thanks to the ideas from this
thread. And I am happy to say that I managed to get an apparently
functional system with the following:
baselayout-1.8.6.10-r1.tbz2
bash-2.05b-r7.tbz2
busybox-0.60.3-r1.tbz2
devfsd-1.3.25-r3.tbz2
e2fsprogs-1.33.tbz2
gawk-3.1.3.tbz2
glibc-2.3.2-r1.tbz2
tinylogin-1.2.tbz2
The whole thing occupying 16 megs!
What is interesting is that I did not do any modifications on the init
scripts that come with gentoo (baselayout) apart from modifying inittab
to launch getty instead of agetty. The only thing which doesnt seem to
work are Gentoo's runlevels, but they do get exectued, everything runs,
but errors pop out (but they work). What seems missing are: egrep,
hostname and install. Probably having these will get the whole thing
working right out of the (gentoo) box. Obvoiusly for a true embedded
system you dont want to go with gentoo's init scripts as was mentioned
before, but it is interesting that it still does more or less work!
Another note, I removed all
doc/man/info/include/locale/terminfo/zoneinfo etc.. I could get my hands
on (if you can think of more letme know :).
Just for sake of completeness, I did the busybox and tinylogin symlinks
manually and after some fighting around got them right (some stuff need
to be in /sbin some in /bin).
On another note, I went a bit furter and installed:
gpm-1.20.1.tbz2
ncurses-5.3-r2.tbz2
links-2.1_pre9.tbz2
Getting a working browser adding an additional 3 megs (didnt know
ncurses was so big) making the whole thing 19 megs.
Obviously I am using bash, devfsd, gawk and e2fsprogs which can be made
irrelevant if proper init scripts are used (I threw in devfsd just in
case, probably it is not even needed - At the end I just did a "cp -a
/dev/* chroot/dev/")
Now what can be interesting is to go with uglibc instead of glibc.
I guess its time to get one of those USB sticks.
Thanks David and all the rest for the ideas. It is really fascinating to
see how easy it is to create small customized systems with Gentoo.
Cheers,
Vano.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-dev] Re: 'submerge' was Re: Re: [gentoo-dev] Gentoo Embedded
2003-10-29 15:06 [gentoo-dev] Re: [geRe: [gentoo-dev] 'submerge' was Re: Re: [gentoo-dev] Gentoo Embedded Vano D
@ 2003-10-29 16:02 ` Vano D
2003-10-29 17:31 ` C. Brewer
0 siblings, 1 reply; 7+ messages in thread
From: Vano D @ 2003-10-29 16:02 UTC (permalink / raw
To: gentoo-dev
On Wed, 2003-10-29 at 16:06, Vano D wrote:
> baselayout-1.8.6.10-r1.tbz2
> bash-2.05b-r7.tbz2
> busybox-0.60.3-r1.tbz2
> devfsd-1.3.25-r3.tbz2
> e2fsprogs-1.33.tbz2
> gawk-3.1.3.tbz2
> glibc-2.3.2-r1.tbz2
> tinylogin-1.2.tbz2
>
> The whole thing occupying 16 megs!
...
> The only thing which doesnt seem to
> work are Gentoo's runlevels, but they do get exectued, everything runs,
> but errors pop out (but they work). What seems missing are: egrep,
> hostname and install. Probably having these will get the whole thing
> working right out of the (gentoo) box.
I added:
net-tools-1.60-r7.tbz2
grep-2.5.1-r1.tbz2
coreutils-5.0-r3.tbz2
And now everything seems to be near 100% functional. Only two small
errors at boot related to runlevels, but runlevels are working 100%
or so it seems.
> On another note, I went a bit furter and installed:
>
> gpm-1.20.1.tbz2
> ncurses-5.3-r2.tbz2
> links-2.1_pre9.tbz2
>
> Getting a working browser adding an additional 3 megs (didnt know
> ncurses was so big) making the whole thing 19 megs.
>
The whole thing (with gpm, ncurses, links) is now 22 megs(if you dont
include gpm, nvurses and links its 3 megs less.. 19 megs for a base
system). Big for embedded but take in account that I only have made a
small change in the gentoo scripts. Apart from that change (change
agetty->getty in inittab) the rest is as it comes with baselayout.
Advantage is that you can make an embedded system with practically no
knowledge of embedded systems and in a few minutes!
I would love to see an effort into rolling out an embedded gentoo
baselayout.
Cheers,
Vano.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] Re: 'submerge' was Re: Re: [gentoo-dev] Gentoo Embedded
2003-10-29 16:02 ` [gentoo-dev] " Vano D
@ 2003-10-29 17:31 ` C. Brewer
2003-10-29 20:24 ` Vano D
0 siblings, 1 reply; 7+ messages in thread
From: C. Brewer @ 2003-10-29 17:31 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 641 bytes --]
On Wednesday 29 October 2003 8:02, Vano D wrote:
> The whole thing (with gpm, ncurses, links) is now 22 megs(if you dont
> include gpm, nvurses and links its 3 megs less.. 19 megs for a base
> system). Big for embedded but take in account that I only have made a
> small change in the gentoo scripts. Apart from that change (change
> agetty->getty in inittab) the rest is as it comes with baselayout.
Just out of curiousity, are these uncompressed binaries? Or have you employed
gzexe to lighten the size?
--
Chuck Brewer
Registered Linux User #284015
Get my gpg public key at pgp.mit.edu!! Encrypted e-mail preferred.
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] Re: 'submerge' was Re: Re: [gentoo-dev] Gentoo Embedded
2003-10-29 17:31 ` C. Brewer
@ 2003-10-29 20:24 ` Vano D
2003-10-29 21:02 ` Christian Gut
0 siblings, 1 reply; 7+ messages in thread
From: Vano D @ 2003-10-29 20:24 UTC (permalink / raw
To: gentoo-dev
On Wed, 2003-10-29 at 18:31, C. Brewer wrote:
> On Wednesday 29 October 2003 8:02, Vano D wrote:
>
> > The whole thing (with gpm, ncurses, links) is now 22 megs(if you dont
> > include gpm, nvurses and links its 3 megs less.. 19 megs for a base
> > system). Big for embedded but take in account that I only have made a
> > small change in the gentoo scripts. Apart from that change (change
> > agetty->getty in inittab) the rest is as it comes with baselayout.
>
> Just out of curiousity, are these uncompressed binaries? Or have you employed
> gzexe to lighten the size?
No compression. The only thing I did to them after creating the whole
thing was rm -Rf /usr/share/{doc,man,info,zoneinfo,terminfo} (if I
remember correctly).
But anyhow.. I am positive it can be made even smaller, by using less
binaries, cutting down on the baselayout or using a custom one
(slackware rc scripts come to mind) the reason for this is not that the
scripts take a lot of space, but they use some binaries and in my case
instead of I copy the binaries themselves I emerge the whole package the
binaries belong to. And course last but not least, using uglibc should
shrink the thing even more (but then incompatibility issues might arise
with some packages...)
Cheers,
Vano.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] Re: 'submerge' was Re: Re: [gentoo-dev] Gentoo Embedded
2003-10-29 20:24 ` Vano D
@ 2003-10-29 21:02 ` Christian Gut
2003-10-29 23:13 ` Vano D
0 siblings, 1 reply; 7+ messages in thread
From: Christian Gut @ 2003-10-29 21:02 UTC (permalink / raw
To: gentoo-dev; +Cc: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 778 bytes --]
On Mi, 2003-10-29 at 21:24, Vano D wrote:
> But anyhow.. I am positive it can be made even smaller, by using less
> binaries, cutting down on the baselayout or using a custom one
> (slackware rc scripts come to mind) the reason for this is not that the
> scripts take a lot of space, but they use some binaries and in my case
> instead of I copy the binaries themselves I emerge the whole package the
> binaries belong to. And course last but not least, using uglibc should
> shrink the thing even more (but then incompatibility issues might arise
> with some packages...)
How did you build this thing, just a simple chroot env and unpacking the
precompiled packages? Then kernel and adding it to the bootloader or
how?
--
Christian Gut <cycloon@is-root.org>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] Re: 'submerge' was Re: Re: [gentoo-dev] Gentoo Embedded
2003-10-29 21:02 ` Christian Gut
@ 2003-10-29 23:13 ` Vano D
2003-10-30 5:52 ` Christian Gut
0 siblings, 1 reply; 7+ messages in thread
From: Vano D @ 2003-10-29 23:13 UTC (permalink / raw
To: gentoo-dev
On Wed, 2003-10-29 at 22:02, Christian Gut wrote:
> On Mi, 2003-10-29 at 21:24, Vano D wrote:
> > But anyhow.. I am positive it can be made even smaller, by using less
> > binaries, cutting down on the baselayout or using a custom one
> > (slackware rc scripts come to mind) the reason for this is not that the
> > scripts take a lot of space, but they use some binaries and in my case
> > instead of I copy the binaries themselves I emerge the whole package the
> > binaries belong to. And course last but not least, using uglibc should
> > shrink the thing even more (but then incompatibility issues might arise
> > with some packages...)
>
> How did you build this thing, just a simple chroot env and unpacking the
> precompiled packages? Then kernel and adding it to the bootloader or
> how?
Just as you said it. But ofcourse the chroot is a clean empty dir. Also
you have to manually symlink the busybox and tinylogin (i.e. if you do
"ln -s /bin/busybox /bin/ls" when you run ls it runs "busybox ls". Busybox
is intelligent enough to know that it should run its ls implementation. So
you have to manually create all those symlinks) and also change inittab
to run getty instead of agetty (getty is a symlink to tinylogin).
Thats about it IIRC. Can't be easier.
Cheers,
Vano
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] Re: 'submerge' was Re: Re: [gentoo-dev] Gentoo Embedded
2003-10-29 23:13 ` Vano D
@ 2003-10-30 5:52 ` Christian Gut
0 siblings, 0 replies; 7+ messages in thread
From: Christian Gut @ 2003-10-30 5:52 UTC (permalink / raw
To: gentoo-dev; +Cc: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 615 bytes --]
On Do, 2003-10-30 at 00:13, Vano D wrote:
> Just as you said it. But ofcourse the chroot is a clean empty dir. Also
> you have to manually symlink the busybox and tinylogin (i.e. if you do
> "ln -s /bin/busybox /bin/ls" when you run ls it runs "busybox ls". Busybox
> is intelligent enough to know that it should run its ls implementation. So
> you have to manually create all those symlinks) and also change inittab
> to run getty instead of agetty (getty is a symlink to tinylogin).
thx.
> Thats about it IIRC. Can't be easier.
ack, sounds really great
--
Christian Gut <cycloon@is-root.org>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-10-30 5:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-29 15:06 [gentoo-dev] Re: [geRe: [gentoo-dev] 'submerge' was Re: Re: [gentoo-dev] Gentoo Embedded Vano D
2003-10-29 16:02 ` [gentoo-dev] " Vano D
2003-10-29 17:31 ` C. Brewer
2003-10-29 20:24 ` Vano D
2003-10-29 21:02 ` Christian Gut
2003-10-29 23:13 ` Vano D
2003-10-30 5:52 ` Christian Gut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox