[BusyBox] Cannot chroot busybox
Gene Cumm
greenpuddy at stny.rr.com
Sat Feb 1 21:20:05 UTC 2003
Mike Bush wrote:
> Compiled and built uClibc(i386) 0.9.17, and then built busybox 0.60.5
> and when i try to chroot it i get:
>
> alpha busybox-0.60.5 # /usr/bin/chroot /home/mike/root/ /bin/sh
> chroot: /bin/sh: No such file or directory
>
> ldd gives me
> alpha busybox-0.60.5 # ldd ./busybox
> libc.so.0 => /usr/i386-linux-uclibc/lib/libc.so.0 (0x0x40006000)
> ld-uClibc.so.0 => /usr/i386-linux-uclibc/lib/ld-uClibc.so.0
> (0x0x40000000)
>
> What am i doing wrong ?
Are your libraries in that location also relative to the chroot, either
copied in or hard linked (soft links to the real files won't work), ie
does /home/mike/root/usr/i386-linux-uclibc/lib/libc.so.0 exist? That's
a common problem.
Next, does /home/mike/root/bin/sh exist and point to something like
/bin/busybox or busybox (not /home/mike/root/bin/busybox)?
More information about the busybox
mailing list