hughsie / fwupd-spi-dumps

0 stars 0 forks source link

Dell XPS 13 9380 (2019) #25

Open nirbheek opened 9 months ago

nirbheek commented 9 months ago

I had to use the script to extract info from the MTD:

$ sudo python3 dump-mtd-ifd.py
checking /dev/mtd0...
reading from /dev/mtd0...
descriptor_map0=0x40003
descriptor_map1=0x45100208
descriptor_map2=0x340330
num_regions=0xA
flash_region_base_addr=0x40
flash_descriptor_reg0=0x0
flash_descriptor_reg1=0x1FFF1000
flash_descriptor_reg2=0xFFF0101
flash_descriptor_reg3=0x7FFF
flash_descriptor_reg4=0x7FFF
flash_descriptor_reg5=0x7FFF
flash_descriptor_reg6=0x7FFF
flash_descriptor_reg7=0x7FFF
flash_descriptor_reg8=0x1000001
flash_descriptor_reg9=0x7FFF
image_size=0x1ffffff
reading... IfdPartition(region=0x0 (desc), offset=0x0, size=0xfff)
reading... IfdPartition(region=0x1 (bios), offset=0x1000000, size=0xffffff)
reading... IfdPartition(region=0x2 (me), offset=0x101000, size=0xefefff)
reading... IfdPartition(region=0x8 (ie), offset=0x1000, size=0xfffff)
failed to read: [Errno 5] Input/output error
writing dell_inc.-xps-xps_13_9380-08af.bin...
done!
hughsie commented 9 months ago

Hmm -- that was useful! It's got some of the EFI volumes, but not all of them. This need further work in the fwupd parser! I'll update this issue when I know what the root cause is. Thanks!

check-ifd-firmware.py:
../../fwupd-test-roms/dell_inc.-xps-xps_13_9380-08af.bin
FuEfiFile                  : 0 -> 135
FuEfiFilesystem            : 0 -> 9
FuEfiSection               : 0 -> 290
FuEfiVolume                : 0 -> 9
FuIfdBios                  : 0 -> 1
FuIfdFirmware              : 0 -> 1
FuIfdImage                 : 0 -> 3
Lines                      : 0 -> 3561