cross-compiling

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cross-compiling [2012/02/13 10:59] – [Cross-building for ARM in Ubuntu 64-bit] 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 16: Line 17:
  
  
-====== Cross-building for ARM in Ubuntu 64-bit ======+===== 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). 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]].+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]]. 
  
-[[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.+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. [[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.1329130755.txt.gz
  • Last modified: 15 years ago
  • by admin