Hi,
I mean, what IP did you set to TFTP server and which commands did you use to upload the firmware? If you could give detailed instructions please, thank you.
Getting a new AP soon, will add step by step instructions then.
However in general, you will need to open up the AP, remove the heatsink (As the UART pins are underneath it) and connect a UART to USB to it.
Then you will need to boot the AP, stop it in the boot menu, and select initramfs boot option.
From there steps are strait forware, as it will ask for AP IP, Server IP, firmware file name ...
Once it boots up, it will have standard openwrt, where you will be able to follow the instruction in the git commit.
I accidentally forced the AP to upgrade firmware without the file, I think it erased the firmware. Now the ap won't boot (stays in pink led)
Is there any solution for this?
Connected usb uart, loaded initramfs image (option 6 I believe) with TFTP and when booted to OpenWRT only had to copy sysupgrade image to router and install with sysupgrade -n -F
@db260179 why do we need the factory image in this case? Can't we simply flash the sysupgrade?
Does the factory image add any changes to the u-boot?
Btw, I this if we can generate the sysupgrade with different control file(cf-e393ax instead of confast_cf-e393ax) we should be able to flash it using the gui. Did not test it yet, will test it once I get new ap.
I see the original commit message has a typo in the firmware file wildcard prefix *-- with double -
Could this lead to the issues you got?
root@OpenWrt:/tmp# sysupgrade -n -T /tmp/*--test.bin
Mon Jul 22 18:01:55 UTC 2024 upgrade: Image metadata not present
Mon Jul 22 18:01:55 UTC 2024 upgrade: Use sysupgrade -F to override this check when downgrading or flashing to vendor firmware
Image check failed.
I used -T in pace of -F to avoid bricking things at random, but it seems sysupgrade is indeed trying to flash something (even when my "hello world" /tmp/hello-test.bin does not exist)
Just an example of selecting the image name, you can just select the actual name.
Force is required because the oem checksums wont match the openwrt image - reason for factory image so it can format the UBI partitions, sysupgrade wont do that.
@GwaiTsi So for me to help you i will need you to dump the flash contents of this device, so this means ssh access as per the git commit of cf-e393(download from oem web ui the config, then remove password from the etc/shadow) - if you get stuck on that part just send me the oem config file i can adjust for you.
So from the original oem rom (as installed now and the link you sent) you can download the router config - thats how we gain access, by changing the oem config file and removing the root password.
Then you reimport the new changed config back so that you can - ssh root@yourrouterip