View previous topic :: View next topic |
Author |
Message |
Telemin l33t
Joined: 25 Aug 2005 Posts: 753 Location: Glasgow, UK
|
Posted: Sun Jul 20, 2014 8:53 pm Post subject: qemu-user-arm chroot/binfmt_misc problems [SOLVED] |
|
|
Hi all,
So trying to follow the instructions for a qemu-user chroot in the embedded handbook I find the following issue:
(Note I have registered the binfmt misc handler and it works as far as I can tell)
Code: |
# wget http://distfiles.gentoo.org/releases/arm/autobuilds/current-stage3-armv6j_hardfp/stage3-armv6j_hardfp-20140605.tar.bz2
# mkdir armdev
# cd armdev
# tar -xvf ../stage3-armv6j_hardfp-20140605.tar.bz2
# cp /usr/bin/qemu-* usr/bin/
# mkdir -p usr/portage
# mount --bind /usr/portage usr/portage
# mount --bind /proc proc
# mount --bind /sys sys
# mount --bind /dev dev
# mount --bind /dev/pts dev/pts
# chroot . /bin/busybox mdev -s <-- so binfmt misc handler works here
# chroot . /bin/bash --login <--- but not here!?
/bin/bash: /bin/bash: cannot execute binary file
|
So the binfmt misc handler is working for busybox but not for bash I have no idea why
Can anyone help me debug this issue?
-Telemin- _________________ The Geek formerly known as -Freestyling-
When you feel your problem has been solved please add [Solved] to the topic title.
Please adopt an unanswered post
Last edited by Telemin on Wed Jul 30, 2014 11:40 am; edited 1 time in total |
|
Back to top |
|
|
druggo Apprentice
Joined: 24 Sep 2003 Posts: 289 Location: Hangzhou, China
|
Posted: Sun Jul 27, 2014 10:23 am Post subject: |
|
|
have you enable the static USE flag? _________________ HighWayToHell(blog)
http://blog.druggo.org/ |
|
Back to top |
|
|
Telemin l33t
Joined: 25 Aug 2005 Posts: 753 Location: Glasgow, UK
|
|
Back to top |
|
|
|