I'm writing a small DOS utility to copy a 256 MB raw disk image generated from Linux dd command to a 40 pin IDE DOM( the brand is PQI ). This utility will launch from a bootable USB flash thumb drive immediately before another utility updates the system BIOS.
I vaguely remember that you need to "erase a flash sector" before you can write to it. My question is: can the flash controller on the DOM handles the erase/write cycle automatically nowadays or is "erase sector" practice still required? If the answer is yes, how should I accomplish it? Should I directly write 0xff to the the entire DOM, or is there a special erase operation in the disk controller that I can trigger?
Also, is there anything else that I need to watch out for cloning flash disk this way, other than verifying the contents after the write?