# Onboard Wifi & Custom Yocto

**URL:** <https://mangoh.discourse.group/t/onboard-wifi-custom-yocto/2773>\
**Category:** mangOH Red\
**Created:** [July 15, 2019, 7:18pm UTC](https://mangoh.discourse.group/t/onboard-wifi-custom-yocto/2773 "2019-07-15T19:18:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brumble](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@brumble](https://mangoh.discourse.group/u/brumble)\
**Post date:** [July 15, 2019, 7:18pm UTC](https://mangoh.discourse.group/t/onboard-wifi-custom-yocto/2773/1 "2019-07-15T19:18:54Z")

</div>

I am trying to get the onboard wifi working with a custom yocto build. Without custom yocto, it works no problem. But when I update with wifi drivers with a custom yocto build installed, the probation period fails in the same place every time.

I am using the VM from Sierra’s website to build everything. I have updated the toolchain, legato, yocto, and kernel to the latest versions. I have tried legato versions 19.01.0-19.04.0. I have also tried the steps in [this post](https://mangoh.discourse.group/t/using-wifi-on-mangoh-red-wp76xx-running-legato-19-02-af/2766/3). Below is the end of the log when I install the wifi update.

```
Jul 15 13:48:24 swi-mdm9x28-wp user.err kernel: [2577.528802] cp2130: version magic '3.18.44 preempt mod_unload ARMv7 p2v8 ' should be '3.18.131 preempt mod_unload ARMv7 p2v8 '
Jul 15 13:48:24 swi-mdm9x28-wp user.crit Legato: *CRT* | supervisor[5332]/supervisor T=main | kernelModules.c ExecuteCommand() 248 | /sbin/insmod exited with error code 8.
Jul 15 13:48:24 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[5332]/supervisor T=main | kernelModules.c installModules() 1074 | Error in installing module cp2130.ko. Restarting system ...
Jul 15 13:48:24 swi-mdm9x28-wp user.emerg Legato: *EMR* | supervisor[5332]/supervisor T=main | supervisor.c framework_Reboot() 704 | Supervisor going down to trigger reboot.
Jul 15 13:48:24 swi-mdm9x28-wp user.err kernel: [2577.541218] cp2130: version magic '3.18.44 preempt mod_unload ARMv7 p2v8 ' should be '3.18.131 preempt mod_unload ARMv7 p2v8 '

```

So the kernel is the wrong version (3.18.44 instead of 3.18.131), but I’m at a loss as to why. Any insight would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [July 15, 2019, 7:41pm UTC](https://mangoh.discourse.group/t/onboard-wifi-custom-yocto/2773/2 "2019-07-15T19:41:28Z")

</div>

If you customize the yocto image, you likely need a customized toolchain as well. You can create that by running `make toolchain_bin` from the same location you do `make image_bin`. The resulting `.sh` file will be in `build_bin/tmp/deploy/sdk`

---

<div class="post-metadata">

**Author:** ![brumble](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@brumble](https://mangoh.discourse.group/u/brumble)\
**Post date:** [July 16, 2019, 11:29am UTC](https://mangoh.discourse.group/t/onboard-wifi-custom-yocto/2773/3 "2019-07-16T11:29:17Z")

</div>

That was the solution, thank you!
