49 Commits

Author SHA1 Message Date
BrentHoltsclaw 870d04816d Fixup lgtm general/util errors
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-09-24 12:22:28 -07:00
BrentHoltsclaw 28747def1a Updated util_cmds starting within d to use argparse (#672)
* Updated util_cmds starting within d to use argparse

* Add get_thread_count to unittest mock_helper to fix unit_test error

Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-09-04 15:18:06 -07:00
Daniel Schaefer 003a2053f6 Parse args into self instead of ACPICommand
Couldn't find self.func in Python3 before.
2019-09-03 10:07:12 -07:00
BrentHoltsclaw 18827a8574 Cleanup use is for None type compare
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-08-16 14:18:47 -07:00
LeaMessenger 72419667f5 Cputestrun (#642)
* Updated info, cpuid, and cr to argparse

* Updated to argparse

Signed-off-by: Lea Messenger <lea.messenger@intel.com>
2019-08-15 22:19:03 -07:00
BrentHoltsclaw 2efeda4345 Merge python3-rc2 branch into master (#656) 2019-08-15 14:11:20 -07:00
Lea Messenger 182b96c67d Fixed argparse changes based on feedback
Signed-off-by: Lea Messenger <lea.messenger@intel.com>
2019-07-22 21:36:55 -07:00
Lea Messenger 6fb8faa6f0 Updated to use argparse
Signed-off-by: Lea Messenger <lea.messenger@intel.com>
2019-07-22 21:36:55 -07:00
nha c64a4cdd9f % to format and copyright 2019-06-10 13:44:28 -07:00
nha ef255afe10 requested changes. print DIMMS in util cmd instead 2019-06-10 13:44:28 -07:00
nha 98ff45b018 copyright 2019-06-10 13:43:51 -07:00
nha 79506dcecf Native IO read/write fixes 2019-06-10 13:43:51 -07:00
BrentHoltsclaw 7dcdecc28a Added check for file case within acpi chipsec_util command 2019-06-04 09:02:02 -07:00
BrentHoltsclaw b689475321 Update chipsec_util acpi_cmd to argparse
Requires PR #540
2019-06-04 09:02:02 -07:00
BrentHoltsclaw e23e6deb6f Added informational messages to decode_cmd
chipsec_util decode command expects a full spi image.  If the flash descriptor is not found errors will occur
  Added informational message which instructs users to use chipsec_util uefi decode for images where the spi descriptor is invalid or does not exist
2019-04-25 14:14:46 -07:00
BrentHoltsclaw 0a7730978b Log return values with chipsec_util smi command 2019-04-25 14:05:07 -07:00
BrentHoltsclaw 4a13f8cd2b Changes per @erikbjorge 2019-01-29 11:26:25 -08:00
BrentHoltsclaw 0e7c7c100d Fix for issue #386
- 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
2019-01-29 11:26:25 -08:00
Aaron Frinzell 809cc1155d Add JEDEC ID support and decoding 2018-10-04 09:41:40 -07:00
Erik Bjorge 2dd1ee79dd Fixed driver load issue for UEFI variable commands in Windows
Changed to load the driver by default.  Allowed the addition of -n
to specify native mode.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2018-10-03 11:29:20 -07:00
Oleksandr Bazhaniuk 6174c1e251 fix for chipsec_util vmm ept 2018-05-17 11:48:03 -07:00
Erik Bjorge 4628cfee8c Adding utility command to process result deltas
Adding ability to do offline processing of JSON result files.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2018-05-11 17:03:12 -07:00
Erik Bjorge cee802d75e Add support for detection of PCH
Adding support to detect the PCH on a given platform and then load any
PCH specific configuration files.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2018-02-26 10:19:55 -08:00
BrentHoltsclaw b532647b29 Added VirtMem functionality to chipsec 2018-02-23 09:33:57 -08:00
BrentHoltsclaw ea9908507a adding vmem command and hal 2018-02-23 09:33:57 -08:00
CHIPSEC 7ce5648528 fix bug in iommu utilcmd where 'pt' command is ignored 2018-02-21 10:44:07 -08:00
Erik Bjorge af55b0db1a Add PCI command/control register access.
Includes the ability to filter for specific bits in the command register
as well as filter by device class and sub-class.
2017-10-20 10:16:52 -07:00
BrentHoltsclaw 3d3fce28d8 Expose TPM commands and state to chipsec_utils 2017-10-11 13:12:59 -07:00
BrentHoltsclaw ae5f08847b Expose TPM commands and state to chipsec_utils 2017-10-11 13:12:59 -07:00
BrentHoltsclaw 55af22d2d5 Expose TPM commands and state to chipsec_utils 2017-10-11 13:12:59 -07:00
BrentHoltsclaw fdb5115ded Expose TPM commands and state to chipsec_utils 2017-10-11 13:12:59 -07:00
BrentHoltsclaw 0bb06c3fa9 Adding TPM functionality from a lost module 2017-10-11 13:12:59 -07:00
Thiebaud Weksteen d770d651ae Add HAL and utilcmd for TPM Event Log 2017-09-20 13:21:29 -07:00
hcwang 6a90d52d28 Added a error handling when the search string is not found. 2017-08-30 14:51:31 -07:00
hcwang 65af429d4b Added a function "search" to look for a signature in memory. Ex: chipsec_util mem search 0xF0000 0x10000 _SM_ 2017-08-30 14:51:31 -07:00
c7zero 16af0c7dfd More operation in chipsec_util reg command (#238)
* More operation in chipsec_util reg command

Added write, read_field, write_field, get_control, set_control
operations

* reg read util command updated

Returned back "chipsec_util reg read" syntax and added tests.

* Commented out test_reg_get_control

Need to implement get_MMIO_BAR_base_address or read_pci_reg for SPIBAR
in mock_helper.py
2017-07-20 13:05:51 -07:00
BrentHoltsclaw 279370cb9b Added fix for issue #233 2017-06-09 11:56:14 -07:00
Erik Bjorge ece76e3d0b Fixed chipsec_util decode types (#232) 2017-06-08 18:42:55 -07:00
Thiébaud Weksteen 9240e1aa58 Add register util command (#217) 2017-05-09 22:55:32 -07:00
Erik Bjorge 15bdde362d Added MMIO MSGBUS specific interface. (#210)
Added a selectable MMIO based MSGBUS interface that can be selected by
tests or the configuration register type.
2017-05-08 22:22:01 -07:00
Thiébaud Weksteen bdea49936a Remove unused __version__ (#215) 2017-05-08 22:17:35 -07:00
Andrew Furtak 3d82def442 Typo fixed 2017-03-14 12:14:11 -07:00
c7zero 2aa81afde8 SPI flash descriptor parsing improved (#157)
* Improved parsing of Flash Descriptor

Descriptor format is platform dependent so need to use XML to parse it

* cleanup

* Fixed spi info
2017-03-02 02:09:58 -08:00
c7zero b3bf192d51 Added SMI count util command (#159)
chipsec_util smi count command returs SMI event count on all logical
processors
2017-03-02 02:05:46 -08:00
andrew-furtak e1835bb7c9 IGD hal component added. igddma utility command added. (#156)
* IGD hal component added. igddma utility command added.

* Documentation added. Fixed file io for igd

* Deffered graphics device identification. Added check to igd cmd module for enabled device.

* Device 2 device id register renamed. Device id read with pci replaced with read_register
2017-02-24 18:04:08 -08:00
abazhaniuk c377a72e28 Deb package (#135)
* merge

* Add Debian packaging

* cleanup

* Removed incorrect info into Copyright.

* One more: removed incorrect info in Copyright.
2017-01-06 12:57:13 -08:00
c7zero 3979328534 UEFI firmware parsing improved (#134)
* UEFI firmware parsing improved

1. Creating EFI modules object tree when parsing UEFI firmware images
2. Added exporting parsed EFI object tree to JSON
3. EFI module seach uses callbacks
4. Added --json command-line option to export chipsec results to JSON
5. Fixed version

* updating ui_string in all sibling leaf sections
2016-12-14 12:09:50 -08:00
Thiébaud Weksteen 1a284132f8 Use HALBase for all HAL modules (#124) 2016-11-17 23:21:26 -08:00
abazhaniuk 94fe7f02f1 change setup.py build driver by default. change root directory of chipsec. move WARNING.txt to chipsec. remove PKG-INFO (#107) 2016-10-18 18:19:42 -07:00