Remove dependency for win32helper to find .sys file within init
Fixup logic to better display when driver file cannot be found
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
Add self.name and self.driverpath to Helper baseclass
Add get_info function into Helper baseclass which returns self.name and self.driverpath
Modify helpers to have proper name and driver location for driver loaded
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
added COMPRESSION_ALGORITHMS within chipsec/defines
modified logic witin spi_uefi to rotate through valid algorithms until one is found
modified error within helpers where a list was put inside a list
modified linux helper to use subprocess.call opposed to subprocess.check_output
fixes issues #609, #610, #611
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
When started with ~/chipsec/chipsec_util.py we want to use the decompression
tools built in ~/chipsec/chipsec_tools/compression/bin rather than the ones in
the current path.
-------------------
1. Removed previous compression methodology
a. All files were removed
2. Using compression tools directly from tianocore/edk2/BaseTools
a. Downloaded from master branch
b. Changed Makefiles to build within Chipsec
c. Added BrotliCompress
3. Reworked Windows and Linux Helper to utilize tools built from compression tools
a. Both helpers utilize same logic of calling compression tools
b. Updated to support BrotliCompress
4. Modified GUID functionality within uefi_common to unpack struct as strings opposed to numbers
- Found that native linux helper needs to first map io memory before reading it
- changed hal and helper functionality to allow base address and offset to be passed
to the function allowing the call to native_map_io_space to be used without guessing the base address
- discovered a bug within hal list_MMIO_BARs that failed if a MMIOBAR was unreadable added a try except to fix
The self argument is a duplicate (super(...) will insert `self` as the first argument to any method -- just like an instance would).
Note: I suspect, but too lazy to check, that mmap.mmap.__init__ is a no-op, since otherwise this bug would have caused obvious runtime errors.
* add native functions to access port io and msr
* remove debug prints and try modprobe msr when not available
* fixed bug in native_read_io_port
* add attempt to load msr kernel module if not present and update error string