cross-compiling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cross-compiling [2011/10/28 19:35] – created admincross-compiling [2021/02/04 21:00] (current) admin
Line 1: Line 1:
 +Setting up a [[crosstool-ng]] environment for ARM7 target
  
-====== Building Older GCC Versions on x86-64 Debian/Ubuntu ======+===== Building Older GCC Versions on x86-64 Debian/Ubuntu =====
  
 http://www.trevorpounds.com/blog/?p=111 http://www.trevorpounds.com/blog/?p=111
  
  
-====== Compiling 32-bit (i386) binaries in 64-bit (amd64) debian: ====== +===== Compiling 32-bit (i386) binaries in 64-bit (amd64) debian =====
  
 apt-get install ia32-libs ia32-libs-gtk apt-get install ia32-libs ia32-libs-gtk
Line 14: Line 14:
 linux32 make 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.1319830512.txt.gz
  • Last modified: 15 years ago
  • by admin