Open LBDonovan opened 7 years ago
the -no-pie
is generated by xeno-config
you can manage to compile with
# remove dependencies from libasound:
# truncate files
echo > core/Midi.cpp
echo > core/Midi.h
# then remove `-lasound` from `Makefile`
At this point it compiles but it does not run:
it returns -EINVAL
(invalid argument) when trying to do rt_task_bind
or rt_task_create
. Perhaps something went wrong in compiling libraries and tools ?
/usr/xenomai/bin/latency
does not depend on any of the xenomai lib (strange enough).
So I guess there may be something broken in the libxenomai
build
really? but /usr/xenomai/bin/xeno-test also runs fine...
I did have to compile xenomai slightly oddly with '-f-no-pie' and '-no-pie' in CFLAGS and LDFLAGS, which did seem kinda wrong...
actually none of /usr/xenomai/bin/*
relies on libxenomai
Got it to compile and run. I can even use the scope!
Recap:
.dtb
is loaded: add this line
dtb=am335x-bone-bela.dtb
somewhere in /boot/uEnv.txt
COMPILER=gcc
flag to make
Boots and runs also on BBGW and BBBW.
Also hacked together a dtb for BBBW which makes the wifi module recognized. This is the diff between the stock BBBW and the BBBW that works for me (I basically diffed BBB vs BBG and tried to disable the same things (HDMI, some McASP) in the BBBW: https://gist.github.com/giuliomoro/0b553fd15611a439c3eef6115b3e2122
clang fails on
math_runfast.c
with:clang: error: unknown argument: '-no-pie'
clang: error: unsupported argument '-mimplicit-it=arm' to option 'Wa,'
gcc fails on Midi.cpp with:
In file Midi.h: alsa/asoundlib.h: No such file or directory column: 28, line: 13