danielewood / sierra-wireless-modems

EM7565/EM7455/MC7455 - Modem Configuration
The Unlicense
449 stars 95 forks source link

Script failed to download FW, and manual install failed with "error: couldn't open QMI device: Failure" #127

Closed Krivers29 closed 2 years ago

Krivers29 commented 2 years ago

Hello,

I'm using Ubuntu 22.04 LiveUSB and I want to flash my EM7455 (DW5811e). Autoflash_7455.sh failed at function download_modem_firmware(), $SWI9X30C_URL is empty :

Capture d’écran du 2022-06-30 15-37-04

I tried to manually flash instead by following your procedure, and I get this error :

Capture d’écran du 2022-06-30 15-43-09

Am I doing something wrong? Do I need to get an older release of Ubuntu?

Krivers29 commented 2 years ago

I used Sierra Wireless Linux Flashing Tool instead, it did the job. But anyway I guess Sierra FW URL changed once again, could you update it?

zaskokus commented 2 years ago

@Krivers29 what command did you use for the Sierra Wireless Linux Flashing Tool ? did you have to do anything else besides running it?

also: i can see you're using 2.38 - I'm having major issues with this firmware. ModemManager doesn't want to connect to any network anymore.

edit: if you meant the https://github.com/danielewood/sierra-wireless-modems/blob/master/Sierra-Linux-QMI-SDK.md procedure, the tool requires registering an account with sierra...

edit2: if they want to have trash in their system, they will have trash in their system. created whatever random account for the download...

edit3: unfortunately things dont seem to want to work... i had to remove --dmreset option, but then the modem has reset and I'm stuck at:

$ sudo ./fwdwl-litehostx86_64 --devmode $devtype  --devpath /dev/$devpath --modelfamily 3 --logfile "fwdwl-lite-$devpath.log" -e 1 --fwpath "./"
Modem Manager rules Tested 
litefw version :lite-fwSLQS04.00.27 
INFO: QDL Port  : /dev/ttyUSB0
INFO: Device Path: /dev/cdc-wdm0
INFO: FW  Path  : ./
Package Info:
Carrier    :GENERIC
FW Version :02.30.01.01
Model ID   :SWI9X30C
Package ID :000
PRI Version:002.045
SKU        :9999999
Part Number:9904609
file_type : 6
CWE+NVU
Set pref ImageTypesSize: 2
Modem Needs FW
Modem Needs PRI
Waiting for modem to disconnect from the host after reset command is issued ...
QMI reset failure, reset by DM cmd
Waiting for modem to disconnect from the host after reset command is issued ...
Krivers29 commented 2 years ago

@zaskokus well it turns out that I was in the same case as you with Sierra Wireless Linux Flashing Tool, but I didn't realized on the spot. My guess is that the modem is in NBIM mode and not QMI. You can try to switch it by sending AT commands on ttyUSB2.

But actually I went back and cheated by hard coding $SWI9X30C_URL and $SWI9X30C_ZIP in autoflash_7455.sh.

also: i can see you're using 2.38 - I'm having major issues with this firmware. ModemManager doesn't want to connect to any network anymore.

I haven't manage to set up wwan setup yet, so it might be because of 2.38... I'll try flashing another FW next time .

zaskokus commented 2 years ago

I haven't manage to set up wwan setup yet, so it might be because of 2.38... I'll try flashing another FW next time .

@Krivers29 I managed to get it working, but I had to manually send some commands to the modem to actually use proper configuration file for the 2.38 firmware (I was on 2.32 before). There's no benefit of upgrading beyond the first upgrade from the engineering sample thing.

Krivers29 commented 2 years ago

@zaskokus To be more precise,WWAN was working on Windows before and after upgrade. Where I'm stuck is on my Syslink router