# Make red\_wp77xx fails

**URL:** <https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826>\
**Category:** mangOH Red\
**Created:** [August 1, 2019, 7:13am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826 "2019-08-01T07:13:47Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2msupport](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@m2msupport](https://mangoh.discourse.group/u/m2msupport)\
**Post date:** [August 1, 2019, 7:13am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826/1 "2019-08-01T07:13:48Z")

</div>

Building for WP7702 module failed.

mangoh@mangoh-vm:~/mangOH$ make red\_wp77xx  
echo “Not building LEGATO due to $LEGATO == 0”  
Not building LEGATO due to $LEGATO == 0

# NOTE: When using leaf, these TOOLCHAIN\_X variables don’t need to be passed to mksys.

TOOLCHAIN\_DIR=/opt/swi/y22-ext-wp77xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi   
TOOLCHAIN\_PREFIX=arm-poky-linux-gnueabi-   
mksys -t wp77xx --object-dir=build/red\_wp77xx --output-dir=build/update\_files red.sdef  
\*\* Warning: Ignoring empty app specification  
\*\* Warning: Ignoring empty app specification  
\*\* Warning: Ignoring empty app specification  
\*\* ERROR:  
/home/mangoh/legato\_framework/legato/modules/WiFi/service/daemon/Component.cdef:15:4: error: Couldn’t find source file ‘/home/mangoh/legato\_framework/legato/modules/WiFi/service/platformAdaptor//home/mangoh/legato\_framework/legato/modules/WiFi/service/platformAdaptor/ti/pa\_wifi.sh/pa\_wifi\_client\_ti.c’  
Makefile:109: recipe for target ‘red\_wp77xx’ failed  
make: \*\*\* [red\_wp77xx] Error 1

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [August 8, 2019, 8:52am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826/2 "2019-08-08T08:52:52Z")

</div>

Try the following:

/home/mangoh/legato\_framework/legato/modules/WiFi/service/daemon/Component.cdef

In line 15, change to the followings:

* * *

// {LEGATO\_WIFI\_ROOT}/service/platformAdaptor/{LEGATO\_WIFI\_PA}/pa\_wifi\_client\_ti.c  
// {LEGATO\_WIFI\_ROOT}/service/platformAdaptor/{LEGATO\_WIFI\_PA}/pa\_wifi\_ap\_ti.c

{LEGATO\_WIFI\_ROOT}/service/platformAdaptor/ti/pa\_wifi\_client\_ti.c {LEGATO\_WIFI\_ROOT}/service/platformAdaptor/ti/pa\_wifi\_ap\_ti.c

* * *

---

<div class="post-metadata">

**Author:** ![alexmanak](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@alexmanak](https://mangoh.discourse.group/u/alexmanak)\
**Post date:** [January 8, 2020, 6:08am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826/3 "2020-01-08T06:08:23Z")

</div>

i found the cdef file, and changed lines 15 and 16, but cant get the file to save; how do i save it?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [January 8, 2020, 6:39am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826/4 "2020-01-08T06:39:45Z")

</div>

maybe you can set the permission to be writable before you modify the file.

---

<div class="post-metadata">

**Author:** ![alexmanak](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@alexmanak](https://mangoh.discourse.group/u/alexmanak)\
**Post date:** [January 10, 2020, 1:36am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826/5 "2020-01-10T01:36:04Z")

</div>

I have updated the lines 15 and 16, saved the file. Now a new error pops up regarding /home/mangoh/mangOH/apps/DataHub/components/json/Component.cdef

it says there’s an unexpected subsection name ‘headerDir’ in ‘provides’ section

also i have the wp7603

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [January 10, 2020, 2:02am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826/6 "2020-01-10T02:02:11Z")

</div>

you can try to comment out that headerDir section.

---

<div class="post-metadata">

**Author:** ![alexmanak](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@alexmanak](https://mangoh.discourse.group/u/alexmanak)\
**Post date:** [January 10, 2020, 5:16am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826/7 "2020-01-10T05:16:15Z")

</div>

thank you so much for your help! Although now i have a new issue. the make command with red\_wp76xx worked, but when i check if the update files were created by checking the time stamps using the ’ ls -al build/update\_files/\* ’ commands, nothing shows up for the current time or wp76xx, rather it shows wp77xx of june of last year, well before i started using the mangoh red. Any tips would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [January 10, 2020, 6:24am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826/8 "2020-01-10T06:24:12Z")

</div>

the binary should be in ./build/update\_files/red\_wp76xx folder.  
Maybe you can do “make clean” before making .update file.

---

<div class="post-metadata">

**Author:** ![alexmanak](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@alexmanak](https://mangoh.discourse.group/u/alexmanak)\
**Post date:** [January 10, 2020, 6:54am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826/9 "2020-01-10T06:54:53Z")

</div>

i did the make clean and now its saying the location doesnt exist. Also, is the ’ red.wp76xx.update ’ the same as the ’ mangOH.wp76xx.update ’ ? if so, can i just use the ’ red.wp76xx.update ’ file to send to my mangoh red?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [January 10, 2020, 7:06am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826/10 "2020-01-10T07:06:27Z")

</div>

i also use the red.wp76xx.update.

---

<div class="post-metadata">

**Author:** ![alexmanak](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@alexmanak](https://mangoh.discourse.group/u/alexmanak)\
**Post date:** [January 11, 2020, 3:23am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826/11 "2020-01-11T03:23:42Z")

</div>

I tried using the ‘update’ command, but it says that command is not found. so i used the suggested command ’ sudo apt install ’ but it says the the red.wp76xx.update file isnt supported. What command should i use? also, in my build/update\_files/ folder, the only thing in there is the red.wp76xx.update file

---

<div class="post-metadata">

**Author:** ![alexmanak](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@alexmanak](https://mangoh.discourse.group/u/alexmanak)\
**Post date:** [January 11, 2020, 3:31am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826/12 "2020-01-11T03:31:38Z")

</div>

The command line also recommends using pupdate, zupdate, lupdate, xupdate, or the uupdate commands

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [January 11, 2020, 5:13am UTC](https://mangoh.discourse.group/t/make-red-wp77xx-fails/2826/13 "2020-01-11T05:13:03Z")

</div>

You can transfer the .update file to module /tmp folder by scp, after that use update commend on module console.
