diff --git a/docs/zero/zero3/other-os/README.md b/docs/zero/zero3/other-os/README.md index 1c24433d6..fb0cdeb41 100644 --- a/docs/zero/zero3/other-os/README.md +++ b/docs/zero/zero3/other-os/README.md @@ -4,6 +4,6 @@ sidebar_position: 45 # 其他系统 -介绍非 Radxa OS 的其他系统,例如 Android +介绍非 Radxa OS 的其他系统,例如 Android,Buildroot 和 Yocto 等。 diff --git a/docs/zero/zero3/other-os/buildroot.md b/docs/zero/zero3/other-os/buildroot.md new file mode 100644 index 000000000..a747b6b55 --- /dev/null +++ b/docs/zero/zero3/other-os/buildroot.md @@ -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/` 目录下生成镜像。 diff --git a/i18n/en/docusaurus-plugin-content-docs/current/zero/zero3/other-os/README.md b/i18n/en/docusaurus-plugin-content-docs/current/zero/zero3/other-os/README.md index 12e6f519d..e678fc9f9 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/zero/zero3/other-os/README.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/zero/zero3/other-os/README.md @@ -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. diff --git a/i18n/en/docusaurus-plugin-content-docs/current/zero/zero3/other-os/buildroot.md b/i18n/en/docusaurus-plugin-content-docs/current/zero/zero3/other-os/buildroot.md new file mode 100644 index 000000000..8f1868da4 --- /dev/null +++ b/i18n/en/docusaurus-plugin-content-docs/current/zero/zero3/other-os/buildroot.md @@ -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.