BlrUsr Posted January 23, 2018 Posted January 23, 2018 Anybody know how install ARDUINO IDE on ARMBIAN orange pi pc 2? Can I drop tar archive to home/pi/arduino
znoxx Posted January 24, 2018 Posted January 24, 2018 I think you need Java to run it and Java is available for arm64 Try those steps http://www.instructables.com/id/Installing-Using-Arduino-IDE-on-a-Raspberry-Pi-3/ - may be it will work
BlrUsr Posted January 24, 2018 Author Posted January 24, 2018 Ok I run Arduino, so I want to add library for adruino ide --- ESP32 pi@orangepipc2:/opt/arduino-1.8.5/hardware/espressif/esp32/tools$ python get.py System: Linux, Info: Linux-4.14.14-sunxi64-aarch64-with-Ubuntu-16.04-xenial Platform: x86_64-pc-linux-gnu Downloading xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz Done Extracting xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz Downloading mkspiffs-0.2.1-linux64.tar.gz Done Extracting mkspiffs-0.2.1-linux64.tar.gz Renaming mkspiffs-0.2.1-linux64 to mkspiffs Done pi@orangepipc2:/opt/arduino-1.8.5/hardware/espressif/esp32/tools$ But when I compile it on arduino ide eroor: fork/exec /opt/arduino-1.8.5/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++: exec format error Error compiling for board ESP32 Dev Module. What is problem?
martinayotte Posted January 24, 2018 Posted January 24, 2018 The file /opt/arduino-1.8.5/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ is for this platform: x86_64-pc-linux-gnu not form ARM. So, you will need to compile the compiler on ARM
BlrUsr Posted January 26, 2018 Author Posted January 26, 2018 ok i found . I need to build toolchain But when I compile it ./ct-ng xtensa-esp32-elf , ./ct-ng build got "[INFO] Installing pass-2 core C gcc compiler" and it do not response at any time .I wait 12 hours.))
BlrUsr Posted January 30, 2018 Author Posted January 30, 2018 pi@orangepipc2:~/esp/crosstool-NG$ ./ct-ng build [INFO ] Performing some trivial sanity checks [INFO ] Build started 20180129.083432 [INFO ] Building environment variables [INFO ] ================================================================= [INFO ] Retrieving needed toolchain components' tarballs [INFO ] Retrieving needed toolchain components' tarballs: done in 91.28s (at 01:35) [INFO ] ================================================================= [INFO ] Extracting and patching toolchain components [INFO ] Extracting and patching toolchain components: done in 348.94s (at 07:24) [INFO ] ================================================================= [INFO ] Installing ncurses for build [INFO ] Installing ncurses for build: done in 154.18s (at 09:58) [INFO ] ================================================================= [INFO ] Installing GMP for host [INFO ] Installing GMP for host: done in 174.38s (at 12:53) [INFO ] ================================================================= [INFO ] Installing MPFR for host [INFO ] Installing MPFR for host: done in 126.54s (at 14:59) [INFO ] ================================================================= [INFO ] Installing ISL for host [INFO ] Installing ISL for host: done in 139.24s (at 17:19) [INFO ] ================================================================= [INFO ] Installing MPC for host [INFO ] Installing MPC for host: done in 58.68s (at 18:17) [INFO ] ================================================================= [INFO ] Installing expat for host [INFO ] Installing expat for host: done in 32.68s (at 18:50) [INFO ] ================================================================= [INFO ] Installing binutils for host [INFO ] Installing binutils for host: done in 322.32s (at 24:12) [INFO ] ================================================================= [INFO ] Installing C library headers & start files [INFO ] Installing C library headers & start files: done in 0.25s (at 24:13) [INFO ] ================================================================= [INFO ] Installing pass-2 core C gcc compiler [ERROR] g++: internal compiler error: Killed (program cc1plus) [ERROR] make[2]: *** [dwarf2out.o] Error 4 [ERROR] make[1]: *** [all-gcc] Error 2 [ERROR] - [ERROR] >> [ERROR] >> Build failed in step 'Installing pass-2 core C gcc compiler' [ERROR] >> called in step '(top-level)' [ERROR] >> [ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257] [ERROR] >> called from: do_gcc_core_backend[scripts/build/cc/100-gcc.sh@545] [ERROR] >> called from: do_gcc_core_pass_2[scripts/build/cc/100-gcc.sh@160] [ERROR] >> called from: do_cc_core_pass_2[scripts/build/cc.sh@42] [ERROR] >> called from: main[scripts/crosstool-NG.sh@646] [ERROR] >> [ERROR] >> For more info on this error, look at the file: 'build.log' [ERROR] >> There is a list of known issues, some with workarounds, in: [ERROR] >> 'docs/B - Known issues.txt' [ERROR] / [ERROR] (elapsed: 974:53.56) [974:54] / ct-ng:152: recipe for target 'build' failed make: *** [build] Error 2 pi@orangepipc2:~/esp/crosstool-NG$ What is error?
jrullan Posted February 2, 2018 Posted February 2, 2018 @BlrUsr, From this forum: https://github.com/espressif/arduino-esp32/issues/1024 I don't know what the error is about but regarding your question about the Pine64 script vs your particular architecture, if you look at the script in an editor you will see it's just a convenient collection of steps to set up the Arduino IDE in our platforms. Take a look at: https://github.com/pfeerick/pine64-scripts/blob/master/install-arduino-ide.sh
Recommended Posts