Update firmware on RC7620 using qmi lite on MIPS

Hi, I’m using SLQS04.00.27-lite.bin.tar library and trying to update firmware on RC7620 in mips environment. There is no precompiled binary for mips, so I compiled it from sources:

make CPU=mips CROSS_COMPILE=/home/test/toolchain/mips/bin/mips-linux-

but after running fwdwl-litemips -f /mnt/persistent/test.spk I got only:

Modem Manager rules Tested  
litefw version :lite-fwSLQS04.00.27  
INFO: QDL Port  : /dev/ttyUSB0 
INFO: Device Path: /dev/qcqmi0 
INFO: FW  Path  : /mnt/persistent/test.spk 
litefw_ExtractFirmwareParametersByPath Error: -1 
Exiting Application!!!

When I tried to run it in strace, I saw suspicious:

stat("/mnt/persistent/test.spk", {st_mode=S_IFREG|0644, st_size=34347243, ...}) = 0 
openat(AT_FDCWD, "/mnt/persistent/test.spk", O_RDONLY|O_NOCTTY|O_NONBLOCK) = 4 
fstat(4, {st_mode=S_IFREG|0644, st_size=34347243, ...}) = 0 
mmap2(NULL, 0, PROT_READ, MAP_PRIVATE|MAP_POPULATE, 4, 0) = -1 EINVAL (Invalid argument) 
close(4)                                = 0

Does it require some special compiler flags to be running, or is it not supported on mips at all.

Hi tomas,

It is not supported on MIPS. It is supported on i686, ARM, PPC, ARM64, ARM64 LE.

You can update the firmware over the Airvantage server (https://eu.airvantage.net/)

If you have not accounted for this website yet, you can create a new account for it.

Please refer to the links below to get started with airprime essential modules on the Airvantage server.
https://doc.airvantage.net/av/howto/hardware/essential_getting_started/
https://doc.airvantage.net/av/reference/register/

Help to tick “Solutions” if your question is answered.

@tomas

So the only other way to rsolve this is to go through your commercial channel and they might be able to raise a case if you supply the tool chain for Sierra to build it for you.

Regards

Matt

Thanks both for your reply. So far it seems, that only parsing the file version doesn’t work. All other, including fw update, works well.

Tomas