Benjamin, great to meet you during LinuxTag!

I committed the attached patch to flashrom as r1049 - it should make
flashrom warn about larger flash chips when using these cards.

I'm sorry that such a stupid bug in flashrom wasted your time. :\


//Peter
Set maximum flash size for 3Com NICs to 128kb = 1Mbit

This fact was already documented on http://flashrom.org/NIC3Com

Signed-off-by: Peter Stuge <[email protected]>
Acked-by: Carl-Daniel Hailfinger <[email protected]>

Index: nic3com.c
===================================================================
--- nic3com.c   (revision 1048)
+++ nic3com.c   (revision 1049)
@@ -81,6 +81,7 @@
        OUTW(SELECT_REG_WINDOW + 0, io_base_addr + INT_STATUS);
 
        buses_supported = CHIP_BUSTYPE_PARALLEL;
+       max_rom_decode.parallel = 128 * 1024;
 
        return 0;
 }
_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to