Skip to content

Casu firmware locks  #36

@marselap

Description

@marselap

Description:

When casu-fw is run from /etc/rc.local, it locks after 15-100 seconds and stays idle for around 100 s. Upon unlocking, continues to run normally until a new lock.

  • When the firmware is run manually, no lock occurs.
  • When only one firmware is run, no locking occurs.
  • With two firmwares on the same bus, problem does occur.

Cause:

Probable cause in lockf used to protect i2c bus usage. Unclear why all 4 firmwares lock at the same time (at least one uses other bus which should not be affected by lockf to other bus).

Current solution:

Temporary workaround: redirect stdout (and stderr) to /dev/null (or any other file). Probably works because writing to a file slows down the process. Expected firmware locking in long firmware runs.

TODO:

Check if lockf is a problem. Check why firmwares unlock (lock timeout?). Unclear why only when run at boot, and not when run manually.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions