# Build CAN driver for WP76XX MangOH Red

**URL:** <https://mangoh.discourse.group/t/build-can-driver-for-wp76xx-mangoh-red/1075>\
**Category:** mangOH Red\
**Created:** [January 11, 2018, 9:43pm UTC](https://mangoh.discourse.group/t/build-can-driver-for-wp76xx-mangoh-red/1075 "2018-01-11T21:43:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francis.duhaut](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/francis.duhaut/32/350_2.png) [@Francis.duhaut](https://mangoh.discourse.group/u/Francis.duhaut)\
**Post date:** [January 11, 2018, 9:43pm UTC](https://mangoh.discourse.group/t/build-can-driver-for-wp76xx-mangoh-red/1075/1 "2018-01-11T21:43:34Z")

</div>

Hello

I try to build the CAN driver for the WP76xx linus dist.

I use the same guide line than the WP8548 (it work good with WP8548) but I meet a problem at this step

I unzip the Legato dist in yocto folder and go inside  
run : export LEGATO\_BUILD=0  
run : make image\_bin (finish sucessfull)  
run : . ./poky/oe-init-build-env

I go to /yocto/build\_bin/

run : bitbake linux-yocto -c kernel\_configme -f

I have this message :

ERROR: Nothing PROVIDES 'linux-yocto’  
ERROR: linux-yocto was skipped: incompatible with machine swi-mdm9x28 (not in COMPATIBLE\_MACHINE)  
ERROR: linux-yocto was skipped: incompatible with machine swi-mdm9x28 (not in COMPATIBLE\_MACHINE)  
ERROR: linux-yocto was skipped: incompatible with machine swi-mdm9x28 (not in COMPATIBLE\_MACHINE)

Any idea ?  
For the WP8548 I have sucessfully build the linux dist with CAN support for MCP2515.  
It work good with IoT CAN board.

Now I have a sample of WP7607-1 for test and my application use CAN bus.

Thanks.  
Francis

---

<div class="post-metadata">

**Author:** ![Francis.duhaut](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/francis.duhaut/32/350_2.png) [@Francis.duhaut](https://mangoh.discourse.group/u/Francis.duhaut)\
**Post date:** [January 11, 2018, 11:45pm UTC](https://mangoh.discourse.group/t/build-can-driver-for-wp76xx-mangoh-red/1075/2 "2018-01-11T23:45:46Z")

</div>

It seems not so easy.

I’m able to run menuconfig

run : bitbake linux-quic -c menuconfig -f

The CAN patch is not valide due to board file (9615 for wp8548 and 9607 for wp76).

I have added USB SERIAL FDTI and rebuild the kernel.  
I will test it tommorow.

For the CAN I have added the driver in the menuconfig and start to modify the board file.

---

<div class="post-metadata">

**Author:** ![abrdsa](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@abrdsa](https://mangoh.discourse.group/u/abrdsa)\
**Post date:** [October 30, 2018, 12:19pm UTC](https://mangoh.discourse.group/t/build-can-driver-for-wp76xx-mangoh-red/1075/3 "2018-10-30T12:19:56Z")

</div>

Hay,

did you made any progress?

I am struggeling with the same problem.

---

<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:** [November 1, 2018, 4:37pm UTC](https://mangoh.discourse.group/t/build-can-driver-for-wp76xx-mangoh-red/1075/4 "2018-11-01T16:37:30Z")

</div>

@abrdsa: Did you see this snippet in the `mangOH.sdef`?

```auto
    // Uncomment to build for the CAN Bus IoT card on mangOH Red                                                                                                                                                                                                                 
    // #include "sinc/mangoh_red_can_iot_card.sinc"

```

It should be as simple as uncommenting that section and building the system.

---

<div class="post-metadata">

**Author:** ![abrdsa](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@abrdsa](https://mangoh.discourse.group/u/abrdsa)\
**Post date:** [November 2, 2018, 7:15am UTC](https://mangoh.discourse.group/t/build-can-driver-for-wp76xx-mangoh-red/1075/5 "2018-11-02T07:15:18Z")

</div>

Thanks for your help.

I am using mangoh Green, not red, but that shouldn’t make a diference, should it?

I am using the current mangoh VM and found a mangOH.sdef in /home/mangoh/mangOH. But this file does not include the section you descriped. I also saw that there is a can module in the /home/mangoh/mangOH/linux\_kernel\_modules.

But anyway: doing it with mangoh is just a nice have. I Don’t want to use the legato framework and I want to be indepentent from a mangoh board. I want to add the kernel module during the yocto build.

I managed to include the CAN Module in a yocto build using this [https://github.com/mangOH/mangOH/wiki/How-to-build-MCP2515-CAN-drivers-for-mangOH-for-mangOH-Green-slot-1](https://github.com/mangOH/mangOH/wiki/How-to-build-MCP2515-CAN-drivers-for-mangOH-for-mangOH-Green-slot-1) tutorial and modificated it. I can load the kernel modules but there is no can0 interface showing up.

---

<div class="post-metadata">

**Author:** ![c.pahl](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@c.pahl](https://mangoh.discourse.group/u/c.pahl)\
**Post date:** [April 18, 2019, 8:57am UTC](https://mangoh.discourse.group/t/build-can-driver-for-wp76xx-mangoh-red/1075/6 "2019-04-18T08:57:52Z")

</div>

Hello @Francis.duhaut,

I had the same error as you did. Did you manage to fix it somehow? I was following [this guide](https://github.com/mangOH/mangOH/tree/master/experimental/waveshare_eink/linux_kernel_modules) by the way.

Also, I don’t need to use CAN, but rather have framebuffer support (see [this thread](https://mangoh.discourse.group/t/adding-framebuffer-support/2571/2))
