Skip to content

Commit 125b4ee

Browse files
authored
Merge pull request #2046 from tangzz-radxa/docs/fix-e52c-pre-20260821
docs(e/e52c): convert multiline pre blocks to standard code block format in interface-usage
2 parents 4cbb0c5 + 1038729 commit 125b4ee

2 files changed

Lines changed: 32 additions & 36 deletions

File tree

‎docs/e/e52c/getting-started/interface-usage.md‎

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,10 @@ Maskrom 按键,用以进入 Maskrom 模式完成刷机。
8080

8181
识别存储设备
8282

83-
<pre>
84-
$ lsusb
85-
<strong>
86-
Bus 001 Device 003: ID 067b:2731 Prolific Technology, Inc. USB SD Card Reader
87-
</strong>
88-
</pre>
83+
```bash
84+
$ lsusb
85+
Bus 001 Device 003: ID 067b:2731 Prolific Technology, Inc. USB SD Card Reader
86+
```
8987

9088
如上所示,这里已经成功识别到了 Micro-SD Card Reader
9189

@@ -105,23 +103,23 @@ Maskrom 按键,用以进入 Maskrom 模式完成刷机。
105103

106104
2. 读取测试
107105

108-
<pre>
109-
$ sudo dd if=/dev/sda of=/dev/null bs=1M count=100
110-
100+0 records in
111-
100+0 records out
112-
104857600 bytes (105 MB, 100 MiB) copied, 1.14358 s, 91.7 MB/s
113-
</pre>
106+
```bash
107+
$ sudo dd if=/dev/sda of=/dev/null bs=1M count=100
108+
100+0 records in
109+
100+0 records out
110+
104857600 bytes (105 MB, 100 MiB) copied, 1.14358 s, 91.7 MB/s
111+
```
114112

115113
这个命令将会从 USB 设备读取数据,并将其写入 /dev/null,以便测试读取速度。这里指定了写入的块的大小为 1M,指定了读取 100 个块,因此总共读取了 100 MB 的数据,读取速度为 91.7 MB/s
116114

117115
3. 写入测试
118116

119-
<pre>
120-
$ sudo dd if=/dev/zero of=/dev/sda bs=1M count=100
121-
100+0 records in
122-
100+0 records out
123-
104857600 bytes (105 MB, 100 MiB) copied, 2.22391 s, 45.7 MB/s
124-
</pre>
117+
```bash
118+
$ sudo dd if=/dev/zero of=/dev/sda bs=1M count=100
119+
100+0 records in
120+
100+0 records out
121+
104857600 bytes (105 MB, 100 MiB) copied, 2.22391 s, 45.7 MB/s
122+
```
125123

126124
这里指定了写入的块的大小为 1M,写入了 100 个块,总共写入了 100 M 的数据,写入速度为 45.7 MB/s
127125

‎i18n/en/docusaurus-plugin-content-docs/current/e/e52c/getting-started/interface-usage.md‎

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,10 @@ Maskrom button to enter Maskrom mode to complete the flashing.
8181

8282
Identifying storage devices
8383

84-
<pre>
85-
$ lsusb
86-
<strong>
87-
Bus 001 Device 003: ID 067b:2731 Prolific Technology, Inc. USB SD Card Reader
88-
</strong>
89-
</pre>
84+
```bash
85+
$ lsusb
86+
Bus 001 Device 003: ID 067b:2731 Prolific Technology, Inc. USB SD Card Reader
87+
```
9088

9189
As you can see above, the Micro-SD Card Reader has been successfully recognised here.
9290

@@ -106,23 +104,23 @@ Maskrom button to enter Maskrom mode to complete the flashing.
106104

107105
2. Read Test
108106

109-
<pre>
110-
$ sudo dd if=/dev/sda of=/dev/null bs=1M count=100
111-
100+0 records in
112-
100+0 records out
113-
104857600 bytes (105 MB, 100 MiB) copied, 1.14358 s, 91.7 MB/s
114-
</pre>
107+
```bash
108+
$ sudo dd if=/dev/sda of=/dev/null bs=1M count=100
109+
100+0 records in
110+
100+0 records out
111+
104857600 bytes (105 MB, 100 MiB) copied, 1.14358 s, 91.7 MB/s
112+
```
115113

116114
This command will read data from the USB device and write it to /dev/null 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, and the read speed is 91.7 MB/s.
117115

118116
3. Write test
119117

120-
<pre>
121-
$ sudo dd if=/dev/zero of=/dev/sda bs=1M count=100
122-
100+0 records in
123-
100+0 records out
124-
104857600 bytes (105 MB, 100 MiB) copied, 2.22391 s, 45.7 MB/s
125-
</pre>
118+
```bash
119+
$ sudo dd if=/dev/zero of=/dev/sda bs=1M count=100
120+
100+0 records in
121+
100+0 records out
122+
104857600 bytes (105 MB, 100 MiB) copied, 2.22391 s, 45.7 MB/s
123+
```
126124

127125
The block size specified here is 1M, 100 blocks were written, a total of 100M of data was written, and the write speed was 45.7 MB/s.
128126

0 commit comments

Comments
 (0)