# Spi driver doesn't appear in dev folder

**URL:** <https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675>\
**Category:** Uncategorized\
**Created:** [March 26, 2021, 9:11am UTC](https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675 "2021-03-26T09:11:10Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ga.imparato](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@ga.imparato](https://forum.legato.io/u/ga.imparato)\
**Post date:** [March 26, 2021, 9:11am UTC](https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675/1 "2021-03-26T09:11:10Z")

</div>

Hi all. I have a big problem and I don’t understand which could be the solution.  
I have a mangOH green and a module wp7607. I have to use IoT slot for CABbus, but I can’t make available SPI bus!  
I compiled a mangOH update file and I downloaded the 13 fw version. When enter in the board through ssh command, I can’t see SPI drivers in dev folder:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/7/7a489a3c90ec10a49239cfebe8ce77972624901b.png) ù

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

What I should to do in order to solve the problem?

---

<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:** [March 26, 2021, 10:40am UTC](https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675/3 "2021-03-26T10:40:31Z")

</div>

How about doing the following?

root@swi-mdm9x28-wp:~# insmod /mnt/legato/system/modules/spisvc.ko

root@swi-mdm9x28-wp:~#

root@swi-mdm9x28-wp:~# ls /dev/spidev1.0

/dev/spidev1.0

root@swi-mdm9x28-wp:~#

root@swi-mdm9x28-wp:~# cm info

Device: WP7608

IMEI: 352913090100734

IMEISV: 6

FSN: XG805285330204

Firmware Version: SWI9X07Y\_02.28.03.03 000000 jenkins 2019/05/21 03:33:04

Bootloader Version: SWI9X07Y\_[5351.653591] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv\_addr:0x3a MSTR\_STS:0x0c1300c8 OPER:0x00000090

02.28.03.03 000000 jenkins 2019/05/21 03:33:04

[5351.672125] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv\_addr:0x3a MSTR\_STS:0x0c1300c8 OPER:0x00000090

MCU Version: 002.011

PRI Part Number (PN): 9907762

PRI Revision: 001.001

Carrier PRI Name: GENERIC

Carrier PRI Revision: 002.068\_000

SKU: 1103788

Last Reset Cause: Reset, User Requested

Resets Count: Expected: 494 Unexpected: 9

root@swi-mdm9x28-wp:~#

root@swi-mdm9x28-wp:~# legato version

19.02.0\_51b4a2be75dcffede8b1f4e3a2533a1d\_modified

---

<div class="post-metadata">

**Author:** ![ga.imparato](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@ga.imparato](https://forum.legato.io/u/ga.imparato)\
**Post date:** [March 26, 2021, 5:38pm UTC](https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675/4 "2021-03-26T17:38:00Z")

</div>

Yes, I obtain:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/1/10b2a5d8acc0b39be3f37e808bd1371f6a02d53b.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:** [March 27, 2021, 2:24am UTC](https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675/5 "2021-03-27T02:24:52Z")

</div>

Then it is not related

---

<div class="post-metadata">

**Author:** ![ga.imparato](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@ga.imparato](https://forum.legato.io/u/ga.imparato)\
**Post date:** [March 27, 2021, 9:16am UTC](https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675/6 "2021-03-27T09:16:04Z")

</div>

in fact I still can’t see SPI driver in dev folder…how can I see to include SPI?

---

<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:** [March 27, 2021, 10:36am UTC](https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675/7 "2021-03-27T10:36:56Z")

</div>

Didn’t /dev/spidev1.0 is the device node and it appears in your log?

---

<div class="post-metadata">

**Author:** ![akshaysk](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/akshaysk/32/1212_2.png) [@akshaysk](https://forum.legato.io/u/akshaysk)\
**Post date:** [March 29, 2021, 6:12am UTC](https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675/8 "2021-03-29T06:12:24Z")

</div>

Hi @ga.imparato ,

Can you try running start\_can.sh script without installing spisvc module ?

You could get spidev configurations over here

root@swi-mdm9x28-wp:/sys/module/spidev/parameters# ls  
bufsiz busnum chipselect maxspeed spimode  
root@swi-mdm9x28-wp:/sys/module/spidev/parameters# cat chipselect  
-1  
root@swi-mdm9x28-wp:/sys/module/spidev/parameters# cat spimode  
3  
root@swi-mdm9x28-wp:/sys/module/spidev/parameters# cat maxspeed  
10000000  
root@swi-mdm9x28-wp:/sys/module/spidev/parameters# cat bufsiz  
40960  
root@swi-mdm9x28-wp:/sys/module/spidev/parameters# cat busnum  
-1

Regards

- Akshay

---

<div class="post-metadata">

**Author:** ![ga.imparato](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@ga.imparato](https://forum.legato.io/u/ga.imparato)\
**Post date:** [March 29, 2021, 8:03am UTC](https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675/9 "2021-03-29T08:03:08Z")

</div>

Thanks for your answer. I have a doubt: is spimode 3 compatible with the required one by the hw talon? Because I read this:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/4/4629ea04b257b201e7d5f8c3a79d42f5c090e234.png)

---

<div class="post-metadata">

**Author:** ![ga.imparato](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@ga.imparato](https://forum.legato.io/u/ga.imparato)\
**Post date:** [March 29, 2021, 9:13am UTC](https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675/10 "2021-03-29T09:13:01Z")

</div>

Anyway the result of the script start\_can.sh Is the same even if I don’t activate the SPI

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

---

<div class="post-metadata">

**Author:** ![ga.imparato](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@ga.imparato](https://forum.legato.io/u/ga.imparato)\
**Post date:** [March 30, 2021, 10:29am UTC](https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675/11 "2021-03-30T10:29:43Z")

</div>

can anyone help me? I’m blocked on this problem…

---

<div class="post-metadata">

**Author:** ![akshaysk](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/akshaysk/32/1212_2.png) [@akshaysk](https://forum.legato.io/u/akshaysk)\
**Post date:** [March 31, 2021, 1:37pm UTC](https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675/12 "2021-03-31T13:37:35Z")

</div>

@ga.imparato ,  
Can you try with another IOT card ? Sometimes i had faced issue with the slots on mangoh board as well . Also Do post your SW401 (switch) configurations ?

---

<div class="post-metadata">

**Author:** ![ga.imparato](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@ga.imparato](https://forum.legato.io/u/ga.imparato)\
**Post date:** [March 31, 2021, 3:02pm UTC](https://forum.legato.io/t/spi-driver-doesnt-appear-in-dev-folder/5675/13 "2021-03-31T15:02:48Z")

</div>

I solved the problem. The issue was that the metallic dissipator wasn’t well injected
