chroot desn't work

Al Johnson openmoko at
Mon Mar 3 17:38:05 CET 2008

On Monday 03 March 2008, Federico wrote:
> Hi all,
> I'm following this guide:
> I copy rootfs on mokobox but when i chroot into it i have this issue:
> sudo chroot mokobox /bin/sh
> chroot: cannot run command `/bin/sh': Exec format error
> Why? In mokobox directory sh is present in /bin :/

Did it build for a different platform to the one you are running on? Check the 
format of the the executable from outside the chroot using:
	file mokobox/bin/sh

More information about the community mailing list