Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
785
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. 1.查看Flash容量大小(存储空间,可以理解为电脑的硬盘)
  2. root@OpenWrt:/# dmesg |grep spi |grep Kbytes
  3. [ 0.530000] m25p80 spi0.0: w25q128 (16384 Kbytes)
  4. 16384/1024=16M 即是16M的Flash
  5. 2.查看RAM容量大小(可以理解为电脑的内存条)
  6. root@OpenWrt:/# cat /proc/meminfo |grep MemTotal
  7. MemTotal: 126204 kB
  8.  
  9. 查看RAM大小 (单位kB)
  10. root@OpenWrt:/# free -h |grep Mem | awk -F ’ ’ ‘{print $2}’
  11. 126204
  12.  
  13. 已使用的RAM大小(单位kB)
  14. root@OpenWrt:/# free -h |grep Mem | awk -F ’ ’ ‘{print $3}’
  15. 39444
  16.  
  17. 空闲可用的RAM大小(单位kB)
  18. root@OpenWrt:/# free -h |grep Mem | awk -F ’ ’ ‘{print $4}’
  19. 86884
  20.  
  21. 3.CPU内存主频型号信
  22.  
  23. 查看CPU主频
  24. root@OpenWrt:/# dmesg |grep Clocks |awk -F ’ ’ ‘{print $4}’
  25. CPU:560.000MHz,
  26.  
  27. 查看系统类型
  28. root@OpenWrt:/# cat /proc/cpuinfo |grep ‘system type’
  29. system type : Atheros AR9344 rev 2
  30.  
  31. 查看CPU型号
  32. root@OpenWrt:/# cat /proc/cpuinfo |grep ‘cpu model’
  33. cpu model : MIPS 74Kc V4.12
  34.  
  35. 查看设备型号
  36. root@OpenWrt:/# cat /proc/cpuinfo |grep ‘machine’
  37. machine : TP-LINK TL-WDR3600/4300/4310
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement