Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. Setting up a [[crosstool-ng]] environment for ARM7 target ===== Building Older GCC Versions on x86-64 Debian/Ubuntu ===== http://www.trevorpounds.com/blog/?p=111 ===== Compiling 32-bit (i386) binaries in 64-bit (amd64) debian ===== apt-get install ia32-libs ia32-libs-gtk gcc -m32 (see http://wiki.debian.org/DebianAMD64Faq) linux32 make [[http://sparlampe.wordpress.com/2011/01/07/cross-compiling-i386-kernel-on-amd64-machine-using-make-kpkg/|Building an i386 kernel package on an amd64 machine without chroot]] ===== Cross-building for ARM in Ubuntu 64-bit ===== In addition to ia32-libs, install gcc-arm-linux-gnueabi (armel), or gcc-arm-linux-gnueabihf (armhf). We can do clean cross-builds using full qemu emulation or using user mode emulation with a chroot. Both options are described in the [[https://wiki.ubuntu.com/ARM/RootfsFromScratch|Ubuntu RootfsFromScratch page]]. See also: [[https://wiki.edubuntu.org/ARM/BuildArmPackages|Using qemu]]. Here we create a rootfs with rootstock and run qemu with full emulation, which allows us to build packages inside the VM with the usual tools like pbuilder. [[http://wiki.globalshellz.org/gsh/Ubuntu_ARM_cross_chroot_HOWTO|Using a chroot]]. Qemu with user mode emulation and a chroot to be able to run the binaries. Useful Linaro [[https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/CrossBuilding|cross-build pages]]. The latest way of creating a rootfs is through [[http://omappedia.org/wiki/OMAP_Ubuntu_Core|Ubuntu Core]]. http://ports.ubuntu.com/ubuntu-ports/dists/precise/main/installer-armel/current/images/omap4/cdrom/vmlinuz rootstock --fqdn qemu-test --login qemu --password qemu --imagesize 2G --seed build-essential,openssh-server --notarball wget http://ports.ubuntu.com/ubuntu-ports/dists/precise/main/installer-armel/current/images/omap4/cdrom/vmlinuz cross-compiling.txt Last modified: 5 years agoby admin