Hi Stefan,
In the system, only below regions were mapped and only these regions can be erased/programmed.
0x54: 0x000f0000 FREG0: Flash Descriptor region (0x00000000-0x0000ffff) is read-write.
0x58: 0x07ff0200 FREG1: BIOS region (0x00200000-0x007fffff) is read-write.
The other regions were not used on this platform.
Creating a romlayout file and programming only the specified regions solves the issue. The patch works fine.
#cat romlayout
00000000: 0000ffff desc
00200000: 007fffff bios
# ./flashrom -p internal:laptop=this_is_not_a_laptop -l romlayout -i desc -i bios -w NewBios.bin
Thanks & Regards,
Rajasekhar