Commit Graph

60 Commits

Author SHA1 Message Date
Assaf Carlsbad 6ec5da566e Check for proper usage before construction a TPM object. 2020-02-05 23:55:30 -08:00
Assaf Carlsbad 7d718852c8 Fix metavar notation for current log file. 2020-02-05 23:55:30 -08:00
Assaf Carlsbad fb8027b404 Fix argument names for deltas command. 2020-02-05 23:55:30 -08:00
BrentHoltsclaw 2c66083510 Update SDFP commit
Moved sfdp to common configuration
updated spi hal to use register functions opposed to xml parsing

Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2020-02-05 23:55:30 -08:00
Sushmith Hiremath 0849635b15 - SFDP module to parse JDEC parameter table
- Bug fixes in spi_util

Signed-off-by: Sushmith Hiremath <sushmith.m.hiremath@intel.com>
2020-02-05 23:55:30 -08:00
NicholasArmour 1e52d94456 requested changes 2019-12-11 09:43:03 -08:00
NicholasArmour 3b4297673e added comments, moved some code around 2019-12-11 09:43:03 -08:00
NicholasArmour 1a5dfd9c8d SMM communication protocol 2019-12-11 09:43:03 -08:00
Erik Bjorge 736871e5f9 Adding initial SMBIOS support (#722)
* Initial SMBIOS HAL and Command

- Only searches for the Entry Point structure
- Currently only detects 2.x structures correctly

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Added support for 64bit 3.x entry point

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Updated command processing

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Added ability to parse structures based on header

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Updated command processing

- Made command processing a bit more flexible
- Improved logging messages
- Added place holders for future functionality

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Added ability to get structures by type

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Added string extraction support

- Also added some initial code for decoding type 0 structure information
- Updated interface to make things cleaner

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Added decode support

- Only supports partial decode of Type 0 (2.0) structure

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Removed unused variable

- Also fixed tool name in timing string

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Adding basic BIOS Information module

- Adding module to get the BIOS Information SMBIOS data

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>

* Python 3 updates

- Requires additional Python 3 UEFI HAL changes

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2019-10-31 14:17:47 -07:00
Nicholas Armour bc0bf70770 remove dead code 2019-10-21 13:04:35 -07:00
Nicholas Armour 1b386408a9 update ec_cmd to use argparse 2019-10-21 13:04:35 -07:00
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