diff --git a/docs/common/accessories/_fan.mdx b/docs/common/accessories/_fan.mdx index a69e2bdb8..583d506bb 100644 --- a/docs/common/accessories/_fan.mdx +++ b/docs/common/accessories/_fan.mdx @@ -44,10 +44,10 @@ 2. 通过以下命令找到风扇设备 -
- ls /sys/class/thermal/cooling_device*/type+ ```text + ls /sys/class/thermal/cooling_device*/type + cat /sys/class/thermal/cooling_device*/type + ```
- cat /sys/class/thermal/cooling_device*/type -
{`radxa@${props.model}:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0\n179:0 0 14.5G 0 disk ├─mmcblk0p1 179:1 0 16M 0 part /config └─mmcblk0p2\n179:2 0 14.4G 0 part / mmcblk0boot0 179:32 0 4M 1 disk mmcblk0boot1 179:64 0\n4M 1 disk zram0 254:0 0 3.8G 0 disk [SWAP] nvme0n1 259:0 0 238.5G 0 disk`}
2. 这时你可以看到,系统已经识别出 SSD(**nvme0n1**)。
diff --git a/docs/common/accessories/_m.2-sata-break-board.mdx b/docs/common/accessories/_m.2-sata-break-board.mdx
index 2c380adee..58aebdfd9 100644
--- a/docs/common/accessories/_m.2-sata-break-board.mdx
+++ b/docs/common/accessories/_m.2-sata-break-board.mdx
@@ -39,12 +39,7 @@
通过 `lsblk` 命令查看SSD是否被识别到
-
- radxa@{props.model}:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0
- 0 476.9G 0 disk mmcblk0 179:0 0 14.5G 0 disk ├─mmcblk0p1 179:1 0 16M 0 part
- /config └─mmcblk0p2 179:2 0 14.4G 0 part / mmcblk0boot0 179:32 0 4M 1 disk
- mmcblk0boot1 179:64 0 4M 1 disk zram0 254:0 0 3.9G 0 disk [SWAP]
-
+ {`radxa@${props.model}:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0\n0 476.9G 0 disk mmcblk0 179:0 0 14.5G 0 disk ├─mmcblk0p1 179:1 0 16M 0 part\n/config └─mmcblk0p2 179:2 0 14.4G 0 part / mmcblk0boot0 179:32 0 4M 1 disk\nmmcblk0boot1 179:64 0 4M 1 disk zram0 254:0 0 3.9G 0 disk [SWAP]`}
当系统识别到 SATA 时,可以查看到 **sda**
diff --git a/docs/common/accessories/_mobile-lte-em05-ce.mdx b/docs/common/accessories/_mobile-lte-em05-ce.mdx
index 5cf1e0338..15d1d7ea6 100644
--- a/docs/common/accessories/_mobile-lte-em05-ce.mdx
+++ b/docs/common/accessories/_mobile-lte-em05-ce.mdx
@@ -32,10 +32,7 @@
你可以通过以下命令检查设备是否已连接:
-
- radxa@{props.model}:~$ lsusb | grep -i Quectel Bus 002 Device 002: ID
- 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem
-
+{`radxa@${props.model}:~$ lsusb | grep -i Quectel Bus 002 Device 002: ID\n2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem`}
调制解调器通常是通过串口和宿主机进行通信。请检查系统是否正确枚举出对应的串口设备:
diff --git a/docs/common/accessories/_usb.mdx b/docs/common/accessories/_usb.mdx
index f6abbc21a..316ccbe43 100644
--- a/docs/common/accessories/_usb.mdx
+++ b/docs/common/accessories/_usb.mdx
@@ -4,38 +4,36 @@
1. 识别鼠标键盘
- - lsusb Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 007 - Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: - ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 001: ID 1d6b:0002 - Linux Foundation 2.0 root hub - Bus 004 Device 002: ID c0f4:04c0 SZH usb keyboard - Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 - Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: - ID 1d6b:0001 Linux Foundation 1.1 root hub - Bus 001 Device 003: ID 0000:3825 USB OPTICAL MOUSE - Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device - 001: ID 1d6b:0002 Linux Foundation 2.0 root hub -+ ```bash + lsusb Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 007 + Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: + ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 001: ID 1d6b:0002 + Linux Foundation 2.0 root hub + Bus 004 Device 002: ID c0f4:04c0 SZH usb keyboard + Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 + Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: + ID 1d6b:0001 Linux Foundation 1.1 root hub + Bus 001 Device 003: ID 0000:3825 USB OPTICAL MOUSE + Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device + 001: ID 1d6b:0002 Linux Foundation 2.0 root hub + ``` 如上所示,这里已经成功识别到了鼠标(USB OPTICAL MOUSE)和键盘(usb keyboard)。 2. 识别存储设备 -
- lsusb Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 007 - Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub - - Bus 006 Device 002: ID 067b:2731 Prolific Technology, Inc. USB SD Card - Reader - - Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 - Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: - ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 - Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux - Foundation 1.1 root hub Bus 001 Device 002: ID 1a40:0101 Terminus Technology - Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub -+ ```bash + lsusb Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 007 + Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub + Bus 006 Device 002: ID 067b:2731 Prolific Technology, Inc. USB SD Card + Reader + Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 + Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: + ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 + Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux + Foundation 1.1 root hub Bus 001 Device 002: ID 1a40:0101 Terminus Technology + Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub + ``` 如上所示,这里已经成功识别到了 Micro-SD Card Reader @@ -65,20 +63,12 @@ 2. 读取测试 -
- radxa@{props.model}:~$ sudo dd if=/dev/{props.usb_dev} of=/dev/null bs=1M
- count=100 100+0 records in 100+0 records out 104857600 bytes (105 MB, 100
- MiB) copied, {props.usb_dev_sd_read_time}, {props.usb_dev_sd_read_speed}
-
+ {`radxa@${props.model}:~$ sudo dd if=/dev/${props.usb_dev} of=/dev/null bs=1M\ncount=100 100+0 records in 100+0 records out 104857600 bytes (105 MB, 100\nMiB) copied, ${props.usb_dev_sd_read_time}, ${props.usb_dev_sd_read_speed}`}
这个命令将会从 USB 设备读取数据,并将其写入 /dev/null,以便测试读取速度。这里指定了写入的块的大小为 1M,指定了读取 100 个块,因此总共读取了 100 MB 的数据,读取速度为 {props.usb_dev_sd_read_speed}
3. 写入测试
-
- radxa@{props.model}:~$ sudo dd if=/dev/zero of=/dev/{props.usb_dev} bs=1M
- count=100 100+0 records in 100+0 records out 104857600 bytes (105 MB, 100
- MiB) copied, {props.usb_dev_sd_write_time}, {props.usb_dev_sd_write_speed}
-
+ {`radxa@${props.model}:~$ sudo dd if=/dev/zero of=/dev/${props.usb_dev} bs=1M\ncount=100 100+0 records in 100+0 records out 104857600 bytes (105 MB, 100\nMiB) copied, ${props.usb_dev_sd_write_time}, ${props.usb_dev_sd_write_speed}`}
这里指定了写入的块的大小为 1M,写入了 100 个块,总共写入了 100 M 的数据,写入速度为 {props.usb_dev_sd_write_speed}
diff --git a/docs/common/accessories/_waveshare-35-display.mdx b/docs/common/accessories/_waveshare-35-display.mdx
index ab3fccd19..31adf48b4 100644
--- a/docs/common/accessories/_waveshare-35-display.mdx
+++ b/docs/common/accessories/_waveshare-35-display.mdx
@@ -33,22 +33,18 @@ sudo mv /usr/share/X11/xorg.conf.d/20-modesetting.conf /usr/share/X11/xorg.conf.
- 在 `/etc/X11/xorg.conf.d` 下添加一个配置文件 `20-modesetting.conf`,内容如下:
-
- Section "Device" Identifier "Rockchip Graphics"
- Driver "fbdev" Option "fbdev"
- "/dev/{props.fbdev}" Option "DRI" "2" EndSection
-
+{`Section "Device" Identifier "Rockchip Graphics"\n Driver "fbdev" Option "fbdev"\n"/dev/${props.fbdev}" Option "DRI" "2" EndSection`}
- 配置触摸
在 /etc/X11/xorg.conf.d 下添加一个配置文件 99-touchscreen-calibration.conf,内容如下:
-- Section "InputClass" Identifier "calibration" - MatchProduct "ADS7846 Touchscreen" - Option "TransformationMatrix" "-1 0 1 0 1 0 0 0 1" - EndSection -+```text +Section "InputClass" Identifier "calibration" + MatchProduct "ADS7846 Touchscreen" + Option "TransformationMatrix" "-1 0 1 0 1 0 0 0 1" +EndSection +``` - 重启系统 diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_fan.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_fan.mdx index 9c5de78f1..c4530dfde 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_fan.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_fan.mdx @@ -44,10 +44,10 @@ 2. Locate the fan device with the following command. -
- ls /sys/class/thermal/cooling_device*/type+ ```text + ls /sys/class/thermal/cooling_device*/type + cat /sys/class/thermal/cooling_device*/type + ```
- cat /sys/class/thermal/cooling_device*/type -
{`radxa@${props.model}:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0\n179:0 0 14.5G 0 disk ├─mmcblk0p1 179:1 0 16M 0 part /config └─mmcblk0p2\n179:2 0 14.4G 0 part / mmcblk0boot0 179:32 0 4M 1 disk mmcblk0boot1 179:64 0\n4M 1 disk zram0 254:0 0 3.8G 0 disk [SWAP] nvme0n1 259:0 0 238.5G 0 disk`}
2. At this point you can see that the system has recognised the SSD (**nvme0n1**).
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_m.2-sata-break-board.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_m.2-sata-break-board.mdx
index 0116b0f42..3307090ee 100644
--- a/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_m.2-sata-break-board.mdx
+++ b/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_m.2-sata-break-board.mdx
@@ -39,12 +39,7 @@
See if the SSD is recognised with the `lsblk` command
-
- radxa@{props.model}:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0
- 0 476.9G 0 disk mmcblk0 179:0 0 14.5G 0 disk ├─mmcblk0p1 179:1 0 16M 0 part
- /config └─mmcblk0p2 179:2 0 14.4G 0 part / mmcblk0boot0 179:32 0 4M 1 disk
- mmcblk0boot1 179:64 0 4M 1 disk zram0 254:0 0 3.9G 0 disk [SWAP]
-
+ {`radxa@${props.model}:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0\n0 476.9G 0 disk mmcblk0 179:0 0 14.5G 0 disk ├─mmcblk0p1 179:1 0 16M 0 part\n/config └─mmcblk0p2 179:2 0 14.4G 0 part / mmcblk0boot0 179:32 0 4M 1 disk\nmmcblk0boot1 179:64 0 4M 1 disk zram0 254:0 0 3.9G 0 disk [SWAP]`}
When SATA is recognised by the system, it can be viewed as **sda**
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_mobile-lte-em05-ce.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_mobile-lte-em05-ce.mdx
index b31f11ab8..cd30b4890 100644
--- a/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_mobile-lte-em05-ce.mdx
+++ b/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_mobile-lte-em05-ce.mdx
@@ -32,10 +32,7 @@ First of all, you need to plug the Quectel LTE EM05-CE into the B-key connector
You can check if the device is connected with the following command:
-
- radxa@{props.model}:~$ lsusb | grep -i Quectel Bus 002 Device 002: ID
- 2c7c:0125 Quectel Wireless Solutions Co. EC25 LTE modem
-
+{`radxa@${props.model}:~$ lsusb | grep -i Quectel Bus 002 Device 002: ID\n2c7c:0125 Quectel Wireless Solutions Co. EC25 LTE modem`}
The modem usually communicates with the host via the serial port. Please check that the system enumerates the corresponding serial devices correctly:
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_usb.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_usb.mdx
index c8b3e02e3..ac72b546a 100644
--- a/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_usb.mdx
+++ b/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_usb.mdx
@@ -4,38 +4,36 @@
1. Identify the mouse and keyboard
- - lsusb Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 007 - Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: - ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 001: ID 1d6b:0002 - Linux Foundation 2.0 root hub - Bus 004 Device 002: ID c0f4:04c0 SZH usb keyboard - Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 - Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: - ID 1d6b:0001 Linux Foundation 1.1 root hub - Bus 001 Device 003: ID 0000:3825 USB OPTICAL MOUSE - Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device - 001: ID 1d6b:0002 Linux Foundation 2.0 root hub -+ ```bash + lsusb Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 007 + Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: + ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 001: ID 1d6b:0002 + Linux Foundation 2.0 root hub + Bus 004 Device 002: ID c0f4:04c0 SZH usb keyboard + Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 + Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: + ID 1d6b:0001 Linux Foundation 1.1 root hub + Bus 001 Device 003: ID 0000:3825 USB OPTICAL MOUSE + Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device + 001: ID 1d6b:0002 Linux Foundation 2.0 root hub + ``` As shown above, the mouse (USB OPTICAL MOUSE) and keyboard (usb keyboard) have been successfully recognised here. 2. Identify the storage device. -
- lsusb Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 007 - Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub - - Bus 006 Device 002: ID 067b:2731 Prolific Technology, Inc. USB SD Card - Reader - - Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 - Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: - ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 - Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux - Foundation 1.1 root hub Bus 001 Device 002: ID 1a40:0101 Terminus Technology - Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub -+ ```bash + lsusb Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 007 + Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub + Bus 006 Device 002: ID 067b:2731 Prolific Technology, Inc. USB SD Card + Reader + Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 + Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: + ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 + Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux + Foundation 1.1 root hub Bus 001 Device 002: ID 1a40:0101 Terminus Technology + Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub + ``` As shown above, the Micro-SD Card Reader has been successfully recognised here. @@ -65,20 +63,12 @@ 2. Read test -
- radxa@{props.model}:~$ sudo dd if=/dev/{props.usb_dev} of=/dev/null bs=1M
- count=100 100+0 records in 100+0 records out 104857600 bytes (105 MB, 100
- MiB) copied, {props.usb_dev_sd_read_time}, {props.usb_dev_sd_read_speed}
-
+ {`radxa@${props.model}:~$ sudo dd if=/dev/${props.usb_dev} of=/dev/null bs=1M\ncount=100 100+0 records in 100+0 records out 104857600 bytes (105 MB, 100\nMiB) copied, ${props.usb_dev_sd_read_time}, ${props.usb_dev_sd_read_speed}`}
This command will read data from the USB device and write it to /dev/null in order to test the read speed. The block size specified here is 1M, and 100 blocks are specified to be read, so a total of 100 MB of data is read at {props.usb_dev_sd_read_speed}.
3. Write Test
-
- radxa@{props.model}:~$ sudo dd if=/dev/zero of=/dev/{props.usb_dev} bs=1M
- count=100 100+0 records in 100+0 records out 104857600 bytes (105 MB, 100
- MiB) copied, {props.usb_dev_sd_write_time}, {props.usb_dev_sd_write_speed}
-
+ {`radxa@${props.model}:~$ sudo dd if=/dev/zero of=/dev/${props.usb_dev} bs=1M\ncount=100 100+0 records in 100+0 records out 104857600 bytes (105 MB, 100\nMiB) copied, ${props.usb_dev_sd_write_time}, ${props.usb_dev_sd_write_speed}`}
The block size specified here is 1M, 100 blocks were written, a total of 100 M of data was written, and the write speed was {props.usb_dev_sd_write_speed}.
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_waveshare-35-display.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_waveshare-35-display.mdx
index 8679540e6..0c556eb86 100644
--- a/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_waveshare-35-display.mdx
+++ b/i18n/en/docusaurus-plugin-content-docs/current/common/accessories/_waveshare-35-display.mdx
@@ -33,22 +33,18 @@ sudo mv /usr/share/X11/xorg.conf.d/20-modesetting.conf /usr/share/X11/xorg.conf.
- Add a configuration file `20-modesetting.conf` under `/etc/X11/xorg.conf.d` with the following contents:
-
- Section "Device" Identifier "Rockchip Graphics"
- Driver "fbdev" Option "fbdev"
- "/dev/{props.fbdev}" Option "DRI" "2" EndSection
-
+{`Section "Device" Identifier "Rockchip Graphics"\n Driver "fbdev" Option "fbdev"\n"/dev/${props.fbdev}" Option "DRI" "2" EndSection`}
-
Add a configuration file 99-touchscreen-calibration.conf under /etc/X11/xorg.conf.d with the following contents:
-- Section "InputClass" Identifier "calibration" - MatchProduct "ADS7846 Touchscreen" - Option "TransformationMatrix" "-1 0 1 0 1 0 0 0 1" - EndSection -+```text +Section "InputClass" Identifier "calibration" + MatchProduct "ADS7846 Touchscreen" + Option "TransformationMatrix" "-1 0 1 0 1 0 0 0 1" +EndSection +``` - Reboot