View previous topic :: View next topic |
Author |
Message |
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Fri Apr 03, 2015 2:52 pm Post subject: Raspberry Pi cross building problem [SOLVED] |
|
|
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 |
|
|
heiwa n00b
Joined: 24 Oct 2012 Posts: 70
|
Posted: Sat Apr 04, 2015 6:49 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54320 Location: 56N 3W
|
Posted: Sat Apr 04, 2015 12:38 pm Post subject: |
|
|
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 |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Sat Apr 04, 2015 7:53 pm Post subject: |
|
|
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 |
|
|
|