# Cannot find device Can0

**URL:** <https://mangoh.discourse.group/t/cannot-find-device-can0/6280>\
**Category:** mangOH Green\
**Created:** [March 5, 2021, 4:44pm UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280 "2021-03-05T16:44:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucanazzaro](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@lucanazzaro](https://mangoh.discourse.group/u/lucanazzaro)\
**Post date:** [March 5, 2021, 4:44pm UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/1 "2021-03-05T16:44:17Z")

</div>

Hi everyone, I have a mango green with **wp7607** and I use the **Talon CAN Bus IoT** extender for Sierra mangOH IoT. Through **leaf** I imported into the profile the SDK ( **swi-wp76\_4.0.0** ) for WP76 which provides **Relase13** and **Legato 19.20.0.**

I downloaded the mangOH folder from the following link [mangOH\_2-7-2019\_WP75\_R16\_OK.tar.gz - Google Drive](https://drive.google.com/file/d/1zjR14597dKWhDEb2JDqf1fXQU5CHBwDY/view)

I modified the _green.sdef_ file before doing the make by uncommenting the last line that allows me to synchronize the CAN drivers.

I made the _green.wp76xx.update_ file to upload to the board.

I downloaded **yocto** from the following link  
[https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-13-components/#sthash.4Ly3Qb5k.dpbs](https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-13-components/#sthash.4Ly3Qb5k.dpbs)

On the card by executing these commands as reported by the guide :

[https://github.com/mangOH/mangOH/wiki/How-to-build-MCP2515-CAN-driver-for-mangOH-Green-slot-1,-9x15-based-systems](https://github.com/mangOH/mangOH/wiki/How-to-build-MCP2515-CAN-driver-for-mangOH-Green-slot-1,-9x15-based-systems).

```
echo 7> / sys / class / gpio / export
echo out> / sys / class / gpio / gpio7 / direction
echo 1> / sys / class / gpio / gpio7 / value

mux 5
mux 16
modprobe can
modprobe can-dev
modprobe can-raw
modprobe mcp251x
ip link set can0 type can bitrate 125000 triple-sampling on
ifconfig can0 up

```

i see

![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/b/b63b688c7dcea6103363219083a1018b38f183cc.png)

It always says it **Cannot find device "can0"**

How can I solve this problem?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [March 8, 2021, 2:12am UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/2 "2021-03-08T02:12:38Z")

</div>

I don’t see problem to use mangoh green board with WP76 and CAN IOT card.  
You can try my image and script:

[start\_can.sh](https://mangoh.discourse.group/uploads/short-url/pAp0w6EYU6UAuhQ0MEPz6oIZOdg.sh) (1.8 KB) :

[green.wp76xx.part2.rar](https://mangoh.discourse.group/uploads/short-url/c6vg0qjU6G7bA4Auli2LpEaaepD.rar) (2.1 MB) [green.wp76xx.part1.rar](https://mangoh.discourse.group/uploads/short-url/s2D7zkMvyR7V1alGPeZJMWrw5pV.rar) (4 MB)

root@swi-mdm9x28-wp:~# chmod 777 /tmp/start\_can.sh  
root@swi-mdm9x28-wp:~#  
root@swi-mdm9x28-wp:~# /tmp/start\_can.sh green 0  
Unload of module can\_iot.ko has been successful.  
sh: write error: Device or resource busy  
Connecting to service …  
Executing 4: Turn SPI on for IoT slot 0  
Success  
Connecting to service …  
Executing 15: Reset IoT slot 0  
Success  
Load of module can\_iot.ko has been successful.  
root@swi-mdm9x28-wp:~#  
root@swi-mdm9x28-wp:~# ifconfig can0  
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
UP RUNNING NOARP MTU:16 Metric:1  
RX packets:0 errors:0 dropped:0 overruns:0 frame:0  
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0  
collisions:0 txqueuelen:10  
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

root@swi-mdm9x28-wp:~#  
root@swi-mdm9x28-wp:~# cm info  
Device: WP7609  
IMEI: 359782080100340  
IMEISV: 6  
FSN: WA803370010910  
Firmware Version: SWI9X07Y\_02.28.03.05 000000 jenkins 2019/07/08 11:04:16  
Bootloader Version: SWI9X07[1192.601380] 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  
Y\_02.28.03.05 000000 jenkins 2019/07/08 11:04:16  
[1192.617687] 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): 9908102  
PRI Revision: 001.000  
Carrier PRI Name: GENERIC  
Carrier PRI Revision: 002.073\_000  
SKU: 1103843  
Last Reset Cause: Power Down  
Resets Count: Expected: 14 Unexpected: 1

---

<div class="post-metadata">

**Author:** ![lucanazzaro](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@lucanazzaro](https://mangoh.discourse.group/u/lucanazzaro)\
**Post date:** [March 8, 2021, 8:59am UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/3 "2021-03-08T08:59:38Z")

</div>

Your .update files don’t work

 ![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/c/c34bc5ce898fdb50e2b83d3c6dc1b62db495ebaf.png)

but i tried your script with my image

![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/f/f1c3f6b9ea5660e2641a535701cbd60e133087bd.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [March 8, 2021, 9:03am UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/4 "2021-03-08T09:03:22Z")

</div>

your image does not have the can\_iot.ko.

BTW, I transfer the .update file to module by scp, and then update by “update /tmp/xxx.update” on module console.

---

<div class="post-metadata">

**Author:** ![lucanazzaro](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@lucanazzaro](https://mangoh.discourse.group/u/lucanazzaro)\
**Post date:** [March 8, 2021, 9:30am UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/5 "2021-03-08T09:30:15Z")

</div>

I created the image following your procedure

> **[How to test CAN IOT card on WP76xx MangOH Red board.docx](https://drive.google.com/file/d/1l-uFw3N9__gKucNs8t1B95YJBBrUaGlT/view)**
>
> Google Drive file.

> HBTW, I transfer the .update file to module by scp, and then update by “update /tmp/xxx.update” on module console.

I did it.

So…

How do i add the file can\_iot.ko?

Alternatively you can put .upgrade files that work?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [March 8, 2021, 9:32am UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/6 "2021-03-08T09:32:46Z")

</div>

the can\_iot.ko is inside the green.wp76xx.update file.

didn’t i already put the .update file which is working for me above?

---

<div class="post-metadata">

**Author:** ![lucanazzaro](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@lucanazzaro](https://mangoh.discourse.group/u/lucanazzaro)\
**Post date:** [March 8, 2021, 9:39am UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/7 "2021-03-08T09:39:14Z")

</div>

> Your .update files don’t work
> 
> ![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/c/c34bc5ce898fdb50e2b83d3c6dc1b62db495ebaf.png)

work for you but not for me

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [March 8, 2021, 9:43am UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/8 "2021-03-08T09:43:00Z")

</div>

then no idea in case we already using the same FW, maybe hardware issue on your side…

---

<div class="post-metadata">

**Author:** ![lucanazzaro](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@lucanazzaro](https://mangoh.discourse.group/u/lucanazzaro)\
**Post date:** [March 8, 2021, 11:04am UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/9 "2021-03-08T11:04:09Z")

</div>

The board is new also the CAN module, they arrived last week and it is the first time that I use them. I think it’s more of a configuration problem or a step that I missed.

Maybe the mangOH folder I used to make the .update file is obsolete…

 ![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/b/bccb0b01bca73ca24c951db181b4551962193e26.jpeg)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [March 8, 2021, 11:18am UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/10 "2021-03-08T11:18:10Z")

</div>

Then why don’t you use the mangoh source inside my procedure which has proven to be working?

---

<div class="post-metadata">

**Author:** ![lucanazzaro](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@lucanazzaro](https://mangoh.discourse.group/u/lucanazzaro)\
**Post date:** [March 8, 2021, 11:38am UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/11 "2021-03-08T11:38:49Z")

</div>

I’m already using that of your procedure, I also linked it to you

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [March 8, 2021, 11:40am UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/12 "2021-03-08T11:40:09Z")

</div>

Then we are using same thing in software point of view.

---

<div class="post-metadata">

**Author:** ![gavinoimparato1](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@gavinoimparato1](https://mangoh.discourse.group/u/gavinoimparato1)\
**Post date:** [March 8, 2021, 12:30pm UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/13 "2021-03-08T12:30:13Z")

</div>

Hi, I can’t get CAN driver to work. I used your script start\_can.sh but it doesn’t work.

So I found in the web some scripts that have this line:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/d/d170e2097943348ba2513ae8e4ebbcabc92f5a30.png)

Do you think that it could be a problem?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [March 8, 2021, 12:42pm UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/14 "2021-03-08T12:42:13Z")

</div>

are you using my image in mangoh green board?

---

<div class="post-metadata">

**Author:** ![gavinoimparato1](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@gavinoimparato1](https://mangoh.discourse.group/u/gavinoimparato1)\
**Post date:** [March 8, 2021, 1:33pm UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/15 "2021-03-08T13:33:55Z")

</div>

no, because I can’t unzip your file, it gives me an error

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [March 8, 2021, 2:03pm UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/16 "2021-03-08T14:03:19Z")

</div>

Did you use winrar to unzip

---

<div class="post-metadata">

**Author:** ![gavinoimparato1](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@gavinoimparato1](https://mangoh.discourse.group/u/gavinoimparato1)\
**Post date:** [March 8, 2021, 2:12pm UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/17 "2021-03-08T14:12:38Z")

</div>

No, I use the command line on Ubuntu VM

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [March 8, 2021, 2:50pm UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/18 "2021-03-08T14:50:29Z")

</div>

Then maybe you try winrar in windows to unzip those 2 files

---

<div class="post-metadata">

**Author:** ![gavinoimparato1](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@gavinoimparato1](https://mangoh.discourse.group/u/gavinoimparato1)\
**Post date:** [March 8, 2021, 4:48pm UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/19 "2021-03-08T16:48:57Z")

</div>

I think I solved part of the problem, but now, when I update the yocto file on the board, I see it:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/9/9a5be4fac2cdd42d0b6eedadd9511e9279a2ea21.png)

Until now I didn’t ever have this problem, because fwupdate is clearly installed…

I don’t understand why is all so difficult for me with this hardware 😖

---

<div class="post-metadata">

**Author:** ![lucanazzaro](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@lucanazzaro](https://mangoh.discourse.group/u/lucanazzaro)\
**Post date:** [March 8, 2021, 5:05pm UTC](https://mangoh.discourse.group/t/cannot-find-device-can0/6280/20 "2021-03-08T17:05:18Z")

</div>

I solved the problem with the can\_iot.ko file, I had to enable the SPI through the menuconfig, I put yocto back but the problem is the same

![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/6/63c3496b4642fba45ee82dc23d118e68d82586e0.png)

[Next page](https://mangoh.discourse.group/t/cannot-find-device-can0/6280.md?page=2)
