英伟达jetson Xavier NX添加设备树tegra194-camera-rbpcv2-veye_mvcam
时间: 2023-12-06 16:02:46 浏览: 231
Jetson_Xavier_NX_Product_Design_Guide_DG-09693-001_v1.3.pdf
要在英伟达Jetson Xavier NX上添加设备树`tegra194-camera-rbpcv2-veye_mvcam`,您可以按照以下步骤进行操作:
1. 打开设备树文件夹:
```
cd /usr/src/kernel/kernel-4.9/
```
2. 打开设备树文件`tegra194-p3668-all-p3509-0000.dtsi`:
```
sudo vi arch/arm64/boot/dts/tegra194-p3668-all-p3509-0000.dtsi
```
3. 在文件中添加以下设备树节点:
```
&vi {
veye_mvcam0: camera@0 {
compatible = "veye,mvcam";
reg = <0>;
devnode = "video0";
is-remote-source;
num-buffers = <8>;
max-width = <1920>;
max-height = <1080>;
min-width = <640>;
min-height = <480>;
bus-width = <4>;
mode0 {
mclk_khz = "24000";
num-lanes = "2";
lane-order = "1,0";
csi-port = "a";
phy-mode = "dphy";
cil-settletime = "0";
dynamic-link;
};
};
};
```
4. 保存并关闭文件。
5. 重新编译设备树:
```
sudo ./scripts/dtc/dtc -I dts -O dtb -o /boot/dtb/tegra194-p3668-all-p3509-0000.dtb arch/arm64/boot/dts/tegra194-p3668-all-p3509-0000.dtsi
```
6. 重启Jetson Xavier NX。
7. 检查设备是否已添加:
```
ls /dev/video0
```
如果您看到`/dev/video0`,则表示您已成功添加了设备树`tegra194-camera-rbpcv2-veye_mvcam`。
阅读全文