Skip to content

under-view/mec1705

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MEC1705

ACPI Table and eSPI Controller Driver for the MEC1705 EC

Building

Compile Kernel Module

# On target
$ KSRC="/lib/modules/$(uname -r)/build" make
$ source openembedded-core/oe-init-build-env $(pwd)/build
$ bitbake mec1705-espi
# cd into working directory + git folder
# May look something like bellow
$ cd tmp/work/udoo_bolt_emmc-northstar-linux/mec1705-espi/0.0.1-git+b3697dda641acf3534f7e7e38b58981464e2e6f2-r0/git
$ ../temp/run.do_compile

Compile ASL

# Compile ACPI Source Language to ACPI Machine Language
$ make aml

Testing AML file

# First Gather, Extract, & Disassemble ACPI Tables
$ acpidump > acpi.log
$ acpixtract acpi.log

# To get source of all DSDT/SSDT
$ iasl -d *.dat > /dev/null 2>&1

# Execute
$ acpiexec *.{dat,aml}

SSDT overlays: Run-time ConfigFS approach

# If desire alias for loading and unloading ACPI SSDT
$ source devutils/compile-load-alias

# Mount ConfigFS
$ mount -t configfs none /sys/kernel/config

# Load ACPI ConfigFS support (if it’s a module)
$ modprobe acpi-configfs

# Load SSDT
$ mkdir -p /sys/kernel/config/acpi/table/mec1705
$ cat "mec1705.aml" > "/sys/kernel/config/acpi/table/mec1705/aml"
# OR
$ load_mec1705_aml

# Unload SSDT
$ ./devutils/unload-acpi-table /sys/kernel/config/acpi/table/mec1705
# OR
$ unload_mec1705_aml

Useful Resources

About

eSPI Controller Driver for the MEC1705 EC

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published