Skip to content

Codexctl restore when run on device errors #135

@shamiv

Description

@shamiv

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'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions