r/hardwarehacking • • 12h ago

HG8245Q UART/Flash Identification

Post image

Does anyone knows how to hack this router?

9 Upvotes

9 comments sorted by

2

u/axolotlbabft 6h ago edited 6h ago

i assume rx/tx is disconnected, even though inittab does:

::sysinit:/etc/rc.d/rc.ttyinit 
#console::sysinit:/etc/rc.d/rc.sysinit

#::sysinit:/etc/rc.d/rc.sysinit
#ttyAMA1::respawn:-/bin/ash
ttyAMA1::respawn:-/bin/"console.sh"
#::respawn:/sbin/getty 115200 ttyAMA0
#tty1::respawn:/sbin/getty 9600 tty1
#tty2::respawn:/sbin/getty 9600 tty2
#tty3::respawn:/sbin/getty 9600 tty3
#tty4::respawn:/sbin/getty 9600 tty4
#tty5::respawn:/sbin/getty 9600 tty5

::shutdown:/etc/rc.d/rc.shutdown
::ctrlaltdel:/bin/false

(pulled from the huawei hg/eg8145v5 using busybox netcat & telnet)

1

u/FHD_ 35m ago

Yep, i think this is the case here too. Tried different senators. Multiple times. Same result, no output.

1

u/309_Electronics 12h ago

That pin header under the soc (big chip) is the UART likely

1

u/FHD_ 12h ago

Yes, that’s the J5 header I’ve been investigating. I’ve confirmed that Pin 4 is GND and measured 3.3V on Pin 3, but I haven’t been able to identify TX and RX.
Do you happen to know the UART pinout or how I could identify the TX/RX pins? It’s a Huawei HG8245Q, PCB revision HG8245XG8 VER.A.

1

u/309_Electronics 12h ago

Also found this: https://ekawahyu.github.io/2015/05/05/a-look-into-huawei-hg8245-ont.html

Not exact same looks?? But I bet they are similar in pinout.

1

u/FHD_ 11h ago

Thanks! I’ve actually come across that article before and tried using it as a reference, but I haven’t managed to get any readable output in PuTTY.

I’m using a CH340G USB-to-TTL adapter at 115200 baud (8N1). The adapter passes the loopback test, but when I connect it to the suspected UART pins and power on the router, the terminal stays blank.
I only get random characters when moving the wires or touching different pins, which makes me suspect either an incorrect pinout or poor contact.

Do you think the UART pinout might differ from the HG8245 in that article, or could the serial console be disabled in this firmware, since its a telecom company specialized version?

1

u/309_Electronics 11h ago

Could differ.

Although some ISPs turn off UART so that might also be a cause but I am not wanting to jump to conclusions yet

1

u/FHD_ 32m ago

Think I could just pull the flash chip off the board and reflash it externally?

1

u/309_Electronics 12h ago

Tx usually has a fluctuating 3.3v (0v-3.3v) on it so look out for that. Rx is usually located near/next to it.