Gentoo Archives: gentoo-embedded

From: The MoonSeeker <themoonseeker@×××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Chroot the environment
Date: Thu, 21 Jun 2007 07:58:08
Message-Id: 55DCE2D0-517A-465B-80D7-C7955F867786@gmail.com
In Reply to: Re: [gentoo-embedded] Chroot the environment by rooot
1 I rebuild the system using this command : ACCEPT_KEYWORDS="**" ROOT="/
2 tmp/minime" USE="-iconv make-symlinks" emerge uclibc busybox
3 baselayout-lite dropbear and when I try to chroot, i've the same
4 error : chroot /tmp/minime/ /bin/sh
5 chroot: can't execute `/bin/sh': No such file or directory. The file
6 exists :
7
8 file /tmp/minime/bin/sh
9 /tmp/minime/bin/sh: symbolic link to `busybox'
10
11 ldd /tmp/minime/bin/sh
12 linux-gate.so.1 => (0xb7fbd000)
13 libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7f8b000)
14 libm.so.6 => /lib/libm.so.6 (0xb7f66000)
15 libc.so.6 => /lib/libc.so.6 (0xb7e3e000)
16 /lib/ld-linux.so.2 (0xb7fbe000)
17
18 What can I do, I think that I tested all possibilities..
19
20 THX
21 -Francis
22
23
24
25 On Jun 14, 2007, at 2:54 PM, rooot wrote:
26
27 > -----BEGIN PGP SIGNED MESSAGE-----
28 > Hash: SHA1
29 >
30 > The MoonSeeker wrote:
31 >>> Try
32 >>> chroot /tmp/minime /bin/busybox ash
33 >>
34 >> Stil doesn't work.
35 >>
36 >> chroot: can't execute the command `/bin/busybox': No such file or
37 >> directory
38 >>
39 >> I don't understand, I follow this tutorial :
40 >> http://gentoo-wiki.com/Embedded_Gentoo. What's wrong?
41 >
42 > Hmm... First of all if you don't use USE="make-symlinks" flag do it
43 > - it
44 > makes some thing easier. If you have proper symlinks try: chroot
45 > /your/embedded/system/directory /bin/sh for example:
46 > chroot /tmp/minime /bin/sh
47 > An if you merged busybox successfully (with USE="make-symlinks") it
48 > should works. There is only one exception: it will works only, if your
49 > system on which you run chroot have the same architecture as your
50 > targeted, embedded system.
51 >
52 > Łukasz Marszał
53 > -----BEGIN PGP SIGNATURE-----
54 > Version: GnuPG v1.4.7 (GNU/Linux)
55 > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
56 >
57 > iQCVAwUBRnE6eMKonSPgzwHdAQJ/YgP9F6RX1XDcNvXuVEbRnfXUjnmSA+HeEBwC
58 > 5/5kTAjPWpt8YFnB2rRut48U0XY++EF0wvv4oki7//bkUrcydacS60AgmEUdIbMU
59 > vhnXTxmik3B4khGnkTz4VJE/qOJMYWpVySEqG25dJqhsOA6GczWJSaB94kfF/14J
60 > ej9EMSITEq8=
61 > =qi0w
62 > -----END PGP SIGNATURE-----
63 > --
64 > gentoo-embedded@g.o mailing list
65 >
66
67 --
68 gentoo-embedded@g.o mailing list