Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ARDUINO IDE on ORANGE PI PC2

Featured Replies

Anybody know how install ARDUINO IDE on ARMBIAN orange pi pc 2?

 

Can I drop tar archive to home/pi/arduino 

 

 

 

  • Author

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?

  • Author

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.))

  • Author

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?

@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

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.