OpenWrt support for Cudy TR1200 (MT7628)

Hi,
I'm working on port OpenWrt to this router. I managed to build a binary, but I can't reach the u-boot console. Someone knows how?

I tried pressing down/up arrow, all numbers from 0 to 9, etc.
The Reset button only loads the tftp recovery and web recovery (that only accepts signed firmware). After that, boots straight on the OEM firmware.

Have you tried ctrl + c?
It's common for interrupting the boot process.

Also can you access the u-boot env variables with fw_printenv in OEM firmware?

I tried with this combination and don't work.

Searching for more comments working on Cudy's MT7628 boards I can see a pattern. People run into the same problem, then Cudy generates a signed firmware (or someone dump and reflash the spi chip) and no more u-boot comments. I've even tried reading commits or PRs from other devices with MT7628 and no method read there works.
I tried to read the SPI chip with a test clip and it doesn't work, I hope I don't have to desolder it.

Additionally, if the firmware starts, I have no shell access and the serial output only shows kernel messages.

Cudy support confirmed to me that the bootloader was locked. By reprogramming the SPI chip I was able to load an OpenWrt build.

Cudy also kindly sent me a firmware with an unlocked U-boot, which made testing easier. I will be documenting on the Wiki soon.

I sent a PR:

2 Likes

Hi,
I also want to flash this device.
To start, I have a few questions :

  1. Where can I find the firmware with the unlocked bootloader?

  2. Is there an option to get an official firmware which does not check the signature, so I am able to install the new firmware directly via tftp without a serial connection?

  3. How stable is the router running with openwrt?

Best regards

Since they haven't made it public, you'd need to ask Cudy, of if @enmaskarado still got a copy somewhere.
Cudy seems to be pretty helpful, if you reach out to them, have you already tried ?

If there's an intermediate firmware, there's no need for tftp nor serial.

Hi, it's great that more people have paid attention to the router.

Firmware with unlocked u-boot:

Cudy told me to use TFTP and avoid Web Upgrade.

I feel it's stable enough for me (3-4 connections and with the MT7613BE on STA mode)

Thank you for providing the unlocked firmware.
I installed the firmware using tftp method.

Unfortunately I am now struggling with installing openwrt.
The tftp download works, but it seems like the router does install the image.
After the download, it boots with the beta cudy firmware instead of openwrt.

Any idea why this could be failing?
(I tried without uart, do I have to use the serial method?)

If you've installed the interim image, simply sysupgrade to proper Openwrt.

I tried, but it is not working.
When I upload the openwrt sysupgrade into the web, it says "Invalid firmware" and the tftp method is not working like I explained.

At the moment I do not have another idea what could be done...

You can always force the sysupgrade.

That could be an idea.
Do you know how to do it with cudy routers?

It's an Openwrt thing, you do it in the interim image.

My interim image is a beta version of the cudy software with an unlocked bootloader, not a plain openwrt firmware.

ah, I see.

then you need to post the tftp attempts, let's see if we can figure out what happens.

Hi,
I wrote some instructions on the Wiki: https://openwrt.org/toh/cudy/tr1200#oem_installation_using_tftp_and_u-boot_command_line

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.