Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add radxa zero 3e buildroot #542

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/zero/zero3/other-os/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ sidebar_position: 45

# 其他系统

介绍非 Radxa OS 的其他系统,例如 Android
介绍非 Radxa OS 的其他系统,例如 Android,Buildroot 和 Yocto 等。

<DocCardList />
54 changes: 54 additions & 0 deletions docs/zero/zero3/other-os/buildroot.md
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/` 目录下生成镜像。
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ sidebar_position: 45

# Other System

Introduces other systems than Radxa OS, such as Android.
Introduces other systems than Radxa OS, such as Android, Yocto and Buildroot.

<!-- <DocCardList /> -->
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.