I don't have the requisite knowledge, but I can try under instruction to extract any info that is required to help provide a build and can test the build
I'm such the committer that got this to work.
The E395AX is basically the same board as its bigger brother, they have just cost reduced the casing.
Everything else is the same.
I am getting the same error on this device when trying to flash factory bin image via the stock GUI, and im getting Failed set error. Now that its officially supported...How can i install openwrt on this?
the SET error maybe related to the file name. I noted if the backup.file is not named like that for the restore config, it also gives a set error.
In any case, on my 2x 395ax devices; first one, i tried to load the factory image via xmodem / serial and bricked the device. second one i got the set error when trying to upload via factory gui, so went strait to the recovery process i used for the first one.
take the heatsink off, the serial connection (labels) are under that.
i used right angle molex connectors under the circuit board to allow easy reconnection in future.
in any case, to get under the circuitboard you have to take the heatsink off as there is a screw underneath. (so no avoiding the removal)
connect 3.3v serial to usb device
xmodem the raminitfs version to memory and run from memory
use the sysupgrade version from the gui to upgrade
that's how I recovered the first one, and did the second one.
I found it much quicker that mucking around with TFTP servers, certificates, etc.
Thanks @frollic, i followed this procedure, but unfortunately the root password was not being accepted as a blank or "enter".
I must note however that i edited the shadow file via the Archive program with a text file, and re-saved it. Even though it saved it, and after i uploaded the new settings, it did not accept a blank root password. it says its incorrect.
Just wondering how important it is to use "fakeroot" ?
@GwaiTsi is there an easier way? i really do not have the knowledge and especially pressed for time.
Is it possible to upload the sysupgrade via the GUI or will it brick it?
I tried @frollic 's link where the user says he disables root password, i tried, fakeroot way, i tried to re-compress the etc/ and it gives a permission error:
tar -zcf backup-ssh.tar.gz etc/
tar: etc/wireless/mediatek/DBDC_card0.dat: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
I then did chmod -R a+x etc/ and then re-compressed without errors, however after uploading the backup.file, i still cannot login via ssh. it gives the same errors:
root@192.168.1.1's password:
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
root@192.168.1.1's password:
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
root@192.168.1.1's password:
Factory image is only via the ssh method not the oem ui, they use a tar.gz image that is not in openwrt format. the reason for factory is to format the ubi partitions so that openwrt can boot.
Fakeroot is used to set the permissions as root otherwise you could edit the shadow file with the wrong permissions and it won't work.
If you rename the file from backup.file to backup.file.tar.gz then open with a archiver program, edit within there the etc/shadow file that would work. then rename back to its original filename. then upload via the oem ui. The router will reboot if successful, keep trying until the router reboots
You have to use an old ssh client to connect as newer versions will not connect that is another gotcha
I confirm the same OpenWrt images of 393 work on 395. I was unsure I'm cutting down some specs by using an image not actually made for it (you know, maybe different RAM/ROM sizes) but I see you actually checked by opening it the specs are the same. How should we handle such duplication? Maybe we should just have a common wiki page for both.
One is just a mild misleading command example, i.e. you cannot use wildcards in sysupgrade command, you have to specify the full correct firmware filename. I was fooled because it suggested to me that a wildcard would have worked in case there was actually a single /tmp/*.bin file.
The second issue is a typo in the /etc/shadow contents, there is a missing semicolon in the pattern, so it will not accept it as a blanked root password if you directly copy-paste from the instructions. Just blank the existing one you see in the backup.