Go Down

Topic: Yun doesn't reset to factury defaults. (Read 6125 times) previous topic - next topic

rikky

Hello,

I was thinkering with my Yun, hoping to set up some sort of repeater, and playing around with the /etc/config/network file, not hindered by any knowledge.

Result was, I could not get into my arduino anymore.
Not via wifi, not via lan cable ( the router does not recognise anything ), not via ssh, nor the IDE.

So I decided to do a full reboot.

Well, I don't know how long the Yun thinks that 30 seconds pressing down a button lasts, but I think that I can press this button down for 30 days, and nothing will happen.

However,,,

When I put the lan cable directly into the computer, I am able to make an ethernet connection, and the thing gives me the ip number: 169.254.250.165

That's a real strange number.

But what next?

I still cant find the ip number of the Yun.

It is not 169.254.250.1
nor 169.254.250.2
nor 192.168.240.1

How can I find the right number?

rikky

Ok, found it.

It is 169.254.250.165

How can that be?

I can now ssh into it, but then it asks my password.

Somehow he has invented a new password, for it is not "My_password", nor is it "arduino".

???



jessemonroy650

Ok, found it.

It is 169.254.250.165

How can that be?

I can now ssh into it, but then it asks my password.

Somehow he has invented a new password, for it is not "My_password", nor is it "arduino".

???

@rikky,

did your old password work?

On resetting your Yun to the factory default, get an egg timer or a stopwatch. Make sure you time at least 30 seconds. It it is not 30 seconds, it will not reset. The reset is handled by software.

The following pre-written notes will help you.

= [Q:] I cannot connect to My Arduino Yún. What do I do? =


First it's good to know, when  Arduino Yun cannot find the AP you have set it for (like your home wifi), it has a script that puts it back into default SSID and AP mode.

Next, you may have already watched this video, but it's worth watching again. Pay extra attention to the part with the sketches.
Getting started with Arduino Yún - tutorial (6:53)
https://www.youtube.com/watch?v=9-hPhWHWnvs

Then, read these short instructions. We (the volunteer support group) already know these steps by heart, so be familiar with the different reboot methods, and especially the 30+ second wifi reset. Also, not mentioned on that page, if you reset the Wifi/Linux part of the Yun, it will take from 2-8 minutes for the reboot. Lastly on this part, YOU MUST WAIT for the Linux portion to fully boot BEFORE YOU PRESS ANY of the RESET buttons.
Resetting the processors (AR9331, WiFi, and 32U4)
http://arduino.cc/en/Guide/ArduinoYun#toc6

Image of reset buttons below.

'''Then start over''', plug your Yun into the USB port, run this sketch, and hit the ''Wifi Reset button''  (for 5-10 seconds).
http://arduino.cc/en/Tutorial/YunSerialTerminal

The YunSerialTerminal provides a simplified console access to the Linux part of the Yun. It works via the USB port (the one that powers the Yun - the microUSB). From there you'll be able to run a few commands to give us a better idea of problems.

Also, be ready with this sketch YunWiFiStatus. This sketch will help us see the status of your home AP. The sketch prints the wifi status to the console every 5 seconds or so. This sketch might seem familiar as it was in that first video link (above).

Let us know how it goes.
Post results from the YunSerialTerminal, if you are still having problems.
Please use markup when posting results. (see image below)

Linux CLI
http://arduino.cc/en/Tutorial/LinuxCLI


Jesse

ShapeShifter

I'm sorry that I don't have any advice to offer, but I wanted to say I love that comment:  ;)

not hindered by any knowledge.
Actually, on second thought... Linux must be fully booted before pressing the WLAN RST button is recognized. Did you give it enough time to fully boot before doing the 30 second button press?

It's common on many devices to press the factory reset button when powering up, or just after powering up, but that's not the way the Yun works. It won't recognize the button press until after it's fully booted, and it won't start the reset process until after the button is released at least 30 seconds later. It will then take a long time (I hear 6 to 8 minutes) to accomplish the factory reset.

jessemonroy650

Hello,

I was thinkering with my Yun, hoping to set up some sort of repeater, and playing around with the /etc/config/network file, not hindered by any knowledge.

::::SNIP::::
@rikky,
on setting up a repeater, start a new thread when you are ready. I know a few people will have suggestions for you.

Jesse

rikky

Well tried it again.

resetted the yun wifi button at least 80 seconds.
No lights were blinking whatsoever,
waited about 20 minutes for giving it some time
pulled off the electricity.
waited 10 seconds,
reconnected.
waited 10 minutes

connected, and it gave me 169.254.163.178

still it does not recognize neither my old password, nor arduino via ssh.

And no wifi is up in the sky.
IDE does not see a port neither.


AH, I've got it.
I am not even SSH ing into the YUN.
I am SSH ing into me, myself, my own computer.
This is a Puppy linux with password woofwoof.

Yes, I'm in.

sniff. :(

Pulled out the lan cable,
yellow ethernetled stops shining,
so it does react to something,
there is still some life in there.
Oh, and my ssh session in my own computer stopped.
I can tipe what I want, no letters appear.
And indeed, connecting to the ethernet without a lan wire in its ars does not work.
'Unable to connect to the network' it says.

how is that possible?
I put a lan cable between my computer and the YUN,
and via that cable I log into my own computer?
Huh.

 I go to sleep over it, goodnight.


jessemonroy650

Well tried it again.

::::SNIP::::

 I go to sleep over it, goodnight.
Okay, you are getting coding blindness. This means you've been staring at your computer tooooo long. Get some sleep, then go for bike ride, or go to the movies, or whatever. 

YOU NEED TO STAY AWAY FROM YOUR COMPUTER FOR AT LEAST 10 HOURS.

Good Luck,
Jesse

zegerman

I know this is an old thread, but I experienced the same problem and found a solution, as long as you can still ssh into the board.

My Wifi reset button was not working as described above. However, after trying to reset the board a number of times, some things were just not working right, e.g. I would receive an error when accessing "Arduino.local" via a web browser. The board Wifi settings would not reset and I was still able to access the board via ssh.

The reset is software driven and if you navigate to the "/usr/bin" directory you find the function "wifi-reset-button-pressed". Invoking this function got the wifi light blinking. After 30+ seconds issue the "wifi-reset-button-released" command. The board will take a few minutes to reset. After this I was back to the factory settings. Even the wifi reset button is functioning as expected again.

 

ShapeShifter

The reset is software driven and if you navigate to the "/usr/bin" directory you find the function "wifi-reset-button-pressed". Invoking this function got the wifi light blinking. After 30+ seconds issue the "wifi-reset-button-released" command.
You did some good detective work. These are indeed the scripts that are run when you press the button, and then when you release it. The first script runs when you press the button and simply logs the time that you (virtually) pressed the button. The second script runs when you release the button. It compares the current time with the time the button was pressed and determines how long the button was pressed. Depending on how long the button was pressed, it may call one of two additional scripts.

To simplify things, you can skip calling those button press/release scripts and their associated timing, and just run the scripts that actually do the work:
  • /usr/bin/wifi-reset-and-reboot - This is the 5-second "short" press function which resets the WiFi network back to the default access point mode, and then reboots the Yun.
  • /usr/bin/reset-to-factory-anyway - This is the 30-second "long press function which reset the Yun back to factory defaults. Note that while this function does not explicitly reboot the Yun, it should be rebooted after running this script. This can be done by running "/usr/bin/reset-to-factory-anyway && reboot" which will automatically run the reboot command after the script is done.

Go Up