Re: [PATCH 3/3] dm9601: add support ethtool style utility

From: Ben Hutchings
Date: Thu Mar 10 2016 - 08:18:07 EST


On Thu, 2016-03-10 at 20:51 +0800, Joseph Chang wrote:
> I did verify to dump EEPROM data and also write EEPROM by per byte.
>
> 1.Plug dm9601/dm9621 adapter and has get dm9601.ko be 'insmod' to have 'eht0',
> 2.Run ethtool v3.7 (as attached executable file and it's help display.)
> 3. Commands:
> ÂÂÂ./ethtool -e eth0ÂÂ(dump EEPROM data for all the .get_eeprom_len )
> ÂÂÂ./ethtool -E eth0 magic 0x9620 offset 0 value 0xf1ÂÂ(write 0xf1 to eeprom byte0)
> ÂÂÂ./ethtool -E eth0 magic 0x9620 offset 1 value 0xf2ÂÂ(write 0xf2 to eeprom byte1)
> ÂÂÂ./ethtool -E eth0 magic 0x9620 offset 2 value 0xf3ÂÂ(write 0xf3 to eeprom byte2)
[...]

So you only tested writing 1 byte at a time. ÂTry again with 3 bytes
and you'll see how it goes wrong.

Ben.

--
Ben Hutchings
To err is human; to really foul things up requires a computer.

Attachment: signature.asc
Description: This is a digitally signed message part