So OpenWrt is ready and tested
Flashing now only work from TTL / uboot TFTP initramfs.bin route or via ssh (If you enable it already) with mtd -r write sysupgrade.bin firmware
root@WR3000:~# sysupgrade -T /tmp/openwrt-mediatek-filogic-cudy_wr3000-squashfs-sysupgrade.bin
Thu Apr 20 17:12:50 CEST 2023 upgrade: Device R31 not supported by this image
Thu Apr 20 17:12:50 CEST 2023 upgrade: Supported devices: cudy,wr3000
Segmentation fault (core dumped)
Image check failed.
forcing flash with sysuprgrade -F result router not boot installed firmware
edit:
tags "supported_devices":["R31"] and "board": "R31" are now set correctly and sysupgrade fails anyway as well as GUI upgrade
which openwrt version is cudy's rom based on? do you maybe need to add a UIMAGE_NAME line like other cudy's have? (just a guess why a check might fail)
Is there no other error output if you run logread afterwards?
Maybe you need to actually reverse engineer the differences to the image(s) that they provide.
compare both images using binwalker
maybe the image needs a jcg header like the wr1000 does?
Or they forgot to lock the bootloader and they still expect images to be rsa signed or whatever it is they did with earlier devices that made their signed openwrt fork necessary as a prestep for installing actual openwrt.
No clue, honestly. Can you share /lib/upgrade somehow maybe?
edit:
so I've hit the bug with the BOARD_NAME := R31 SUPPORTED_DEVICES := R31
Image check failed:
Sun Apr 23 17:30:30 UTC 2023 upgrade: Device cudy,wr3000 not supported by this image Sun Apr 23 17:30:30 UTC 2023 upgrade: Supported devices: R31 Image check failed.
In console
root@OpenWrt:~# sysupgrade -T /tmp/openwrt-mediatek-filogic-cudy_wr3000-squashfs-sysupgrade.bin
Sun Apr 23 17:34:26 UTC 2023 upgrade: Device cudy,wr3000 not supported by this image
Sun Apr 23 17:34:26 UTC 2023 upgrade: Supported devices: R31
root@OpenWrt:~# cat /tmp/sysupgrade.meta
{ "metadata_version": "1.1", "compat_version": "1.0", "supported_devices":["R31"], "version": { "dist": "OpenWrt", "version": "SNAPSHOT", "revision": "unknown", "target": "mediatek/filogic", "board": "R31" } }
That was already fixed by setting .And Yes you can save settings while -F in my case.
SUPPORTED_DEVICES += R31
So now tere are two supported devices "cudy,wr3000" and "R31"
For now I'm running my build as production device and most of my troubles come from not reliable bridger that hangs and doesn't catch traffic.
But You can always skip this by disabling WED until it get fix
Excellent news if I understand correctly. It is now possible to flash from upgrade page, correct?
If so, and if you need a tester, please share the build.
Could you share the images needed for TTL, please?
//EDIT: Tried to compile for myself but can't load via tftp. Router:
*** Loading image ***
Input load address: 0x46000000
Available load methods:
0 - TFTP client (Default)
1 - Xmodem
2 - Ymodem
3 - Kermit
4 - S-Record
5 - RAM
Select (enter for default):
Input U-Boot's IP address: 192.168.178.2
Input TFTP server's IP address: 192.168.178.35
Input IP netmask: 255.255.255.0
Input file name: 4.bin
Using ethernet@15100000 device
TFTP from server 192.168.178.35; our IP address is 192.168.178.2
Filename '4.bin'.
Load address: 0x46000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
*** TFTP client failure: -64 ***
*** Operation Aborted! ***
support was added to OpenWrt snapshot in commit: c9cb6411c1a70516d5922e88c45b338de041baba
Now day or two and it will be available in firmware selector. For now without wireless offloading firmware.
I know it sound bad to use serial console adapter but in fact is quite easy. Also You might get yourself ssh access for OEM that way and recover from bad flash or broken firmware. At least Cudy WR3000 is easy to open in compare to some. @shdf
Yes . Few other Cudy router have their OpenWrt fork without signature check available for download
It's just the default with wpad-basic-mbedtls removed and arp-scan htop nano-full luci luci-app-dawn luci-theme-material openssh-sftp-server wpad-mbedtls mt7981-wo-firmware added, which I think is a nicer default (having full wpad, luci and some useful tools).