-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build cFS for Raspberry Pi 4 #383
Comments
Well, the solution is to execute core-cpu1 as root |
Actually there is another problem. My build/exe/cpu2 folder looks like this
but core-cpu2 can't load libs:
What is wrong? |
Also there are some other errors:
|
Two comments I'd suggest:
As for the socket bind issue, you'll have to look up what errno 98 means (its system-specific). |
Well, we defined OS_DEBUG_PRINTF and it shows that hwlib can't load because of undefined spi_unselect_chip, so we just delete all code with it. Idk why, but now it works |
I just hardcoded the port
and it does not work, errno 98 |
Something worth considering -- just build natively. I understand that folks consider native compilation slow but the fact remains it's the easiest and least error prone. Further, we minimize the time cost by integrating our cFS build into our Azure Devops pipelines on a self-hosted RPi 3B+ agent. Much easier than futzing around with cross-compilations and we get the benefits of ci/cd, artifacts, etc. |
I've been fighting this same problem for ages. I'm trying to run cFS on a Raspberry Pi Zero, so the build times are quite long. The problem isn't limited to cFS, Cross-compiling any shared object with |
Have you found any solution? |
I'm trying to build cfs for Raspberry Pi using cross-compiler in Ubuntu 18.04. I installed gcc-arm-linux-gnueabihf and g++-arm-linux-gnueabihf, setup cmake toolchain file as follows:
And then:
There is core-cpu1 in build-raspberry/arm-raspberrypi/default_cpu1/cpu1. But on Raspberry it crashes with error:
What am I doing wrong?
The text was updated successfully, but these errors were encountered: