Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1What: /sys/kernel/debug/wilco_ec/raw
2Date: January 2019
3KernelVersion: 5.1
4Description:
5 Write and read raw mailbox commands to the EC.
6
7 For writing:
8 Bytes 0-1 indicate the message type:
9 00 F0 = Execute Legacy Command
10 00 F2 = Read/Write NVRAM Property
11 Byte 2 provides the command code
12 Bytes 3+ consist of the data passed in the request
13
14 At least three bytes are required, for the msg type and command,
15 with additional bytes optional for additional data.
16
17 Example:
18 // Request EC info type 3 (EC firmware build date)
19 $ echo 00 f0 38 00 03 00 > raw
20 // View the result. The decoded ASCII result "12/21/18" is
21 // included after the raw hex.
22 $ cat raw
23 00 31 32 2f 32 31 2f 31 38 00 38 00 01 00 2f 00 .12/21/18.8...