Preparation materials
- Software
- arm-toolchain-3.4.3.tar.gz
- linux-2.6.24.4-w5300e01
- included .config : copied w5300e01-config-v01
- patched by patch-w5300e01-v01 : patch-w5300e01-v01
- Hardware
- Documentations
Install Toolchain
arm-toolchain-3.4.3.tar.gz을 다운받은 뒤 아래의 순서대로 설치한다. 경우에 따라서는 사용자 환경에 맞게 변경하여 설치한다.
- make directory /usr/local/arm
[code lang=cpp]
mkdir /usr/local/arm
[/code]
- Install toochain
[code lang=cpp]
# tar zxvf arm-toolchain-3.4.3.tar.gz
# cp -rf usr/ /usr/local/arm/arm-gcc-W5300
[/code]
- Setting toochain path:
[code lang=cpp]
//Add below path in **.bashrc**
export PATH=/usr/local/arm/arm-gcc-W5300/bin::$PATH
//then sourcing the bashrc file
# source .bashrc
[/code]
- Verify: type arm and press TAB
~$ arm
arm2hpdl arm-linux-gcc arm-linux-objdump
arm-linux-addr2line arm-linux-gcc-3.4.3 arm-linux-ranlib
arm-linux-ar arm-linux-gccbug arm-linux-readelf
arm-linux-as arm-linux-gcov arm-linux-run
arm-linux-c++ arm-linux-gdb arm-linux-size
arm-linux-c++filt arm-linux-ld arm-linux-strings
arm-linux-cpp arm-linux-nm arm-linux-strip
arm-linux-g++ arm-linux-objcopy - Compile Linux kernel
# tar zxvf linux-2.6.24.4-w5300e01.tar.gz
# cd linux-2.6.24.4
# cp ../w5300e01-config-v01 .config
# make wizImage
# or make ARCH=arm CROSS_COMPILE=arm-linux- wizImage -j8
NEXT: Note2 - Hardware Connections
댓글 없음:
댓글 쓰기