I found out that yun shield should be upgrated and then this error should be gone. I tried to upgrade yun shield to version 1.5.3. It was successfull, but then on uploading sketch it shows error:
Can't export GPIO 20, already exported/busy?: Device or resource busy/usr/bin/run-avrdude: line 5: can't open /tmp/efuse: no such file
Can't export GPIO 20, already exported/busy?: Device or resource busy
I'm sorry, but that is not correct, that's the forum for the WiFi Shield, which is very different from the Yun Shield. The WiFi shield contains a WiFi module that is managed directly by the Arduino sketch and the WiFi library. The Yun Shield contains a Linux system that manages the Wifi and Ethernet networks, and a USB host port. It is a shield made by Dragino, and is roughly the same as an Arduino Yun, minus the '32U4 processor - in it's place is a set of shield headers that lets it be used with almost any Arduino processor board.
The Yun Shield is very close to the Arduino Yun, but there are some differences, mostly relating to integrating it with the various Arduino processor boards. While the Linx portions are very similar, the system software may not be exactly the same. It may be worth contacting the shields manufacturer for help on this issue (I think they have their own support forums?)
I was just taking a look at the Yun Shield schematic to answer a question in another post.
It looks like both the Yun Shield, and the official Yun board, use a bit-banged SPI to load a sketch into the Arduino processor. They both use Linux GPIO pins to perform the load operation, but the two systems use different GPIO pins to do it.
Oksana:
I tried to upgrade yun shield to version 1.5.3. It was successfull, but then on uploading sketch it shows error:
Version 1.5.3 sounds like the Linux firmware for the genuine Arduino Yun board. It will assume that it needs to use the set of GPIO pins used by the the actual Yun boards. Since the Yun Shield uses the GPIO pins differently, it might explain why the sketch upload didn't work?
Since you have a board made by Dragino, and it looks like it has a different hardware setup than the Arduino board, you might be forced to use only the firmware provided by Dragino. I would suggest you go to the Dragino site, find the appropriate firmware for your version of the Yun Shield, and try loading it. That may fix your problem?
That error can be caused by a variety of issues. The most common are not being connected to the Internet, and not having the Linux system's time set correctly. It's possible that loading the new firmware and then rebooting caused the time to be set properly, and that is what actually fixed the problem?
ShapeShifter:
::::SNIP::::
It is a shield made by Dragino, and is roughly the same as an Arduino Yun, minus the '32U4 processor - in it's place is a set of shield headers that lets it be used with almost any Arduino processor board.
::::SNIP::::
@ShapeShifter,
Okay. So you are saying this is not even a Arduino product.
Basically, Yun Shield + Leonardo equally to the official Arduino Yun
The functionally of such a setup may be substantially similar, but there are differences. The use of GPIO lines for sketch reprogramming seems to be one such difference. The handshaking line between the Linux processor and D7 seems to be another, as discussed in a recent thread yesterday. But, they do appear to be more alike than different, and many of the programming issues are the same, and can be discussed/solved on this forum. At the level of writing sketches and Linux scripts, they are mostly interchangeable, but it is important to keep in mind that they are not exactly the same.
It's like the many Arduino board clones out there: they are functionally similar the Arduino branded boards, and are programmed the same way - we support them on this site all the time. As long as you are writing sketches for them, they are the same. But if you are counting on some specific implementation detail of the hardware, they may be different (like using an FTDI chip for USB communications, versus a small Atmel USB processor.) Such differences may affect the low level firmware (the bootloader) so you need to be careful which bootloader you use with the board - as long as you are just loading sketches you're fine, but if you go to burn a new bootloader onto the board, you had better make sure it's compatible with your particular board (there are many different Arduino bootloaders out there.)
I think it's the same thing in this case: the low level Linux firmware is built specifically for the hardware. It's much like the bootloader. Yun firmware version 1.5.3 is built specifically for the Yun boards made by Arduino. The Dragino Yun Shield appears to have some subtle differences in the hardware, so it appears to be important to load the Dragino specific firmware. The Yun firmware may work for must of the functions, but when you get into an area where the hardware connections are different (like loading sketches) then that's where you may run into problems. I suspect that is the situation here.
I found the same question about my first error in forum about Arduino Yun, so I thought it should work in my shield as well.
Now I understand my mistake.
Will try to reset it to default configuration and load Dragino firmware.