文書の過去の版を表示しています。
Raspberry Pi ベアメタル
まとめを整理してる最中です😅💦
$ sudo dnf install arm-none-eabi-gcc-cs
メタデータの期限切れの最終確認: 0:00:14 時間前の 2022年12月11日 08時26分23秒 に実施しました。 依存関係が解決しました。 ============================================================================================================== パッケージ アーキテクチャー バージョン リポジトリー サイズ ============================================================================================================== インストール: arm-none-eabi-gcc-cs x86_64 1:12.2.0-1.fc37 fedora 188 M 依存関係のインストール: arm-none-eabi-binutils-cs x86_64 1:2.39-1.fc37 fedora 2.4 M トランザクションの概要 ============================================================================================================== インストール 2 パッケージ ダウンロードサイズの合計: 191 M インストール後のサイズ: 1.0 G これでよろしいですか? [y/N]: y パッケージのダウンロード: (1/2): arm-none-eabi-binutils-cs-2.39-1.fc37.x86_64.rpm 1.1 MB/s | 2.4 MB 00:02 (2/2): arm-none-eabi-gcc-cs-12.2.0-1.fc37.x86_64.rpm 2.7 MB/s | 188 MB 01:08 -------------------------------------------------------------------------------------------------------------- 合計 2.7 MB/s | 191 MB 01:09 Fedora 37 - x86_64 1.6 MB/s | 1.6 kB 00:00 トランザクションの確認を実行中 トランザクションの確認に成功しました。 トランザクションのテストを実行中 トランザクションのテストに成功しました。 トランザクションを実行中 準備 : 1/1 インストール中 : arm-none-eabi-binutils-cs-1:2.39-1.fc37.x86_64 1/2 インストール中 : arm-none-eabi-gcc-cs-1:12.2.0-1.fc37.x86_64 2/2 scriptletの実行中: arm-none-eabi-gcc-cs-1:12.2.0-1.fc37.x86_64 2/2 検証 : arm-none-eabi-binutils-cs-1:2.39-1.fc37.x86_64 1/2 検証 : arm-none-eabi-gcc-cs-1:12.2.0-1.fc37.x86_64 2/2 インストール済み: arm-none-eabi-binutils-cs-1:2.39-1.fc37.x86_64 arm-none-eabi-gcc-cs-1:12.2.0-1.fc37.x86_64 完了しました!
$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (Fedora 12.2.0-1.fc37) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ rustc --version
rustc 1.65.0 (897e37553 2022-11-02)
$ git clone --depth 1 --no-single-branch --branch 1.65.0 https://github.com/rust-lang/rust.git
Cloning into 'rust'... remote: Enumerating objects: 267029, done. remote: Counting objects: 100% (267029/267029), done. remote: Compressing objects: 100% (141364/141364), done. remote: Total 267029 (delta 190093), reused 177221 (delta 121599), pack-reused 0 Receiving objects: 100% (267029/267029), 125.36 MiB | 2.44 MiB/s, done. Resolving deltas: 100% (190093/190093), done. Note: switching to '897e37553bba8b42751c67658967889d11ecd120'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -cOr undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false Updating files: 100% (36819/36819), done.
$ cargo install xargo
Updating crates.io index Downloaded xargo v0.3.26 Downloaded 1 crate (193.2 KB) in 2.19s Installing xargo v0.3.26 Downloaded fs2 v0.4.3 Downloaded rustc_version v0.4.0 Downloaded serde v1.0.149 Downloaded error-chain v0.12.4 Downloaded semver v1.0.14 Downloaded libc v0.2.138 Downloaded serde_json v1.0.89 Downloaded itoa v1.0.4 Downloaded 8 crates (925.4 KB) in 1.44s Compiling libc v0.2.138 Compiling serde v1.0.149 Compiling version_check v0.9.4 Compiling semver v1.0.14 Compiling serde_json v1.0.89 Compiling remove_dir_all v0.5.3 Compiling same-file v1.0.6 Compiling itoa v1.0.4 Compiling xargo v0.3.26 Compiling ryu v1.0.11 Compiling walkdir v2.3.2 Compiling error-chain v0.12.4 Compiling rustc_version v0.4.0 Compiling dirs-sys v0.3.7 Compiling rand v0.4.6 Compiling fs2 v0.4.3 Compiling dirs v4.0.0 Compiling tempdir v0.3.7 Compiling toml v0.5.9 Finished release [optimized] target(s) in 16m 30s Installing /home/tomoyan/.cargo/bin/xargo Installing /home/tomoyan/.cargo/bin/xargo-check Installed package `xargo v0.3.26` (executables `xargo`, `xargo-check`)