zoukankan      html  css  js  c++  java
  • openwrt查看flash、RAM、CPU信息

    1.查看Flash容量大小(存储空间,可以理解为电脑的硬盘)

    root@OpenWrt:/# dmesg |grep spi |grep Kbytes  #查看Flash容量
    [    0.660000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
    #16384/1024=16M 既是16M的Flash

     

    2.查看RAM容量大小(可以理解为电脑的内存条

    root@OpenWrt:/# cat /proc/meminfo |grep MemTotal   #查看RAM大小
    MemTotal:          61348 kB

    root@OpenWrt:/# free -h |grep Mem | awk -F ' ' '{print $2}'  #查看RAM大小 (单位kB)
    61348

    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

    3.CPU内存主频型号信

    root@OpenWrt:/# dmesg |grep Clocks |awk -F ' ' '{print $4}'  #查看CPU主频
    CPU:650.000MHz,

    root@OpenWrt:/# dmesg |grep Clocks |awk -F ',' '{print $2}' #查看内存主频
    DDR:421.997MHz

    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

    3.openwrt SDK

    https://github.com/openwrt/openwrt/releases

  • 相关阅读:
    C#获取网页内容的三种方式
    C#,COM口,接收,发送数据
    mysql查询当前正在使用数据库
    错误日志中关于innodb的问题收集
    Oracle10g下载地址--多平台下的32位和64位
    Linux-PAM认证模块
    kali安装vmware tools
    redis数据库
    mysql的innodb中事务日志ib_logfile
    MySQL数据故障时备份与恢复
  • 原文地址:https://www.cnblogs.com/z3286586/p/10508889.html
Copyright © 2011-2022 走看看