Can't access my yun anymore

I got a yun fairly recently and it was working well but my ssh connection got cut some moments ago and since then nothing I tried works...

  • the yun does not make any DHCP request whether via wifi or even with a direct RJ45 connection
  • When I plug the yun the serial device is created but if I try to upload a sketch view the IDE the onboard TX led start blinking like crazy just after the reset and the serial device never come back causing the IDE to show an error (Couldn't find a Board on the selected port.).

I tried to connect it to another USB port with the same results, is there anything I can try ?
The annoying thing is that I did nothing in particular right before I lost it, I played with it before but when the ssh connection was lost I was just writing code.

pressing the WLAN reset button for 30 seconds will force a factory reset

You may want to try resetting your router as well, some seem to have a problem with the Yun and renewing a DHCP lease.

There are a few threads about this,here is one:
http://forum.arduino.cc/index.php?topic=212176.0

Thanks I will try that later today when I get back home, what does the reset factory reset exactly ? I was pretty sure there something like that but I could not find any information on how to do it. (in fact I just did another google sweep again and still can't find anything on this)

The last thing I did before losing it was to upload a sketch which write data on start to Serial1 (and I successfully saw the data on the linux side with picocom), I also disabled to serial console on the linino side (I don't want to use the bridge and don't want it to interfere). While I didn't do anything to make it reboot is it possible that the right data sent at the right time during the boot sequence via the serial port may cause linino to get stuck on boot/panic ?

It may have nothing to do with what I did but the timing was kinda suspicious after working fine for nearly a week without issues.
I saw others on this forum who successfully managed to use the serial port to communicate between linino and the sketch though.

You can definitely halt the linino boot process with a sketch that talks on Serial1. See Arduino Playground - Yun. If you uploaded a sketch that sends data over Serial1 in the first few seconds of the AR9331 starting to boot it will trigger the "Hit any key to stop autoboot: ". It is possible, but less likely, to trigger the "Press the [f] key and hit [enter] to enter failsafe mode" that comes a bit later in the boot process.

Keep the 32u4 reset while Linino boots up, you could do this by holding the 32U4 RST button by the Ethernet connector but putting a jumper from the Reset to GND on the pin headers will accomplish this and leave you with two hands free. A SSH connection should show up a few minutes later.

If you can upload a sketch through USB, you could also upload something like the Blink or Bare Minimum examples to stop the chatter on Serial1 and allow the AR9331 to boot up unmolested.

Openwrt (Linino's daddy) keeps two partitions in Flash, one is the file system as it was when you received the Yun, another is the overlay partition which keeps track of changes, the system automatically combines these to show you the modified file system. The reset to factory function erases the overlay, all the changes are "undone".

To use Serial1 without interfering with the boot process see this:WiFi connectivity - help needed - #6 by noblepepper - Arduino Yún - Arduino Forum

thanks ! that looks like the piece I was missing.

I got my yun to boot, thanks to all :slight_smile:

It was the sketch sending data via the serial, I just need to wait for linino to boot before sending anything on the serial port as mentioned. I can boot without issue if I keep the atmega reset button down.