• Lv0
    粉丝0

积分5 / 贡献0

提问4答案被采纳0文章0

如何搭建linux xts测评环境

charleeyang 显示全部楼层 发表于 前天 19:55

【问题描述】

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

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

user_config.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

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部