[关闭]
@rmokerone 2016-09-06T03:30:32.000000Z 字数 2289 阅读 561

Ubuntu 15.04 配置ARM开发环境


ubuntu


江柳@AHPU_UESA@2015.08.03

0x01安装arm-none-eabi-gcc

  1. masong@hydra:~$ arm-none-eabi-gcc
  2. The program 'arm-none-eabi-gcc' is currently not installed. You can install it by typing:
  3. sudo apt-get install gcc-arm-none-eabi

输入如下命令进行安装:

  1. sudo apt-get install gcc-arm-none-eabi
  1. Building dependency tree
  2. Reading state information... Done
  3. The following extra packages will be installed:
  4. binutils-arm-none-eabi libnewlib-arm-none-eabi libnewlib-dev
  5. libstdc++-arm-none-eabi-newlib
  6. Suggested packages:
  7. libnewlib-doc
  8. The following NEW packages will be installed:
  9. binutils-arm-none-eabi gcc-arm-none-eabi libnewlib-arm-none-eabi
  10. libnewlib-dev libstdc++-arm-none-eabi-newlib
  11. 0 upgraded, 5 newly installed, 0 to remove and 5 not upgraded.
  12. Need to get 60.7 MB of archives.
  13. After this operation, 448 MB of additional disk space will be used.

能够看到这里使用的库使newlib,不过这个库我在使用的时候一直bug不断,难道是我的使用方式不正确???
安装完成,测试下。

  1. masong@hydra:~$ arm-none-eabi-gcc --version
  2. arm-none-eabi-gcc (4.8.3-18ubuntu2+12) 4.8.3
  3. Copyright (C) 2013 Free Software Foundation, Inc.
  4. This is free software; see the source for copying conditions. There is NO
  5. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

安装成功!!!
这里只安装了arm-none-eabi-gcc,arm-none-eabi-gdb还没有进行安装,输入如下命令。

  1. sudo apt-get install gdb-arm-none-eabi

进行安装。
安装完成进行测试:

  1. masong@hydra:~$ arm-none-eabi-gdb --version
  2. GNU gdb (7.8-0ubuntu1+6) 7.8
  3. Copyright (C) 2014 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  7. and "show warranty" for details.
  8. This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
  9. Type "show configuration" for configuration details.
  10. For bug reporting instructions, please see:
  11. <http://www.gnu.org/software/gdb/bugs/>.
  12. Find the GDB manual and other documentation resources online at:
  13. <http://www.gnu.org/software/gdb/documentation/>.
  14. For help, type "help".
  15. Type "apropos word" to search for commands related to "word".

0x02安装JLINK下载器

这个再ubuntu的源里面是没有的需要从网上下载。下载地址如下,选择对应的版本下载:

  1. https://www.segger.com/jlink-software.html

ps:貌似要翻墙。。。

  1. chmod +x jlink_5.0.11_x86_64.deb
  2. sudo dpkg -i jlink_5.0.11_x86_64.deb

安装完成。

  1. masong@hydra:~/Downloads$ JLinkExe --version
  2. SEGGER J-Link Commander V5.00k ('?' for help)
  3. Compiled Jul 31 2015 15:51:24
  4. Unknown command line option --version.

版本为V5.0了。
现在再ubuntu上进行ARM开发的所有软件都已经安装完成了。
一个字,爽~

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注