この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン | |||
sa_devel:devel_tools_install:install_toochain:start [2013/09/11 17:26] admin |
sa_devel:devel_tools_install:install_toochain:start [2013/09/11 17:33] (現在) admin |
||
---|---|---|---|
ライン 1: | ライン 1: | ||
+ | ====== ツールチェインのインストール ====== | ||
+ | |||
+ | バイナリパッケージがPPAで提供されています。 | ||
+ | |||
+ | [[https://launchpad.net/~terry.guo/+archive/gcc-arm-embedded|GNU ARM Embedded Toolchain]] | ||
+ | |||
+ | 手順にしたがい、まずはPPAのリポジトリを追加します。 | ||
+ | |||
+ | <code> | ||
+ | # add-apt-repository ppa:terry.guo/gcc-arm-embedded | ||
+ | 以下のPPAをシステムに追加しようとしています: | ||
+ | This PPA is an alternative to toolchain released at https://launchpad.net/gcc-arm-embedded. | ||
+ | The source codes for both are same. Due to the limitation of Launchpad PPA, the only supported | ||
+ | platforms are Ubuntu 10.04 and 12.04 in 32-bit or 64-bit. | ||
+ | |||
+ | Detailed explanations to Launchpad PPA can be found at https://help.launchpad.net/Packaging/. | ||
+ | That website explains how we set up a PPA, how we add existing PPA and install software from it. | ||
+ | |||
+ | Here are quick steps to install toolchain from this PPA: | ||
+ | |||
+ | Step1: Inside Ubuntu, open a terminal and input | ||
+ | "sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded" | ||
+ | |||
+ | Step2: Continue to input | ||
+ | "sudo apt-get update" | ||
+ | |||
+ | Step3: Continue to input to install toolchain | ||
+ | "sudo apt-get install gcc-arm-none-eabi" | ||
+ | |||
+ | To remove installed toolchain, just input "sudo apt-get remove gcc-arm-none-eabi". | ||
+ | To update the toolchain, just repeat above step2 and step3. | ||
+ | |||
+ | Questions should be asked at https://answers.launchpad.net/gcc-arm-embedded | ||
+ | |||
+ | Bug can be filed at https://bugs.launchpad.net/gcc-arm-embedded/+filebug. It is highly encouraged | ||
+ | to ask question first before filing a bug. | ||
+ | 詳しい情報: https://launchpad.net/~terry.guo/+archive/gcc-arm-embedded | ||
+ | [ENTER] を押すと続行します。ctrl-c で追加をキャンセルできます | ||
+ | |||
+ | gpg: 鍵輪「/tmp/tmpxpdnpr/secring.gpg」ができました | ||
+ | gpg: 鍵輪「/tmp/tmpxpdnpr/pubring.gpg」ができました | ||
+ | gpg: 鍵A3421AFBをhkpからサーバーkeyserver.ubuntu.comに要求 | ||
+ | gpg: /tmp/tmpxpdnpr/trustdb.gpg: 信用データベースができました | ||
+ | gpg: 鍵A3421AFB: 公開鍵“Launchpad PPA for Terry Guo”を読み込みました | ||
+ | gpg: 処理数の合計: 1 | ||
+ | gpg: 読込み: 1 (RSA: 1) | ||
+ | OK | ||
+ | </code> | ||
+ | |||
+ | リポジトリが追加できましたので、パッケージデータベースを更新します。 | ||
+ | |||
+ | <code> | ||
+ | # apt-get update | ||
+ | ヒット http://dl.google.com stable Release.gpg | ||
+ | ヒット http://dl.google.com stable Release | ||
+ | ヒット http://dl.google.com stable/main amd64 Packages | ||
+ | ヒット http://dl.google.com stable/main i386 Packages | ||
+ | 取得:1 http://packages.linuxmint.com olivia Release.gpg [197 B] | ||
+ | ヒット http://archive.ubuntu.com raring Release.gpg | ||
+ | 取得:2 http://packages.linuxmint.com olivia Release [17.7 kB] | ||
+ | 〜〜〜 略 〜〜〜 | ||
+ | 無視 http://archive.ubuntu.com raring-updates/universe Translation-ja_JP | ||
+ | 無視 http://archive.ubuntu.com raring-updates/universe Translation-ja | ||
+ | 491 kB を 18秒 で取得しました (26.4 kB/s) | ||
+ | パッケージリストを読み込んでいます... 完了 | ||
+ | </code> | ||
+ | |||
+ | "gcc-arm-none-eabi" パッケージがあるか確認してみます。 | ||
+ | |||
+ | <code> | ||
+ | # apt-cache search gcc-arm-none-eabi | ||
+ | gcc-arm-none-eabi - A GNU-based tool chain for arm embedded processors | ||
+ | </code> | ||
+ | |||
+ | みつかりましたので、"apt-get install" でインストールします。 | ||
+ | |||
+ | <code> | ||
+ | # apt-get install gcc-arm-none-eabi | ||
+ | パッケージリストを読み込んでいます... 完了 | ||
+ | 依存関係ツリーを作成しています | ||
+ | 状態情報を読み取っています... 完了 | ||
+ | 以下のパッケージが新たにインストールされます: | ||
+ | gcc-arm-none-eabi | ||
+ | アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。 | ||
+ | 72.3 MB のアーカイブを取得する必要があります。 | ||
+ | この操作後に追加で 232 MB のディスク容量が消費されます。 | ||
+ | 取得:1 http://ppa.launchpad.net/terry.guo/gcc-arm-embedded/ubuntu/ raring/main gcc-arm-none-eabi amd64 4-7-2013q2-0raring5 [72.3 MB] | ||
+ | 72.3 MB を 21秒 で取得しました (3,289 kB/s) | ||
+ | 以前に未選択のパッケージ gcc-arm-none-eabi を選択しています。 | ||
+ | (データベースを読み込んでいます ... 現在 371815 個のファイルとディレクトリがインストールされています。) | ||
+ | (.../gcc-arm-none-eabi_4-7-2013q2-0raring5_amd64.deb から) gcc-arm-none-eabi を展開しています... | ||
+ | man-db のトリガを処理しています ... | ||
+ | gcc-arm-none-eabi (4-7-2013q2-0raring5) を設定しています ... | ||
+ | </code> | ||
+ | |||
+ | インストールできました。 | ||
+ | |||
+ | バージョンを確認してみます。 | ||
+ | |||
+ | <code> | ||
+ | # arm-none-eabi-gcc -v | ||
+ | Using built-in specs. | ||
+ | COLLECT_GCC=arm-none-eabi-gcc | ||
+ | COLLECT_LTO_WRAPPER=/usr/bin/../lib/gcc/arm-none-eabi/4.7.4/lto-wrapper | ||
+ | Target: arm-none-eabi | ||
+ | Configured with: /build/buildd/gcc-arm-none-eabi-4-7-2013q2/src/gcc/configure --target=arm-none-eabi --prefix=/build/bui | ||
+ | ldd/gcc-arm-none-eabi-4-7-2013q2/install-native --libexecdir=/build/buildd/gcc-arm-none-eabi-4-7-2013q2/install-native/l | ||
+ | ib --infodir=/build/buildd/gcc-arm-none-eabi-4-7-2013q2/install-native/share/doc/gcc-arm-none-eabi/info --mandir=/build/ | ||
+ | buildd/gcc-arm-none-eabi-4-7-2013q2/install-native/share/doc/gcc-arm-none-eabi/man --htmldir=/build/buildd/gcc-arm-none- | ||
+ | eabi-4-7-2013q2/install-native/share/doc/gcc-arm-none-eabi/html --pdfdir=/build/buildd/gcc-arm-none-eabi-4-7-2013q2/inst | ||
+ | all-native/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --disable-decimal-float --disable-libffi --disable-l | ||
+ | ibgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-share | ||
+ | d --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-newlib --with-headers=yes --with-python-dir=share/g | ||
+ | cc-arm-none-eabi --with-sysroot=/build/buildd/gcc-arm-none-eabi-4-7-2013q2/install-native/arm-none-eabi --with-host-libs | ||
+ | tdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors' --w | ||
+ | ith-multilib-list=armv6-m,armv7-m,armv7e-m,armv7-r | ||
+ | Thread model: single | ||
+ | gcc version 4.7.4 20130613 (release) [ARM/embedded-4_7-branch revision 200083] (GNU Tools for ARM Embedded Processors) | ||
+ | </code> | ||