Steps:
1, download crosstool-ng, for the http://ymorin.is-a-geek.org/download/crosstool-ng/ to the license download together. 2. Install the following software package: 1) libncurses5-dev2) bison3) flex4) texinfo5) automake6) libtool7) patch8) gcj9) cvs10) cvsd11) gawk12) aria213) curl
14) libncursesw5-dev
15) g ++ 16) Subversion
3. decompress, patch (if any), and create a working directory. 1) mkdir crosstool-ng-build # crosstool-ng compile the working directory. 2) mkdir crosstool-ng-install # crosstool-ng installation directory 3) CD crosstool-ng-xx4 ). /configure -- prefix =/home/workspace/uboot/crosstool-ng_install # configure the crosstool-ng5) make # compile the crosstool-ng6) make install # Install the crosstool-ng4, configure the cross-compiled toolchain for this compilation 1) CD .. /crosstool-ng_build/# enter the working directory for compiling the new cross compiler 2) CP .. /crosstool-ng-XX/samples/ARM-unknown-Linux-gnueabi /*. /# copy the default configuration file to work Directory 3) mV crosstool. config. config # Modify file name 4 ).. /crosstool-ng-1.6.1_install/bin/CT-ng menuconfig # Enter menuconfig and start modifying configuration 5. Configure option 1) paths and MISC options ---> (/home/workspace/uboot/crosstool-ng_src) local tarbils directory # Save the source code package path (/home/workspace/uboot/X-tools/$ {ct_target}) prefix directory # installation path of the Cross Compiler 2) target options ---> *** target optimisations *** (armv6) architecture level (arm1176jzf-s) emit assembly For CPU () tune for cpu3) floating point () --> hardware (FPU) 4) toolchain options ---> (1176) tuple's vendor string5) save6) exit6. Compile the cross tool chain .. /crosstool-ng_install/bin/CT-ng build7, compiled cross compiler. Compiler located:/home/workspace/uboot/X-tools/arm-1176-linux-gnueabi/bin library file located:/home/workspace/uboot/X-tools/arm-1176-linux-gnueabi/lib