Skip to content

Commit

Permalink
Merge pull request #542 from RadxaStephen/main
Browse files Browse the repository at this point in the history
feat: add radxa zero 3e buildroot
  • Loading branch information
peterwang2050 authored Oct 31, 2024
2 parents a4a5e24 + cfc75dd commit bc5a2c3
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 2 deletions.
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.

0 comments on commit bc5a2c3

Please sign in to comment.