Thanks to visit codestin.com
Credit goes to github.com

Skip to content

isJackeroo/eMMCTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

检测板载eMMC的基本信息,包括:型号、容量、生产日期、CID等,寿命信息和eMMC速度(带宽和实际速度)的工具,已经测试部分设备。

1.代码结构:
  • /usr/bin/emmcinfo.sh - 运行 eMMC 检测,输出标准格式信息(包括型号、寿命、速度、CID、挂载点等)
  • /usr/lib/lua/luci/controller/emmcinfo.lua - 提供 HTTP 路由,调用脚本输出结果
  • /usr/lib/lua/luci/view/emmcinfo/status.htm - 美观简约,支持显示上次检测结果和检测时间
2.环境准备:
opkg update
opkg install bash wget mmc-utils hdparm coreutils-dd
3.一键部署:
bash -c "$(wget -qLO - https://raw.githubusercontent.com/isJackeroo/eMMCTool/refs/heads/main/install.sh)"
4.一键删除:
bash -c "$(wget -qLO - https://raw.githubusercontent.com/isJackeroo/eMMCTool/refs/heads/main/uninstall.sh)"

About

eMMC tool for OpenWrt devices with onboard eMMC

Resources

Stars

Watchers

Forks