Thanks !
I’m gonna try this out.
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
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
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 :
Do you think i need to downgrade my kernel version ?
No idea, never used that platform, the easiest way is to use vmware to install ubuntu 16
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 ?
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$
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) :
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 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.
Normally i install the toolchain to /opt/swi folder
Yes i did that.
I try the 19.11.2 version of legato and it seems to work.
Thanks for your help !