[BusyBox] Cannot chroot busybox

John van Vlaaderen john-at-thinman at nyc.rr.com
Sat Feb 1 21:59:03 UTC 2003


Instead of chroot ( you do need all the libraries ) why not go the whole 
9 yards and kexec
to full reboot w/ a specified kernel running from an independent file 
system.   That way you are working directly on your final product.

BTW is there any repository of kernels or kernel config files that are 
commonly used by uClibc developers and integrators ??


On Saturday, February 1, 2003, at 11:24 PM, Gene Cumm wrote:

> 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)?
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/mailman/listinfo/busybox
>
>
  CXN, Inc. Contact: john at thinman.com
President, The Linux Society
http://groups.yahoo.com/group/linux-society
linux society distro -> http://www.thinman.com/eLSD/readme
ThinMan is a registered trademark of CXN, Inc.




More information about the busybox mailing list