# Mangoh yellow: Unsupported function called

**URL:** <https://forum.legato.io/t/mangoh-yellow-unsupported-function-called/5055>\
**Category:** Uncategorized\
**Created:** [March 4, 2020, 8:17am UTC](https://forum.legato.io/t/mangoh-yellow-unsupported-function-called/5055 "2020-03-04T08:17:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![clemens](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@clemens](https://forum.legato.io/u/clemens)\
**Post date:** [March 4, 2020, 8:17am UTC](https://forum.legato.io/t/mangoh-yellow-unsupported-function-called/5055/1 "2020-03-04T08:17:49Z")

</div>

Hello,

I am trying to run a test from Legato system:  
legato/apps/test/fwupdate/fwupdateIntegrationTest

When I try to run it with:  
app runProc flashApiTest flashApiTest – info /dev/mtd6  
I always get issued:  
Jan 6 17:09:31 swi-mdm9x28-wp user.debug Legato: DBUG | _UNKNOWN_[25708]/framework T=main | le\_flash\_client.c DoConnectService() 242 | ======= Starting client for ‘flashApiTest.flashApiTest.le\_flash’ service ========  
Jan 6 17:09:31 swi-mdm9x28-wp user.debug Legato: DBUG | flashApiTest[25708]/framework T=main | mem.c InitPool() 400 | Memory pool name ‘framework.msgs-LogControlProtocol’ is truncated to ‘framework.msgs-LogControlProtoc’  
Jan 6 17:09:31 swi-mdm9x28-wp user.debug Legato: DBUG | flashApiTest[25708]/framework T=main | messagingSession.c le\_msg\_SetSessionRecvHandler() 2078 | SetSessionRecv: Unix socket session  
Jan 6 17:09:31 swi-mdm9x28-wp user.debug Legato: DBUG | flashApiTest[25708]/framework T=main | mem.c le\_mem\_ForceAlloc() 1172 | Memory pool ‘framework.SigMonitor’ overflowed. Expanded to 1 blocks.  
Jan 6 17:09:31 swi-mdm9x28-wp user.debug Legato: DBUG | flashApiTest[25708]/framework T=main | mem.c le\_mem\_ForceAlloc() 1172 | Memory pool ‘framework.SigHandler’ overflowed. Expanded to 1 blocks.  
Jan 6 17:09:31 swi-mdm9x28-wp user.debug Legato: DBUG | flashApiTest[25708]/flashApiTest\_exe T=main | \_main.c main() 60 | == Starting Event Processing Loop ==  
Jan 6 17:09:31 swi-mdm9x28-wp user.info Legato: INFO | flashApiTest[25708]/flashApiTest T=main | main.c \_flashApiTest\_COMPONENT\_INIT() 1394 | Start flashApiTest app.  
Jan 6 17:09:31 swi-mdm9x28-wp user.err Legato: =ERR= | fwupdateDaemon[1599]/le\_pa\_fwupdate\_default T=main | pa\_fwupdate\_default.c pa\_fwupdate\_RequestUpdate() 456 | Unsupported function called  
Jan 6 17:09:31 swi-mdm9x28-wp user.info Legato: INFO | fwupdateDaemon[1599]/fwupdateDaemon T=main | le\_flash.c le\_flash\_RequestAccess() 790 | RequestAccess: error  
Jan 6 17:09:31 swi-mdm9x28-wp user.err Legato: =ERR= | flashApiTest[25708]/flashApiTest T=main | main.c \_flashApiTest\_COMPONENT\_INIT() 1416 | Unable to request flash access  
Jan 6 17:09:31 swi-mdm9x28-wp user.info Legato: INFO | fwupdateDaemon[1599]/fwupdateDaemon T=main | le\_flash.c le\_flash\_ReleaseAccess() 830 | Release flash access for client 0x7f577c48: client request 0 global count 0  
Jan 6 17:09:31 swi-mdm9x28-wp user.info Legato: INFO | fwupdateDaemon[1599]/fwupdateDaemon T=main | le\_flash.c ReleaseClientAccess() 608 | Releasing 0 access for client 0x7f577c48

The system is:  
Firmware Version: SWI9X06Y\_02.32.02.00 c2e98c jenkins 2019/08/30 07:28:21  
Bootloader Version: SWI9X06Y\_02.32.02.00 c2e98c jenkins 2019/08/30 07:28:21  
Linux Version: 3.18.140 #1 PREEMPT Thu Jan 9 10:01:53 UTC 2020  
Legato version: 19.07.0\_c8105fef6769b17540226029a5d23d44\_modified

I am building apps with exact same Legato version on my host.

Any help would be appreciated.  
Thanks

---

<div class="post-metadata">

**Author:** ![clemens](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@clemens](https://forum.legato.io/u/clemens)\
**Post date:** [March 4, 2020, 8:29am UTC](https://forum.legato.io/t/mangoh-yellow-unsupported-function-called/5055/2 "2020-03-04T08:29:22Z")

</div>

addendum:  
it seems, that this issue comes up because there is only a default implementation available for these functions on my built host Legato framework:  
legato/components/fwupdate/platformAdaptor/default/le\_pa\_fwupdate\_default/pa\_fwupdate\_default.c

Maybe my build did not include the desired functionality? I ran ‘make wp77xx’ …

Regards,  
Clemens

---

<div class="post-metadata">

**Author:** ![clemens](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@clemens](https://forum.legato.io/u/clemens)\
**Post date:** [March 4, 2020, 8:34am UTC](https://forum.legato.io/t/mangoh-yellow-unsupported-function-called/5055/3 "2020-03-04T08:34:33Z")

</div>

I just checked my local build of LegatoAF - there is mentioned:  
Analyzing libComponent\_le\_pa\_fwupdate\_singlesys.so (ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=82ecedf8f1474288be41f5db4b1e83ce1d8018aa, stripped)  
WARN: Unable to find default PA for libComponent\_le\_pa\_fwupdate\_singlesys.so

May this be the reason for missing functions? But how to fix it? Another ‘make’ option maybe?  
Hope anyone can help me out here…  
Thanks

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [March 5, 2020, 7:10am UTC](https://forum.legato.io/t/mangoh-yellow-unsupported-function-called/5055/4 "2020-03-05T07:10:03Z")

</div>

do you mean you have problem in building the application legato/apps/test/fwupdate/fwupdateIntegrationTest ???

---

<div class="post-metadata">

**Author:** ![clemens](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@clemens](https://forum.legato.io/u/clemens)\
**Post date:** [March 5, 2020, 7:55am UTC](https://forum.legato.io/t/mangoh-yellow-unsupported-function-called/5055/5 "2020-03-05T07:55:45Z")

</div>

actually not - build runs fine even (no warnings). Problem seems to be that my app is somehow not able to reach the lower API levels. I’ve seen that it goes e.g. the following call order: FlashApiTest\_Info()-\>le\_flash\_OpenMtd()-\>Open()-\>ParsePartitionNameAndGetMtd()-\>pa\_fwupdate\_GetMtdPartitionTab(). Last function is an empty default implementation which only issues “Unsupported function called”. Hence I think there must be gone something wrong with the Legato framework build. It must have something to do with the issue I got during this build: “WARN: Unable to find default PA for libComponent\_le\_pa\_fwupdate\_singlesys.so” (as mentioned above).  
Where does this issue come from?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [March 5, 2020, 8:37am UTC](https://forum.legato.io/t/mangoh-yellow-unsupported-function-called/5055/6 "2020-03-05T08:37:21Z")

</div>

Then I don’t think you can run this application.

---

<div class="post-metadata">

**Author:** ![clemens](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@clemens](https://forum.legato.io/u/clemens)\
**Post date:** [March 5, 2020, 1:55pm UTC](https://forum.legato.io/t/mangoh-yellow-unsupported-function-called/5055/7 "2020-03-05T13:55:30Z")

</div>

since the target is able to write in an mtd (fwupdateDaemon), there must be a possibility to do it in a similar way…  
Any one got any clues?
