codexctl
codexctl copied to clipboard
Codexctl restore when run on device errors
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:
- I use codexctl (on Ubuntu) to download .signed
- Use codexctl (on Ubuntu) to extract .signed to .img
- I copy the .img from laptop (Ubuntu) to the rm2 using scp
- I copy the .img to the fallback partition
dd if=/home/root/3.3.2.1666.img of=/dev/mmcblk2p2 - 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'?
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.