View previous topic :: View next topic |
Author |
Message |
DingbatCA Guru
Joined: 07 Jul 2004 Posts: 384 Location: Portland Or
|
Posted: Wed Apr 19, 2006 5:42 am Post subject: gentoo embedded, chroot failed? Boot strap problem? |
|
|
Trying to get Gentoo embedded up and running. For now I have not started doing any thing specific, just trying to get a basic foundation down.
So for my first step I create an empty test dir, in this case /carcomp. From here I can emerge the basic tools into my test environment.
Code: |
ROOT="/carcomp" emerge -av uclibc baselayout-lite vim e2fsprogs bash bzip2 tar sysvinit module-init-tools util-linux net-tools dhcpcd
|
After all that I then try to chroot into my new environment and get an error.
Code: |
deadspac # chroot /carcomp /bin/bash
chroot: cannot run command `/bin/bash': No such file or directory
|
Does any one know what I am missing. Permissions look good and I can execute bash by hand with /carcomp/bin/bash. Am I missing some bootstrapping steps? |
|
Back to top |
|
|
yoshi314 l33t
Joined: 30 Dec 2004 Posts: 850 Location: PL
|
Posted: Wed Apr 19, 2006 6:37 am Post subject: |
|
|
busybox - a lite replacement for bash and many other tools would be a better choice instead of bash. it seems to be independent from system libraries.
http://www.busybox.net/
try chroot without /bin/bash parameter. maybe it'll help
or install busybox with make-symlinks use flag. _________________ ~amd64
shrink your /usr/portage with squashfs+aufs |
|
Back to top |
|
|
DingbatCA Guru
Joined: 07 Jul 2004 Posts: 384 Location: Portland Or
|
Posted: Wed Apr 19, 2006 4:17 pm Post subject: |
|
|
No luck
Same error when i point chroot at busybox or ash. Any other ideas? |
|
Back to top |
|
|
justinchurch n00b
Joined: 09 Aug 2004 Posts: 1
|
Posted: Mon May 08, 2006 7:19 pm Post subject: |
|
|
You probably built busybox w/o static linking. From your base system, do a 'ldd /bin/bash'. Do the libraries that show up exist in /lib of your chroot environment? When I had this problem, I just did a 'cp -a /lib $chroot/lib'. |
|
Back to top |
|
|
DingbatCA Guru
Joined: 07 Jul 2004 Posts: 384 Location: Portland Or
|
Posted: Mon May 08, 2006 7:28 pm Post subject: |
|
|
ldd was the fix, it showed that i forgot to ad the lib's to my embedded system. |
|
Back to top |
|
|
|