View Single Post
Posts: 346 | Thanked: 271 times | Joined on Jan 2010
#72
Ok I got binfmt working by googling a bit about it and paste:
Code:
echo ":qemu-i386:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/home/user/qemu-i386:" > /proc/sys/fs/binfmt_misc/register
But now I have a problem with the chroot itself:

Code:
chroot ./
chroot: cannot execute /bin/bash: No such file or directory

file bin/bash
bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped

(On my PC):
ldd /media/00558657-94dd-411e-9a75-b5ad64e5e8dc/bin/bash
	libncurses.so.5 => /lib/libncurses.so.5 (0x00848000)
	libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00432000)
	libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x009dd000)
	/lib/ld-linux.so.2 (0x0011a000)

ls -l lib/libncurses.so.5 lib/tls/i686/cmov/libdl.so.2 lib/tls/i686/cmov/libc.so.6
lrwxrwxrwx 1 root root 17 2010-11-07 18:06 lib/libncurses.so.5 -> libncurses.so.5.6
lrwxrwxrwx 1 root root 14 2010-11-07 18:06 lib/tls/i686/cmov/libc.so.6 -> libc-2.8.90.so
lrwxrwxrwx 1 root root 15 2010-11-07 18:06 lib/tls/i686/cmov/libdl.so.2 -> libdl-2.8.90.so
All theses symlinks are valid so it is not a library problem.
I can even chroot in this path with my PC with sshfs but not directly in my N900. (Only executables that use static library works on my N900)