Jayy001 / codexctl

Automated update managment for the ReMarkable tablet
GNU General Public License v3.0
107 stars 13 forks source link

Restore fails silently #66

Closed NikosAlexandris closed 6 months ago

NikosAlexandris commented 7 months ago

I have cloned and installed https://github.com/Jayy001/codexctl (commit c3afa85f12900be041942db1fa7961e16fb5eace) on my EndeavourOS-based system. I am trying to downgrade the firmware of a reMarkable2 to the previous version. The command python codexctl.py restore fails silently, i.e. it goes through asking for a password and it seems all works as there is no error reported. After restarting the device, the latest firmware 3.10 is still the one that runs on it. What are the odds?

Eeems commented 7 months ago

Restore just changed which partition gets booted. If your previous partition was also 3.10, then that's what will be booted.

Did you confirm that it did not change the active partition?

Jayy001 commented 7 months ago

This doesn't work when done remotely because /sbin is not on the PATH when running over SSH. I've fixed this by replacing any instances of fw_setenv and printenv with their full path ( /sbin/fw_setenv). This will be added in the rewrite. Thanks for reporting!