drivers/platform/chrome/cros_ec_sysfs.c
0 → 100644
+271
−0
Loading
Gitlab 现已全面支持 git over ssh 与 git over https。通过 HTTPS 访问请配置带有 read_repository / write_repository 权限的 Personal access token。通过 SSH 端口访问请使用 22 端口或 13389 端口。如果使用CAS注册了账户但不知道密码,可以自行至设置中更改;如有其他问题,请发邮件至 service@cra.moe 寻求协助。
This adds the first few sysfs attributes for the Chrome OS EC. These
controls are made available under /sys/devices/virtual/chromeos/cros_ec
flashinfo - display current flash info
reboot - tell the EC to reboot in various ways
version - information about the EC software and hardware
Future changes will build on this to add additional controls.
From a root shell, you should be able to do things like this:
cd /sys/devices/virtual/chromeos/cros_ec
cat flashinfo
cat version
echo rw > reboot
cat version
echo ro > reboot
cat version
echo rw > reboot
cat version
echo cold > reboot
That last command will reboot the AP too.
Signed-off-by:
Bill Richardson <wfrichar@chromium.org>
Reviewed-by:
Olof Johansson <olofj@chromium.org>
Signed-off-by:
Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by:
Gwendal Grignou <gwendal@chromium.org>
Reviewed-by:
Gwendal Grignou <gwendal@chromium.org>
Signed-off-by:
Olof Johansson <olof@lixom.net>
CRA Git | Maintained and supported by SUSTech CRA and CCSE