hughsie / fwupd-spi-dumps

0 stars 0 forks source link

Dell Latitude 7530 #29

Closed candrews closed 9 months ago

candrews commented 9 months ago
$ uname -a
Linux craigworking 6.8.0-0.rc0.20240112git70d201a40823.5.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jan 12 16:56:17 UTC 2024 x86_64 GNU/Linux
$ sudo python dump-mtd-ifd.py 
[sudo] password for candrews: 
checking /dev/mtd0...
reading from /dev/mtd0...
descriptor_map0=0x40103
descriptor_map1=0x46100208
descriptor_map2=0x1401B0
num_regions=0xA
flash_region_base_addr=0x40
flash_descriptor_reg0=0x0
flash_descriptor_reg1=0x19200121
flash_descriptor_reg2=0x2A712000
flash_descriptor_reg3=0x7FFF
flash_descriptor_reg4=0x1FFF1921
flash_descriptor_reg5=0x7FFF
flash_descriptor_reg6=0x7FFF
flash_descriptor_reg7=0x7FFF
flash_descriptor_reg8=0x1200001
flash_descriptor_reg9=0x2FFF2A72
image_size=0x2ffffff
reading... IfdPartition(region=0x0 (desc), offset=0x0, size=0xfff)
reading... IfdPartition(region=0x1 (bios), offset=0x121000, size=0x17fffff)
reading... IfdPartition(region=0x2 (me), offset=0x2000000, size=0xa71fff)
tried to read 0xa71fff and instead got 0x0
reading... IfdPartition(region=0x4 (platform), offset=0x1921000, size=0x6defff)
failed to read: [Errno 5] Input/output error
reading... IfdPartition(region=0x8 (ie), offset=0x1000, size=0x11ffff)
failed to read: [Errno 5] Input/output error
reading... IfdPartition(region=0x9 (10gbe), offset=0x2a72000, size=0x58dfff)
failed to read: [Errno 22] Invalid argument
writing dell_inc.-latitude-latitude_7530-0b0d.bin...
done!
hughsie commented 9 months ago

That worked perfectly, thanks!

check-ifd-firmware.py:
/home/hughsie/Code/fwupd-test-roms/dell_inc.-latitude-latitude_7530-0b0d.bin
FuEfiFile                  : 0 -> 1159
FuEfiFilesystem            : 0 -> 65
FuEfiSection               : 0 -> 3501
FuEfiVolume                : 0 -> 66
FuIfdBios                  : 0 -> 1
FuIfdFirmware              : 0 -> 1
FuIfdImage                 : 0 -> 5
Lines                      : 0 -> 39191