On Mon, 7 Mar 2011 01:05:03 +0100, Michael Karcher flashrom@mkarcher.dialup.fu-berlin.de wrote:
Add support for flashing using CD/DVD drives with mediatek chipsets.
As the driver is now, it only supports parallel ATA drives with parallel flash chips. The kind of drive access needed is not possible through IDE drivers in the OS, flashrom has to access the IDE port directly. This
will
interfere with OS drivers for the drive, so you better make sure that the OS does not access the drive (or another drive on the same PATA channel) during the flash process.
On recent linux kernels (with libata), the invocation "-p mediatek_pata:devname=sr0" should work. It is supposed to forcibly unregister all drives on the IDE channel sr0 is on (you better don't have a file system mounted on a hard drive on the same channel), perform the flash job, and, if the drive successfully reboots, re-add all detectable IDE devices on that channel.
This patch is known to lack a man page section and violate the flashrom coding style in some places - I send it out to catch some early reviews on it.
This is really cool :-) It also opens the door to another pata flasher:
http://www.loet.de/flasher_en.html
Great work!