Skip to content

Ze-Hou/phytium_uart_test

Repository files navigation

运行测试

安装 ostool

cargo install ostool

运行测试

cargo test --test test -- tests --show-output
# 带uboot的开发板测试
cargo test --test test -- tests --show-output --uboot 

在WSL使用带uboot的开发板测试

  1. 共享串口到wsl
<!-- 使用管理员模式运行 -->
<!-- 获取已连接设备 -->
usbipd list
<!-- 共享 USB 设备共享到WSL -->
usbipd bind --busid BUSID
<!-- 将 USB 设备连接到 WSL -->
usbipd attach --wsl --busid BUSID
<!-- 断开 USB 设备连接 -->
usbipd detach --busid BUSID
<!-- 取消 USB 设备共享 -->
 usbipd unbind --busid BUSID
  1. 使用tftp传输数据
# 查看 WSL 当前监听的端口
sudo ss -tulnp
# 在windows防火墙设置入站规则UDP端口

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages