# MangOH yellow CAN Iot Bus not working

**URL:** <https://mangoh.discourse.group/t/mangoh-yellow-can-iot-bus-not-working/5245>\
**Category:** mangOH Yellow\
**Created:** [September 18, 2020, 1:47pm UTC](https://mangoh.discourse.group/t/mangoh-yellow-can-iot-bus-not-working/5245 "2020-09-18T13:47:27Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![Antoine](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Antoine](https://mangoh.discourse.group/u/Antoine)\
**Post date:** [September 24, 2020, 12:11pm UTC](https://mangoh.discourse.group/t/mangoh-yellow-can-iot-bus-not-working/5245/21 "2020-09-24T12:11:57Z")

</div>

Thanks !  
I’m gonna try this out.

---

<div class="post-metadata">

**Author:** ![Antoine](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Antoine](https://mangoh.discourse.group/u/Antoine)\
**Post date:** [September 24, 2020, 12:29pm UTC](https://mangoh.discourse.group/t/mangoh-yellow-can-iot-bus-not-working/5245/22 "2020-09-24T12:29:35Z")

</div>

When i follow the step on github i get the following error :

> Poky (Yocto Project Reference Distro) SDK installer version 2.5.3  
> =================================================================  
> Enter target directory for SDK (default: /opt/swi/SWI9X06Y\_02.35.02.00):  
> The directory “/opt/swi/SWI9X06Y\_02.35.02.00” already contains a SDK for this architecture.  
> If you continue, existing files will be overwritten! Proceed[y/N]? y  
> [sudo] password for antoine:  
> Sorry, try again.  
> [sudo] password for antoine:  
> Extracting SDK…done  
> Setting it up…done  
> HOSTLD scripts/dtc/dtc  
> /usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x50): multiple definition of `yylloc’; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here  
> collect2: error: ld returned 1 exit status  
> make[2]: \*\*\* [scripts/Makefile.host:100: scripts/dtc/dtc] Error 1  
> make[1]: \*\*\* [scripts/Makefile.build:402: scripts/dtc] Error 2  
> make: \*\*\* [Makefile:559: scripts] Error 2  
> “Failed to install driver build environment.”

By the way i didn’t see the line :

> // Uncomment to include support for the CAN IoT card  
> #include “sinc/can\_iot\_card.sinc”

in the yellow.sdef file

---

<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:** [September 25, 2020, 1:33am UTC](https://mangoh.discourse.group/t/mangoh-yellow-can-iot-bus-not-working/5245/23 "2020-09-25T01:33:53Z")

</div>

you can try to add that line in yellow.sdef.

BTW, I don’t see problem to install toolchain in ubuntu 16, maybe you can try without the sudo:

* * *

# owner@owner-ThinkPad-X220:~/Downloads$ sh poky-swi-ext-glibc-x86\_64-meta-toolchain-swi-armv7a-neon-toolchain-swi-SWI9X06Y\_02.35.02.00.sh Poky (Yocto Project Reference Distro) SDK installer version 2.5.3

Enter target directory for SDK (default: /opt/swi/SWI9X06Y\_02.35.02.00):  
You are about to install the SDK to “/opt/swi/SWI9X06Y\_02.35.02.00”. Proceed[Y/n]?  
Extracting SDK…done  
Setting it up…done  
HOSTCC scripts/basic/fixdep  
HOSTCC scripts/basic/bin2c  
HOSTCC scripts/dtc/dtc.o  
HOSTCC scripts/dtc/flattree.o  
HOSTCC scripts/dtc/fstree.o  
HOSTCC scripts/dtc/data.o  
HOSTCC scripts/dtc/livetree.o  
HOSTCC scripts/dtc/treesource.o  
HOSTCC scripts/dtc/srcpos.o  
HOSTCC scripts/dtc/checks.o  
HOSTCC scripts/dtc/util.o  
SHIPPED scripts/dtc/dtc-lexer.lex.c  
SHIPPED scripts/dtc/dtc-parser.tab.h  
HOSTCC scripts/dtc/dtc-lexer.lex.o  
SHIPPED scripts/dtc/dtc-parser.tab.c  
HOSTCC scripts/dtc/dtc-parser.tab.o  
HOSTLD scripts/dtc/dtc  
CC scripts/mod/empty.o  
HOSTCC scripts/mod/mk\_elfconfig  
MKELF scripts/mod/elfconfig.h  
HOSTCC scripts/mod/modpost.o  
CC scripts/mod/devicetable-offsets.s  
GEN scripts/mod/devicetable-offsets.h  
HOSTCC scripts/mod/file2alias.o  
HOSTCC scripts/mod/sumversion.o  
HOSTLD scripts/mod/modpost  
HOSTCC scripts/kallsyms  
HOSTCC scripts/conmakehash  
HOSTCC scripts/sortextable  
HOSTCC scripts/asn1\_compiler  
SDK has been successfully set up and is ready to be used.  
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.  
 . /opt/swi/SWI9X06Y\_02.35.02.00/environment-setup-armv7a-neon-poky-linux-gnueabi owner@owner-ThinkPad-X220:~/Downloads lsb\_release -a  
No LSB modules are available.  
Distributor ID: Ubuntu  
Description: Ubuntu 16.04.7 LTS  
Release: 16.04  
Codename: xenial

---

<div class="post-metadata">

**Author:** ![Antoine](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Antoine](https://mangoh.discourse.group/u/Antoine)\
**Post date:** [September 25, 2020, 7:52am UTC](https://mangoh.discourse.group/t/mangoh-yellow-can-iot-bus-not-working/5245/24 "2020-09-25T07:52:39Z")

</div>

Ok i will do that.

I’m on Manjaro (Arch) with kernel version 5.8.6-1.  
Apparently the error was patched on April 1st 2020 according to this site :

> **[LKML: Greg Kroah-Hartman: \[PATCH 4.4 57/91\] scripts/dtc: Remove redundant...](https://lkml.org/lkml/2020/4/1/1206)**

Do you think i need to downgrade my kernel version ?

---

<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:** [September 25, 2020, 7:58am UTC](https://mangoh.discourse.group/t/mangoh-yellow-can-iot-bus-not-working/5245/25 "2020-09-25T07:58:08Z")

</div>

No idea, never used that platform, the easiest way is to use vmware to install ubuntu 16

---

<div class="post-metadata">

**Author:** ![Antoine](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Antoine](https://mangoh.discourse.group/u/Antoine)\
**Post date:** [September 25, 2020, 2:10pm UTC](https://mangoh.discourse.group/t/mangoh-yellow-can-iot-bus-not-working/5245/26 "2020-09-25T14:10:48Z")

</div>

Sorry to bother you again but after making an Ubuntu 16.04 VM and perform a

> make wp77xx

On the legato folder i run in this error :

> FAILED: /opt/swi/SWI9X06Y\_02.35.02.00/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/SWI9X06Y\_02.35.02.00/sysroots/armv7a-neon-poky-linux-gnueabi -Wl,–build-id -g -fPIE -pie -o /home/antoine/workspace/legato/build/wp77xx/system/app/tools/obj/uartMode/uartMode /home/antoine/workspace/legato/build/wp77xx/system/app/tools/obj/uartMode/\_main.c.o -rdynamic -Wl,–enable-new-dtags,-rpath=“$ORIGIN/…/lib” -L “-L/home/antoine/workspace/legato/build/wp77xx/system/component/b9207a259d5769887eee535ca45fc7be/obj” -lComponent\_uartMode -L/home/antoine/workspace/legato/platformAdaptor/qmi/bin/wp77xx/components/le\_pa\_uartMode -lComponent\_le\_pa\_uartMode -L/home/antoine/workspace/legato/platformAdaptor/qmi/bin/wp77xx/components/swiQmi -lComponent\_swiQmi “-L/home/antoine/workspace/legato/build/wp77xx/system/component/e559a2fbca3749281735b4701b26b9fd/obj” -lComponent\_le\_pa\_uartMode\_default “-L/home/antoine/workspace/legato/build/wp77xx/system/component/b9207a259d5769887eee535ca45fc7be/obj” -lComponent\_uartMode -L/home/antoine/workspace/legato/platformAdaptor/qmi/bin/wp77xx/components/le\_pa\_uartMode -lComponent\_le\_pa\_uartMode -L/home/antoine/workspace/legato/platformAdaptor/qmi/bin/wp77xx/components/swiQmi -lComponent\_swiQmi “-L/home/antoine/workspace/legato/build/wp77xx/system/component/e559a2fbca3749281735b4701b26b9fd/obj” -lComponent\_le\_pa\_uartMode\_default “-L$LEGATO\_BUILD/framework/lib” -llegato -lpthread -lrt -ldl -lm -g && splitdebug -d /home/antoine/workspace/legato/build/wp77xx/debug /home/antoine/workspace/legato/build/wp77xx/system/app/tools/obj/uartMode/uartMode  
> /home/antoine/workspace/legato/platformAdaptor/qmi/bin/wp77xx/components/swiQmi/libComponent\_swiQmi.so: undefined reference to `fcntl@GLIBC\_2.28’  
> collect2: error: ld returned 1 exit status  
> [843/1070] Compiling C source  
> ninja: build stopped: subcommand failed.  
> Makefile:551: recipe for target ‘system’ failed  
> make: \*\*\* [system] Error 1

Do you have any idea ?

---

<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:** [September 26, 2020, 7:36am UTC](https://mangoh.discourse.group/t/mangoh-yellow-can-iot-bus-not-working/5245/27 "2020-09-26T07:36:51Z")

</div>

no, i don’t see such problem, i can compile the legato.cwe:

owner@owner-ThinkPad-X220:~/Downloads/legato-19.11.2$ ls ./build/wp77xx/legato.cwe -l  
lrwxrwxrwx 1 owner owner 23 Sep 26 15:58 ./build/wp77xx/legato.cwe -\> legato-squashfs.ubi.cwe  
owner@owner-ThinkPad-X220:~/Downloads/legato-19.11.2$ export | grep “WP77”  
declare -x WP77XX\_KERNELROOT="/opt/swi/SWI9X06Y\_02.35.02.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel"  
declare -x WP77XX\_SYSROOT="/opt/swi/SWI9X06Y\_02.35.02.00/sysroots/armv7a-neon-poky-linux-gnueabi"  
declare -x WP77XX\_TOOLCHAIN\_DIR="/opt/swi/SWI9X06Y\_02.35.02.00/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi"  
declare -x WP77XX\_TOOLCHAIN\_PREFIX=“arm-poky-linux-gnueabi-”  
owner@owner-ThinkPad-X220:~/Downloads/legato-19.11.2$

---

<div class="post-metadata">

**Author:** ![Antoine](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Antoine](https://mangoh.discourse.group/u/Antoine)\
**Post date:** [October 1, 2020, 9:17am UTC](https://mangoh.discourse.group/t/mangoh-yellow-can-iot-bus-not-working/5245/28 "2020-10-01T09:17:20Z")

</div>

I tried to clone 19.11.2 version (yours) but i got the same problem.

in addition i have some questions about the tutorial you gived me (this one [https://github.com/mangOH/mangOH](https://github.com/mangOH/mangOH)) :

In the I.iv part it says you have to install the toolchain in a specific dir, do i have to sepcify the same of not ? Does this care ? And if it cares, which yocto version is used in legato framework ?

When i’m trying to build to legato framework after cloning the repo (according to this tutorial [https://github.com/legatoproject/legato-af/blob/master/README.md](https://github.com/legatoproject/legato-af/blob/master/README.md) in the " Install the Legato framework on your development PC") i encountered an error while it builds the doc. Is there any important build stage after the documentation build step or can i stop it there and continue the tutorial ?  
Sorry if my questions are stupids i’m a complete rookie 😕

I checked the environment variables with the same command, i have the same results but i’m keep getting the same error. Btw i try this with the latest version of legato not with the 19.11.2 and my toolchain version is SWI9X06Y\_02.35.02.00.

---

<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:** [October 1, 2020, 10:42am UTC](https://mangoh.discourse.group/t/mangoh-yellow-can-iot-bus-not-working/5245/29 "2020-10-01T10:42:59Z")

</div>

Normally i install the toolchain to /opt/swi folder

---

<div class="post-metadata">

**Author:** ![Antoine](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Antoine](https://mangoh.discourse.group/u/Antoine)\
**Post date:** [October 1, 2020, 11:57am UTC](https://mangoh.discourse.group/t/mangoh-yellow-can-iot-bus-not-working/5245/30 "2020-10-01T11:57:15Z")

</div>

Yes i did that.  
I try the 19.11.2 version of legato and it seems to work.

Thanks for your help !

[Previous page](https://mangoh.discourse.group/t/mangoh-yellow-can-iot-bus-not-working/5245.md?page=1)
