diff --git a/docs/dragon/q6a/accessories/camera-12m-577.md b/docs/dragon/q6a/accessories/camera-12m-577.md index 2410f7034..c10f0d6a7 100644 --- a/docs/dragon/q6a/accessories/camera-12m-577.md +++ b/docs/dragon/q6a/accessories/camera-12m-577.md @@ -42,24 +42,26 @@ sudo apt install \ -### 编译安装 libcamera +### 使用 Debian 官方打包仓库自打包安装 libcamera ```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 ``` @@ -76,13 +78,24 @@ sudo chmod 666 /dev/dma_heap/* ### 启动摄像头 -打开系统桌面终端,进入 libcamera 的 build 目录,启动 qcam。 +使用 gstreamer 的 libcamera 元素预览摄像头画面: + + + +```bash +# 使用 libcamera 元素连接到 autovideosink +gst-launch-1.0 libcamerasrc ! autovideosink +``` + + + +或者指定具体的分辨率和格式: ```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 ``` diff --git a/docs/dragon/q6a/accessories/camera-13m-214.md b/docs/dragon/q6a/accessories/camera-13m-214.md index 8b57148ed..f9167f4ea 100644 --- a/docs/dragon/q6a/accessories/camera-13m-214.md +++ b/docs/dragon/q6a/accessories/camera-13m-214.md @@ -42,24 +42,26 @@ sudo apt install \ -### 编译安装 libcamera +### 使用 Debian 官方打包仓库自打包安装 libcamera ```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 ``` @@ -76,13 +78,24 @@ sudo chmod 666 /dev/dma_heap/* ### 启动摄像头 -打开系统桌面终端,进入 libcamera 的 build 目录,启动 qcam。 +使用 gstreamer 的 libcamera 元素预览摄像头画面: + + + +```bash +# 使用 libcamera 元素连接到 autovideosink +gst-launch-1.0 libcamerasrc ! autovideosink +``` + + + +或者指定具体的分辨率和格式: ```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 ``` diff --git a/docs/dragon/q6a/accessories/camera-4k.md b/docs/dragon/q6a/accessories/camera-4k.md index 643d7a8c9..92d7f4eb1 100644 --- a/docs/dragon/q6a/accessories/camera-4k.md +++ b/docs/dragon/q6a/accessories/camera-4k.md @@ -42,24 +42,26 @@ sudo apt install \ -### 编译安装 libcamera +### 使用 Debian 官方打包仓库自打包安装 libcamera ```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 ``` @@ -76,13 +78,24 @@ sudo chmod 666 /dev/dma_heap/* ### 启动摄像头 -打开系统桌面终端,进入 libcamera 的 build 目录,启动 qcam。 +使用 gstreamer 的 libcamera 元素预览摄像头画面: + + + +```bash +# 使用 libcamera 元素连接到 autovideosink +gst-launch-1.0 libcamerasrc ! autovideosink +``` + + + +或者指定具体的分辨率和格式: ```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 ``` diff --git a/docs/dragon/q6a/accessories/camera-8m-219.md b/docs/dragon/q6a/accessories/camera-8m-219.md index 02bdb32f6..83381c7d8 100644 --- a/docs/dragon/q6a/accessories/camera-8m-219.md +++ b/docs/dragon/q6a/accessories/camera-8m-219.md @@ -42,31 +42,33 @@ sudo apt install \ -### 编译安装 libcamera +### 使用 Debian 官方打包仓库自打包安装 libcamera ```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 ``` ### 修改配置文件 -进入 `libcamera` 目录,修改 `libcamera/src/ipa/simple/data/imx219.yaml`文件。 +进入 Debian 打包的 libcamera 目录,修改 `src/ipa/simple/data/imx219.yaml`文件。 @@ -119,13 +121,24 @@ sudo chmod 666 /dev/dma_heap/* ### 启动摄像头 -打开系统桌面终端,进入 libcamera 的 build 目录,启动 qcam。 +使用 gstreamer 的 libcamera 元素预览摄像头画面: + + + +```bash +# 使用 libcamera 元素连接到 autovideosink +gst-launch-1.0 libcamerasrc ! autovideosink +``` + + + +或者指定具体的分辨率和格式: ```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 ``` diff --git a/docs/rock5/rock5b/other-os/android/install-os.md b/docs/rock5/rock5b/other-os/android/install-os.md index 60a0cb9e2..8876c6620 100644 --- a/docs/rock5/rock5b/other-os/android/install-os.md +++ b/docs/rock5/rock5b/other-os/android/install-os.md @@ -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)。
@@ -73,7 +73,7 @@ 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) @@ -81,7 +81,7 @@ ROCK 5B/5B+ 支持 9V/2A、12V/2A、15V/2A 和 20V/2A 的 USB Type-C PD 2.0。 #### Mac 系统使用 rkdeveloptool 写入 -[rkdeveloptool](../../low-level-dev/maskrom/mac-os) +[rkdeveloptool](../../low-level-dev/install-os/rkdevtool_use#tab-macos) @@ -89,7 +89,7 @@ ROCK 5B/5B+ 支持 9V/2A、12V/2A、15V/2A 和 20V/2A 的 USB Type-C PD 2.0。 #### Windows 系统使用 rkdevtool 写入 -[rkdevtool](../../low-level-dev/maskrom/windows) +[rkdevtool](../../low-level-dev/install-os/rkdevtool_use#tab-windows) @@ -122,7 +122,7 @@ 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) @@ -130,7 +130,7 @@ ROCK 5B/5B+ 支持 9V/2A、12V/2A、15V/2A 和 20V/2A 的 USB Type-C PD 2.0。 #### Mac 系统使用 rkdeveloptool 写入 -[rkdeveloptool](../../low-level-dev/maskrom/mac-os) +[rkdeveloptool](../../low-level-dev/install-os/rkdevtool_use#tab-macos)