Author: Gustavo Alkmim Date: May 05, 2013 Introduction: Since I know how is difficult if for the begginers to start working with crossbuild, I'm going to show what I did to set up the crossbuild environment in practice. The crossbuild environment is just a chroot enabled to build packages for a different architecture then the native one. In this project, the target architecture is the armhf and the native architecture is the amd64. ############## Building the Crossbuild toolchain In order to build the crossbuild toolchain, we are going to use the following versions of files Steps: (You should be root or use sudo instead) 1) Setup the chroot to build the crosscompiler debootstrap unstable debian_chroot_buildcrosstoolchain 2) Entering in the chroot environment cd debian_chroot_buildcrosstoolchain mount -t proc none ./proc mount -o bind /dev ./dev mount -o bind /dev/pts ./dev/pts cp /etc/resolv.conf ./etc/resolv.conf chroot ./ /bin/bash 3) ############## Installing the Crossbuild toolchain Steps: (You should be root or use sudo instead) 1) First you need to copy the .deb files builded in the last step and the binutils- 2) Setup the chroot to install the crosscompiler debootstrap --variant=minbase unstable debian_unstable_native_minimal 3) Entering in the chroot environment cd debian_unstable_native_minimal mount -t proc none ./proc mount -o bind /dev ./dev mount -o bind /dev/pts ./dev/pts cp /etc/resolv.conf ./etc/resolv.conf chroot ./ /bin/bash 4) Install the perl-modules packages apt-get --no-install-recommends install perl-modules 5) Upgrade the chroot environment to experimental packages 6) Install the packages built in