mirror of
https://github.com/brain-hackers/wiki.brainux.org
synced 2026-10-28 10:15:02 +09:00
Move all posts into collections and update Liquid templates
This commit is contained in:
1 parent
dd5047c282
commit
9927d52aeb
21 files changed
+156
-99
No files matched your search
@@ -0,0 +1,59 @@
|
||||
---
|
||||
title: U-Boot のビルド
|
||||
categories:
|
||||
- U-Boot
|
||||
tags:
|
||||
- U-Boot
|
||||
- 自力ビルド
|
||||
excerpt: ""
|
||||
---
|
||||
|
||||
|
||||
# 動作環境
|
||||
|
||||
- Debian 10 (Buster)
|
||||
- Ubuntu 20.04 LTS
|
||||
|
||||
本項では上記のいずれかを使用していることを前提で記述します。
|
||||
|
||||
|
||||
# 環境の構築
|
||||
|
||||
[Linux のビルド](/linux/linux-build/)の頁ですでに構築している場合は飛ばします。
|
||||
|
||||
|
||||
## 依存関係のインストール
|
||||
|
||||
以下のコマンドで依存関係をインストールしてください。
|
||||
|
||||
```sh
|
||||
sudo apt install build-essential bison flex libncurses5-dev gcc-arm-linux-gnueabi debootstrap qemu-user-static
|
||||
```
|
||||
|
||||
|
||||
## Git リポジトリのクローン
|
||||
|
||||
Git リポジトリをクローンして、必要なファイルをダウンロードします。長い時間がかかるので、時間のある時に行いましょう。
|
||||
|
||||
```sh
|
||||
git clone --recursive https://github.com/brain-hackers/buildbrain.git
|
||||
```
|
||||
|
||||
|
||||
# U-Boot のビルドと nk.bin の作成
|
||||
|
||||
1. `cd buildbrain` で `buildbrain` ディレクトリに入ります
|
||||
|
||||
2. `make udefconfig-sh*` を実行して、 `.config` ファイルを作成します
|
||||
|
||||
- PW-Sx1 のとき: `make udefconfig-sh1`
|
||||
- PW-Sx5 のとき: `make udefconfig-sh5`
|
||||
|
||||
3. `make ubuild` を実行して `u-boot.sb` を生成します
|
||||
|
||||
4. `make nkbin-maker` を実行します
|
||||
|
||||
5. `make nk.bin` を実行します
|
||||
|
||||
|
||||
[Linux のビルド](/build/linux/)に続く…
|
||||
Reference in new issue
Block a user