AX88772 to DUB-E100

From Automotive Wiki from mr-fix
Revision as of 13:50, 19 August 2021 by Admin (talk | contribs) (Requirements)
Jump to: navigation, search

Requirements

  • Linux (for example Raspberry Pi)
  • ASIX AX88772 USB to Ethernet dongle (buy here: [1])

Procedure

Update repos and install ethtool

sudo apt-get update
sudo apt-get install ethtool

Check connected USB devices

Look for ID 0b95:772b ASIX Electronics Corp. AX88772B device lsusb

Check if visible as network adapter

And what's the device name. In this case it's "eth1" which I'm going to use in next steps whenever there's need to point to a device. ifconfig

Check if EEPROM can be accessed in device "eth1"

sudo ethtool -i eth1

Read EEPROM from "eth1" device

sudo ethtool -e eth1

Confirm that offsets 0x0040 and 0x0080 contain "95 0b 2b 77"

Notice the similarity between "95 0b 2b 77" and "ID 0b95:772b" from step 3. This id VID and PID of this device which we are going to change in next step

Overwrite VID and PID with ones from D-Link DUB-E100 (0x2001, 0x3c05)

sudo ethtool -E eth1 magic 0xdeadbeef offset 0x0088 value 0x01
sudo ethtool -E eth1 magic 0xdeadbeef offset 0x0089 value 0x20
sudo ethtool -E eth1 magic 0xdeadbeef offset 0x008A value 0x05
sudo ethtool -E eth1 magic 0xdeadbeef offset 0x008B value 0x3c

sudo ethtool -E eth1 magic 0xdeadbeef offset 0x0048 value 0x01
sudo ethtool -E eth1 magic 0xdeadbeef offset 0x0049 value 0x20
sudo ethtool -E eth1 magic 0xdeadbeef offset 0x004A value 0x05
sudo ethtool -E eth1 magic 0xdeadbeef offset 0x004B value 0x3c

Confirm EEPROM changes at offsets 0x0040 and 0x0080

sudo ethtool -e eth1

Reconnect device and check if it identifies as D-Link DUB-E100

lsusb