TK1入门教程基础篇-系统检查
TK1入门教程基础篇-系统检查
说明:
- 如何检查L4T系统各种系统参数
检查:
- 查看Jetson TK1 L4T版本:
head -n 1 /etc/nv_tegra_release
- 效果如下:
# R21 (release), REVISION: 5.0, GCID: 7273100, BOARD: ardbeg, EABI: hard, DATE: Wed Jun 8 04:19:09 UTC 2016
- 查看系统版本:
cat /etc/lsb-release
- 效果如下:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
- 查看系统位数(32/64),当然是32位
getconf LONG_BIT
- 查看kernel内核:
uname -a
- 效果:
Linux tegra-ubuntu 3.10.24-g6a2d13a #1 SMP PREEMPT Fri Apr 18 15:56:45 PDT 2014 armv7l armv7l armv7l GNU/Linux
- 查看内存:
free -m
- 效果:
total used free shared buffers cached
Mem: 1746 462 1283 0 23 147
-/+ buffers/cache: 291 1455
Swap: 0 0
- 查看CPU详情:
lscpu
- 效果:
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0
Off-line CPU(s) list: 1-3
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
- 查看硬盘分区:
sudo parted -l
- 如果它要求您修复GPT表中的可用空间,只需点击I即可忽略。
- 效果:
Error: /dev/mmcblk0rpmb: unrecognised disk label
Warning: Not all of the space available to /dev/mmcblk0 appears to be used, you can fix the GPT to use all of the space (an extra 4063 blocks) or continue with the current setting?
Fix/Ignore? i
Model: MMC SEM16G (sd/mmc)
Disk /dev/mmcblk0: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 25.2MB 8615MB 8590MB ext3 APP hidden, msftdata
2 8615MB 8619MB 4194kB DTB hidden, msftdata
3 8619MB 8686MB 67.1MB EFI hidden, msftdata
4 8686MB 8691MB 4194kB USP hidden, msftdata
5 8691MB 8695MB 4194kB TP1 hidden, msftdata
6 8695MB 8699MB 4194kB TP2 hidden, msftdata
7 8699MB 8703MB 4194kB TP3 hidden, msftdata
8 8703MB 15.8GB 7053MB UDA hidden, msftdata
这表明您的存储是总共15.8GB的MMC(eMMC固态芯片),其中8个磁盘分区,其中第一个分区是格式化为ext3(Linux)的8.59 GB分区。 其他分区是用于烧录的小分区,除了最后一个大小为7GB的分区。
查看硬盘空间
df -h
- 效果:
Filesystem Size Used Avail Use% Mounted on
/dev/root 7.8G 2.1G 5.4G 28% /
devtmpfs 850M 8.0K 850M 1% /dev
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 175M 624K 175M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 874M 0 874M 0% /run/shm
none 100M 0 100M 0% /run/user
- 这显示你的7.8GB根分区只有28%用完了,你还剩下5.4GB。
- 查看正在运行的进程:
top
- 效果:
top - 01:44:05 up 57 min, 2 users, load average: 0.00, 0.01, 0.05
Tasks: 138 total, 10 running, 128 sleeping, 0 stopped, 0 zombie
%Cpu(s): 3.6 us, 6.3 sy, 0.0 ni, 90.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 1788136 total, 480200 used, 1307936 free, 27056 buffers
KiB Swap: 0 total, 0 used, 0 free. 154956 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1988 ubuntu 20 0 4620 1192 784 R 6.7 0.1 0:01.66 top
8 root 20 0 0 0 0 S 2.9 0.0 0:04.08 rcu_preempt
801 kernoops 20 0 4648 844 592 S 0.3 0.0 0:01.78 kerneloops
查看PCI设备具体的驱动
lspci -v | grep -e ^0 -e driver
效果:
00:00.0 PCI bridge: NVIDIA Corporation Device 0e13 (rev a1) (prog-if 00 [Normal decode])
Kernel driver in use: pcieport
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
Kernel driver in use: r8169
这表明NVIDIA PCIe端口和使用r8169驱动程序的Realtek千兆以太网LAN端口。
查看USB设备
lsusb
- 效果:
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- 这显示有3个USB2.0集线器正在使用。
- Jetson TK1实际上有一个USB3.0集线器,但是USB3.0的驱动程序在这里没有配置,因此它们被检测为USB2.0而不是USB3.0。
参考:
- http://www.jianshu.com/p/997ede860d74
获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号