On Fri, 19 Aug 2011 08:37:48 +0200
"Frei, Thomas (GE Germany)" <Thomas.Frei(a)ge.com> wrote:
> Hi,
>
> I patched my flashrom an here is the output of the new code:
>
> ---snip---
> 0x00: 0x03ff0200 (BFPR)
> 0x00200000-0x003fffff
> ---snip---
>
> Is this, what you expected?
yes, it is equal to the bios region of yours:
0x58: 0x03ff0200 (FREG1: BIOS)
0x00200000-0x003fffff is read-write
>
> If I want to hack my flashrom:
> - will it be possible to read the flash, or only to write it?
for writing there is no need to hack anything. you can use the layout
option for this already (please read the man page, really ;)
if you can wait till tomorrow, you wont have to hack anything, because
i have a patch already. if it is important please mail me directly and
i can send it to you sooner. it needs a bit of work still before i can
publish it.
> - where will I have to change and what exactly, to have the quick, dirty and ugly hack working?
> (I tried to search for "limit" and changed it to 0x3fffff and 0x7fffff - but nothing changed in behavior)
there are several options.
the easiest hack is probably to change the total_size field of the flash
chip in question in flashchips.c around line 7978 to 4096.
you need then to change the eraseblocks below that accordingly (else
flashrom will detect the imbalance at startup and bail out).
the first number is the block size and should stay the same for the
first 3 erasers. the second one is the count of blocks and should be
halved for those erasers. the last 2 are full chip erasers where you
need to cut the size in half instead of the count.
you can probably comment all erasers but the first away.
--
Kind regards/Mit freundlichen Grüßen, Stefan Tauner