LBDonovan / image-builder

Image builder
http://beagleboard.org/source
MIT License
0 stars 0 forks source link

Bela core does not compile #3

Open LBDonovan opened 7 years ago

LBDonovan commented 7 years ago

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

giuliomoro commented 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 ?

giuliomoro commented 7 years ago

/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

LBDonovan commented 7 years ago

really? but /usr/xenomai/bin/xeno-test also runs fine...

LBDonovan commented 7 years ago

I did have to compile xenomai slightly oddly with '-f-no-pie' and '-no-pie' in CFLAGS and LDFLAGS, which did seem kinda wrong...

giuliomoro commented 7 years ago

actually none of /usr/xenomai/bin/* relies on libxenomai

giuliomoro commented 7 years ago

Got it to compile and run. I can even use the scope!

Recap:

giuliomoro commented 7 years ago

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