OpenWrt 中查看 Flash RAM CPU 信息
来源 https://blog.csdn.net/mcusun2000/article/details/51130434
硬件: QCA9531_16M+128M_QSDK+OpenWRT
1.查看Flash容量大小(存储空间,可以理解为电脑的硬盘)
root@OpenWrt:/# dmesg |grep spi |grep Kbytes #查看Flash容量
[ 0.700000] m25p80 spi0.0: w25q128 (16384 Kbytes)
root@OpenWrt:/#
2.查看RAM容量大小(可以理解为电脑的内存条)
root@OpenWrt:/# cat /proc/meminfo |grep MemTotal #查看RAM大小
MemTotal: 126340 kB
root@OpenWrt:/#
root@OpenWrt:/# free -h |grep Mem | awk -F ' ' '{print $2}' #查看RAM大小 (单位kB)
61348
root@OpenWrt:/#
root@OpenWrt:/# free -h |grep Mem | awk -F ' ' '{print $3}' #已使用的RAM大小(单位kB)
23788
root@OpenWrt:/#
root@OpenWrt:/# free -h |grep Mem | awk -F ' ' '{print $4}' #空闲可用的RAM大小(单位kB)
35376
root@OpenWrt:/#
3.CPU内存主频型号
root@OpenWrt:/# dmesg |grep Clocks |awk -F ' ' '{print $4}' #查看CPU主频
CPU:650.000MHz,
root@OpenWrt:/#
root@OpenWrt:/# dmesg |grep Clocks |awk -F ',' '{print $2}' #查看内存主频
DDR:597.485MHz
root@OpenWrt:/#
root@OpenWrt:/# cat /proc/cpuinfo |grep 'system type' #查看系统类型
system type : Qualcomm Atheros QCA9531 rev 2
root@OpenWrt:/#
root@OpenWrt:/# cat /proc/cpuinfo |grep 'cpu model' #查看CPU型号
cpu model : MIPS 24Kc V7.4
root@OpenWrt:/#
root@OpenWrt:/# cat /proc/cpuinfo |grep 'machine' #查看设备型号
machine : Qualcomm Atheros AP147 reference board
root@OpenWrt:/#
====================== End