[flashrom] Set maximum flash size for 3Com NICs to 128kb = 1Mbit

Peter Stuge peter at stuge.se
Thu Jun 17 03:20:31 CEST 2010


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
-------------- next part --------------
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 <peter at stuge.se>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

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;
 }


More information about the flashrom mailing list