Build CAN driver for WP76XX MangOH Red

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

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.

Hay,

did you made any progress?

I am struggeling with the same problem.

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

    // 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.

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 tutorial and modificated it. I can load the kernel modules but there is no can0 interface showing up.

Hello @Francis.duhaut,

I had the same error as you did. Did you manage to fix it somehow? I was following this guide by the way.

Also, I don’t need to use CAN, but rather have framebuffer support (see this thread)