Skip to content

qdl: fails on Linux with "exit status 1 #27

@dido18

Description

@dido18

Motivation

On Ubuntu 20.04, the qdl command executed by the flasher CLI exits with a generic exit 1 without feedback.

Why ?

The qcserial is locking the resource

Steps to check the issue:

  • check if the qcserial is present
❯ lsmod | grep qcse
qcserial               24576  0
usb_wwan               24576  1 qcserial
usbserial              69632  2 qcserial,usb_wwan

  • check if the qcserial is looking the ttyUSB0
 sudo dmesg

[31633.372270] qcserial ttyUSB0: Qualcomm USB modem converter now disconnected from ttyUSB0
[31633.372308] qcserial 3-3:1.0: device disconnected

How to fix

You need to disable (blacklist) the qcserial kernel module on a Linux system.

Steps to disable the qcserial module:

  1. Open a terminal: on your Linux system.
  2. Create or edit a configuration file: in the /etc/modprobe.d/ directory. You will need administrative privileges for this.
    For example, create a new file named blacklist-modem.conf using a text editor like nano or vi:
        sudo nano /etc/modprobe.d/blacklist-modem.conf
  1. Add the blacklist directive: for the module:
    Inside the file, add the following line:
        blacklist qcserial
  1. Save the file: and exit the text editor.
  2. Restart your system: for the new configuration to take effect.

Additional context

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions