WP7601 update fails - no redSensorToCloud

@nburkitt, it looks like the modem’s Linux does not match with the toolchain version with which your mangoH was compiled with. With every release, we provide modem firmware, Linux and Legato and a toolchain to cross compile your applications with. All components can be changed, but the application should be compiled with the toolchain that matches the Linux component installed on the modem.

I checked with R12 and I was able to install mangOH successfully. I’ve detailed the steps below. I’m using a new tool called “Leaf” that pulls in all the required components for a specific release. Leaf installation directions are at https://docs.legato.io/latest/toolsLeaf.html. I used a PC with Ubuntu 18.04 X86 with all latest updates as my build machine. VBox will also work.

Once you install Leaf, please follow the below steps (my workspace is “legatoWorkSpace”). I’ve truncated command responses and I picked R12 stable package and so my profile name for use with Leaf is "WP76_R12_Stable"

a:legatoWorkSpace$ leaf search -t wp76xx -t stable
image
a:legatoWorkSpace$ leaf setup WP76_R12_Stable -p swi-wp76_3.0.0
[7/7] Installing swi-wp76_3.0.0
Run install steps for swi-wp76_3.0.0.
Clone mangOH Repo
a:legatoWorkSpace$ git clone --recursive git://github.com/mangOH/mangOH
a:legatoWorkSpace$ cd mangOH/
Start a shell in your selected profile to compile mangOH. This will setup the required environment variables etc
a:mangOH$ leaf shell
Leaf Shell /bin/bash started in Leaf environment.
(lsh:WP76_R12_Stable) a:mangOH$make red_wp76xx

Now that mangOH is built, ensure that the modem has the correct firmware package that matches your build setup.
NOTE1: I’m using scp to copy the firmware bundle onto the modem and then I’m installing it from there using fwupdate
NOTE2: Make sure to install the “full” package
Switching to modem’s Linux shell

root@swi-mdm9x28-wp:~# scp user@192.168.2.3:/home/user/.leaf/./wp76-image_3.0.0/9999999_9907256_SWI9X07Y_02.18.05.00_00_ATT_002.040_002-full.spk .
user@192.168.2.3’s password:
9999999_9907256_SWI9X07Y_02.18.05.00_00_ATT_002.040_002-full.spk 100% 62MB 1.1MB/s 00:57

root@swi-mdm9x28-wp:~# fwupdate download 9999999_9907256_SWI9X07Y_02.18.05.00_00_ATT_002.040_002-full.spk

NOTE: Modem will reset here and then re-enumerate. The expected outputs are below. Note Legato’s hash.

root@swi-mdm9x28-wp:~# cm info
Device: WP7603
IMEI: 357409080109061
IMEISV: 5
FSN: U3801285440510
Firmware Version: SWI9X07Y_02.18.05.00 000000 jen[ 44.294766] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
kins 2018/07/19 17:40:21
Bootloader Version: SWI9X07Y_02.18.05.00 000000 jenkins 2018/07/19 17:40:21
MCU Version: 002.011
PRI Part Number (PN): 9906965
PRI Revision: 002.003
Carrier PRI Name: ATT
Carrier PRI Revision: 002.040_002
SKU: 1103194
Last Reset Cause: Reset, User Requested
Resets Count: Expected: 41 Unexpected: 1
root@swi-mdm9x28-wp:~# legato version
18.10.3_0b50331a9f4d0ecc0fd816c2a1300436
root@swi-mdm9x28-wp:~#

From the Leaf shell install the compiled mangOH update file using update.

(lsh:WP76_R12_Stable) a:mangOH$ update build/update_files/red/mangOH.wp76xx.update 192.168.2.2
Applying update from file ‘build/update_files/red/mangOH.wp76xx.update’ to device at address ‘192.168.2.2’.
SUCCESS
Done
(lsh:WP76_R12_Stable) a:mangOH$

Once mangOH is installed, if you check legato’s version, the hash is different, even though the version is the same, indicating that Legato system on the modem was updated along with mangOH.
root@swi-mdm9x28-wp:~# legato version
18.10.3_40e4f213bd74a24514c6f15ed0a78bee

From the modem’s Linux shell, check the applications and you can start and run redSensorToCloud.
root@swi-mdm9x28-wp:~# app status
[running] atAirVantage
[running] atQmiLinker
[running] atService
[running] audioService
[running] avcService
[running] battery
[running] cellNetService
[running] dataConnectionService
[running] dataHub
[running] devMode
[running] fwupdateService
[running] gpioService
[running] ledService
[running] modemService
[running] portService
[running] positioningService
[running] powerMgr
[running] qmiAirVantage
[stopped] redSensorToCloud
[running] secStore
[stopped] smsInboxService
[stopped] spiService
[stopped] tools
[stopped] voiceCallService
[stopped] wifi
[stopped] wifiApTest
[stopped] wifiClientTest
[running] wifiService
[stopped] wifiWebAp
root@swi-mdm9x28-wp:~# app status redSensorToCloud
[stopped] redSensorToCloud
root@swi-mdm9x28-wp:~# app start redSensorToCloud
root@swi-mdm9x28-wp:~# cm data
Index: 1
APN: broadband
PDP Type: IPV4V6
Connected: yes
Interface: rmnet_data0
Family[IPv4]: inet
IP[IPv4]: 10.5.246.43
Gateway[IPv4]: 10.5.246.44
Dns1[IPv4]: 172.26.38.1
Dns2[IPv4]: N/A
Family[IPv6]: inet6
IP[IPv6]: 2600:380:6c53:8a00:dc10:5fb4:b085:6786
Gateway[IPv6]: 2600:380:6c53:8a00:d432:da64:efa2:bb78
Dns1[IPv6]: fc00:a:a::300
Dns2[IPv6]: N/A
root@swi-mdm9x28-wp:~# app status redSensorToCloud
[running] redSensorToCloud

You can edit “mangOH.sdef” to enable the different services you need, rebuild mangOH and install it.

Please update if you are able to install and run mangOH.