Can't reset Yùn in Failsafe Mode

Hi,

my Arduino Yùn doesn't boot anymore, even i can upload sketches. I can't see the wifi connection and when i use the YunSerialTerminal the process stops here (i omitted the previous output, if you want i can upload the entire text):

[   40.440000] PPP generic driver version 2.4.2
[   40.810000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   40.930000] NET: Registered protocol family 24
[   40.970000] nf_conntrack version 0.5.0 (954 buckets, 3816 max)
[   41.420000] i2c /dev entries driver
[   41.540000] usbcore: registered new interface driver snd-usb-audio
[   41.570000] Linux video capture interface: v2.00
[   41.690000] fuse init (API version 7.18)
[   51.250000] cfg80211: Calling CRDA for country: IT
[   51.250000] cfg80211: Regulatory domain changed to country: IT
[   51.260000] cfg80211:  DFS Master region: ETSI
[   51.260000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   51.260000] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   51.260000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[   51.270000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[   51.270000] cfg80211:   (5490000 KHz - 5710000 KHz @ 80000 KHz), (N/A, 2700 mBm)
[   51.270000] cfg80211:   (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm)

I tried to enter in failsafe mode, following this tutorial Arduino Playground - Yun
The problem is that it doesn't start the restoring process:

- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
f
- failsafe -
/etc/preinit: line 1: telnetd: not found


BusyBox v1.19.4 (2014-04-10 11:08:41 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------


root@(none):/# cd /usr/bin
root@(none):/usr/bin# ./reset-to-factory-anyway
root@(none):/usr/bin#

When i send the command "./reset-to-factory-anyway" the wlan led (blue one) starts blinking for hours, and the following line appears after 1 second. It seems like it can't start the reset program.

What can i do now? Any ideas?

Thanks

PS. At the beginning i tried with the reset buttons, but it didn't work.

please do:

$ cat /etc/config/wireless

You should see something like this:

config wifi-device  radio0
        option type     mac80211
        option channel  11
        option hwmode   11ng
        option path     'platform/ar933x_wmac'
        option htmode   HT20
        list ht_capab   SHORT-GI-20
        list ht_capab   SHORT-GI-40
        list ht_capab   RX-STBC1
        list ht_capab   DSSS_CCK-40
        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 0

config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     Arduino
        option encryption none

If you see this line
** **option disabled 0** **
, remove it.

Jesse

Hi Jesse and thank you,

i opened the file and i found the "option disabled 0" line. How can i remove/comment it? I already modified text config files on putty using vi, but i don't know how to do that on the serial monitor :smiley:

You can use putty with the YunSerialTerminal, you have to specify the serial COM port.

If you want to use the serial monitor you can run the command

wifi-reset-and-reboot

and it should reset the wifi configuration.

Angelo9999:
You can use putty with the YunSerialTerminal, you have to specify the serial COM port.

If you want to use the serial monitor you can run the command

wifi-reset-and-reboot

and it should reset the wifi configuration.

Hi Angelo9999 and thank you,

the command you mentioned has the same problem, if i send it, nothing happens:

root@(none):/# cd /usr/bin
root@(none):/usr/bin# ./wifi-reset-and-reboot
root@(none):/usr/bin#

The problem is the same for all the programs inside the /usr/bin folder.

Try to modify the file with putty + YunSerialTerminal, or you can connect the Yun via ethernet and use SSH to change the file.

Then reboot and look if it works

Angelo9999:
Try to modify the file with putty + YunSerialTerminal

Very good! I didn't know i can use putty without wifi, it works, but i didn't solve the problem.

jessemonroy650:
please do:

$ cat /etc/config/wireless

....

If you see this line
** **option disabled 0** **
, remove it.

I removed that line but nothing changed, the commands "wifi-reset-and-reboot" and "reset-to-factory-anyway" still don't work.

I'm afraid i have to use this http://arduino.cc/en/Tutorial/YunUBootReflash , i hope i'm wrong, that's a very long and difficult procedure!

Why not connecting your Yun via ethernet and using the sysupgrade procedure?

The ethernet connection is not working, the "unknown device" appears and disappears rapidly from the connections menu, and if i type in my browser http://192.168.240.1 or http://arduino.local it can't find the page.

Now the wan led (yellow) is blinking, sometimes the wlan led (blue) blinks for a while and the usb led (white) goes high every 5/6 minutes for 1/2 seconds.

zeroG:
The ethernet connection is not working, the "unknown device" appears and disappears rapidly from the connections menu, and if i type in my browser http://192.168.240.1 or http://arduino.local it can't find the page.

Now the wan led (yellow) is blinking, sometimes the wlan led (blue) blinks for a while and the usb led (white) goes high every 5/6 minutes for 1/2 seconds.

zeroG,
to me it sounds like your Yun is stuck in the boot process. There is a way to fix this.
We need to diagnose the issue.

With the YunSerialTerminal, type ifconfig and post that.
Then type, type iwconfig and post that.

Depending on the results we will know, where we are and if we can fix it.

The first command will let us know if your ethernet is working and what the IP is.
The second will let use know if the wifi is okay.

Jesse

zeroG:
...
i opened the file and i found the "option disabled 0" line. How can i remove/comment it? I already modified text config files on putty using vi, but i don't know how to do that on the serial monitor :smiley:

sed -i "s/option disabled '0'/option disabled '1'/g" /etc/config/wireless

roll back:

sed -i "s/option disabled '1'/option disabled '0'/g" /etc/config/wireless

If change mind.

Sorry for my late reply!

jessemonroy650:
With the YunSerialTerminal, type ifconfig and post that.
Then type, type iwconfig and post that.

ifconfig output:

root@(none):/# ifconfig
eth0      Link encap:Ethernet  HWaddr 90:A2:DA:F6:06:51  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:5

There is no iwconfig output:

root@(none):/# iwconfig
root@(none):/#

sonnyyu:

sed -i "s/option disabled '0'/option disabled '1'/g" /etc/config/wireless

Thank you sonnyyu, i tried with that but nothing changed :frowning:

zeroG:
...
Thank you sonnyyu, i tried with that but nothing changed :frowning:

Power cycle Yun as well as connect erthernet cable with router and Yun.

zeroG:
Sorry for my late reply!

::::SNIP::::

Thank you sonnyyu, i tried with that but nothing changed :frowning:

@zeroG,
good news.

  1. your ethernet is working.
  2. your wireless is misconfigured.

Do as sonnyyu suggested and plug in the ethernet cable. If you have a router (or some other) that will use DHCP to assign an IP number when you plug in the cable, your are going to get a new IP number. You'll have to use the YunSerialTerminal program to get the new IP. After that you can login via SSH to work on the problem. It will be much easier that the YunSerialTerminal sketch.

Keep us updated, we'll walk you through this.
Jesse

i have the same problem :frowning:
@zeroG did you find a way to fix it?

thanks