On UEFI use the efi package functions
Start here
Installation
Using CHIPSEC
Architecture and Modules
Contribution Guide
efi package
linux package