codexctl icon indicating copy to clipboard operation
codexctl copied to clipboard

Codexctl restore when run on device errors

Open shamiv opened this issue 6 months ago • 1 comments

Device: rm2 Version out of the box: 3.19.9.82

Goal: downgrade to 3.3.2.1666 in order to be able to install toltec

Because I am downgrading from 3.11.2.5 or greater to a version less than 3.11.2.5, I follow these steps:

  1. I use codexctl (on Ubuntu) to download .signed
  2. Use codexctl (on Ubuntu) to extract .signed to .img
  3. I copy the .img from laptop (Ubuntu) to the rm2 using scp
  4. I copy the .img to the fallback partition dd if=/home/root/3.3.2.1666.img of=/dev/mmcblk2p2
  5. I run codexctl restore (on the device).

Nothing happens for 17 minutes. Then I get the following traceback:

new: 3
fallback: 2
Traceback (most recent call last):
  File "/tmp/onefile_886_1749601848_444105/main.py", line 12, in <module>
  File "/tmp/onefile_886_1749601848_444105/codexctl/__init__.py", line 480, in main
  File "/tmp/onefile_886_1749601848_444105/codexctl/__init__.py", line 219, in call_func
  File "/tmp/onefile_886_1749601848_444105/codexctl/device.py", line 267, in get_device_status
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?

shamiv avatar Jun 11 '25 01:06 shamiv

Same issue with my RM2, version 3.20 currently, trying to downgrade to 3.3.2.1666.

Used scp to transfer the precompiled codexctl binary to my RM2. "codexctl download 3.3.2.1666" runs successfully "codexctl install" yields the same traceback as what OP is seeing. I get the same error if I try to run "codexctl status".

Hope this info helps.

motta-the-hutt avatar Jul 18 '25 02:07 motta-the-hutt