Create custom image for the FX30 wp76

Hello,

I like to create a custom image for the device wp76. I also like to include the driver for the canbus Talon card and a ssh key to connect with the device.
I downloaded the Yocto source packages using: leaf getsrc swi-linux

How should I proceed now?

Thanks in advance

With yocto source ,you can get yocto.cwe
With the legato framework, you can get legato.cwe
To include the driver in legato.cwe, you can modify the .sdef file.

After that you can compile the two cwe files by swicwe tool

Hello,

Is there an instruction to do it? This is the first time that I try to create an image.
I just downloaded the Yocto source using leaf getsrc swi-linux.
Which should the next step be?

Thanks in advance

just go to the yocto folder and type make

Hello,

I achieved to do the compilation of the yocto source. Now I’d like to include the Talon card driver and the ssh private key to connect to the device. How should i proceed? Where can I find the necessary files to include the driver?

Thanks in advance

you can see this:

Hello,

I found the following instruction:

  1. open ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc and add the
    following line:
    IMAGE_INSTALL_append = “canutils”
  2. compile the yocto source code by “make” command.

Is this the only step necessary to add the talon card CAN drivers to the wp76 image?

Thanks in advance

This is only to add the can utility, you can skip this if you don’t need

Hello,

I just found another instruction to create the image:

  1. Build Linux kernel with CAN driver modules support
  2. Go to directory: yocto/build_bin ( cd …/build_bin )
  3. Configure kernel with default:
    1. Run command: bitbake linux-yocto -c kernel_configme -f
  4. Configure kernel to add CAN driver module in Linux configuration
    1. Run command: bitbake linux-yocto -c menuconfig
    2. Enter Networking Support
    3. Enter <M> CAN subsystem support
    • <M> CAN Bus subsystem support
    • <M> Raw CAN Protocol (raw access with CAN-ID filtering)
    • <M> Broadcast Manager CAN Protocol (with content filtering)
    • <M> CAN Gateway/Router (with netlink configuration)
4. Enter `CAN Device Drivers`
  * `<M> Virtual Local CAN Interface (vcan)`
  * `<M> Platform CAN drivers with Netlink support`
  * `[*] CAN bit timing calculation`
  * `<M> Microchip MCP251X SPI CAN controllers`
  1. Exit and save CAN Linux config
  2. Apply patch file canbus_for_board-9615.patch to linux kernel source:
    * Get patch file from: https://raw.githubusercontent.com/mangOH/Demos/master/KillSwitch/kernel/canbus_for_board-9615_green.patch
    * Goto your Yocto kernel directory on your linux machine: cd yocto/build_bin/tmp/work/swi_mdm9x15-poky-linux-gnueabi/linux-yocto/3.14.29(change as per kernel version)/linux/
    * patch -p1 < /path/to/canbus_for_board-9615_green.patch
  3. Rebuild kernel image: bitbake -f linux-yocto
  4. Rebuild rootfs filesystem and images
  5. bitbake -c cleansstate mdm9x15-image-minimal
  6. bitbake mdm9x15-image-minimal
  7. Check new build CWE images: yocto_wp85.cwe
  8. Go to images directory: cd build_bin/tmp/deploy/images/swi-mdm9x15
  9. Reflash new image with CAN driver module support to the target board
  10. FDT command: fdt yocto_wp85.cwe
  11. To use on mangOH slot 1 (middle slot), run ssh root@192.168.2.2 and do the following commands (make sure you have have installed mangOH system from Project mangOH · GitHub prior to this):

Where could I find the .patch file for the FX30 wp76?

Thanks in advance

I don’t have it, I used the CAN driver in mangoh source.