openwrt查看flash、RAM、CPU信息
root@OpenWrt:/# dmesg |grep spi |grep Kbytes#查看Flash容量[ 0.660000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
#16384/1024=16M 既是16M的Flash
root@OpenWrt:/# cat /proc/meminfo |grep MemTotal #查看RAM大小
MemTotal: 61348 kB
root@OpenWrt:/# free -h |grep Mem | awk -F ' ' '{print $3}' #已使用的RAM大小(单位kB)
23788
root@OpenWrt:/# free -h |grep Mem | awk -F ' ' '{print $4}' #空闲可用的RAM大小(单位kB)
35376
root@OpenWrt:/# cat /proc/cpuinfo |grep 'system type'#查看系统类型
system type : Qualcomm Atheros QCA9533 rev 1
root@OpenWrt:/# cat /proc/cpuinfo |grep 'cpu model'#查看CPU型号
cpu model : MIPS 24Kc V7.4
root@OpenWrt:/# cat /proc/cpuinfo |grep 'machine' #查看设备型号
machine : TP-LINK TL-WR841N/ND v9
页:
[1]