public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] FAQ / How To?
@ 2006-01-20 15:55 Dennis Taylor
  2006-01-20 16:16 ` Joshua ChaitinPollak
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Dennis Taylor @ 2006-01-20 15:55 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 576 bytes --]

I have tried various ways of building a root fs with uClibc, but to no
avail.  I have monitored this list long enough to know that someone out
there has done it.  I need to do it for and X86 target that must fit in
about 1.5 MB of flash that gets copied to RAM and started.


The "out of the box" configuration I linked to from the uClibc site
fails in various ways.  I like the Gentoo way of doing things, but the
HOWTO link I saved a while back does not work.

Any pointers to documents that would help me succeed would be greatly
appreciated. 

Dennis Taylor

[-- Attachment #2: Type: text/html, Size: 1083 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-embedded] FAQ / How To?
  2006-01-20 15:55 [gentoo-embedded] FAQ / How To? Dennis Taylor
@ 2006-01-20 16:16 ` Joshua ChaitinPollak
  2006-01-27  1:46   ` Ow Mun Heng
  2006-01-23 17:24 ` solar
  2006-01-24  7:13 ` Stanisław Raczyński
  2 siblings, 1 reply; 14+ messages in thread
From: Joshua ChaitinPollak @ 2006-01-20 16:16 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]

This is what I use:

http://www.bulah.com/embeddedgentoo.html

My installation is 6 mb, since I'm installing into 32 mb, I haven't  
tried too hard to pair it down. I'm installing on Soekris net4526  
boards. Keep in mind there are somethings you can do after you build  
you filesystem with Gentoo to make the install even smaller:

Remove /usr/include
Remove all .keep files
Audit the rest of the file system for unnecessary files, expecially / 
etc and /var

I have a series of scripts I've written to automate the process  
described in the above howto, and I would like to publish them  
shortly, but please don't hold your breath. :)

-Josh

On Jan 20, 2006, at 10:55 AM, Dennis Taylor wrote:

> I have tried various ways of building a root fs with uClibc, but to  
> no avail.  I have monitored this list long enough to know that  
> someone out there has done it.  I need to do it for and X86 target  
> that must fit in about 1.5 MB of flash that gets copied to RAM and  
> started.
>
>
> The "out of the box" configuration I linked to from the uClibc site  
> fails in various ways.  I like the Gentoo way of doing things, but  
> the HOWTO link I saved a while back does not work.
>
> Any pointers to documents that would help me succeed would be  
> greatly appreciated.
>
> Dennis Taylor
>

-- 
Joshua ChaitinPollak
Software Engineer
Kiva Systems



[-- Attachment #2: Type: text/html, Size: 2212 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [gentoo-embedded] FAQ / How To?
@ 2006-01-20 16:23 Dennis Taylor
  0 siblings, 0 replies; 14+ messages in thread
From: Dennis Taylor @ 2006-01-20 16:23 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 1600 bytes --]

Thanks.

________________________________

From: Joshua ChaitinPollak [mailto:jpollak@kivasystems.com] 
Sent: Friday, January 20, 2006 11:16 AM
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] FAQ / How To?


This is what I use: 

http://www.bulah.com/embeddedgentoo.html

My installation is 6 mb, since I'm installing into 32 mb, I haven't
tried too hard to pair it down. I'm installing on Soekris net4526
boards. Keep in mind there are somethings you can do after you build you
filesystem with Gentoo to make the install even smaller:

Remove /usr/include
Remove all .keep files
Audit the rest of the file system for unnecessary files, expecially /etc
and /var

I have a series of scripts I've written to automate the process
described in the above howto, and I would like to publish them shortly,
but please don't hold your breath. :)

-Josh

On Jan 20, 2006, at 10:55 AM, Dennis Taylor wrote:


	I have tried various ways of building a root fs with uClibc, but
to no avail.  I have monitored this list long enough to know that
someone out there has done it.  I need to do it for and X86 target that
must fit in about 1.5 MB of flash that gets copied to RAM and started.


	The "out of the box" configuration I linked to from the uClibc
site fails in various ways.  I like the Gentoo way of doing things, but
the HOWTO link I saved a while back does not work.

	Any pointers to documents that would help me succeed would be
greatly appreciated. 

	Dennis Taylor 


-- 
Joshua ChaitinPollak
Software Engineer
Kiva Systems



[-- Attachment #2: Type: text/html, Size: 2998 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-embedded] FAQ / How To?
  2006-01-20 15:55 [gentoo-embedded] FAQ / How To? Dennis Taylor
  2006-01-20 16:16 ` Joshua ChaitinPollak
@ 2006-01-23 17:24 ` solar
  2006-01-24  7:13 ` Stanisław Raczyński
  2 siblings, 0 replies; 14+ messages in thread
From: solar @ 2006-01-23 17:24 UTC (permalink / raw
  To: gentoo-embedded

On Fri, 2006-01-20 at 10:55 -0500, Dennis Taylor wrote:
> I have tried various ways of building a root fs with uClibc, but to no
> avail.  I have monitored this list long enough to know that someone
> out there has done it.  I need to do it for and X86 target that must
> fit in about 1.5 MB of flash that gets copied to RAM and started.
> 
> 
> The "out of the box" configuration I linked to from the uClibc site
> fails in various ways.  I like the Gentoo way of doing things, but the
> HOWTO link I saved a while back does not work.
> 
> Any pointers to documents that would help me succeed would be greatly
> appreciated. 


Sorry no docs but knowing your space constraints 


cat /etc/portage/root_install_mask 
*.a
/usr/include
/usr/lib/*.o
/bin/bb

Or just export what you want to mask via the INSTALL_MASK= env var.

emerge -b busybox uclibc
emerge -B baselayout-lite
ROOT=/dev/shm/ROOT \
 emerge -KO uclibc busybox baselayout-lite

# let busybox set up it's symlinks.
mount --bind /proc /dev/shm/ROOT/proc
chroot /dev/shm/ROOT/ /bin/sh --login
busybox --install -s
exit
umount /dev/shm/ROOT/proc

# these three pkgs should be your base for everything else you need
todo.

good luck and dont forget to setup your inittab/fstab/init scripts.

-- 
solar <solar@gentoo.org>
Gentoo Linux

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [gentoo-embedded] FAQ / How To?
@ 2006-01-23 18:25 Dennis Taylor
  0 siblings, 0 replies; 14+ messages in thread
From: Dennis Taylor @ 2006-01-23 18:25 UTC (permalink / raw
  To: gentoo-embedded

Thanks.  I may end up trying that because I am still having difficulty
using the reference I was first given. I will report to the whole list
if I learn anything meaningful.  My problem is that I am in a time
crunch, and I have not yet learned the Gentoo process well enough to
troubleshoot on my own.  We have a commercial tool that we paid high $
for that does seem to have the ability to use uclibc, and thus is way
bigger than I can tolerate in the onboard diagnostic tool. 

-----Original Message-----
From: solar [mailto:solar@gentoo.org] 
Sent: Monday, January 23, 2006 12:24 PM
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] FAQ / How To?

On Fri, 2006-01-20 at 10:55 -0500, Dennis Taylor wrote:
> I have tried various ways of building a root fs with uClibc, but to no

> avail.  I have monitored this list long enough to know that someone 
> out there has done it.  I need to do it for and X86 target that must 
> fit in about 1.5 MB of flash that gets copied to RAM and started.
> 
> 
> The "out of the box" configuration I linked to from the uClibc site 
> fails in various ways.  I like the Gentoo way of doing things, but the

> HOWTO link I saved a while back does not work.
> 
> Any pointers to documents that would help me succeed would be greatly 
> appreciated.


Sorry no docs but knowing your space constraints 


cat /etc/portage/root_install_mask
*.a
/usr/include
/usr/lib/*.o
/bin/bb

Or just export what you want to mask via the INSTALL_MASK= env var.

emerge -b busybox uclibc
emerge -B baselayout-lite
ROOT=/dev/shm/ROOT \
 emerge -KO uclibc busybox baselayout-lite

# let busybox set up it's symlinks.
mount --bind /proc /dev/shm/ROOT/proc
chroot /dev/shm/ROOT/ /bin/sh --login
busybox --install -s
exit
umount /dev/shm/ROOT/proc

# these three pkgs should be your base for everything else you need
todo.

good luck and dont forget to setup your inittab/fstab/init scripts.

--
solar <solar@gentoo.org>
Gentoo Linux

--
gentoo-embedded@gentoo.org mailing list




-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [gentoo-embedded] FAQ / How To?
@ 2006-01-23 18:28 Dennis Taylor
  2006-01-23 18:32 ` Heath Holcomb
  0 siblings, 1 reply; 14+ messages in thread
From: Dennis Taylor @ 2006-01-23 18:28 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 2109 bytes --]

Having followed the other link to
http://www.bulah.com/embedded-guide.html, which seems to be more up to
date, am still having problems.  At step 3 I get the following response.
 
clwsapp07 root # ROOT=/embedded_rootfs emerge -K uclibc
Calculating dependencies
!!! There are no packages available to satisfy: "uclibc"
!!! Either add a suitable binary package or compile from an ebuild.
 
I thought all the previous steps went OK.  Even some of the workarounds
seem to no longer be needed.  Any ideas?
 
 

________________________________

From: Joshua ChaitinPollak [mailto:jpollak@kivasystems.com] 
Sent: Friday, January 20, 2006 11:16 AM
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] FAQ / How To?


This is what I use: 

http://www.bulah.com/embeddedgentoo.html

My installation is 6 mb, since I'm installing into 32 mb, I haven't
tried too hard to pair it down. I'm installing on Soekris net4526
boards. Keep in mind there are somethings you can do after you build you
filesystem with Gentoo to make the install even smaller:

Remove /usr/include
Remove all .keep files
Audit the rest of the file system for unnecessary files, expecially /etc
and /var

I have a series of scripts I've written to automate the process
described in the above howto, and I would like to publish them shortly,
but please don't hold your breath. :)

-Josh

On Jan 20, 2006, at 10:55 AM, Dennis Taylor wrote:


	I have tried various ways of building a root fs with uClibc, but
to no avail.  I have monitored this list long enough to know that
someone out there has done it.  I need to do it for and X86 target that
must fit in about 1.5 MB of flash that gets copied to RAM and started.


	The "out of the box" configuration I linked to from the uClibc
site fails in various ways.  I like the Gentoo way of doing things, but
the HOWTO link I saved a while back does not work.

	Any pointers to documents that would help me succeed would be
greatly appreciated. 

	Dennis Taylor 


-- 
Joshua ChaitinPollak
Software Engineer
Kiva Systems



[-- Attachment #2: Type: text/html, Size: 4202 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-embedded] FAQ / How To?
  2006-01-23 18:28 Dennis Taylor
@ 2006-01-23 18:32 ` Heath Holcomb
  0 siblings, 0 replies; 14+ messages in thread
From: Heath Holcomb @ 2006-01-23 18:32 UTC (permalink / raw
  To: gentoo-embedded

I wrote the how-to.  I haven't built a system in several weeks, so portage has 
changed a bit (and ebuilds).  I plan on updating the how-to in a week or two, 
if I discover new problems (looks like there are some).

-- 
heath holcomb
liquidcable at bulah.com
www.bulah.com

On Monday 23 January 2006 12:28, Dennis Taylor wrote:
> Having followed the other link to
> http://www.bulah.com/embedded-guide.html, which seems to be more up to
> date, am still having problems.  At step 3 I get the following response.
>
> clwsapp07 root # ROOT=/embedded_rootfs emerge -K uclibc
> Calculating dependencies
> !!! There are no packages available to satisfy: "uclibc"
> !!! Either add a suitable binary package or compile from an ebuild.
>
> I thought all the previous steps went OK.  Even some of the workarounds
> seem to no longer be needed.  Any ideas?
>
>
>
> ________________________________
>
> From: Joshua ChaitinPollak [mailto:jpollak@kivasystems.com]
> Sent: Friday, January 20, 2006 11:16 AM
> To: gentoo-embedded@lists.gentoo.org
> Subject: Re: [gentoo-embedded] FAQ / How To?
>
>
> This is what I use:
>
> http://www.bulah.com/embeddedgentoo.html
>
> My installation is 6 mb, since I'm installing into 32 mb, I haven't
> tried too hard to pair it down. I'm installing on Soekris net4526
> boards. Keep in mind there are somethings you can do after you build you
> filesystem with Gentoo to make the install even smaller:
>
> Remove /usr/include
> Remove all .keep files
> Audit the rest of the file system for unnecessary files, expecially /etc
> and /var
>
> I have a series of scripts I've written to automate the process
> described in the above howto, and I would like to publish them shortly,
> but please don't hold your breath. :)
>
> -Josh
>
> On Jan 20, 2006, at 10:55 AM, Dennis Taylor wrote:
>
>
> 	I have tried various ways of building a root fs with uClibc, but
> to no avail.  I have monitored this list long enough to know that
> someone out there has done it.  I need to do it for and X86 target that
> must fit in about 1.5 MB of flash that gets copied to RAM and started.
>
>
> 	The "out of the box" configuration I linked to from the uClibc
> site fails in various ways.  I like the Gentoo way of doing things, but
> the HOWTO link I saved a while back does not work.
>
> 	Any pointers to documents that would help me succeed would be
> greatly appreciated.
>
> 	Dennis Taylor

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [gentoo-embedded] FAQ / How To?
@ 2006-01-23 20:45 Dennis Taylor
  2006-01-23 20:48 ` Heath Holcomb
  2006-01-23 21:20 ` solar
  0 siblings, 2 replies; 14+ messages in thread
From: Dennis Taylor @ 2006-01-23 20:45 UTC (permalink / raw
  To: gentoo-embedded

Well, I blew that one.  I decided to start over just in case I had
missed something.  Unfortunately, I failed to umount portage before I
did rm -rf on the staging area.  Now, I do not have /usr/portage.  Some
days are like that. :-(

Does anyone know if it is possible to recover just portage without
starting all over?

-----Original Message-----
From: Heath Holcomb [mailto:liquidcable@bulah.com] 
Sent: Monday, January 23, 2006 1:32 PM
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] FAQ / How To?

I wrote the how-to.  I haven't built a system in several weeks, so
portage has changed a bit (and ebuilds).  I plan on updating the how-to
in a week or two, if I discover new problems (looks like there are
some).

--
heath holcomb
liquidcable at bulah.com
www.bulah.com

On Monday 23 January 2006 12:28, Dennis Taylor wrote:
> Having followed the other link to
> http://www.bulah.com/embedded-guide.html, which seems to be more up to

> date, am still having problems.  At step 3 I get the following
response.
>
> clwsapp07 root # ROOT=/embedded_rootfs emerge -K uclibc Calculating 
> dependencies !!! There are no packages available to satisfy: "uclibc"
> !!! Either add a suitable binary package or compile from an ebuild.
>
> I thought all the previous steps went OK.  Even some of the 
> workarounds seem to no longer be needed.  Any ideas?
>
>
>
> ________________________________
>
> From: Joshua ChaitinPollak [mailto:jpollak@kivasystems.com]
> Sent: Friday, January 20, 2006 11:16 AM
> To: gentoo-embedded@lists.gentoo.org
> Subject: Re: [gentoo-embedded] FAQ / How To?
>
>
> This is what I use:
>
> http://www.bulah.com/embeddedgentoo.html
>
> My installation is 6 mb, since I'm installing into 32 mb, I haven't 
> tried too hard to pair it down. I'm installing on Soekris net4526 
> boards. Keep in mind there are somethings you can do after you build 
> you filesystem with Gentoo to make the install even smaller:
>
> Remove /usr/include
> Remove all .keep files
> Audit the rest of the file system for unnecessary files, expecially 
> /etc and /var
>
> I have a series of scripts I've written to automate the process 
> described in the above howto, and I would like to publish them 
> shortly, but please don't hold your breath. :)
>
> -Josh
>
> On Jan 20, 2006, at 10:55 AM, Dennis Taylor wrote:
>
>
> 	I have tried various ways of building a root fs with uClibc, but
to 
> no avail.  I have monitored this list long enough to know that someone

> out there has done it.  I need to do it for and X86 target that must 
> fit in about 1.5 MB of flash that gets copied to RAM and started.
>
>
> 	The "out of the box" configuration I linked to from the uClibc
site 
> fails in various ways.  I like the Gentoo way of doing things, but the

> HOWTO link I saved a while back does not work.
>
> 	Any pointers to documents that would help me succeed would be
greatly 
> appreciated.
>
> 	Dennis Taylor

--
gentoo-embedded@gentoo.org mailing list




-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-embedded] FAQ / How To?
  2006-01-23 20:45 Dennis Taylor
@ 2006-01-23 20:48 ` Heath Holcomb
  2006-01-23 21:20 ` solar
  1 sibling, 0 replies; 14+ messages in thread
From: Heath Holcomb @ 2006-01-23 20:48 UTC (permalink / raw
  To: gentoo-embedded

I think you can just "emerge --sync", right?


On Monday 23 January 2006 02:45, Dennis Taylor wrote:
> Well, I blew that one.  I decided to start over just in case I had
> missed something.  Unfortunately, I failed to umount portage before I
> did rm -rf on the staging area.  Now, I do not have /usr/portage.  Some
> days are like that. :-(
>
> Does anyone know if it is possible to recover just portage without
> starting all over?
>
> -----Original Message-----
> From: Heath Holcomb [mailto:liquidcable@bulah.com]
> Sent: Monday, January 23, 2006 1:32 PM
> To: gentoo-embedded@lists.gentoo.org
> Subject: Re: [gentoo-embedded] FAQ / How To?
>
> I wrote the how-to.  I haven't built a system in several weeks, so
> portage has changed a bit (and ebuilds).  I plan on updating the how-to
> in a week or two, if I discover new problems (looks like there are
> some).
>
> --
> heath holcomb
> liquidcable at bulah.com
> www.bulah.com
>
> On Monday 23 January 2006 12:28, Dennis Taylor wrote:
> > Having followed the other link to
> > http://www.bulah.com/embedded-guide.html, which seems to be more up to
> >
> > date, am still having problems.  At step 3 I get the following
>
> response.
>
> > clwsapp07 root # ROOT=/embedded_rootfs emerge -K uclibc Calculating
> > dependencies !!! There are no packages available to satisfy: "uclibc"
> > !!! Either add a suitable binary package or compile from an ebuild.
> >
> > I thought all the previous steps went OK.  Even some of the
> > workarounds seem to no longer be needed.  Any ideas?
> >
> >
> >
> > ________________________________
> >
> > From: Joshua ChaitinPollak [mailto:jpollak@kivasystems.com]
> > Sent: Friday, January 20, 2006 11:16 AM
> > To: gentoo-embedded@lists.gentoo.org
> > Subject: Re: [gentoo-embedded] FAQ / How To?
> >
> >
> > This is what I use:
> >
> > http://www.bulah.com/embeddedgentoo.html
> >
> > My installation is 6 mb, since I'm installing into 32 mb, I haven't
> > tried too hard to pair it down. I'm installing on Soekris net4526
> > boards. Keep in mind there are somethings you can do after you build
> > you filesystem with Gentoo to make the install even smaller:
> >
> > Remove /usr/include
> > Remove all .keep files
> > Audit the rest of the file system for unnecessary files, expecially
> > /etc and /var
> >
> > I have a series of scripts I've written to automate the process
> > described in the above howto, and I would like to publish them
> > shortly, but please don't hold your breath. :)
> >
> > -Josh
> >
> > On Jan 20, 2006, at 10:55 AM, Dennis Taylor wrote:
> >
> >
> > 	I have tried various ways of building a root fs with uClibc, but
>
> to
>
> > no avail.  I have monitored this list long enough to know that someone
> >
> > out there has done it.  I need to do it for and X86 target that must
> > fit in about 1.5 MB of flash that gets copied to RAM and started.
> >
> >
> > 	The "out of the box" configuration I linked to from the uClibc
>
> site
>
> > fails in various ways.  I like the Gentoo way of doing things, but the
> >
> > HOWTO link I saved a while back does not work.
> >
> > 	Any pointers to documents that would help me succeed would be
>
> greatly
>
> > appreciated.
> >
> > 	Dennis Taylor
>
> --
> gentoo-embedded@gentoo.org mailing list

-- 
heath holcomb
liquidcable at bulah.com
www.bulah.com
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [gentoo-embedded] FAQ / How To?
  2006-01-23 20:45 Dennis Taylor
  2006-01-23 20:48 ` Heath Holcomb
@ 2006-01-23 21:20 ` solar
  2006-01-23 21:38   ` Joshua ChaitinPollak
  1 sibling, 1 reply; 14+ messages in thread
From: solar @ 2006-01-23 21:20 UTC (permalink / raw
  To: gentoo-embedded

Please stop creating a brand new thread for every post when it's really 
a RE: to an existing thread. If it's your email client doing it then 
please install a functional one.


On Mon, 2006-01-23 at 15:45 -0500, Dennis Taylor wrote:
> Well, I blew that one.  I decided to start over just in case I had
> missed something.  Unfortunately, I failed to umount portage before I
> did rm -rf on the staging area.  Now, I do not have /usr/portage.  Some
> days are like that. :-(
> 
> Does anyone know if it is possible to recover just portage without
> starting all over?
> 
> -----Original Message-----
> From: Heath Holcomb [mailto:liquidcable@bulah.com] 
> Sent: Monday, January 23, 2006 1:32 PM
> To: gentoo-embedded@lists.gentoo.org
> Subject: Re: [gentoo-embedded] FAQ / How To?
> 
> I wrote the how-to.  I haven't built a system in several weeks, so
> portage has changed a bit (and ebuilds).  I plan on updating the how-to
> in a week or two, if I discover new problems (looks like there are
> some).
> 
> --
> heath holcomb
> liquidcable at bulah.com
> www.bulah.com
> 
> On Monday 23 January 2006 12:28, Dennis Taylor wrote:
> > Having followed the other link to
> > http://www.bulah.com/embedded-guide.html, which seems to be more up to
> 
> > date, am still having problems.  At step 3 I get the following
> response.
> >
> > clwsapp07 root # ROOT=/embedded_rootfs emerge -K uclibc Calculating 
> > dependencies !!! There are no packages available to satisfy: "uclibc"
> > !!! Either add a suitable binary package or compile from an ebuild.
> >
> > I thought all the previous steps went OK.  Even some of the 
> > workarounds seem to no longer be needed.  Any ideas?
> >
> >
> >
> > ________________________________
> >
> > From: Joshua ChaitinPollak [mailto:jpollak@kivasystems.com]
> > Sent: Friday, January 20, 2006 11:16 AM
> > To: gentoo-embedded@lists.gentoo.org
> > Subject: Re: [gentoo-embedded] FAQ / How To?
> >
> >
> > This is what I use:
> >
> > http://www.bulah.com/embeddedgentoo.html
> >
> > My installation is 6 mb, since I'm installing into 32 mb, I haven't 
> > tried too hard to pair it down. I'm installing on Soekris net4526 
> > boards. Keep in mind there are somethings you can do after you build 
> > you filesystem with Gentoo to make the install even smaller:
> >
> > Remove /usr/include
> > Remove all .keep files
> > Audit the rest of the file system for unnecessary files, expecially 
> > /etc and /var
> >
> > I have a series of scripts I've written to automate the process 
> > described in the above howto, and I would like to publish them 
> > shortly, but please don't hold your breath. :)
> >
> > -Josh
> >
> > On Jan 20, 2006, at 10:55 AM, Dennis Taylor wrote:
> >
> >
> > 	I have tried various ways of building a root fs with uClibc, but
> to 
> > no avail.  I have monitored this list long enough to know that someone
> 
> > out there has done it.  I need to do it for and X86 target that must 
> > fit in about 1.5 MB of flash that gets copied to RAM and started.
> >
> >
> > 	The "out of the box" configuration I linked to from the uClibc
> site 
> > fails in various ways.  I like the Gentoo way of doing things, but the
> 
> > HOWTO link I saved a while back does not work.
> >
> > 	Any pointers to documents that would help me succeed would be
> greatly 
> > appreciated.
> >
> > 	Dennis Taylor
> 
> --
> gentoo-embedded@gentoo.org mailing list
> 
> 
> 
> 
-- 
solar <solar@gentoo.org>
Gentoo Linux

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-embedded] FAQ / How To?
  2006-01-23 21:20 ` solar
@ 2006-01-23 21:38   ` Joshua ChaitinPollak
  0 siblings, 0 replies; 14+ messages in thread
From: Joshua ChaitinPollak @ 2006-01-23 21:38 UTC (permalink / raw
  To: gentoo-embedded

Are you sure it isn't your email client that is broken? My email  
client threaded all of these messages properly.

I blew away my /usr/portage a few times too and asked for solutions,  
but I didn't get any I really liked. For now, I use this shell script  
to chroot. I have a few scripts that call this script, and if you  
press Ctrl-C while the script is running, you'll safely be kicked  
out, and if you run this script without parameters you'll get a  
command line that will clean up when you exit.


#!/bin/sh
#
# ./bin/chroot_devfs
#

function absname {
   if [ -d "$1" ] ; then   # Only a directory name.
     dir="$1"
     unset file
   elif [ -f "$1" ] ; then # Strip off and save the filename.
     dir=$(dirname "$1")
     file="/"$(basename "$1")
   else
     # The file did not exist.
     # Return null string as error.
     echo
     return 1
   fi

   # Change to the directory and display the absolute pathname.
   cd "$dir"  > /dev/null
   return=${PWD}${file}
}

absname $0
FULLPATH=$return
BASEDIR=`dirname $FULLPATH`/..

source ${BASEDIR}/etc/devel_env.conf

if [ -n "$1" ]
then
   CHROOT_CMD="$@"
#  shift
#  OPTS="$@"
   CMD="/bin/bash --login -c"
else
   CHROOT_CMD="-i"
   CMD="/bin/bash --login"
fi

echo ${CMD}

trap "umount ${DEVFS_PATH}/proc/ ; umount ${DEVFS_PATH}/usr/portage;  
exit" 2 3 15

mount --bind /proc ${DEVFS_PATH}/proc/
mount --bind /usr/portage ${DEVFS_PATH}/usr/portage

chroot ${DEVFS_PATH} ${CMD} "${CHROOT_CMD}"

umount ${DEVFS_PATH}/proc/
umount ${DEVFS_PATH}/usr/portage

# Reset the traps
trap '-' 2 3 15


On Jan 23, 2006, at 4:20 PM, solar wrote:

> Please stop creating a brand new thread for every post when it's  
> really
> a RE: to an existing thread. If it's your email client doing it then
> please install a functional one.
>
>
> On Mon, 2006-01-23 at 15:45 -0500, Dennis Taylor wrote:
>> Well, I blew that one.  I decided to start over just in case I had
>> missed something.  Unfortunately, I failed to umount portage before I
>> did rm -rf on the staging area.  Now, I do not have /usr/portage.   
>> Some
>> days are like that. :-(
>>
>> Does anyone know if it is possible to recover just portage without
>> starting all over?
>>
>> -----Original Message-----
>> From: Heath Holcomb [mailto:liquidcable@bulah.com]
>> Sent: Monday, January 23, 2006 1:32 PM
>> To: gentoo-embedded@lists.gentoo.org
>> Subject: Re: [gentoo-embedded] FAQ / How To?
>>
>> I wrote the how-to.  I haven't built a system in several weeks, so
>> portage has changed a bit (and ebuilds).  I plan on updating the  
>> how-to
>> in a week or two, if I discover new problems (looks like there are
>> some).
>>
>> --
>> heath holcomb
>> liquidcable at bulah.com
>> www.bulah.com
>>
>> On Monday 23 January 2006 12:28, Dennis Taylor wrote:
>>> Having followed the other link to
>>> http://www.bulah.com/embedded-guide.html, which seems to be more  
>>> up to
>>
>>> date, am still having problems.  At step 3 I get the following
>> response.
>>>
>>> clwsapp07 root # ROOT=/embedded_rootfs emerge -K uclibc Calculating
>>> dependencies !!! There are no packages available to satisfy:  
>>> "uclibc"
>>> !!! Either add a suitable binary package or compile from an ebuild.
>>>
>>> I thought all the previous steps went OK.  Even some of the
>>> workarounds seem to no longer be needed.  Any ideas?
>>>
>>>
>>>
>>> ________________________________
>>>
>>> From: Joshua ChaitinPollak [mailto:jpollak@kivasystems.com]
>>> Sent: Friday, January 20, 2006 11:16 AM
>>> To: gentoo-embedded@lists.gentoo.org
>>> Subject: Re: [gentoo-embedded] FAQ / How To?
>>>
>>>
>>> This is what I use:
>>>
>>> http://www.bulah.com/embeddedgentoo.html
>>>
>>> My installation is 6 mb, since I'm installing into 32 mb, I haven't
>>> tried too hard to pair it down. I'm installing on Soekris net4526
>>> boards. Keep in mind there are somethings you can do after you build
>>> you filesystem with Gentoo to make the install even smaller:
>>>
>>> Remove /usr/include
>>> Remove all .keep files
>>> Audit the rest of the file system for unnecessary files, expecially
>>> /etc and /var
>>>
>>> I have a series of scripts I've written to automate the process
>>> described in the above howto, and I would like to publish them
>>> shortly, but please don't hold your breath. :)
>>>
>>> -Josh
>>>
>>> On Jan 20, 2006, at 10:55 AM, Dennis Taylor wrote:
>>>
>>>
>>> 	I have tried various ways of building a root fs with uClibc, but
>> to
>>> no avail.  I have monitored this list long enough to know that  
>>> someone
>>
>>> out there has done it.  I need to do it for and X86 target that must
>>> fit in about 1.5 MB of flash that gets copied to RAM and started.
>>>
>>>
>>> 	The "out of the box" configuration I linked to from the uClibc
>> site
>>> fails in various ways.  I like the Gentoo way of doing things,  
>>> but the
>>
>>> HOWTO link I saved a while back does not work.
>>>
>>> 	Any pointers to documents that would help me succeed would be
>> greatly
>>> appreciated.
>>>
>>> 	Dennis Taylor
>>
>> --
>> gentoo-embedded@gentoo.org mailing list
>>
>>
>>
>>
> -- 
> solar <solar@gentoo.org>
> Gentoo Linux
>
> -- 
> gentoo-embedded@gentoo.org mailing list
>
>

-- 
Joshua ChaitinPollak
Software Engineer
Kiva Systems


-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-embedded] FAQ / How To?
  2006-01-20 15:55 [gentoo-embedded] FAQ / How To? Dennis Taylor
  2006-01-20 16:16 ` Joshua ChaitinPollak
  2006-01-23 17:24 ` solar
@ 2006-01-24  7:13 ` Stanisław Raczyński
  2 siblings, 0 replies; 14+ messages in thread
From: Stanisław Raczyński @ 2006-01-24  7:13 UTC (permalink / raw
  To: gentoo-embedded

Dennis Taylor wrote:

> I have tried various ways of building a root fs with uClibc, but to no 
> avail.  I have monitored this list long enough to know that someone 
> out there has done it.  I need to do it for and X86 target that must 
> fit in about 1.5 MB of flash that gets copied to RAM and started.
>
>
> The "out of the box" configuration I linked to from the uClibc site 
> fails in various ways.  I like the Gentoo way of doing things, but the 
> HOWTO link I saved a while back does not work.
>
> Any pointers to documents that would help me succeed would be greatly 
> appreciated.
>
> Dennis Taylor
>
If anyone is interested, there's an Embedded Gentoo HOWTO I wrote as a 
documentation for my project here: 
http://www.eti.pg.gda.pl/katedry/ksa/pracownicy/Stanislaw.Raczynski/embeddedgentoo.html. 
It's mainly for people who want to put an embedded gentoo on KB9201 
ARM-based development board, but I guess there might be something 
interesting for you x86 fans too.

Be careful though, for since there is so little information on embedded 
gentoo, I had to figure some things by myself and they can be very 
incorrect (any feedback on that would be much appreciated).

Sorry for this a bit out-of-topic post.

Best wishes,
Stanislaw Raczynski
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-embedded] FAQ / How To?
  2006-01-20 16:16 ` Joshua ChaitinPollak
@ 2006-01-27  1:46   ` Ow Mun Heng
  2006-01-27 15:41     ` Joshua ChaitinPollak
  0 siblings, 1 reply; 14+ messages in thread
From: Ow Mun Heng @ 2006-01-27  1:46 UTC (permalink / raw
  To: gentoo-embedded

On Fri, 2006-01-20 at 11:16 -0500, Joshua ChaitinPollak wrote:

> 
> Remove /usr/include

ACtually, aren't these needed or is the presumption that it's removed
_after_ everything's installed?

> Remove all .keep files
What are .keep files anyway? They're always 0 sized in my system



-- 
Ow Mun Heng
Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
98% Microsoft(tm) Free!! 
Neuromancer 09:46:39 up 2 days, 9:36, 6 users, load average: 0.30, 0.29,
1.04 


-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-embedded] FAQ / How To?
  2006-01-27  1:46   ` Ow Mun Heng
@ 2006-01-27 15:41     ` Joshua ChaitinPollak
  0 siblings, 0 replies; 14+ messages in thread
From: Joshua ChaitinPollak @ 2006-01-27 15:41 UTC (permalink / raw
  To: gentoo-embedded


On Jan 26, 2006, at 8:46 PM, Ow Mun Heng wrote:

> On Fri, 2006-01-20 at 11:16 -0500, Joshua ChaitinPollak wrote:
>
>>
>> Remove /usr/include
>
> ACtually, aren't these needed or is the presumption that it's removed
> _after_ everything's installed?

No, if you follow the how-to, you'll build a development environment  
which does all the compiling, and all the packages you build will be  
build as binaries. Then when you install into the actual embedded  
file system, it just uncompresses the binary package into the  
specified directory, like this:

ROOT=/embedded_fs emerge -K mypackage

Since all emerge is doing (effectively) is untaring into the  
directory, the includes within that directory are never used. So you  
can safely remove:

/embedded_fs/usr/include

But you obviously don't want to remove /usr/include from the chroot'd  
development environment.


>> Remove all .keep files
> What are .keep files anyway? They're always 0 sized in my system

Yeah, they are 0 bytes, but they clutter everything up. I think  
the .keep files exist to keep programs from trimming empty  
directories from a directory tree.

-- 
Joshua ChaitinPollak
Software Engineer
Kiva Systems


-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-01-27 15:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-20 15:55 [gentoo-embedded] FAQ / How To? Dennis Taylor
2006-01-20 16:16 ` Joshua ChaitinPollak
2006-01-27  1:46   ` Ow Mun Heng
2006-01-27 15:41     ` Joshua ChaitinPollak
2006-01-23 17:24 ` solar
2006-01-24  7:13 ` Stanisław Raczyński
  -- strict thread matches above, loose matches on Subject: below --
2006-01-20 16:23 Dennis Taylor
2006-01-23 18:25 Dennis Taylor
2006-01-23 18:28 Dennis Taylor
2006-01-23 18:32 ` Heath Holcomb
2006-01-23 20:45 Dennis Taylor
2006-01-23 20:48 ` Heath Holcomb
2006-01-23 21:20 ` solar
2006-01-23 21:38   ` Joshua ChaitinPollak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox