Gentoo Archives: gentoo-embedded

From: Corey <corey@×××××××××.net>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] unable to chroot
Date: Sat, 18 Nov 2006 06:39:02
Message-Id: 200611172335.08402.corey@bitworthy.net
In Reply to: [gentoo-embedded] unable to chroot by Corey
1 After some frustration, impatience, and gnashing of teeth - I finally did
2 manage to see the error in my ways...
3
4 #1 - I didn't properly set my gcc-config to use the new profile ( i686-pc-linux-uclibc-4.1.1 )
5
6 #2 - I had my CHOST and CBUILD set incorrectly
7
8
9 So, things appear to be getting further along now, but I'll likely come
10 crying back to the list before too long on some new problem... (c8=
11
12
13 Cheers,
14
15 Corey
16
17
18
19 On Friday 17 November 2006 14:35, Corey wrote:
20 >
21 > I've got a minimal gentoo env on a separate partition, but I'm unable to chroot
22 > into it - I get a "chroot: cannot run command `/bin/bash': No such file or directory",
23 > even though bash does in fact exist in the target and is executable:
24 >
25 > scanner gentoo # chroot /mnt/gentoo/ /bin/bash
26 > chroot: cannot run command `/bin/bash': No such file or directory
27 > scanner gentoo # pwd
28 > /mnt/gentoo
29 > scanner gentoo # ls
30 > bin dev etc home lib linuxrc mnt proc root sbin sys tmp usr var
31 > scanner gentoo # ls -l bin/bash
32 > -rwxr-xr-x 1 root root 869584 Nov 17 01:50 bin/bash
33 > scanner gentoo # ./bin/bash --version
34 > GNU bash, version 3.1.17(1)-release (i686-pc-linux-gnu)
35 > Copyright (C) 2005 Free Software Foundation, Inc.
36 > scanner gentoo # chroot /mnt/gentoo/ /bin/bash
37 > chroot: cannot run command `/bin/bash': No such file or directory
38 >
39 >
40 > Where should I begin trying to fix this? I used crossdev w/ uclibc when I compiled
41 > and installed the base fs into the partition in question.
42 >
43 >
44 > Thanks,
45 >
46 > Corey
47 --
48 gentoo-embedded@g.o mailing list