# How to add can-utils to wp7608 linux image

**URL:** <https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [May 20, 2021, 3:51pm UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777 "2021-05-20T15:51:33Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![devanshu.agarwal](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@devanshu.agarwal](https://forum.legato.io/u/devanshu.agarwal)\
**Post date:** [May 20, 2021, 3:51pm UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/1 "2021-05-20T15:51:33Z")

</div>

Hi,

I am using Release R13.1 for wp7608. I want to add can-utils in the linux image. How should I download linux source and make the necessary changes? I am new to building custom yocto images, detailed steps would be appreciated.

I followed following links:

> **[Gerrit.legato.io is not responding](https://forum.mangoh.io/t/gerrit-legato-io-is-not-responding/9112)**
>
> Hi! I’m trying to add a ssh key to gerrit, but the site is not responding? Anyone who knows the status of the site? /Gert

> **[GitHub - Legato Docs](https://docs.legato.io/latest/toolsGitHub.html)**
>
> legato™ is an open source Linux-based embedded platform designed to simplify connected IoT application development

I am able to run the repo init command succesfully:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/e/efa6ca94f56647fd5a133ea7544921d8ac267f21.png)

Please can someone guide me with the next steps?  
@jyijyi  
@ajoseph

Regards,  
Devanshu Agarwal

---

<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:** [May 20, 2021, 3:57pm UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/2 "2021-05-20T15:57:55Z")

</div>

Then can you download the linux source code?

---

<div class="post-metadata">

**Author:** ![devanshu.agarwal](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@devanshu.agarwal](https://forum.legato.io/u/devanshu.agarwal)\
**Post date:** [May 21, 2021, 3:37am UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/4 "2021-05-21T03:37:44Z")

</div>

@jyijyi I am ble to see following folder after running repo init command:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/8/8b589230bf16e3ce721f9bc289dc17566a07cd3f.png)

Which folder has the Linux source and how to add can-utils? I am a little new to building Yocto images. Please help.

---

<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:** [May 21, 2021, 4:02am UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/5 "2021-05-21T04:02:17Z")

</div>

open ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc and add the following line:

IMAGE\_INSTALL\_append = " canutils"

after that you can type “make” to generate the ./build\_bin/tmp/deploy/images/swi-mdm9x28-wp/yocto\_wp76xx.4k.cwe

---

<div class="post-metadata">

**Author:** ![Pankaj](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/pankaj/32/1317_2.png) [@Pankaj](https://forum.legato.io/u/Pankaj)\
**Post date:** [May 21, 2021, 5:33am UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/6 "2021-05-21T05:33:41Z")

</div>

@devanshu.agarwal ,

it seems there is some issue with the source code downloaded at your end. Can you download the source code from the below link and try the build:

[https://drive.google.com/file/d/1ZF31rC9OzN3-64gLIpRtGaX-KhYlnfxM/view?usp=sharing](https://drive.google.com/file/d/1ZF31rC9OzN3-64gLIpRtGaX-KhYlnfxM/view?usp=sharing)

Hope this will resolve your issue

---

<div class="post-metadata">

**Author:** ![devanshu.agarwal](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@devanshu.agarwal](https://forum.legato.io/u/devanshu.agarwal)\
**Post date:** [May 21, 2021, 8:37am UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/7 "2021-05-21T08:37:17Z")

</div>

Thanks for the steps @jyijyi . I am getting ModuleNotFoundError: No module named ‘\_sqlite3’ when I run the make command.

Thanks @Pankaj. I will download it and try building it by adding can-utils.

---

<div class="post-metadata">

**Author:** ![devanshu.agarwal](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@devanshu.agarwal](https://forum.legato.io/u/devanshu.agarwal)\
**Post date:** [May 21, 2021, 11:16am UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/8 "2021-05-21T11:16:54Z")

</div>

@Pankaj after downloading the Source code from drive location I am getting same ModuleNotFoundError: No module named ‘\_sqlite3’ when I run the make command.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/f/f35d445aa95a8f34e28b15174499bb7e4dc5706a.png)

---

<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:** [May 21, 2021, 11:26am UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/9 "2021-05-21T11:26:09Z")

</div>

Does this help?

> <https://stackoverflow.com/questions/1210664/no-module-named-sqlite3>

---

<div class="post-metadata">

**Author:** ![Pankaj](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/pankaj/32/1317_2.png) [@Pankaj](https://forum.legato.io/u/Pankaj)\
**Post date:** [May 21, 2021, 1:36pm UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/10 "2021-05-21T13:36:26Z")

</div>

@jyijyi

Tried the suggested option seems its still looking into the python 3.6 directory for the sqlite .so file. his host ubuntu version 16.04 supports python 2.7.12 which does’nt seems to go well with the linux source code

@devanshu.agarwal

as discussed below is the link for the linux image with can-utils:

[https://drive.google.com/file/d/1Cq97qGTD3BsLSThD7hiSw9Ass3mqU5qY/view?usp=sharing](https://drive.google.com/file/d/1Cq97qGTD3BsLSThD7hiSw9Ass3mqU5qY/view?usp=sharing)

link to the manifest file:

[https://drive.google.com/file/d/10P-hcsgeRUhZV-fHLNHVImACeaFVen0x/view?usp=sharing](https://drive.google.com/file/d/10P-hcsgeRUhZV-fHLNHVImACeaFVen0x/view?usp=sharing)

The above files are for rel 13.1 firmware for WP7608 kindly try this at your end and let me know if you face any issues

for your Host OS you can try installing python3-pip to see if python 3.6 sqlite can later be installed using pip install pysqlite or try to manually install python 2.7.17 from source as per the link [linux - How to use Latest Python 2.7.x "The Right Way" on Ubuntu 12.04 LTS? - Super User](https://superuser.com/questions/602587/how-to-use-latest-python-2-7-x-the-right-way-on-ubuntu-12-04-lts)

if it does’nt work then you can try with ubuntu 18.04 which is my host OS version with python2 version 2.7.17 .

---

<div class="post-metadata">

**Author:** ![devanshu.agarwal](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@devanshu.agarwal](https://forum.legato.io/u/devanshu.agarwal)\
**Post date:** [May 24, 2021, 4:59am UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/11 "2021-05-24T04:59:45Z")

</div>

Thanks a lot @Pankaj for sharing the Linux image.

After flashing the shared image I am not able to SSH. Not able to figure out what is causing this issue. Reverting to older Linux solves my SSH problem.

---

<div class="post-metadata">

**Author:** ![Pankaj](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/pankaj/32/1317_2.png) [@Pankaj](https://forum.legato.io/u/Pankaj)\
**Post date:** [May 24, 2021, 8:39am UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/12 "2021-05-24T08:39:20Z")

</div>

Hi Devanshu,

The file shared earlier seems to be a wrong one below is the link for the correct file:

[https://drive.google.com/file/d/1hj5vvGsYax0xnMCu7iL2KNIuV8u78xSM/view?usp=sharing](https://drive.google.com/file/d/1hj5vvGsYax0xnMCu7iL2KNIuV8u78xSM/view?usp=sharing)

Manifest file:

[https://drive.google.com/file/d/1uBq\_yLWm8T\_Z-ROG\_29F2ApLL6rIe2AP/view?usp=sharing](https://drive.google.com/file/d/1uBq_yLWm8T_Z-ROG_29F2ApLL6rIe2AP/view?usp=sharing)

Let me know if you still face issues

---

<div class="post-metadata">

**Author:** ![devanshu.agarwal](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@devanshu.agarwal](https://forum.legato.io/u/devanshu.agarwal)\
**Post date:** [May 24, 2021, 8:51am UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/13 "2021-05-24T08:51:48Z")

</div>

Hi Pankaj,

Thanks for sharing the updated image. Will test it and share the result.

---

<div class="post-metadata">

**Author:** ![devanshu.agarwal](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@devanshu.agarwal](https://forum.legato.io/u/devanshu.agarwal)\
**Post date:** [May 25, 2021, 4:51am UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/14 "2021-05-25T04:51:13Z")

</div>

Hi Pankaj,

I am now able to use can-utils with the updated image!

Thanks for the help.

Regards,  
Devanshu agarwal

---

<div class="post-metadata">

**Author:** ![kysu](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@kysu](https://forum.legato.io/u/kysu)\
**Post date:** [May 28, 2021, 3:58am UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/15 "2021-05-28T03:58:25Z")

</div>

anyone have wp77xx Linux Dist Source provide? Thanks!!

---

<div class="post-metadata">

**Author:** ![Pankaj](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/pankaj/32/1317_2.png) [@Pankaj](https://forum.legato.io/u/Pankaj)\
**Post date:** [May 31, 2021, 5:53am UTC](https://forum.legato.io/t/how-to-add-can-utils-to-wp7608-linux-image/5777/16 "2021-05-31T05:53:18Z")

</div>

Hi,

Below is the link for source download:

[https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-latest-release-components/#sthash.XflhUFxc.dpbs](https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-latest-release-components/#sthash.XflhUFxc.dpbs)

Thanks & Regards,

Pankaj Sant
