一、安装eclipse环境
yum -y install eclipse
yum -y install eclipse-cdt
二、安装minicom
yum -y install minicom
三、安装arm-linux-gcc交叉编译环境
1、下载arm-linux-gcc-4.4.3-20100728.tar.gz
2、tar zxvf arm-linux-gcc-4.4.3-20100728.tar.gz
3、在/etc/profile下面添加以下语句:
export PATH=$PATH:解压所在目录/opt/FriendlyARM/toolschain/4.4.3/bin
4、 source /etc/profile
5、输入arm-linux-gcc -v命令若出现以下信息说明arm-linux-gcc配置已成功。
[mashuang@localhost ~]$ arm-linux-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /opt/FriendlyARM/mini2440/build-toolschain/working/src/gcc-4.4.3/configure --build=i386-build_redhat-linux-gnu --host=i386-build_redhat-linux-gnu --target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.4.3 --with-sysroot=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --enable-languages=c,c++ --disable-multilib --with-arch=armv4t --with-cpu=arm920t --with-tune=arm920t --with-float=soft --with-pkgversion=ctng-1.6.1 --disable-sjlj-exceptions --enable-__cxa_atexit --with-gmp=/opt/FriendlyARM/toolschain/4.4.3 --with-mpfr=/opt/FriendlyARM/toolschain/4.4.3 --with-ppl=/opt/FriendlyARM/toolschain/4.4.3 --with-cloog=/opt/FriendlyARM/toolschain/4.4.3 --with-mpc=/opt/FriendlyARM/toolschain/4.4.3 --with-local-prefix=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.4.3 (ctng-1.6.1)
[mashuang@localhost ~]
四、配置编译安装arm-linux-gdb
1、源码下载:gdb-7.2a.tar.gz
2、tar zxvf gdb-7.2a.tar.gz
3、cd gdb-7.2
4、./configure --target=arm-linux --prefix=/usr/local/arm-linux-gdb -v
--target