Skip to content
Open
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
45 changes: 29 additions & 16 deletions docs/dragon/q6a/accessories/camera-12m-577.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,26 @@ sudo apt install \

</NewCodeBlock>

### 编译安装 libcamera
### 使用 Debian 官方打包仓库自打包安装 libcamera

<NewCodeBlock tip='radxa@dragon-q6a$' type="device">

```bash
git clone https://git.linuxtv.org/libcamera.git
# 安装打包工具和依赖
sudo apt install -y devscripts
sudo apt build-dep libcamera

# 获取 Debian 官方打包仓库的 0.4.0-7 分支
git clone https://salsa.debian.org/multimedia-team/libcamera.git
cd libcamera
git checkout 02277d4c1a5ae7fee582f635936877435a12db64 # Optional. The following test steps are based on this version of libcamera.
meson setup build --wipe \
-Dpipelines=simple \
-Dcam=enabled \
-Dgstreamer=disabled \
-Dv4l2=enabled \
-Dlc-compliance=disabled \
-Dqcam=enabled
ninja -C build -j$(nproc)
sudo ninja -C build install
sudo ldconfig
git checkout debian/0.4.0-7

# 编译打包 libcamera
debuild --no-lintian --no-sign -b

# 安装生成的 deb 包,包括 gstreamer 插件
sudo apt-get install ./../libcamera*.deb ./../libcamera-dev*.deb ./../libcamera-tools*.deb
sudo apt-get install ./../gstreamer1.0-libcamera*.deb
```

</NewCodeBlock>
Expand All @@ -76,13 +78,24 @@ sudo chmod 666 /dev/dma_heap/*

### 启动摄像头

打开系统桌面终端,进入 libcamera 的 build 目录,启动 qcam。
使用 gstreamer 的 libcamera 元素预览摄像头画面:

<NewCodeBlock tip='radxa@dragon-q6a$' type="device">

```bash
# 使用 libcamera 元素连接到 autovideosink
gst-launch-1.0 libcamerasrc ! autovideosink
```

</NewCodeBlock>

或者指定具体的分辨率和格式:

<NewCodeBlock tip='radxa@dragon-q6a$' type="device">

```bash
cd libcamera/build/src/apps/qcam/
./qcam --stream pixelformat=YUYV,width=1920,height=1080
# 指定分辨率和格式
gst-launch-1.0 libcamerasrc ! video/x-raw,width=1920,height=1080,format=YUYV ! autovideosink
```

</NewCodeBlock>
45 changes: 29 additions & 16 deletions docs/dragon/q6a/accessories/camera-13m-214.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,26 @@ sudo apt install \

</NewCodeBlock>

### 编译安装 libcamera
### 使用 Debian 官方打包仓库自打包安装 libcamera

<NewCodeBlock tip='radxa@dragon-q6a$' type="device">

```bash
git clone https://git.linuxtv.org/libcamera.git
# 安装打包工具和依赖
sudo apt install -y devscripts
sudo apt build-dep libcamera

# 获取 Debian 官方打包仓库的 0.4.0-7 分支
git clone https://salsa.debian.org/multimedia-team/libcamera.git
cd libcamera
git checkout 02277d4c1a5ae7fee582f635936877435a12db64 # Optional. The following test steps are based on this version of libcamera.
meson setup build --wipe \
-Dpipelines=simple \
-Dcam=enabled \
-Dgstreamer=disabled \
-Dv4l2=enabled \
-Dlc-compliance=disabled \
-Dqcam=enabled
ninja -C build -j$(nproc)
sudo ninja -C build install
sudo ldconfig
git checkout debian/0.4.0-7

# 编译打包 libcamera
debuild --no-lintian --no-sign -b

# 安装生成的 deb 包,包括 gstreamer 插件
sudo apt-get install ./../libcamera*.deb ./../libcamera-dev*.deb ./../libcamera-tools*.deb
sudo apt-get install ./../gstreamer1.0-libcamera*.deb
```

</NewCodeBlock>
Expand All @@ -76,13 +78,24 @@ sudo chmod 666 /dev/dma_heap/*

### 启动摄像头

打开系统桌面终端,进入 libcamera 的 build 目录,启动 qcam。
使用 gstreamer 的 libcamera 元素预览摄像头画面:

<NewCodeBlock tip='radxa@dragon-q6a$' type="device">

```bash
# 使用 libcamera 元素连接到 autovideosink
gst-launch-1.0 libcamerasrc ! autovideosink
```

</NewCodeBlock>

或者指定具体的分辨率和格式:

<NewCodeBlock tip='radxa@dragon-q6a$' type="device">

```bash
cd libcamera/build/src/apps/qcam/
./qcam --stream pixelformat=YUYV,width=1920,height=1080
# 指定分辨率和格式
gst-launch-1.0 libcamerasrc ! video/x-raw,width=1920,height=1080,format=YUYV ! autovideosink
```

</NewCodeBlock>
45 changes: 29 additions & 16 deletions docs/dragon/q6a/accessories/camera-4k.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,26 @@ sudo apt install \

</NewCodeBlock>

### 编译安装 libcamera
### 使用 Debian 官方打包仓库自打包安装 libcamera

<NewCodeBlock tip='radxa@dragon-q6a$' type="device">

```bash
git clone https://git.linuxtv.org/libcamera.git
# 安装打包工具和依赖
sudo apt install -y devscripts
sudo apt build-dep libcamera

# 获取 Debian 官方打包仓库的 0.4.0-7 分支
git clone https://salsa.debian.org/multimedia-team/libcamera.git
cd libcamera
git checkout 02277d4c1a5ae7fee582f635936877435a12db64 # Optional. The following test steps are based on this version of libcamera.
meson setup build --wipe \
-Dpipelines=simple \
-Dcam=enabled \
-Dgstreamer=disabled \
-Dv4l2=enabled \
-Dlc-compliance=disabled \
-Dqcam=enabled
ninja -C build -j$(nproc)
sudo ninja -C build install
sudo ldconfig
git checkout debian/0.4.0-7

# 编译打包 libcamera
debuild --no-lintian --no-sign -b

# 安装生成的 deb 包,包括 gstreamer 插件
sudo apt-get install ./../libcamera*.deb ./../libcamera-dev*.deb ./../libcamera-tools*.deb
sudo apt-get install ./../gstreamer1.0-libcamera*.deb
```

</NewCodeBlock>
Expand All @@ -76,13 +78,24 @@ sudo chmod 666 /dev/dma_heap/*

### 启动摄像头

打开系统桌面终端,进入 libcamera 的 build 目录,启动 qcam。
使用 gstreamer 的 libcamera 元素预览摄像头画面:

<NewCodeBlock tip='radxa@dragon-q6a$' type="device">

```bash
# 使用 libcamera 元素连接到 autovideosink
gst-launch-1.0 libcamerasrc ! autovideosink
```

</NewCodeBlock>

或者指定具体的分辨率和格式:

<NewCodeBlock tip='radxa@dragon-q6a$' type="device">

```bash
cd libcamera/build/src/apps/qcam/
./qcam --stream pixelformat=YUYV,width=1920,height=1080
# 指定分辨率和格式
gst-launch-1.0 libcamerasrc ! video/x-raw,width=1920,height=1080,format=YUYV ! autovideosink
```

</NewCodeBlock>
47 changes: 30 additions & 17 deletions docs/dragon/q6a/accessories/camera-8m-219.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,33 @@ sudo apt install \

</NewCodeBlock>

### 编译安装 libcamera
### 使用 Debian 官方打包仓库自打包安装 libcamera

<NewCodeBlock tip='radxa@dragon-q6a$' type="device">

```bash
git clone https://git.linuxtv.org/libcamera.git
# 安装打包工具和依赖
sudo apt install -y devscripts
sudo apt build-dep libcamera

# 获取 Debian 官方打包仓库的 0.4.0-7 分支
git clone https://salsa.debian.org/multimedia-team/libcamera.git
cd libcamera
git checkout 02277d4c1a5ae7fee582f635936877435a12db64 # Optional. The following test steps are based on this version of libcamera.
meson setup build --wipe \
-Dpipelines=simple \
-Dcam=enabled \
-Dgstreamer=disabled \
-Dv4l2=enabled \
-Dlc-compliance=disabled \
-Dqcam=enabled
ninja -C build -j$(nproc)
sudo ninja -C build install
sudo ldconfig
git checkout debian/0.4.0-7

# 编译打包 libcamera
debuild --no-lintian --no-sign -b

# 安装生成的 deb 包,包括 gstreamer 插件
sudo apt-get install ./../libcamera*.deb ./../libcamera-dev*.deb ./../libcamera-tools*.deb
sudo apt-get install ./../gstreamer1.0-libcamera*.deb
```

</NewCodeBlock>

### 修改配置文件

进入 `libcamera` 目录,修改 `libcamera/src/ipa/simple/data/imx219.yaml`文件。
进入 Debian 打包的 libcamera 目录,修改 `src/ipa/simple/data/imx219.yaml`文件。

<NewCodeBlock tip='radxa@dragon-q6a$' type="device">

Expand Down Expand Up @@ -119,13 +121,24 @@ sudo chmod 666 /dev/dma_heap/*

### 启动摄像头

打开系统桌面终端,进入 libcamera 的 build 目录,启动 qcam。
使用 gstreamer 的 libcamera 元素预览摄像头画面:

<NewCodeBlock tip='radxa@dragon-q6a$' type="device">

```bash
# 使用 libcamera 元素连接到 autovideosink
gst-launch-1.0 libcamerasrc ! autovideosink
```

</NewCodeBlock>

或者指定具体的分辨率和格式:

<NewCodeBlock tip='radxa@dragon-q6a$' type="device">

```bash
cd libcamera/build/src/apps/qcam/
./qcam --stream pixelformat=YUYV,width=1920,height=1080
# 指定分辨率和格式
gst-launch-1.0 libcamerasrc ! video/x-raw,width=1920,height=1080,format=YUYV ! autovideosink
```

</NewCodeBlock>
Expand Down
12 changes: 6 additions & 6 deletions docs/rock5/rock5b/other-os/android/install-os.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ROCK 5B/5B+ 可以从 microSD 卡启动,也可以从 EMMC 启动,还可以

### 清除 SPI Flash

在使用 microSD 卡/ eMMC 启动时,如果SPI Flash 里面有数据,需要先清空 SPI Flash,参考 [清除 SPI Flash](../../low-level-dev/maskrom/erase)。
在使用 microSD 卡/ eMMC 启动时,如果SPI Flash 里面有数据,需要先清空 SPI Flash,参考 [清除 SPI Flash](../../getting-started/install-os/erase_spi-flash)。

<details>

Expand Down Expand Up @@ -73,23 +73,23 @@ ROCK 5B/5B+ 支持 9V/2A、12V/2A、15V/2A 和 20V/2A 的 USB Type-C PD 2.0。

#### Linux 系统使用 rkdeveloptool 写入

[rkdeveloptool](../../low-level-dev/maskrom/linux)
[rkdeveloptool](../../low-level-dev/install-os/rkdevtool_use#tab-linux)

</TabItem>

<TabItem value="mac" label="Mac">

#### Mac 系统使用 rkdeveloptool 写入

[rkdeveloptool](../../low-level-dev/maskrom/mac-os)
[rkdeveloptool](../../low-level-dev/install-os/rkdevtool_use#tab-macos)

</TabItem>

<TabItem value="windows" label="Windows">

#### Windows 系统使用 rkdevtool 写入

[rkdevtool](../../low-level-dev/maskrom/windows)
[rkdevtool](../../low-level-dev/install-os/rkdevtool_use#tab-windows)

</TabItem>

Expand Down Expand Up @@ -122,15 +122,15 @@ ROCK 5B/5B+ 支持 9V/2A、12V/2A、15V/2A 和 20V/2A 的 USB Type-C PD 2.0。

#### Linux 系统使用 rkdeveloptool 写入

[rkdeveloptool](../../low-level-dev/maskrom/linux)
[rkdeveloptool](../../low-level-dev/install-os/rkdevtool_use#tab-linux)

</TabItem>

<TabItem value="mac" label="mac(适用于Rock 5B)">

#### Mac 系统使用 rkdeveloptool 写入

[rkdeveloptool](../../low-level-dev/maskrom/mac-os)
[rkdeveloptool](../../low-level-dev/install-os/rkdevtool_use#tab-macos)

</TabItem>

Expand Down