set upport mode 1 (GPON) or 2 (EPON)
If you only need to use your own router, consider simply putting the HG8145v5 into bridge mode (if the unlock allows it) rather than fully flashing it. huawei hg8145v5 unlock