Step Test Process:
Step 1: Copy the file gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12.tar.gz to the Ubuntu home directory
? i.mx6 User CD/i.mx6 user CD (A) \linux\tool\gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12.tar.gz
This step requires a shared folder, from the Windows copy to the Ubuntu/mnt/hgfs, and then to the home
Step 2: Create a new terminal in Ubuntu and enter the following command to install the cross-compiler:
#cd (go to home directory)
#mkdir-P/opt/freescale/usr/local (Create directory, if the directory already exists will prompt an error, skip it)
#tar jxvf gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12.tar.gz-c/opt/freescale/usr/local (Compiler decompression
To/opt/freescale/usr/local)
JXVF not present, extract copy using ZXVF
Step 3: see if the gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12 was successfully unzipped
#ls-L/opt/freescale/usr/local
If you can see the gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12 folder is extracted successfully
Step 4: Add the environment variable to profile, execute the command after you open edit profile, restart your computer
#gedit/etc/profile
Cannot open with sudo gedit/etc/profile
The last line adds the following:
Export Arch=arm
Export cross_compile=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/
Fsl-linaro-toolchain/bin/arm-none-linux-gnueabiexport path=/opt/freescale/usr/local/ gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/
Fsl-linaro-toolchain/bin: $PATH
#reboot
Step 5: Verify the Cross compiler installation is successful by executing the following command inside the terminal
#arm-fsl-linux-gnueabi-gcc-v
Arm-fsl-linux-gnueabi-gcc:command not found
Because you need to use super permissions,
Open a shell with Superuser privileges first:
Sudo–s
Under current shell, set environment variables:export path= $PATH:/opt/freescale/usr/local/ gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin
And then execute the arm-fsl-linux-gnueabi-gcc-v .
Installing the cross-compilation environment