OpenHarmony开发者论坛

标题: 如何搭建linux xts测评环境 [打印本页]

作者: charleeyang    时间: 2024-9-18 19:55
标题: 如何搭建linux xts测评环境
[md]### 【问题描述】

现在已经完成windows环境小型系统xts测评,但是Windows的NFS非常不稳定,经常无法启动service,因此想采用ubuntu环境,搭建xts测评环境。

遇到的问题:linux user_config.xml串口该如何配置?按照windows方式配置串口,结果报错,以下是配置和报错详细信息:

user_config.xml

```xml
<user_config>
    <environment>
        <device type="com" label="ipcamera">
            <serial>
                <com>/dev/ttyUSB0</com>
                <type>cmd</type>
                <baud_rate>115200</baud_rate>
                <data_bits>8</data_bits>
                <stop_bits>1</stop_bits>
                <timeout>1</timeout>
            </serial>
        </device>
    </environment>
    <testcases>
        <dir></dir>
        <server label="NfsServer">
            <ip>192.168.1.225</ip>
            <port>2049</port>
            <dir>/root/work/nfs</dir>
            <username></username>
            <password></password>
            <remote>false</remote>
        </server>
    </testcases>
    <resource>
        <dir></dir>
    </resource>
    <loglevel>INFO</loglevel>
</user_config>
```


报错信息:

```
[2024-09-18 19:18:48,464] [139719131516928] [Scheduler] [INFO] [[1 / 8] Executing: /root/work/xts/zs34h/guide_acts/testcases/distributed_schedule/ActsSamgrTest.json, Device: local_/dev/ttyUSB0, Driver: CppTestLite]
[2024-09-18 19:18:48,692] [139719086671424] [KitLite] [INFO] [Trying to copy the file from /root/work/xts/zs34h/guide_acts/resource/tools/query.bin to nfs server]
[2024-09-18 19:18:48,693] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell uname with timeout 1s]
[2024-09-18 19:18:48,731] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell cd /storage with timeout 1s]
[2024-09-18 19:18:48,738] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell mkdir test_root with timeout 1s]
[2024-09-18 19:18:48,821] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell cd test_root with timeout 1s]
[2024-09-18 19:18:48,840] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell mkdir tools with timeout 1s]
[2024-09-18 19:18:48,887] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell cd tools with timeout 1s]
[2024-09-18 19:18:48,950] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell cd /storage with timeout 1s]
[2024-09-18 19:18:48,981] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell cd /storage with timeout 1s]
[2024-09-18 19:18:49,012] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell umount -f /storage/test_root/tools with timeout 1s]
[2024-09-18 19:18:49,136] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell toybox mount -t nfs -o nolock,addr=192.168.1.225 192.168.1.225:/root/work/nfs /storage/test_root/tools with timeout 1s]
[2024-09-18 19:18:49,700] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell chmod 755 -R /storage/test_root/tools with timeout 1s]
[2024-09-18 19:18:49,868] [139719086671424] [KitLite] [INFO] [Prepare environment success]
[2024-09-18 19:18:49,868] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell cd /storage with timeout 0.2s]
[2024-09-18 19:18:49,898] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell ./test_root/tools/query.bin with timeout 5s]
[2024-09-18 19:18:54,899] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell cd / with timeout 90s]
[2024-09-18 19:18:55,217] [139719086671424] [DmlibLite] [INFO] [local_/dev/ttyUSB0 execute command shell /bin/cksum /bin with timeout 90s]
[2024-09-18 19:18:55,261] [139719086671424] [Concurrent] [ERROR] [Device: local_/dev/ttyUSB0, exception: [Errno 2] No such file or directory: '/root/work/xts/zs34h/guide_acts/reports/2024-09-18-19-18-48/checksum_local_/dev/ttyUSB0.hash'] [ErrorNo=00000]
```


问题分析:从报错日志分析,可以看出串口前多了个local_,因此怀疑是配置存在问题,各路大神们有过类似经验吗?

### 【运行环境】

硬件:3519DV500

小型系统,无显示屏,arm64
SDK版本:4.0

xts测评主机:ubuntu x64
[/md]
作者: charleeyang    时间: 2024-9-20 15:01
这个问题自己已经解决了。




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5