first you have to flash the working firmware in the ANX7688 chip
https://xnux.eu/devices/feature/anx7688.html
https://xff.cz/git/linux-firmware/plain/anx7688-fw.bin
you copy the file with sudo into "/lib/firmware" and you flash it as root giving su with password root and then the echo command
`sudo cp anx7688-fw.bin /lib/firmware`
`su`
`echo 1 > /sys/class/typec/port0/device/flash_eeprom`
after echoing the value "1" into the file "/sys/class/typec/port0/device/flash_eeprom" the flash operation starts and after some seconds the operation is complete and you get back the terminal
giving `dmesg` you will get all the kernel messages of the operation at the end of the output in the following form
[timestamp] anx7688 1-0028: eeprom wr [2+16 bytes in hexadecimal format]
https://xnux.eu/devices/feature/anx7688.html
https://xff.cz/git/linux-firmware/plain/anx7688-fw.bin
you copy the file with sudo into "/lib/firmware" and you flash it as root giving su with password root and then the echo command
`sudo cp anx7688-fw.bin /lib/firmware`
`su`
`echo 1 > /sys/class/typec/port0/device/flash_eeprom`
after echoing the value "1" into the file "/sys/class/typec/port0/device/flash_eeprom" the flash operation starts and after some seconds the operation is complete and you get back the terminal
giving `dmesg` you will get all the kernel messages of the operation at the end of the output in the following form
[timestamp] anx7688 1-0028: eeprom wr [2+16 bytes in hexadecimal format]