Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo embedded, chroot failed? Boot strap problem?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
DingbatCA
Guru
Guru


Joined: 07 Jul 2004
Posts: 384
Location: Portland Or

PostPosted: Wed Apr 19, 2006 5:42 am    Post subject: gentoo embedded, chroot failed? Boot strap problem? Reply with quote

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
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 850
Location: PL

PostPosted: Wed Apr 19, 2006 6:37 am    Post subject: Reply with quote

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
View user's profile Send private message
DingbatCA
Guru
Guru


Joined: 07 Jul 2004
Posts: 384
Location: Portland Or

PostPosted: Wed Apr 19, 2006 4:17 pm    Post subject: Reply with quote

No luck
Same error when i point chroot at busybox or ash. Any other ideas?
Back to top
View user's profile Send private message
justinchurch
n00b
n00b


Joined: 09 Aug 2004
Posts: 1

PostPosted: Mon May 08, 2006 7:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
DingbatCA
Guru
Guru


Joined: 07 Jul 2004
Posts: 384
Location: Portland Or

PostPosted: Mon May 08, 2006 7:28 pm    Post subject: Reply with quote

ldd was the fix, it showed that i forgot to ad the lib's to my embedded system.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum