# how to add the driver  to  legato platform

**URL:** <https://forum.sierrawireless.com/t/how-to-add-the-driver-to-legato-platform/12010>\
**Category:** Uncategorized\
**Created:** [March 15, 2015, 2:24am UTC](https://forum.sierrawireless.com/t/how-to-add-the-driver-to-legato-platform/12010 "2015-03-15T02:24:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![congcong2015](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@congcong2015](https://forum.sierrawireless.com/u/congcong2015)\
**Post date:** [March 15, 2015, 2:24am UTC](https://forum.sierrawireless.com/t/how-to-add-the-driver-to-legato-platform/12010/1 "2015-03-15T02:24:19Z")

</div>

Hi all  
I have build the WiFi driver as a module. and update the .ko files to the RA755x development kit . but the error show as " depmod : not found" when i run the "depmod- a " command. I’m not sure that wifi driver can be loaded to the kernel in this way ?

[code]INSTALL /home/jim/legato/wifi/NF3204A\_MODULE\_AP\_PACKAGE/MODULE/backports-3.13.2-1/compat/compat.ko  
INSTALL /home/jim/legato/wifi/NF3204A\_MODULE\_AP\_PACKAGE/MODULE/backports-3.13.2-1/drivers/net/wireless/ath/ath6kl/ath6kl\_core.ko  
INSTALL /home/jim/legato/wifi/NF3204A\_MODULE\_AP\_PACKAGE/MODULE/backports-3.13.2-1/drivers/net/wireless/ath/ath6kl/ath6kl\_sdio.ko  
INSTALL /home/jim/legato/wifi/NF3204A\_MODULE\_AP\_PACKAGE/MODULE/backports-3.13.2-1/drivers/net/wireless/ath/ath6kl/ath6kl\_usb.ko  
INSTALL /home/jim/legato/wifi/NF3204A\_MODULE\_AP\_PACKAGE/MODULE/backports-3.13.2-1/net/wireless/cfg80211.ko  
DEPMOD 3.4.91-yocto-standard  
depmod: WARNING: could not open /home/jim/legato/wifi/NF3204A\_MODULE\_AP\_PACKAGE/rootfs/lib/modules/3.4.91-yocto-standard/modules.order: No such file or directory  
depmod: WARNING: /home/jim/legato/wifi/NF3204A\_MODULE\_AP\_PACKAGE/rootfs/lib/modules/3.4.91-yocto-standard/updates/drivers/net/wireless/ath/ath6kl/ath6kl\_usb.ko needs unknown symbol \_\_const\_udelay  
depmod: WARNING: /home/jim/legato/wifi/NF3204A\_MODULE\_AP\_PACKAGE/rootfs/lib/modules/3.4.91-yocto-standard/updates/drivers/net/wireless/ath/ath6kl/ath6kl\_core.ko needs unknown symbol \_\_const\_udelay  
depmod: WARNING: could not open /home/jim/legato/wifi/NF3204A\_MODULE\_AP\_PACKAGE/rootfs/lib/modules/3.4.91-yocto-standard/modules.builtin: No such file or directory  
depmod will prefer updates/ over kernel/ – OK!

[/code]

BR.

---

<div class="post-metadata">

**Author:** ![JayM2M](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JayM2M](https://forum.sierrawireless.com/u/JayM2M)\
**Post date:** [March 17, 2015, 2:39pm UTC](https://forum.sierrawireless.com/t/how-to-add-the-driver-to-legato-platform/12010/2 "2015-03-17T14:39:42Z")

</div>

Hi,

You need to use Yocto tools in order to customize the kernel/rootfs.

The best way is to create your own meta layer with your custom recipes.

What is the WiFi chipset you are trying to integrate?

Regards,

Jay

---

<div class="post-metadata">

**Author:** ![congcong2015](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@congcong2015](https://forum.sierrawireless.com/u/congcong2015)\
**Post date:** [March 18, 2015, 4:17pm UTC](https://forum.sierrawireless.com/t/how-to-add-the-driver-to-legato-platform/12010/3 "2015-03-18T16:17:50Z")

</div>

Hi: Jay

the wifi module is ar6003.  
I’m not so familiar with the yocto project. would you please describe briefly about how to do with it .

Thanks  
Jim

---

<div class="post-metadata">

**Author:** ![JayM2M](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JayM2M](https://forum.sierrawireless.com/u/JayM2M)\
**Post date:** [March 19, 2015, 11:27am UTC](https://forum.sierrawireless.com/t/how-to-add-the-driver-to-legato-platform/12010/4 "2015-03-19T11:27:03Z")

</div>

Hi,

Unfortunately, I cannot describe briefly how to use Yocto 😉

As a starting point, you can have a look to this page:  
[legato.io/legato-docs/15\_01/ … linux.html](http://www.legato.io/legato-docs/15_01/getstarted_yocto_linux.html)

But for most of the Yocto stuff, you will have to learn directly from here:  
[yoctoproject.org/documentat … d\_depth=89](https://www.yoctoproject.org/documentation/archived?term_node_tid_depth=89)

In order to add support for a WiFi device, you will have to:

- tune the kernel recipe in order to do kernel configuration (CONFIG\_xxx for 80211 and ATH6KL stuff).
- tune the image recipe (mdm9x15-image.inc) in order to add the kernel modules (.ko) files to the rootfs image + the firmware for ath6k + tools to play with WiFi (e.g. hostapd, iw, iptables, wpa-supplicant, …).
- rebuild Yocto Linux with “make image\_bin”.
- install the newly generated kernel and rootfs images to your target using fastboot.

Jay

---

<div class="post-metadata">

**Author:** ![congcong2015](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@congcong2015](https://forum.sierrawireless.com/u/congcong2015)\
**Post date:** [March 19, 2015, 11:27pm UTC](https://forum.sierrawireless.com/t/how-to-add-the-driver-to-legato-platform/12010/5 "2015-03-19T23:27:27Z")

</div>

Hi: Jay

that’s enough, I’ll try.  
thanks a lot for your help.

jim
