-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Arduino SDK on linux ARM #1124
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
Comments
Can you add a condition to build.xml that sets ${platform} to linux32 when armv7h is detected? |
Hi, Thanks, |
The xml tags of my answer made the lines invalids. But the tests I am running now are suggesting that it shouldn't be detected as linux32. So the next question is: would that be possible to add a compatibility for arm for this "patch"? If yes, how can I help you to do this? Thanks, |
The architecture is detected to select the avr_tools archive to unpack into the tools folder, for example: linux32 uses avr_tools_linux32.tar.bz2 you should check which one is suitable for your platform (i guess linux32), and add the corresponding condition line into build.xml:
This doesn't work for you? |
Hi, The problem comes when I try to compile sources for the Arduino device: I get a lot of "poison" errors. My hypothesis is that the Arduino installer is not able to "patch" avr, because of the ./build/linux/dist/tools/avrdude and ./build/linux/dist/lib/librxtxSerial.so binaries that are compiled for linux32 and not for arm. (binaries are not compatible between these architectures). So my guess is that one have to build these two binaries for arm and declare a new platform in the build.xml if we want to be able to fully use the Arduino SDK on ARM. Work on which I can help if someone explains me how to do it. Thanks in advance, Oygron Edit: I didn't check the content of avr_tools_linux32.tar.bz2, but it is also full of binaries that won't be compatible with arm architecture. These ones too will have to be recompiled. |
The poison errors should be fixed now. BTW the issues you're having was caused by a different gcc compiler version. Arduino uses an unpatched avr-gcc 4.3.2, newer versions may cause some weird issue on the compiled binary. |
Hi,
I work on embedded systems and we use an ARM board with an Arch Linux embedded. This board must be able to reconfigure an Arduino board.
The problem is I cannot build from sources the Arduino SDK on my board.
In facts, the file build/build.xml is not able to detect an ARM linux as a linux32. Consequently, the installer fails to find the right folder, and stops.
I fixed it replacing every ${platform} by linux32 but it is not very clean, and will be overrided on each update. Doing this, the software compiles and run.
Would that be possible to add ARM platforms (mine is armv7h) as detected platforms?
Thanks in advance.
Oygron
The text was updated successfully, but these errors were encountered: