Skip to content

Commit ec72a22

Browse files
committed
[docs] Fix incorrect kobj paths and wboxtest command syntax in guide docs
- Fix device paths from /kobj/device/ to /sys/device/ and /sys/class/driver/ - Fix framebuffer path to /sys/device/framebuffer/fb-linux-sdl.0/width - Fix memory info path to /sys/class/memory/meminfo - Fix wboxtest -c N to -c=N syntax (matches sarg parser) - Remove invalid clk command from debugging section - Sync all fixes to English documentation
1 parent 3baaf8b commit ec72a22

4 files changed

Lines changed: 12 additions & 18 deletions

File tree

documents/docs/guide/development-guide.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ wboxtest thread
569569
wboxtest thread mutex
570570
571571
# 运行指定测试 N 次
572-
wboxtest thread mutex -c 100
572+
wboxtest thread mutex -c=100
573573
```
574574

575575
### Kbuild 文件
@@ -845,23 +845,20 @@ XSTAR 提供丰富的 Shell 命令用于调试:
845845

846846
```bash
847847
# 查看设备列表
848-
ls /kobj/device/
848+
ls /sys/device/
849849

850850
# 查看设备信息
851-
cat /kobj/device/framebuffer/fb.0/width
851+
cat /sys/device/framebuffer/fb-linux-sdl.0/width
852852

853853
# 查看内存信息
854-
cat /kobj/class/memory/meminfo
855-
856-
# 查看时钟信息
857-
clk
854+
cat /sys/class/memory/meminfo
858855

859856
# 查看日期时间
860857
date
861858

862859
# 运行测试
863860
wboxtest -l
864-
wboxtest thread mutex -c 10
861+
wboxtest thread mutex -c=10
865862
```
866863

867864
### 使用日志输出

documents/docs/guide/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ make -j$(nproc)
4444
help # 列出所有命令
4545
version # 查看版本信息
4646
ls / # 列出根目录
47-
ls /kobj/device/ # 查看已注册设备
47+
ls /sys/class/driver/ # 查看所有驱动
4848
date # 查看日期时间
4949
echo hello # 回显
5050
```

documents/i18n/en/docusaurus-plugin-content-docs/current/guide/development-guide.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ wboxtest thread
565565
wboxtest thread mutex
566566
567567
# run specified test N times
568-
wboxtest thread mutex -c 100
568+
wboxtest thread mutex -c=100
569569
```
570570

571571
### Kbuild File
@@ -839,23 +839,20 @@ XSTAR provides rich Shell commands for debugging:
839839

840840
```bash
841841
# view device list
842-
ls /kobj/device/
842+
ls /sys/device/
843843

844844
# view device information
845-
cat /kobj/device/framebuffer/fb.0/width
845+
cat /sys/device/framebuffer/fb-linux-sdl.0/width
846846

847847
# view memory information
848-
cat /kobj/class/memory/meminfo
849-
850-
# view clock information
851-
clk
848+
cat /sys/class/memory/meminfo
852849

853850
# view date and time
854851
date
855852

856853
# run tests
857854
wboxtest -l
858-
wboxtest thread mutex -c 10
855+
wboxtest thread mutex -c=10
859856
```
860857

861858
### Using Log Output

documents/i18n/en/docusaurus-plugin-content-docs/current/guide/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Once in the Shell, you can run built-in commands:
4444
help # List all commands
4545
version # Show version info
4646
ls / # List the root directory
47-
ls /kobj/device/ # Show registered devices
47+
ls /sys/class/driver/ # Show all drivers
4848
date # Show date and time
4949
echo hello # Echo
5050
```

0 commit comments

Comments
 (0)