导读:
由于篇幅限制,分了4部分:
一:http://hi.baidu.com/%CE%DA%D1%BB%C3%F7/blog/item/6246142475b6ab2ad5074264.html
二:http://hi.baidu.com/%CE%DA%D1%BB%C3%F7/blog/item/88a32787b4ff092bc75cc365.html
三:http://hi.baidu.com/%CE%DA%D1%BB%C3%F7/blog/item/257bc907d455dacc7a894765.html
四:http://hi.baidu.com/%CE%DA%D1%BB%C3%F7/blog/item/2c7f1a0830882331e8248866.html
2.11 编译主机上运行的 gdb
arm@ubuntu:~/dev_home/btools/tchain3.4.4$ tar zxvf gdb-6.4.tar.gz
arm@ubuntu:~/dev_home/btools/tchain3.4.4$ mkdir -p BUILD/gdb-6.4-host
arm@ubuntu:~/dev_home/btools/tchain3.4.4$ cd BUILD/gdb-6.4-host
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdb-6.4-host$ export CC=gcc
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdb-6.4-host$ ../../gdb-6.4/configure --target=arm-linux
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdb-6.4-host$ make
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdb-6.4-host$ file gdb/gdb
gdb/gdb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), for GNU/Linux 2.2.0, not stripped
2.12 建立目标平台上运行的 gdbserver
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdb-6.4-host$ mkdir -p ../gdbserver-6.4
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdb-6.4-host$ cd ../gdbserver-6.4
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdbserver-6.4$ export CC=/usr/local/arm/3.4.4/bin/arm-linux-gcc
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdbserver-6.4$ ../../gdb-6.4/gdb/gdbserver/configure --host=arm-linux
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdbserver-6.4$ make
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdbserver-6.4$ file gdbserver
gdbserver: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), for GNU/Linux 2.0.0, not stripped
3 GNU 交叉工具链的下载
工具链的官方下载地址:
http://www.arm.linux.org.uk/
可以从该站点下载2.95.3, 3.0以及3.2工具链
ftp://ftp.arm.linux.org.uk/pub/armlinux/toolchain/cross-2.95.3.tar.bz2
ftp://ftp.arm.linux.org.uk/pub/armlinux/toolchain/cross-3.0.tar.bz2
ftp://ftp.handhelds.org/projects/toolchain/arm-linux-gcc-3.3.2.tar.bz2
ftp://ftp.handhelds.org/projects/toolchain/arm-linux-gcc-3.4.1.tar.bz2
http://ftp.snapgear.org/pub/snapgear/tools/arm-linux/gcc-3.4.4.tar.bz2
本文转自
http://hi.baidu.com/%CE%DA%D1%BB%C3%F7/blog/item/2c7f1a0830882331e8248866.html
由于篇幅限制,分了4部分:
一:http://hi.baidu.com/%CE%DA%D1%BB%C3%F7/blog/item/6246142475b6ab2ad5074264.html
二:http://hi.baidu.com/%CE%DA%D1%BB%C3%F7/blog/item/88a32787b4ff092bc75cc365.html
三:http://hi.baidu.com/%CE%DA%D1%BB%C3%F7/blog/item/257bc907d455dacc7a894765.html
四:http://hi.baidu.com/%CE%DA%D1%BB%C3%F7/blog/item/2c7f1a0830882331e8248866.html
2.11 编译主机上运行的 gdb
arm@ubuntu:~/dev_home/btools/tchain3.4.4$ tar zxvf gdb-6.4.tar.gz
arm@ubuntu:~/dev_home/btools/tchain3.4.4$ mkdir -p BUILD/gdb-6.4-host
arm@ubuntu:~/dev_home/btools/tchain3.4.4$ cd BUILD/gdb-6.4-host
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdb-6.4-host$ export CC=gcc
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdb-6.4-host$ ../../gdb-6.4/configure --target=arm-linux
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdb-6.4-host$ make
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdb-6.4-host$ file gdb/gdb
gdb/gdb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), for GNU/Linux 2.2.0, not stripped
2.12 建立目标平台上运行的 gdbserver
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdb-6.4-host$ mkdir -p ../gdbserver-6.4
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdb-6.4-host$ cd ../gdbserver-6.4
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdbserver-6.4$ export CC=/usr/local/arm/3.4.4/bin/arm-linux-gcc
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdbserver-6.4$ ../../gdb-6.4/gdb/gdbserver/configure --host=arm-linux
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdbserver-6.4$ make
arm@ubuntu:~/dev_home/btools/tchain3.4.4/BUILD/gdbserver-6.4$ file gdbserver
gdbserver: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), for GNU/Linux 2.0.0, not stripped
3 GNU 交叉工具链的下载
工具链的官方下载地址:
http://www.arm.linux.org.uk/
可以从该站点下载2.95.3, 3.0以及3.2工具链
ftp://ftp.arm.linux.org.uk/pub/armlinux/toolchain/cross-2.95.3.tar.bz2
ftp://ftp.arm.linux.org.uk/pub/armlinux/toolchain/cross-3.0.tar.bz2
ftp://ftp.handhelds.org/projects/toolchain/arm-linux-gcc-3.3.2.tar.bz2
ftp://ftp.handhelds.org/projects/toolchain/arm-linux-gcc-3.4.1.tar.bz2
http://ftp.snapgear.org/pub/snapgear/tools/arm-linux/gcc-3.4.4.tar.bz2
本文转自
http://hi.baidu.com/%CE%DA%D1%BB%C3%F7/blog/item/2c7f1a0830882331e8248866.html