Dasharo / dasharo-issues

The Dasharo issue tracker
https://dasharo.com/
25 stars 0 forks source link

Transaction error offset during internal flashing #1

Open mhebdzynski opened 3 years ago

mhebdzynski commented 3 years ago

Dasharo version

v0.2_rc3

Dasharo variant

Dasharo Workstation

Affected component(s) or functionality

Erasing and writing flash chip

Brief summary

Transaction error between offset 0x0086f8c0 and 0x0086f8ff (= 0x0086f8c0 + 63)! Verification impossible because read failed at 0x86f000 (len 0x1000)

How reproducible

100%, overall 2 machines has this bug

How to reproduce

Steps to reproduce the behavior:

  1. Shut down machine, place jumper on the two pins below original position, reboot machine and press F1 when asked
  2. In console create backup by: sudo flashrom -p internal -r bios_backup.bin
  3. In console perform: sudo lashrom -p internal --ifd -i bios -i me -w /tmp/dasharo_kings_gambit_v0.2_rc3.rom

Expected behavior

After performing commands described above terminal should display output:

flashrom v1.2 on Linux 5.4.0-56-generic (x86_64)
flashrom is free software, get the source code at https://flashrom.org

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Found chipset "Intel Q77".
This chipset is marked as untested. If you are using an up-to-date version
of flashrom *and* were (not) able to successfully update your firmware with
it, then please email a report to flashrom@flashrom.org including a verbose
(-V) log.
Thank you!
Enabling flash write... SPI Configuration is locked down.
The Flash Descriptor Override Strap-Pin is set. Restrictions implied by
the Master Section of the flash descriptor are NOT in effect. Please note
that Protected Range (PR) restrictions still apply.
Enabling hardware sequencing due to multiple flash chips detected.
OK.
Found Programmer flash chip "Opaque flash chip" (12288 kB,
   Programmer-specific) mapped at physical address 0x0000000000000000.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... VERIFIED.

Actual behavior

Terminal resulted in error:

flashrom v1.2 on Linux 5.4.0-56-generic (x86_64)
flashrom is free software, get the source code at https://flashrom.org

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Found chipset "Intel Q77".
This chipset is marked as untested. If you are using an up-to-date version
of flashrom *and* were (not) able to successfully update your firmware with it,
then please email a report to flashrom@flashrom.org including a verbose (-V) log.
Thank you!
Enabling flash write... SPI Configuration is locked down.
The Flash Descriptor Override Strap-Pin is set. Restrictions implied by
the Master Section of the flash descriptor are NOT in effect. Please note
that Protected Range (PR) restrictions still apply.
Enabling hardware sequencing due to multiple flash chips detected.
OK.
Found Programmer flash chip "Opaque flash chip" (12288 kB, Programmer-specific) mapped at physical address 0x0000000000000000.
Reading ich descriptor... done.
Using regions: "me", "bios".
Reading old flash chip contents... done.
Erasing and writing flash chip... Transaction error between offset 0x0086f8c0 and 0x0086f8ff (= 0x0086f8c0 + 63)!
Verification impossible because read failed at 0x86f000 (len 0x1000)
ERASE FAILED!
Reading current flash chip contents... Transaction error between offset 0x0062f000 and 0x0062f03f (= 0x0062f000 + 63)!
Can't read anymore! Aborting.
FAILED!
Uh oh. Erase/write failed. Checking if anything has changed.
Reading current flash chip contents... Transaction error between offset 0x00638000 and 0x0063803f (= 0x00638000 + 63)!
Can't even read anymore!
Your flash chip is in an unknown state.
Get help on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom@flashrom.org with the subject "FAILED: <your board name>"!
-------------------------------------------------------------------------------
DO NOT REBOOT OR POWEROFF!

Screenshots

-

Additional context

Linux version: 20.04.1 LTS (Focal Fossa) Workstation: OPTIPLEX 7010 Flashrom version: v1.2 Bug occurred while performing step through this instruction: https://gitlab.com/3mdeb/dasharo/dasharo-documents/-/blob/master/dasharo_kings_gambit_manual.md On the same machine, next to my workstation bug did not occurred.

Solutions you've tried

- dasharo_bug.log

miczyg1 commented 3 years ago

SFF or other chassis type?

macpijan commented 3 years ago

@Vyzrala ?

lwcislo commented 3 years ago

@miczyg1 SFF, but reproduced on DT

lwcislo commented 3 years ago

DMI decode baseboard:

Base Board Information
    Manufacturer: Dell Inc.
    Product Name: 0GXM1W
    Version: A01
    Serial Number: /2PBZH5J/CN722002C1058Q/
    Asset Tag: Not Specified
    Features:
        Board is a hosting board
        Board is replaceable
    Location In Chassis: Not Specified
    Chassis Handle: 0x0003
    Type: Motherboard
    Contained Object Handles: 0

second unit (DT) on which this problem has been reproduced:

Base Board Information
    Manufacturer: Dell Inc.
    Product Name: 0773VG
    Version: A00
    Serial Number: /CP37G5J/CN7220027H00PE/
    Asset Tag: ICT101266
    Features:
        Board is a hosting board
        Board is replaceable
    Location In Chassis: Not Specified
    Chassis Handle: 0x0003
    Type: Motherboard
    Contained Object Handles: 0