Skip to content

green led blinking after plugging in. flash.py/recover.py stuck #35736

Closed as not planned
@pandaexpress-red

Description

@pandaexpress-red

Describe the bug

I went through flash.py, recover.py to make panda work.
Now whenever I plug in it shows green led blinking, so I tried 4 things below. Help to make this work would be greatly appreciated.

  1. run flash.py which hung at
    scons: Reading SConscript files ...
    scons: done reading SConscript files.
    scons: Building targets ...
    scons: `board' is up to date.
    scons: done building targets.
    INFO: connecting to panda 18000f001051313338343730
    flashing 18000f001051313338343730
    flash: unlocking
    flash: erasing sectors 1 - 1
    flash: flashing
    flash: resetting

  2. run panda.can_recv() which says me reflash

from panda import Panda
p = Panda()
INFO: connecting to panda 18000f001051313338343730
p.can_recv()
Traceback (most recent call last):
File "", line 1, in
raise RuntimeError(f"{desc} packet version mismatch: panda's firmware v{panda_version}, library v{lib_version}. Reflash panda.")
RuntimeError: CAN packet version mismatch: panda's firmware v0, library v4. Reflash panda.

  1. run recover.py which is hung at
    scons: Reading SConscript files ...
    scons: done reading SConscript files.
    scons: Building targets ...
    scons: `board' is up to date.
    scons: done building targets.
    putting 18000f001051313338343730 in DFU mode

  2. run reflash_internal_panda.py
    FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/gpio/gpio124/direction'

OS Version

Ubuntu 22.04

openpilot version or commit

No response

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    PCIssues related to running openpilot on PC

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions