Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qemu-user-arm chroot/binfmt_misc problems [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 675
Location: Glasgow, UK

PostPosted: Sun Jul 20, 2014 8:53 pm    Post subject: qemu-user-arm chroot/binfmt_misc problems [SOLVED] Reply with quote

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
View user's profile Send private message
druggo
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 289
Location: Hangzhou, China

PostPosted: Sun Jul 27, 2014 10:23 am    Post subject: Reply with quote

have you enable the static USE flag?
_________________
HighWayToHell(blog)
http://blog.druggo.org/
Back to top
View user's profile Send private message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 675
Location: Glasgow, UK

PostPosted: Wed Jul 30, 2014 11:40 am    Post subject: Reply with quote

I did, yes.

I really ought to have dealt with this topic actually, I kinda forgot about it but I found solutions and wrote about them in this thread:

http://forums.gentoo.org/viewtopic-t-996114-highlight-.html

-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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum