Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. Rebuilding kernel for VOXL 2 Mini to swap J10 to SPI, M0188 2 Lepton configuration

Rebuilding kernel for VOXL 2 Mini to swap J10 to SPI, M0188 2 Lepton configuration

Scheduled Pinned Locked Moved Ask your questions right here!
voxl 2 minikernelm0188leptoncamera
5 Posts 2 Posters 497 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Haxerus
    wrote on last edited by
    #1

    Hello,

    I am trying to get the M0188 board working with the VOXL 2 Mini to control 2 Leptons but I've hit a roadblock getting the J10 port to switch from UART to SPI. I've rebuilt the kernel with the following modifications to the DTS files on meta-voxl2-bsp.

    m0104-kona.dtsi:

    • added spi14 = &qupv3_se14_spi

    m0104-modalai-qupv3.dtsi:

    • changed status of &qupv3_se14_2uart to "disabled"
    • changed status of &qupv3_se14_spi to "ok"
    • added the following to &qupv3_se14_spi
    spidev@0 {
        compatible = "spidev";
        reg = <0>;
        spi-max-frequency = <50000000>;
    };
    

    I am not sure these are the only modifications required as I am not familiar with Linux kernel development, I just followed the documentation and commit history in meta-voxl2-bsp.

    After building and loading the kernel I run voxl-gpio -w 67 1 as mentioned here. When I run ls /dev/ I am able to see /dev/spidev14.0. I tried testing it with this tool and a loopback cable that connects MISO to MOSI but it just hangs. That tool works fine with spidev0.0.

    I modified voxl-lepton-server to use the 2nd I2C channel for Lepton #2. I then tried to change /etc/modalai/voxl-lepton-server.conf to use SPI bus id 14 but it caused voxl-lepton-server to hang, seemingly not getting any data from the SPI port.

    Any guidance on how to properly use J10 as an SPI port and how to get voxl-lepton-server to read from it would be greatly appreciated.

    H 1 Reply Last reply
    0
    • H Haxerus

      Hello,

      I am trying to get the M0188 board working with the VOXL 2 Mini to control 2 Leptons but I've hit a roadblock getting the J10 port to switch from UART to SPI. I've rebuilt the kernel with the following modifications to the DTS files on meta-voxl2-bsp.

      m0104-kona.dtsi:

      • added spi14 = &qupv3_se14_spi

      m0104-modalai-qupv3.dtsi:

      • changed status of &qupv3_se14_2uart to "disabled"
      • changed status of &qupv3_se14_spi to "ok"
      • added the following to &qupv3_se14_spi
      spidev@0 {
          compatible = "spidev";
          reg = <0>;
          spi-max-frequency = <50000000>;
      };
      

      I am not sure these are the only modifications required as I am not familiar with Linux kernel development, I just followed the documentation and commit history in meta-voxl2-bsp.

      After building and loading the kernel I run voxl-gpio -w 67 1 as mentioned here. When I run ls /dev/ I am able to see /dev/spidev14.0. I tried testing it with this tool and a loopback cable that connects MISO to MOSI but it just hangs. That tool works fine with spidev0.0.

      I modified voxl-lepton-server to use the 2nd I2C channel for Lepton #2. I then tried to change /etc/modalai/voxl-lepton-server.conf to use SPI bus id 14 but it caused voxl-lepton-server to hang, seemingly not getting any data from the SPI port.

      Any guidance on how to properly use J10 as an SPI port and how to get voxl-lepton-server to read from it would be greatly appreciated.

      H Offline
      H Offline
      Haxerus
      wrote on last edited by
      #2

      @Alex-Kushleyev @modaltb If you have any insights that would be appreciated. Thanks.

      H 1 Reply Last reply
      0
      • H Haxerus

        @Alex-Kushleyev @modaltb If you have any insights that would be appreciated. Thanks.

        H Offline
        H Offline
        Haxerus
        wrote on last edited by
        #3

        Ok, I was actually able to get J10 to work as an SPI port by following this thread. I was also able to get video feed from the lepton on slot #2 on the M0188 with this approach. I still don't know if using the devcfg.mbn file from SDK ver 1.0.0 is really the "proper" thing to do, it feels like it could lead to issues down the road. An official answer regarding J10 in SPI mode would be greatly appreciated.

        Alex KushleyevA 1 Reply Last reply
        0
        • H Haxerus

          Ok, I was actually able to get J10 to work as an SPI port by following this thread. I was also able to get video feed from the lepton on slot #2 on the M0188 with this approach. I still don't know if using the devcfg.mbn file from SDK ver 1.0.0 is really the "proper" thing to do, it feels like it could lead to issues down the road. An official answer regarding J10 in SPI mode would be greatly appreciated.

          Alex KushleyevA Offline
          Alex KushleyevA Offline
          Alex Kushleyev
          ModalAI Team
          wrote on last edited by
          #4

          Hi @Haxerus ,

          I will double check regarding enabling J10 in spi mode on VOXL2 Mini.

          Can you please confirm that you did all 3 changes:

          • the DTS changes you listed below
          • used the older devcfg.mbn file from SDK 1.0.0
          • configure the level shifters to SPI mode using voxl-gpio -w 67 1

          Can you please clarify which second i2c channel was used in your test for the 2nd lepton?

          Thanks!

          Alex

          H 1 Reply Last reply
          0
          • Alex KushleyevA Alex Kushleyev

            Hi @Haxerus ,

            I will double check regarding enabling J10 in spi mode on VOXL2 Mini.

            Can you please confirm that you did all 3 changes:

            • the DTS changes you listed below
            • used the older devcfg.mbn file from SDK 1.0.0
            • configure the level shifters to SPI mode using voxl-gpio -w 67 1

            Can you please clarify which second i2c channel was used in your test for the 2nd lepton?

            Thanks!

            Alex

            H Offline
            H Offline
            Haxerus
            wrote on last edited by
            #5

            @Alex-Kushleyev I made the following changes.

            1. Modified the DTS files as stated prior.
            2. Flashed the devcfg.mbn file from SDK 1.0.0
            3. I did not need to configure the level shifter actually. The port worked in SPI mode even without running voxl-gpio -w 67 1. Running the command doesn't seem to change anything.

            I used Channel 1 on /dev/i2c-0 for the second lepton. I simply wrote TCA9543A_CHANNEL_1_ENABLE to TCA9543A_CONTROL_REGISTER in voxl-lepton-server. I pretty much followed what was described here.

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            ModalAI
            Categories Recent Tags ModalAI.com Docs
            © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups