Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Raspberry Pi cross building problem [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
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Fri Apr 03, 2015 2:52 pm    Post subject: Raspberry Pi cross building problem [SOLVED] Reply with quote

I have been trying to build a Raspberry Pi build environment on AMD64. I am following this wiki guide https://wiki.gentoo.org/wiki/Crossdev_qemu-static-user-chroot#Binfmt_misc_Configuration

I am stuck on this step:
Quote:
Install the static qemu-user into the chroot

root #ROOT=$PWD/ emerge -K qemu-user

with the result:
Quote:
Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "qemu-user" for /root/arm-chroot/.

emerge: searching for similar names... nothing similar found.


Earlier in the procedure, /usr/bin/qemu-arm was built but not used again.


Last edited by Tony0945 on Sat Apr 04, 2015 7:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
heiwa
n00b
n00b


Joined: 24 Oct 2012
Posts: 70

PostPosted: Sat Apr 04, 2015 6:49 am    Post subject: Reply with quote

The guide seems to be outdated. Just copy qemu-arm to /usr/bin in the chroot.

You may also want to build your own static qemu-arm by emerging qemu
with the static-user USE-flag and QEMU_USER_TARGETS=arm.

See also: https://wiki.gentoo.org/wiki/QEMU

Should you have any problems with glib with USE=static-lib, please post them.

It would be cool if you could fix the guide after you have succeeded.
(Notice that app-emulation/qemu-user is now included in app-emulation/qemu.)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sat Apr 04, 2015 12:38 pm    Post subject: Reply with quote

Tony0945,

Code:
wget http:// stage3-armv7a-date.tar.bz2
is not for the Rasperry Pi 1. That needs -armv6j-

Emulating the Pi CPU on an AMD64 is probably going to be painfully slow. I've not tried ARM but with SPARC, I got the equivelent of a 200MHz SPARC with qemu using a whole 3.2GHz Phenom II core.
I gave up there, as my real SPARC is 400 MHz.

The way to go is to use cross distcc in pump mode and let the Pi do the building on a USB HDD, helped out by your AMD64.

Pure cross compiling gives mixed results due to broken build systems.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sat Apr 04, 2015 7:53 pm    Post subject: Reply with quote

Thanks to both of you. The problem with distcc is that I have to buy a Raspberry pi to develop for it. I think I will have to bite the bullet and buy one.
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