I have just tried to get my Yun to read the output of another Arduino. I thought it wasn't working because I haven't updated the OpenWrt Image on my Yun. So, I took an SD card and stuck it in the Yun, and ran curl to grab the image. I used opkg to install unzip and grab the .bin file. Then, I ran the usual: run-sysupgrade /mnt/sda1/openwrt-ar71xx-generic-yun-16M-squashfs-sysupgrade.bin to update it. Then, I saw in the SSH terminal: "Writing from to firmware [W]" I thought that I had to type a W to continue, but it just said: "[W]]" I kept on doing it, but I finally decided to cancel (The WLAN did not flash). I hit Ctrl+C, and unplugged and plugged the Yun back in. That's where problems started: The Yun could not connect to the WiFi Radio. I opened up YunSerialTerminal and saw that there were no errors, but wifi-live-or-reset just kept on rebooting the Yun forever. I quickly disabled that, and that's where I am now. When I do reset-to-factory-anyway it says:
/usr/bin/blink-start: line 3: can't create /sys/class/leds/ds:green:wlan/trigger: nonexistent directory
/usr/bin/blink-start: line 4: can't create /sys/class/leds/ds:green:wlan/delay_on: nonexistent directory
/usr/bin/blink-start: line 5: can't create /sys/class/leds/ds:green:wlan/delay_off: nonexistent directory
and when I hit the WLAN for either 1, 5, 15, 30, 45, and 60 seconds it does nothing, not even blink/flash the WLAN light.
I forgot where I saw it, but it said that it can't find the WiFi radio. I tried plugging in an ethernet cable, and it worked. Also, now it can't detect a filesystem in either a flash drive or a MicroSD card, but it says it detects that both exist (It correctly identifies the Flash Drive as an HP flash drive) and I read from both fine on something else. I have a reboot log attached. Also, a pastebin: Arduino Yun Log - Pastebin.com
log.txt (10.7 KB)
@lights0123,
the good news is you did NOT "brick" it. You will likely need to reflash it. Sorry I do not know what to do. I'm sure someone else knows. It's late, but some might come by in the next few hours, else tomorrow someone will likely get you that answer you need.
Jesse
Thank you. I believe the problems occurred as I was trying to reflash it. I decided to cancel (for whatever reason). I would just continue the process if I could access the SD card or USB stick, but I can't. Do you think it would help to reformat the SD card/USB stick to a Linux ext format (or whatever it's called)?
lights0123:
Do you think it would help to reformat the SD card/USB stick to a Linux ext format (or whatever it's called)?
I don't think so. The Yun cannot boot off of the SD card. It can only access it once it's booted, and at that point the type of file system doesn't really matter.
By reflashing it, I think that Jesse is talking about this: Reflashing the OpenWrt-Yun image on the Yún. Personally, I would skip the optional section on reflashing uboot - if that goes wrong then you really do have a lifeless brick.
ShapeShifter:
::::SNIP::::
By reflashing it, I think that Jesse is talking about this: Reflashing the OpenWrt-Yun image on the Yún. Personally, I would skip the optional section on reflashing uboot - if that goes wrong then you really do have a lifeless brick.
Well, reflash or reinstall. I really have no idea what to do. I have never done this. It appears to me that the OS move (or install) was stop half way and some of the drivers (or modules) were not installed.
The best I could recommend is to start with a fresh SD. Keep in mind that the install is downloading stuff from the Internet, unpacking it, and installing it. This could take 8 to 20 minutes - depending your connection and Internet traffic (of course). Also, the base system itself is stored on ROM (Read Only Memory), and when you make a change (without the SD) it only stores the changed files -- and the original files are never erased.
I hope that helps.
Jesse
Stopping the process that way probably corrupted the data inside the flash of the Yun.
The board boots the system so the uboot partition is intact and probably the kernel one too. I think you can only try this solution
as already said by ShapeShifter.
This process restores the flash memory. You can skip the uboot step and reflash the kernel and the filesystem. The procedure should be safe enough because you will not reflash uboot.
Okay. I will in a few minutes.
I've done that (not reflashing u-boot) and rebooted. The WiFi radio is still undetected. When I plugged in an Ethernet cable the yun showed up. I can't access the console, but I can access the webpanel and I can upload sketches through Arduino.exe. There is an error on the webpage, attached. On luci, it says "Wireless is disabled or not associated". I decided to try and reflash again. This time, I keep on getting an error when I type boot: "Bad Magic Number"
Can you post the entire output of the serial monitor when you boot, and the flash procedure?
You are only transferring the bin files but you forgot to write them to the flash.
Commands erase and cp.b are missing.
erase 0xxxxxxx +0xxxxxx
cp.b $fileaddr 0xxxxxxx $filesize;
Read carefully the guide and you find these commands at the end of each step.
Thank you. I will try that later (I'm going to school now)
Thank you, that helped a lot! On the help page, I thought it said
If the U-Boot prompt does not appear, type the following commands, pressing Enter after each line :
instead of
If the U-Boot prompt does appear, type the following commands, pressing Enter after each line :