# WP7601 update fails - no redSensorToCloud

**URL:** <https://forum.sierrawireless.com/t/wp7601-update-fails-no-redsensortocloud/15921>\
**Category:** WP Series\
**Created:** [April 2, 2019, 6:39pm UTC](https://forum.sierrawireless.com/t/wp7601-update-fails-no-redsensortocloud/15921 "2019-04-02T18:39:55Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![anon56110884](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@anon56110884](https://forum.sierrawireless.com/u/anon56110884)\
**Post date:** [April 8, 2019, 9:57pm UTC](https://forum.sierrawireless.com/t/wp7601-update-fails-no-redsensortocloud/15921/9 "2019-04-08T21:57:48Z")

</div>

**@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](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](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/a/a3058576ac6e5c712c9df83dcc841bdf0871c13f.png)  
_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](https://docs.legato.io/latest/toolsTarget_fwUpdate.html)**  
**NOTE2: Make sure to install the “full” package**  
**Switching to modem’s Linux shell**

_root@swi-mdm9x28-wp:~# scp [user@192.168.2.3](mailto: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](mailto: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](https://docs.legato.io/latest/toolsHost_update.html).**

_(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.**

---

_[View the full topic](https://forum.sierrawireless.com/t/wp7601-update-fails-no-redsensortocloud/15921)._
