Nvidia TX2 串口使用
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
TX2开发板系统默认有ttyTHS1,ttyTHS2,ttyTHS3串口,通过修改设备树文件,可以使用6个串口。
1.设备树修改:
修改文件:
JetPack/3.1/64_TX2/Linux_for_Tegra_64_tx2/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb
中serial4,serial5,serial6状态为okay,例:
serial@3140000 {
compatible = "nvidia,tegra186-hsuart";
#stream-id-cells = <0x1>;
reg = <0x0 0x3140000 0x0 0x40>;
reg-shift = <0x2>;
interrupts = <0x0 0x74 0x4>;
nvidia,memory-clients = <0xe>;
dmas = <0x19 0x14 0x19 0x14>;
dma-names = "rx", "tx";
clocks = <0xd 0xc2 0xd 0x10d>;
clock-names = "serial", "parent";
resets = <0xd 0x84>;
reset-names = "serial";
status = "okay";
nvidia,adjust-baud-rates = <0x1c200 0x1c200 0x64>;
linux,phandle = <0x87>;
phandle = <0x87>;
};
2.设备树和串口对应关系
serial1 = "/serial@3110000";//ttyTHS1
serial2 = "/serial@c280000";//ttyTHS2
serial3 = "/serial@3130000";//ttyTHS3
serial4 = "/serial@3140000";//tttTHS4
serial5 = "/serial@3150000";//ttyTHS5
serial6 = "/serial@c290000";//ttyTHS6
3.设备树烧写方法:
TX2 开机进入recovery模式(每次只能执行一次烧写命令),在JetPack/64_TX2/Linux_for_Tegra下执行如下命令即可烧写成功:
sudo ./flash.sh -r -k kernel-dtb jetson-tx2 mmcblk0p1
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献4条内容
所有评论(0)