开发板接入5V 电源,USB Type C(Debug)口连接PC USB。 使用SecureCRT进行调试是一款终端 仿真程序,支持SSH(SSH1和SSH2)以及Telnet和rlogin协议。 SecureCRT用于连接运行包括Windows、UNIX和VMS在内的远程系统的理想工具。
1,cat /proc/cpuinfo 查看系统cpu信息
- root@myir-ya151c-t:~# cat /proc/cpuinfo
- processor : 0
- model name : ARMv7 Processor rev 5 (v7l)
- BogoMIPS : 48.00
- Features : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
- CPU implementer : 0x41
- CPU architecture: 7
- CPU variant : 0x0
- CPU part : 0xc07
- CPU revision : 5
- Hardware : STM32 (Device Tree Support)
- Revision : 0000
- Serial : 003500283239510837383434
- root@myir-ya151c-t:~#
复制代码
- root@myir-ya151c-t:~# lscpu
- Architecture: armv7l
- Byte Order: Little Endian
- CPU(s): 1
- On-line CPU(s) list: 0
- Thread(s) per core: 1
- Core(s) per socket: 1
- Socket(s): 1
- Vendor ID: ARM
- Model: 5
- Model name: Cortex-A7
- Stepping: r0p5
- CPU max MHz: 650.0000
- CPU min MHz: 650.0000
- BogoMIPS: 48.00
- Flags: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
复制代码
测试内存
- root@myir-ya151c-t:~# l***lk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- mtdblock0 31:0 0 2M 0 disk
- mtdblock1 31:1 0 2M 0 disk
- mtdblock2 31:2 0 2M 0 disk
- mtdblock3 31:3 0 250M 0 disk
- root@myir-ya151c-t:~#
复制代码
查看开机信息:
- root@myir-ya151c-t:~# dmesg | grep -i 'cpu'
- [ 0.000000] Booting Linux on physical CPU 0x0
- [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
- [ 0.000000] CPU: div instructions available: patching division code
- [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
- [ 0.000000] percpu: Embedded 20 pages/cpu s50124 r8192 d23604 u81920
- [ 0.000000] pcpu-alloc: s50124 r8192 d23604 u81920 alloc=20*4096
- [ 0.000000] pcpu-alloc: [0] 0
- [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
- [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
- [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
- [ 0.003406] CPU: Testing write buffer coherency: ok
- [ 0.003932] /cpus/cpu@0 missing clock-frequency property
- [ 0.003956] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
- [ 0.105575] smp: Bringing up secondary CPUs ...
- [ 0.105603] smp: Brought up 1 node, 1 CPU
- [ 0.105625] CPU: All CPU(s) started in SVC mode.
- [ 1.238051] stm32-cpufreq stm32-cpufreq: Failed to get chip info: -517
- [ 1.244037] ledtrig-cpu: registered to indicate activity on CPUs
- [ 1.287444] ThumbEE CPU extension supported.
- [ 1.364948] debugfs: Directory 'cpu0' with parent 'opp' already present!
- [ 1.514124] debugfs: Directory 'cpu0' with parent 'opp' already present!
- root@myir-ya151c-t:~#
复制代码
查看分区情况:
- root@myir-ya151c-t:~# fdisk -l
- Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/mtdblock0: 2 MiB, 2097152 bytes, 4096 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk /dev/mtdblock1: 2 MiB, 2097152 bytes, 4096 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk /dev/mtdblock2: 2 MiB, 2097152 bytes, 4096 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk /dev/mtdblock3: 250 MiB, 262144000 bytes, 512000 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- root@myir-ya151c-t:~#
复制代码
- root@myir-ya151c-t:~# df -h
- Filesystem Size Used Avail Use% Mounted on
- ubi0:rootfs 201M 177M 25M 89% /
- devtmpfs 54M 0 54M 0% /dev
- tmpfs 118M 64K 118M 1% /dev/shm
- tmpfs 118M 8.8M 110M 8% /run
- tmpfs 118M 0 118M 0% /sys/fs/cgroup
- tmpfs 118M 0 118M 0% /tmp
- /dev/ubi0_2 15M 11M 3.4M 77% /boot
- tmpfs 118M 136K 118M 1% /var/volatile
- tmpfs 24M 0 24M 0% /run/user/0
- root@myir-ya151c-t:~#
复制代码
内存信息;
- root@myir-ya151c-t:~# cat /proc/meminfo
- MemTotal: 241392 kB
- MemFree: 127468 kB
- MemAvailable: 170768 kB
- Buffers: 0 kB
- Cached: 46952 kB
- SwapCached: 0 kB
- Active: 37340 kB
- Inactive: 38644 kB
- Active(anon): 29648 kB
- Inactive(anon): 8500 kB
- Active(file): 7692 kB
- Inactive(file): 30144 kB
- Unevictable: 0 kB
- Mlocked: 0 kB
- HighTotal: 0 kB
- HighFree: 0 kB
- LowTotal: 241392 kB
- LowFree: 127468 kB
- SwapTotal: 0 kB
- SwapFree: 0 kB
- Dirty: 0 kB
- Writeback: 0 kB
- AnonPages: 29044 kB
- Mapped: 13112 kB
- Shmem: 9116 kB
- KReclaimable: 11248 kB
- Slab: 26792 kB
- SReclaimable: 11248 kB
- SUnreclaim: 15544 kB
- KernelStack: 936 kB
- PageTables: 988 kB
- NFS_Unstable: 0 kB
- Bounce: 0 kB
- WritebackTmp: 0 kB
- CommitLimit: 120696 kB
- Committed_AS: 309880 kB
- VmallocTotal: 770048 kB
- VmallocUsed: 4820 kB
- VmallocChunk: 0 kB
- Percpu: 188 kB
- CmaTotal: 131072 kB
- CmaFree: 115800 kB
- root@myir-ya151c-t:~#
复制代码
查看各设备的中断请求(IRQ):
|
|
|
|