linux有读EC RAM的工具吗,Step to UEFI (179)Shell下 EC Ram 读取工具

本文介绍了如何在UEFI Shell环境下读取EC RAM,通过解析ACPI定义的通用命令,编写了一个应用示例,该应用能够读取并显示EC RAM的数据。在实体机上运行此应用可以查看EC RAM的内容。
摘要由CSDN通过智能技术生成

最近工作需要在 UEFI  Shell 下Check EC Ram 的设定,发现手上只有 Windows 下的读取工具(RW Everything)。于是研究了一下如何在Shell 读取 EC Ram。

根据【参考1】读取的流程如下:

Port 66 Commands

There are also some EC commands that use ports 0x66 and

0x62. Some of these are standard ACPI commands as defined in the external ACPI

spec, others are custom.

The port 66 protocol is essentially the standard ACPI EC

interface protocol.

1. Wait for port66.IBF = 0

2. Write command byte to port 66.

3. For each outgoing data or address byte:

3a. Wait for port66.IBF = 0

3b. Write data or address byte to port 62.

4. For each incoming data byte:

4a. Wait for port66.OBF = 1

4b. Read data byte from port 62.

5. If the command requires no data or address bytes, you can

determine when the command was accepted/executed by waiting for port66.IBF=0.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值