Help adding support to a new device (DG-8045)

I’m a tinkerer myself, just picked up things along the way.

I’m not familiar with dsl standards in Egypt, but, they should be using one of a handful of standards used globally. Have you looked into getting another modem/device from overseas and posted to you? (I am using an avm modem, with Netgear r7800 running openwrt - both purchased 2nd hand.)

1 Like

I just wanted to get support for this device because this will help really much people I know that have the same router. I am happy to know that the HG630 V2 has the same SoC because that means if we can get support for one of them we can then get support for the other and really much people in Egypt would benefit from that because ISPs really limit our routers. This router has really good specs in the topic of HG630 V2 he said that it has 16mb flash and 128 mb ram and this is more than enough to run openwrt (of course the flash and ram aren't the only things that matter but this is a good beginning)

This is an Openwrt group on Facebook. Idk if it's official or not.


And this is my Facebook so maybe we can try with together

about buying one from overseas. I thought about it and I'm think of xiaomi Router 4A the 100MB version, it's really cheap, I could found it for 250 egp which is less than 16 usd but the problem is about the shipping and the freaking egyption customs.
Or second thought was buying mikrotik but it's expensive than my budget.

Do you know how to use JTAG cable and get access to bootloader?
It won't be easy to build your first build for even an unsupported platform (yet) so maybe you will have to stay in touch with some famous developers here who built several builds before to get their advice.
I read some articles about beginning with openwrt but I really didn't understand most of them.
Also I want to ask what your isp is. I think only 2 ISPs sell DG-8045 ( Etisalat and Vodafone).
If you intend to start this then you should expect that it would be a long journey, and of course you will benefit from this very much even if you fail.

You both sound keen, and I wish you luck👍But it’s true that adding support for a device can be a hard process.

Hopefully using JTAG to modify things isn’t required. (If it is, that would put using openwrt on this device out of reach of 99.9% of people).

Start with opening it up and finding the serial headers or pinout holes . On all boards without presoldered headers that I’ve seen, the 4 holes were in a vertical column or horizontal row, with one of them having a square pad which is VCC which you should NOT solder. More info here https://openwrt.org/docs/techref/hardware/port.serial

Once you have serial you should be able to then see the bootloader. Again most devices have a tftp daemon built in and hopefully will accept an image in ram. If so, you’re in business and you can then start compiling your initram openwrt image and start trying to get it accepted by the bootloader.

Once you’ve got the ram image to boot up successfully (it will very likely panic/crash on the first few tries) you can then check if all hardware is being recognized/mapped. And all drivers needed and compiled in. Finally, when you’re happy you then write the image to permanent storage on the device flash/nand .

If you still want to make openwrt on this device available to others , you probably want to revert back to oem firmware and test attempting to either build a “factory” openwrt image that can be uploaded through its web interface. Or test the tftp method works blind reliably since most people won’t have serial console .

Sometimes other methods are possible (getting a telnet daemon to start under the oem’s firmware ) but those are less common .

What I’ve found is that collaborating on a thread here on the forum seems to be most effective. Make use of the </> code formatting to share console outputs or configs tried.

The guy from the topic I mentioned ( Adding support for HG630 v2 ( vspm310 - vspm340) ) had serial logs so he got access to serial already.
The HG630 V2 and DG-8045 are so similar and the firmware for both of them looks exactly the same with same options, so I guess the boards are similar too.
We can get help from him and try to help him at the same time.
I will try to help by reading more about beginning guides but as I said my knowledge about programming languages is so limited, so I won't help that much at the end (lol).

Ohh now that's something ! Try to get in touch with him and DM me when you can

1 Like

Can you send pictures of your HG630 V2 board? I want to see where did you solder the pins and so

Also send me your facebook profile please so we can have a group chat to bring things closer

I have a question.
If the oem firmware uses linux kernel can we just use it and replace only the system image with openwrt image to keep required drivers in the kernel?

Openwrt is designed as a complete OS, and would fully replace everything on the original device except for bootloader, bootloader config, and sometimes WiFi firmware if that’s provided under a separate partition. So no , not possible to run it under original kernel. But to be honest, it’s usually so old you probably shouldn’t anyway due to security issues.

I’d suggest just posting photos and your analysis on this thread right here. If you take some high res photos top and bottom of your board I might be able to identify the serial pinouts .

1 Like

These are pictures of my router but I didn't uncover that silver plate. It's in front and in back of the board and it's soldered

![IMG_20200501_164934|666x500, 100%]
(upload://blVVGtirTtZYGBVV7XlMQB832Yk.jpeg)

I don’t see anything obvious from those photos. Its unlikely but the serial pinout might be underneath the plate sections if you’re willing to remove those. It’s also possible that the manufacturer removed the serial on the production boards after dev and testing was completed...

Idk yet but if say we didn't find any serial pinouts (which will be like that if i understand correctly)
Screenshot_1

that will mean we have no chance to get a OpenWrt to wok on it?

They might be pinout holes that are unpopulated / yet to be soldered too.

But yeh if you don’t have serial is a much harder task (maybe even impossible)

If this router is luckily impassible to have OpenWrt ported to it.
I have three other routers. anyone of them needs some work but could have a potential to be supported? 1-Huawei HG531 V1 || 2-Huawei HG532n || 3-ZTE ZXHN H108N V2.5


Huawei HG531 V1

Huawei HG532n

ZTE ZXHN H108N V2.5

That bottom board has a serial pinout, but please open a new thread for that one since this thread is about the DG-8045.

As for the other 2 Huawei boards and the DG-8045 , I don’t see any pinouts for serial... Perhaps the manufacturer has something in there they don’t want anyone to see :thinking: and/or want to guarantee the end of life point for the device... either way, It looks unlikely to get support for this device.

I kinda have a feeling that these pins might be the serial pins but not referred to. How can I check?


and I'm wondering about smth. Since it has a USB, Are there anyway to get the bootloader using it?

There’s some suggested methods on the wiki here https://openwrt.org/docs/techref/hardware/port.serial#finding_serial_console

But looking at the pads you’ve indicated they don’t look like serial connections to me. Be careful, and be aware you could fry/damage your device .

There is still hope.
Pictures for the HG630 V2 don't seem to have pinouts for serial but Omarico had serial logs so maybe he found them (maybe the manufacturer soldered them to hide them??) I will just wait for his answer because we have nothing to do for now.

1 Like