Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError on spidesc parser #1621

Open
0xfede7c8 opened this issue Dec 12, 2022 · 1 comment
Open

KeyError on spidesc parser #1621

0xfede7c8 opened this issue Dec 12, 2022 · 1 comment
Assignees
Labels

Comments

@0xfede7c8
Copy link
Contributor

With the attached SPI flash dump (after extracting):

Supermicro_bios_firmware_unpacked_00a3a39e78b51d6ecd83bb789431e43d9175a5a1_X11DPS8.A03.zip

python3 chipsec_util.py --no_driver --skip_config spidesc Supermicro_bios_firmware_unpacked_00a3a39e78b51d6ecd83bb789431e43d9175a5a1_X11DPS8.A03

I get:

################################################################
##                                                            ##
##  CHIPSEC: Platform Hardware Security Assessment Framework  ##
##                                                            ##
################################################################
[CHIPSEC] Version  : 1.9.1
[CHIPSEC] Arguments: --no_driver --skip_config spidesc Supermicro_bios_firmware_unpacked_00a3a39e78b51d6ecd83bb789431e43d9175a5a1_X11DPS8.A03

[CHIPSEC] OS      : Linux 4.19.0-22-cloud-amd64 #1 SMP Debian 4.19.260-1 (2022-09-29) x86_64
[CHIPSEC] Python  : 3.7.3 (64-bit)
[CHIPSEC] Helper  : LinuxHelper (None)
[CHIPSEC] Platform: Unrecognized Platform
[CHIPSEC]    CPUID: 406F0
[CHIPSEC]      VID: 65535
[CHIPSEC]      DID: 65535
[CHIPSEC]      RID: 255
[CHIPSEC] PCH     : Unrecognized PCH
[CHIPSEC]      VID: 65535
[CHIPSEC]      DID: 65535
[CHIPSEC]      RID: 255
[CHIPSEC] Executing command 'spidesc' with args ['Supermicro_bios_firmware_unpacked_00a3a39e78b51d6ecd83bb789431e43d9175a5a1_X11DPS8.A03']

[CHIPSEC] Parsing SPI Flash Descriptor from file 'Supermicro_bios_firmware_unpacked_00a3a39e78b51d6ecd83bb789431e43d9175a5a1_X11DPS8.A03'

[spi_fd] Valid SPI flash descriptor found at offset 0x00000000

########################################################
# SPI FLASH DESCRIPTOR
########################################################

+ 0x0000 Reserved : 0xb'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'
+ 0x0010 Signature: 0x0FF0A55A
Traceback (most recent call last):
  File "chipsec_util.py", line 215, in <module>
    sys.exit(main())
  File "chipsec_util.py", line 210, in main
    return chipsecMain.main()
  File "chipsec_util.py", line 200, in main
    comm.run()
  File "/chipsec/utilcmd/spidesc_cmd.py", line 52, in run
    parse_spi_flash_descriptor(self.cs, fd)
  File "/chipsec/hal/spi_descriptor.py", line 116, in parse_spi_flash_descriptor
    cs.print_register('FLMAP0', flmap0)
  File "/chipsec/chipset.py", line 1204, in print_register
    reg = self.get_register_def(reg_name)
  File "/chipsec/chipsec/chipset.py", line 809, in get_register_def
    reg_def = self.Cfg.REGISTERS[reg_name]
KeyError: 'FLMAP0'
@npmitche npmitche self-assigned this Dec 12, 2022
@npmitche npmitche added the bug label Dec 12, 2022
@0xfede7c8
Copy link
Contributor Author

I think this was also reported/related to:

#1262 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants