文章目录
-
- 前言
- SSH连接
- 查看设备引脚信息
- 查看L4T, Ubuntu, Kernel, CUDA版本号
- tegrastats
- 风扇
- 微信公众号
前言
Nvidia Jetson AGX Xavier 硬件相关
NVIDIA Xavier 环境搭建
第一篇整理了硬件相关的东西, 第二篇罗列了通过JetPack进行主机环境搭建, Xavier的系统安装和环境搭建的方法. 本篇整理下一些命令, 操作 或链接供备忘.
SSH连接
可以用网线连接到同一局域网, 也可以用
USB Type-C
线连接
Xavier
到主机, 会虚拟一个IP配置为
192.168.55.x
的网卡,
Xavier
的IP默认
192.168.55.1
, 如果
Xavier
的用户名
Xavier
, 就可以用ssh命令登录:
ssh [email protected]
输入密码就能登录了.
查看设备引脚信息
[email protected]:~$ sudo cat /sys/kernel/debug/gpio
[sudo] password for xavier:
gpiochip2: GPIOs 240-247, parent: platform/max77620-gpio, max77620-gpio, can sleep:
gpio-246 ( |gpio_default ) out hi
gpio-247 ( |gpio_default ) out hi
gpiochip1: GPIOs 248-287, parent: platform/c2f0000.gpio, tegra-gpio-aon:
gpio-253 ( |pex-refclk-sel-low ) out lo
gpio-284 ( |power-key ) in hi
gpiochip0: GPIOs 288-511, parent: platform/2200000.gpio, tegra-gpio:
gpio-288 ( |vdd-1v8-sd ) out hi
gpio-289 ( |? ) out hi
gpio-291 ( |vdd-hdmi-5v0 ) out hi
gpio-336 ( |force-recovery ) in hi
gpio-339 ( |wifi-enable ) out hi
gpio-341 ( |eqos_phy_reset ) out hi
gpio-343 ( |cd ) in hi
gpio-346 ( |temp-alert ) in hi
gpio-378 ( |pcie_wake ) in hi
gpio-386 ( |hdmi2.0_hpd ) in lo
gpio-389 ( |vdd_sys_en ) out lo
gpio-390 ( |reset_gpio ) out lo
gpio-391 ( |bt_ext_wake ) out hi
gpio-392 ( |avdd-cam-2v8 ) out lo
gpio-480 ( |bt_host_wake ) in lo
gpio-489 ( |vdd-5v-sata ) out hi
gpio-490 ( |? ) out lo
查看L4T, Ubuntu, Kernel, CUDA版本号
git clone https://github.com/jetsonhacks/jetsonUtilities
cd jetsonUtilities
./jetsonInfo.py
结果如下:
NVIDIA Jetson AGX Xavier
L4T 32.2.1 [ JetPack UNKNOWN ]
Board: t186ref
Ubuntu 18.04.2 LTS
Kernel Version: 4.9.140-tegra
CUDA 10.0.326
tegrastats
nvidia-smi
用于如
amd64
的桌面环境,
arm64
的
xavier
没有, 可以试试:
sudo tegrastats
返回不断刷新的:
RAM 3060/15690MB (lfb 1840x4MB) SWAP 0/7845MB (cached 0MB) CPU [0%@1190,0%@1190,0%@1190,0%@1190,off,off,off,off] EMC_FREQ 3%@408 GR3D_FREQ 0%@318 APE 150 MTS fg 0% bg 0% [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] GPU 0/0 CPU 465/465 SOC 930/930 CV 0/0 VDDRQ 155/155 SYS5V 1537/1537
或者直接用:
[email protected]:~$ which tegrastats
/usr/bin/tegrastats
[email protected]:~$ tegrastats
RAM 3059/15690MB (lfb 1840x4MB) SWAP 0/7845MB (cached 0MB) CPU [0%@1190,0%@1190,1%@1190,0%@1190,off,off,off,off] EMC_FREQ 0% GR3D_FREQ 0% [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] GPU 0/0 CPU 465/465 SOC 930/930 CV 0/0 VDDRQ 155/155 SYS5V 1537/1537
风扇
参考 https://blog.csdn.net/huiyuanliyan/article/details/92799680.
系统右上角, 默认15W, 风扇不转:
风扇相关的文件
ls /sys/devices/pwm-fan
cur_pwm fan_profile power rpm_measured tach_enable
driver kickstart_params pwm_cap state_cap target_pwm
driver_override modalias pwm_rpm_table step_time temp_control
fan_kickstart of_node pwm_state_map subsystem uevent
pwm和转速的映射表
cat /sys/devices/pwm-fan/pwm_rpm_table
(Index, RPM, PWM, RRU, RRD)
(0, 0, 0, 40, 40)
(1, 1000, 77, 2, 2)
(2, 2000, 120, 1, 1)
(3, 3000, 160, 1, 1)
(4, 4000, 255, 1, 1)
(5, 5000, 255, 1, 1)
(6, 6000, 255, 1, 1)
(7, 7000, 255, 1, 1)
(8, 10000, 255, 1, 1)
(9, 11000, 255, 1, 1)
当前pwm,
cat /sys/devices/pwm-fan/target_pwm
修改值为250,
sudo vi /sys/devices/pwm-fan/target_pwm
可以感受到风扇呼呼的转了起来, 顶部吸风, 两侧出风.
温度, 电压, 风扇的工具 lm_sensors
微信公众号
欢迎扫描二维码关注本人微信公众号, 及时获取或者发送给我最新消息: