Ollie,
I checked the flash_rom, and find that you remove the code for check if the sector is really erased.
Also I found the flash_rom can not work under 2.6.4.and 2.6.5 in x86_64 mode, and it seems only last 4k can not be erased. [0x7f000, 0x7ffff].
Regards
YH