Skip to content

Commit

Permalink
feat: add rock 5c
Browse files Browse the repository at this point in the history
Signed-off-by: Feng Zhang <[email protected]>
  • Loading branch information
vamrs-feng committed Mar 27, 2024
1 parent 71ab53b commit b6bca37
Show file tree
Hide file tree
Showing 102 changed files with 945 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 10
---

# ROCK 5C

一台具有 PCie 扩展并支持8K显示且拥有丰富功能扩展的卡片电脑。

<DocCardList />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/accessories/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 9
---

# 配件

使用 ROCK 5C 配件。

<DocCardList />
57 changes: 57 additions & 0 deletions docs/rock5/rock5c/accessories/camera.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
sidebar_position: 4
---

# 摄像头

目前支持以下几款摄像头:

1. Radxa Camera 4K
2. Okdo 5MP Camera
3. Raspberry v1.3 Camera
4. Raspberry v2 Camera

## 配置

以 Radxa Camera 4K 摄像头为例:

<!-- ![Camera-4K 安装-01](/img/rock5c/accessories/camera/rock5c-with-4k-camera-FPC.webp)
![Camera-4K 安装-02](/img/rock5c/accessories/camera/rock5c-4k-camera-connected.webp)
![Camera-4K 安装-03](/img/rock5c/accessories/camera/rock5c-4k-camera.webp) -->

- 准备好 Radxa Camera 4K,通过 FPC 线接上 ROCK 5C。

- 通过左下角 Application Launcher 打开 Kconsole 终端, 运行 `rsetup` 命令。

```bash
radxa@rock-5c:~$ rsetup
```

通过[设备树配置](../os-config/rsetup#overlays)来启用瑞莎 4K 摄像头的 Overlay。

:::caution [注意]

1. 请启用 `[] Enable Radxa Camera 4K` 项 Overlay。
2. 在启用成功显示 `[*] Enable Radxa Camera 4K` 后退出重启才能使配置生效。

:::

## 图像预览

你也可以使用终端命令打开相机预览:

```bash
gst-launch-1.0 v4l2src device=/dev/video11 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink;
```

使用以下命令拍照:

```bash
gst-launch-1.0 v4l2src device=/dev/video11 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! multifilesink location=file.name.jpg;
```

使用以下命令拍摄视频:

```bash
gst-launch-1.0 v4l2src num-buffers=512 device=/dev/video11 io-mode=4 ! videoconvert ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! mpegtsmux ! filesink location=/home/radxa/file.name.mp4
```
34 changes: 34 additions & 0 deletions docs/rock5/rock5c/accessories/display.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
sidebar_position: 3
---

# 显示屏

目前支持的显示屏如下:

1. Radxa 8HD display
2. Radxa 10HD display

## 配置

`radxa 8hd display` 为例:

<!-- ![显示屏安装-01](/img/rock5c/accessories/display/rock5c-display-8hd-FPC.webp)
![显示屏安装-02](/img/rock5c/accessories/display/rock5c-display-8hd-connected.webp) -->

- 准备好 Radxa Display 8HD 或者 Radxa Display 10HD,通过 FPC 线接上 ROCK 5C。

- 通过左下角 Application Launcher 打开 Kconsole 终端, 运行 `rsetup` 命令:

```bash
radxa@rock-5c:~$ rsetup
```

- 通过[设备树配置](../os-config/rsetup#overlays)来启用瑞莎 8 寸触摸屏的 Overlay。

:::caution [注意]

1. 请启用 `[] Enable Radxa Display 8 HD` 项 Overlay。
2. 在启用成功显示 `[*] Enable Radxa Display 8 HD` 后退出重启才能使配置生效。

:::
5 changes: 5 additions & 0 deletions docs/rock5/rock5c/accessories/pd-30w.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Content from '../../../common/accessories/\_pd-30w.mdx'

# Radxa Power PD 30W

<Content />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/app-development/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 5
---

# 应用开发

主要介绍上层应用开发,比如QT, WiringX, Mraa 等

<DocCardList />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/app-development/canbus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 2
---

# Canbus 使用

import CANBUS from '../../../common/dev/\_canbus.mdx';

<CANBUS />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/app-development/gpiod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 2
---

# GPIOD 使用

import GPIOD from '../../../common/dev/\_gpiod.mdx';

<GPIOD />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/app-development/mraa.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 2
---

# Mraa 使用

import MRAA from '../../../common/dev/\_mraa.mdx';

<MRAA />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/app-development/panfork.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 4
---

import Panfork from '../../../common/dev/\_panfork.mdx';

# Panfork GPU 驱动

<Panfork />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/app-development/qt_cross_compile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 2
---

# QT 交叉编译

import QTCROSSCOMPILE from '../../../common/dev/\_qt-cross-compile.mdx';

<QTCROSSCOMPILE />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/app-development/rknn_install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 9
---

# RKNN 安装

import RKNNinstall from '../../../common/dev/\_rknn-install.mdx';

<RKNNinstall />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/app-development/rknn_toolkit2_pc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 10
---

# 模拟推理 YOLOv5 分割模型

import RKNNTOOLKIT2PC from '../../../common/dev/\_rknn-toolkit2-pc.mdx';

<RKNNTOOLKIT2PC />
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 11
---

# 板端部署 YOLOv8 目标检测

import RKNNTOOLKITLITE2YOLOV8 from '../../../common/dev/\_rknn-toolkit-lite2-yolov8.mdx';

< RKNNTOOLKITLITE2YOLOV8 />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/app-development/rtsp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 3
---

import Rtsp from '../../../common/dev/\_rtsp.mdx';

# RTSP 推流

<Rtsp />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/app-development/sensor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 5
---

import Sensor from '../../../common/dev/\_sensor.mdx';

# 传感器的使用

<Sensor />
5 changes: 5 additions & 0 deletions docs/rock5/rock5c/app-development/wiringx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
sidebar_position: 1
---

# WiringX 使用
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/apps-deployment/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 4
---

# 应用部署

主要介绍类似 Samba, Docker, PVE, OMV, LAMP, Cheese, 远程控制面板等常见应用的配置及使用

<DocCardList />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/apps-deployment/docker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 1
---

# Docker

import DOCKER from '../../../common/apps/\_docker.mdx';

<DOCKER />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/apps-deployment/samba.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 2
---

# Samba

import SAMBA from '../../../common/apps/\_samba.mdx';

<SAMBA />
5 changes: 5 additions & 0 deletions docs/rock5/rock5c/faq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
sidebar_position: 10
---

# FAQ
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/getting-started/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 1
---

# 快速上手

开始你的 ROCK 5C 之旅。

<DocCardList />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/getting-started/install-os.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 15
---

import InstallOS from "../../../common/general/\_install-os.mdx";

# 安装操作系统

<InstallOS />
7 changes: 7 additions & 0 deletions docs/rock5/rock5c/hardware-design/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 6
---

# 硬件信息

硬件资料查询下载。
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/low-level-dev/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 7
---

# 底层开发

主要介绍 uboot, kernel, debian os 编译打包等内容

<DocCardList />
11 changes: 11 additions & 0 deletions docs/rock5/rock5c/low-level-dev/kernel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
sidebar_position: 2
---

# Kernel 开发

## 编译内核

import KERNEL from '../../../common/dev/\_kernel.mdx';

<KERNEL />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/low-level-dev/rbuild.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 3
---

# 系统编译

import RBUILD from '../../../common/dev/\_rbuild.mdx';

<RBUILD />
3 changes: 3 additions & 0 deletions docs/rock5/rock5c/low-level-dev/rkdeveloptool.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Rkdeveloptool from "../../../common/dev/\_rkdeveloptool.mdx";

<Rkdeveloptool />
5 changes: 5 additions & 0 deletions docs/rock5/rock5c/low-level-dev/rkdevtool.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import RKDevTool from "../../../common/dev/\_rkdevtool.mdx"

# RKDevTool

<RKDevTool />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/low-level-dev/rknn-toolkit2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 3
---

import Rknntoolkit2 from "../../../common/dev/\_rknn-toolkit2.mdx"

# RKNN Toolkit2

<Rknntoolkit2 />
5 changes: 5 additions & 0 deletions docs/rock5/rock5c/low-level-dev/serial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Serial from "../../../common/general/\_serial.mdx"

# UART 串口控制台

<Serial platform="rk" />
11 changes: 11 additions & 0 deletions docs/rock5/rock5c/low-level-dev/u-boot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
sidebar_position: 2
---

# U-boot 开发

## 编译 U-Boot

import UBOOT from '../../../common/dev/\_u-boot.mdx';

<UBOOT />
9 changes: 9 additions & 0 deletions docs/rock5/rock5c/os-config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 3
---

# 系统配置

介绍如何通过工具(例如rsetup)或者命令行去使用设备或者功能。

<DocCardList />
5 changes: 5 additions & 0 deletions docs/rock5/rock5c/os-config/bootparam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Bootparam from "../../../common/radxa-os/\_bootparam.mdx";

# 启动参数

<Bootparam />
3 changes: 3 additions & 0 deletions docs/rock5/rock5c/os-config/rsetup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Rsetup from "../../../common/config/\_rsetup.mdx";

<Rsetup />
5 changes: 5 additions & 0 deletions docs/rock5/rock5c/other-os/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
sidebar_position: 8
---

# 其他系统
Loading

0 comments on commit b6bca37

Please sign in to comment.