Embedded Lab/linux, x86

[인텔 architecture 에서 microblaze용 gcc 설치]

cyj4369 2012. 11. 6. 19:27

Microblaze GNU Tools 

The MicroBlaze toolchain contains all of the compiler and support libraries you need to build executables and libraries for a MicroBlaze architecture. 

인텔 cpu를 사용했기 때문에 여기에서 나는 little endian으로 적용한다.

Little Endian Tools And Ramdisk Image

Getting The Little Endian Tools And Ramdisk Image

bash> git clone git://git.xilinx.com/xldk/microblaze_v1.0_le.git


Configuration Of The Little Endian Tools

tar xvzf microblazeel-unknown-linux-gnu.tar.gz


Set the path to access the tools and setup the environment variable for the Linux kernel build process with the following commands.

환경변수를 설정해준다. make 때리면 mb-gcc로 하게 되어있는데 이걸 microblazeel-unknown-linux-gnu-gcc바꿔준다.

export PATH=<dir where tools are untarred>/microblazeel-unknown-linux-gnu/bin:$PATH

export CROSS_COMPILE=microblazeel-unknown-linux-gnu-


===========================================================


Cloning The U-boot Tree

The following command will clone the u-boot-xlnx repository.

bash> git clone git://git.xilinx.com/u-boot-xlnx.git

bash> cd u-boot-xlnx


The following command will switch to the Microblaze branch.

bash> git checkout -b microblaze origin/microblaze


Building U-boot

Assuming the tools are setup correctly with CROSS_COMPILE as specified at MicroBlaze GNU Tools.

In the u-boot directory, the following commands will build it for the SP605 board. The xparameters.h in the microblaze-generic board are setup for the SP605 board with the Xilinx reference design.

bash> make microblaze-generic_config

bash> make