有的没的
查看emmc健康度的两种方式
eMMC 存储在 linux 上被挂载为块设备,一般通过
1. mmc-utils 工具
2. /sys/class/block 源文件
Android 上可能没有 mmc 工具,可以通过
关键字段\_健康度
---------
1. DEVICE\_LIFE\_TIME\_EST\_TYP
越小越好,分为 A/B 字段,代表 SLC/MLC 寿命。
| Value | Description |
| --- | --- |
| 0x00 | Not defined |
| 0x01 | 0%~10% device life time used |
| 0x02 | 10%~20% device life time used |
| 0x03 | 20%~30% device life time used |
| 0x04 | 30%~40% device life time used |
| 0x05 | 40%~50% device life time used |
| 0x06 | 50%~60% device life time used |
| 0x07 | 60%~70% device life time used |
| 0x08 | 70%~80% device life time used |
| 0x09 | 80%~90% device life time used |
| 0x0A | 90%~100% device life time used |
| 0x0B | Exceeded its maximum estimated device life time |
| Others | Reserved |
2. PRE\_EOL\_INFO
| Value | Pre-EOL Info | Description |
| --- | --- | --- |
| 0x00 | Not defined | |
| 0x01 | Normal | Normal |
| 0x02 | Warning | Consumed 80% of reserved block |
| 0x03 | Urgent | |
| 0x04~0xFF | Reserved | |
#tech #linux
eMMC 存储在 linux 上被挂载为块设备,一般通过
/dev/mmcblk*
访问。1. mmc-utils 工具
$ mmc extcsd read /dev/mmcblk2
=============================================
Extended CSD rev 1.8 (MMC 5.1)
=============================================
...
$ mmc extcsd read /dev/mmcblk2 | grep -iE 'life|eof'
eMMC Life Time Estimation A [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]: 0x01
eMMC Life Time Estimation B [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]: 0x01
eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x01
2. /sys/class/block 源文件
Android 上可能没有 mmc 工具,可以通过
/sys/class
查询设备的各种信息。# 需要 root 权限
$ cat /sys/class/block/mmcblk2/device/pre_eol_info
0x01
$ cat /sys/class/block/mmcblk2/device/life_time
0x01 0x01
关键字段\_健康度
---------
1. DEVICE\_LIFE\_TIME\_EST\_TYP
越小越好,分为 A/B 字段,代表 SLC/MLC 寿命。
| Value | Description |
| --- | --- |
| 0x00 | Not defined |
| 0x01 | 0%~10% device life time used |
| 0x02 | 10%~20% device life time used |
| 0x03 | 20%~30% device life time used |
| 0x04 | 30%~40% device life time used |
| 0x05 | 40%~50% device life time used |
| 0x06 | 50%~60% device life time used |
| 0x07 | 60%~70% device life time used |
| 0x08 | 70%~80% device life time used |
| 0x09 | 80%~90% device life time used |
| 0x0A | 90%~100% device life time used |
| 0x0B | Exceeded its maximum estimated device life time |
| Others | Reserved |
2. PRE\_EOL\_INFO
| Value | Pre-EOL Info | Description |
| --- | --- | --- |
| 0x00 | Not defined | |
| 0x01 | Normal | Normal |
| 0x02 | Warning | Consumed 80% of reserved block |
| 0x03 | Urgent | |
| 0x04~0xFF | Reserved | |
#tech #linux
GitHub - yihong0618/xiaogpt: Play ChatGPT and other LLM with Xiaomi AI Speaker
https://github.com/yihong0618/xiaogpt
#tech
https://github.com/yihong0618/xiaogpt
#tech
返现5欧元羊毛!(不是红包,是可直接消费的金额)5-31结束-美国VPS综合讨论-全球主机交流论坛 - 手机版 - Powered by Discuz!
https://hostloc.com/forum.php?mod=viewthread&tid=1406882&extra=page%3D1&page=1&mobile=2
https://hostloc.com/forum.php?mod=viewthread&tid=1406882&extra=page%3D1&page=1&mobile=2
12 老坡搞全屋智能家居发布了一篇小红书笔记,快来看吧! 😆 pQwU3l659Jtzo71 😆 http://xhslink.com/a/YkQujOAeFfdbb,复制本条信息,打开【小红书】App查看精彩内容!
#bm
#bm
GitHub - kanshurichard/GoHomeEasy: GoHomeEasy 是一个基于 Cloudflare Workers 的 Shadowsocks 订阅管理工具,专为 没有公网 IP 的家庭宽带用户 设计,能够在外部网络访问家庭局域网。
https://github.com/kanshurichard/GoHomeEasy/tree/main
#network
https://github.com/kanshurichard/GoHomeEasy/tree/main
#network
插座安装位置
79 兮子在装修发布了一篇小红书笔记,快来看吧! 😆 3vU0dcsoeodGsdQ 😆 http://xhslink.com/a/uDg67D7n1D5ab,复制本条信息,打开【小红书】App查看精彩内容!
#bm #装修
79 兮子在装修发布了一篇小红书笔记,快来看吧! 😆 3vU0dcsoeodGsdQ 😆 http://xhslink.com/a/uDg67D7n1D5ab,复制本条信息,打开【小红书】App查看精彩内容!
#bm #装修
docx 批量转 pdf
太牛逼了!
横跨 win 和 macos 平台!
太牛逼了!
横跨 win 和 macos 平台!
You can use the docx2pdf command line utility to batch convert docx to pdf on macOS (or windows). It uses Microsoft Word's APIs to directly convert to PDF creating a perfect copy. It uses JXA (Javscript for Automation, basically AppleScript in JS) in macOS and win32com in Windows.
pip install docx2pdf
docx2pdf myfolder/
Disclaimer: I wrote this tool after struggling to find a cross-platform solution for batch converting docx to pdf with zero formatting issues since it directly uses Microsoft Word. https://github.com/AlJohri/docx2pdf
44 宅女智能家居日记发布了一篇小红书笔记,快来看吧! 😆 9jFgQY9MrkrCUGs 😆 http://xhslink.com/a/JF81zp1p3TTab,复制本条信息,打开【小红书】App查看精彩内容!
#装修
#装修