We have recently established a cross-tool chain for the MIPs K processor:
HOST: PC (32-bit)
Virtual Machine: virtualbox
Linux: CentOS-5.2
Target machine: Development Board with mips k Processor
Linux version and package: linux-mti-2.6.35.9-2.tar.gz
Cross tool chain: Mips-4.4-303-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2
1. decompress the linux package:
Linux-mti-2.6.35.9-2.tar.gz in/path directory
CD/path/kernel
Tar-xjvf ../linux-mti-2.6.35.9-2.tar.gz
2. decompress and install toolchains
Gzmips-4.4-303-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2 located in/temp/tools
Tar-xjvf/temp/tools/mips-4.4-303-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2
Export Path =/temp/tools/toolschains/mips-4.4/bin: $ path
3. Set Environment Variables
View the directory starting with/temp/tools/toolschains/mips-4.4/bin similar to MIPS-Linux-GNU-
Open the/etc/profile file, add a line by referring to pathmunge in it, save and exit.
Pathmunge/temp/tools/toolschains/mips-4.4/bin
Run source/etc/profile to replace MIPS-Linux-GNU-with make.
4. Modify related configurations and compile the kernel.
Go to the linux-mti-2.6.35.9-2 top-level directory and modify the MAKEFILE file.
Set arch and cross_compile to following:
Arch? = MIPS
Cross_compile? = MIPS-Linux-GNU-
Run the following command to enable it when you start the system:
Source/etc/profile