-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #542 from RadxaStephen/main
feat: add radxa zero 3e buildroot
- Loading branch information
Showing
4 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
sidebar_position: 10 | ||
description: "Buildroot" | ||
--- | ||
|
||
# Buildroot | ||
|
||
## 环境准备 | ||
|
||
需要准备一台 Ubuntu 20.04/22.04 x86_64 主机。 | ||
|
||
## 获取 Rockchip 原始 SDK | ||
|
||
- Mega:https://mega.nz/file/JugCGDDC#NNL5_qRDRr-NL6TS3F1FSzkoXFwRCwDTNTW3KAiTtpI | ||
- 百度网盘:https://pan.baidu.com/s/12rQmYaRMKwgz8cOBNjc4yQ?pwd=35mj | ||
|
||
## 解压 SDK | ||
|
||
在 Ubuntu PC 上,使用如下命令解压 SDK。 | ||
|
||
``` | ||
tar xvf rk356x_linux5.10_rkr8_sdk.repo.tar | ||
.repo/repo/repo sync -l | ||
``` | ||
|
||
## 添加板子 Zero 3E 板子支持 | ||
|
||
使用 Radxa 维护的 rockchip 仓库。 | ||
|
||
``` | ||
cd device/rockchip | ||
git remote add radxa https://github.com/radxa/device-rockchip.git | ||
git checkout -b rk3566_rk3568-linux-5.10 remotes/radxa/rk3566_rk3568-linux-5.10 | ||
``` | ||
|
||
使用 Radxa 维护的 kernel 仓库。 | ||
|
||
``` | ||
cd kernel | ||
git remote add radxa https://github.com/radxa/kernel.git | ||
git checkout -b linux-5.10-gen-rkr8-buildroot remotes/radxa/linux-5.10-gen-rkr8-buildroot | ||
``` | ||
|
||
## 构建 SDK | ||
|
||
在 SDK 的顶层目录,执行命令: | ||
|
||
``` | ||
./build.sh | ||
``` | ||
|
||
然后选中配置文件 `rockchip_rk3566_radxa_zero_3e_defconfig`。 | ||
|
||
构建完成后,将会在 `rockdev/` 目录下生成镜像。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
i18n/en/docusaurus-plugin-content-docs/current/zero/zero3/other-os/buildroot.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
sidebar_position: 10 | ||
description: "Buildroot" | ||
--- | ||
|
||
# Buildroot | ||
|
||
## Preparation | ||
|
||
We need one Ubuntu 20.04/22.04 x86_64 PC. | ||
|
||
## Get rockchip original SDK | ||
|
||
- Mega: https://mega.nz/file/JugCGDDC#NNL5_qRDRr-NL6TS3F1FSzkoXFwRCwDTNTW3KAiTtpI | ||
- BaiduPan: https://pan.baidu.com/s/12rQmYaRMKwgz8cOBNjc4yQ?pwd=35mj | ||
|
||
## Extract SDK | ||
|
||
On Ubuntu PC we use the following commands to extract the SDK. | ||
|
||
``` | ||
tar xvf rk356x_linux5.10_rkr8_sdk.repo.tar | ||
.repo/repo/repo sync -l | ||
``` | ||
|
||
## Add board Zero 3E support | ||
|
||
Use Radxa reposiory, rockchip. | ||
|
||
``` | ||
cd device/rockchip | ||
git remote add radxa https://github.com/radxa/device-rockchip.git | ||
git checkout -b rk3566_rk3568-linux-5.10 remotes/radxa/rk3566_rk3568-linux-5.10 | ||
``` | ||
|
||
Use Radxa repository, kernel. | ||
|
||
``` | ||
cd kernel | ||
git remote add radxa https://github.com/radxa/kernel.git | ||
git checkout -b linux-5.10-gen-rkr8-buildroot remotes/radxa/linux-5.10-gen-rkr8-buildroot | ||
``` | ||
|
||
## Build SDK | ||
|
||
Navigate to the top-level directory of the SDK, run command. | ||
|
||
``` | ||
./build.sh | ||
``` | ||
|
||
And select defconfig `rockchip_rk3566_radxa_zero_3e_defconfig`. | ||
The target images will be stored on rockdev directory. |