Can someone help me build the ASIX eeprom executable? I've tried in Windows and Mac but I'm getting some gcc compiler errors. First it said it couldn't find endian.h so I edited the code to read <machine/endian.h> and now it says there are errors with undeclared functions with ISOC99.
Edit, I got it working by adding some code for the undefined functions:
#if defined(__APPLE__)
#include <libkern/OSByteOrder.h>
#define htobe16(x) OSSwapHostToBigInt16(x)
#define be16toh(x) OSSwapBigToHostInt16(x)
#define htole16(x) OSSwapHostToLittleInt16(x)
#define le16toh(x) OSSwapLittleToHostInt16(x)
#endif
I first tried the editing the pid and vid method but it didn't seem to work or it doesn't update the vid and pid properly in Mac OS settings screen. I flashed the UGREEN eeprom and it also did not show a change in the pid and vid but when I unplugged the adapter and plugged it into a PC it did show up as properly flashed with the new vid and pid and I tested it working on a Wii U.
I was looking into modifying the MAC address to match the original eeprom but it shows up in a strange order in a hex editor. For example if I check the MAC address it's in a format like AB-CD-EF-GH-IJ and in the hex editor it shows up as CD-AB-GH-EF-IJ. So if I want to flash the original MAC address back to it but keep the UGREEN rom, I just hex edit the values from the original in this swapped format?