ARDUINO YUN


#1

Hi all.
i am trying to make first installation of the hologram CLI.
but i cant seem to get past this first simple step.
i am using arduino yun rev 2
“curl: (23) Failed writing body (0 != 1918)”

added a picture
thanks!


#2

Is bash installed on the Yun? Look at the first line under your command:
-ash: bash: not found

For your curl error, google is your friend: https://stackoverflow.com/questions/16703647/why-curl-return-and-error-23-failed-writing-body

Note this supports my guess that you dont have bash since this error occurs when the read pipe is closed (bash in this case) before the write pipe is finished (curl)


#3

Thanks for the quick reply!.
As for the bash… arduino yun has a busybox image .
Its can only recognize ash … this means i cannot use bash at all😶.
I tried opkg install bash .
But as i said its not supporting it.


#4

In that case try saving the script to file

curl -L hologram.io/python-install -o install.sh

and then run the file with ash (note you may need to chmod)

ash install.sh

I think the Yun is not yet officially supported to the SDK may not work and youll have to write your own. It looks like the Yun is on holograms roadmap although I dont see anything about it besides this link:
https://hologram.io/introducing-the-hologram-nova/

Scroll down to “Nova’s Roadmap”

Depending on your use case, I’d recommend just going with an RPI. They are cheaper and have compatibility with the Nova. I don’t really get the Yun. I think there are enough peripherals to add any features the RPI doesnt have (PWM, ADC) that are well documented and supported and if you are using linux and a relatively high power CPU for an embedded sytem, the RPI is better.


#5

thanks
we made progress.
i might take your advise regarding the RPI.
ok there seem to be some syntax error:


#6

looks like arrays aren’t supported in ash https://unix.stackexchange.com/questions/384614/how-to-port-to-bash-style-arrays-to-ash

Your options are:

  1. walk through the script manually addressing any errors line by line and hoping there are no complete incompatibilities
  2. ditch the yun and go with an rpi or other linux system
  3. use AT commands like this was an embedded system (like a standard arduino or esp8266, etc).

Somewhat again why I dont get the Yun, its like a linux box but doesn’t work with linux things, and too expensive and power hungry to be embedded. An RPI + usb cable + Uno or Mega seems easier and no more expensive and like 1000x more useful


closed #7

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.