Good day!
My group mate and I were trying to stream camera using Arduino Yun for a project. We were close in finishing it but since we moved from another place, we changed the network. We cannot connect anymore nor see the ARDUINO-XXXX from the list. We decided to press the WLAN RST (for 30 seconds) to reset the wifi network. And to our horror we cannot continue our project anymore. Then we realized that pressing the WLAN RST will restore it to factory default. Now we cannot connect to it anymore. We cannot view it in the network list. The only led that's working is 'ON'. If we press YUN RST for a couple of seconds the 'TX' led blinks then dies.
YunSerialTerminal.ino output:
## Booting image at 9fea0000 ...
Image Name: MIPS OpenWrt Linux-3.3.8
Created: 2014-04-17 8:11:04 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1185367 Bytes = 1.1 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum at 0x9fea0040 ...OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864
Starting kernel ...
[ 0.000000] Linux version 3.3.8 (jenkins@jenkins) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Fri Apr 11 07:16:38 CEST 2014
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR9330 rev 1
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00004000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00004000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: board=Yun console=ttyATH0,250000 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14656k(rootfs),1280k(kernel),64k(nvram),64k(art),15936k@0x50000(firmware) rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 60936k/65536k available (2565k kernel code, 4600k reserved, 650k data, 180k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
Code continue...
[ 0.080000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 512
[ 0.080000] NET: Registered protocol family 16
[ 0.090000] gpiochip_add: registered GPIOs 0 to 29 on device: ath79
[ 0.090000] MIPS: machine is Arduino Yun
[ 0.530000] Setting DogStick2 GPIO
[ 0.550000] bio: create slab <bio-0> at 0
[ 0.550000] SCSI subsystem initialized
[ 0.560000] usbcore: registered new interface driver usbfs
[ 0.560000] usbcore: registered new interface driver hub
[ 0.560000] usbcore: registered new device driver usb
[ 0.570000] Switching to clocksource MIPS
[ 0.570000] NET: Registered protocol family 2
[ 0.570000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.580000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.580000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.580000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.580000] TCP reno registered
[ 0.580000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.590000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.590000] NET: Registered protocol family 1
[ 0.610000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.610000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.620000] msgmni has been set to 119
[ 0.620000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[ 0.620000] io scheduler noop registered
[ 0.630000] io scheduler deadline registered (default)
[ 0.630000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.640000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) i{ a AR933X UART
[ 0.640000] console [ttyATH0] enabled, bootconsole disabled
[ 0.640000] console [ttyATH0] enabled, bootconsole disabled
[ 0.650000] m25p80 spi0.0: found w25q128, expected m25p80
[ 0.650000] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.650000] 7 cmdlinepart partitions found on MTD device spi0.0
[ 0.660000] Creating 7 MTD partitions on "spi0.0":
[ 0.660000] 0x000000000000-0x000000040000 : "u-boot"
[ 0.660000] 0x000000040000-0x000000050000 : "u-boot-env"
[ 0.670000] 0x000000050000-0x000000ea0000 : "rootfs"
[ 0.670000] mtd: partition "rootfs" set to be root filesystem
[ 0.670000] mtd: partition "rootfs_data" created automatically, ofs=7A0000, len=700000
[ 0.680000] 0x0000007a0000-0x000000ea0000 : "rootfs_data"
[ 0.680000] 0x000000ea0000-0x000000fe0000 : "kernel"
[ 0.680000] 0x000000fe0000-0x000000ff0000 : "nvram"
[ 0.690000] 0x000000ff0000-0x000001000000 : "art"
[ 0.690000] 0x000000050000-0x000000fe0000 : "firmware"
[ 0.710000] ag71xx_mdio: probed
[ 0.720000] eth0: Atheros AG71xx at 0xba000000, irq 5
[ 1.270000] eth0: Found an AR7240/AR9330 built-in switch
[ 2.300000] eth1: Atheros AG71xx at 0xb9000000, irq 4
[ 2.850000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[ 2.850000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.850000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[ 2.860000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 2.890000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[ 2.910000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[ 2.910000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.910000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.910000] usb usb1: Product: Generic Platform EHCI Controller
[ 2.920000] usb usb1: Manufacturer: Linux 3.3.8 ehci_hcd
[ 2.920000] usb usb1: SerialNumber: ehci-platform
[ 2.920000] hub 1-0:1.0: USB hub found
[ 2.920000] hub 1-0:1.0: 1 port detected
[ 2.930000] Initializing USB Mass Storage driver...
[ 2.930000] usbcore: registered new interface driver usb-storage
[ 2.930000] USB Mass Storage support registered.
[ 2.930000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[ 2.940000] sdhci: Secure Digital Host Controller Interface driver
[ 2.940000] sdhci: Copyright(c) Pierre Ossman
[ 2.940000] usbcore: registered new interface driver ushc
[ 2.940000] TCP cubic registered
[ 2.950000] NET: Registered protocol family 17
[ 2.950000] Bridge firewalling registered
[ 2.950000] 8021q: 802.1Q VLAN Support v1.8
[ 2.960000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 2.960000] Freeing unused kernel memory: 180k freed
[ 3.250000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 3.370000] usb 1-1: device descriptor read/64, error -32
[ 3.640000] usb 1-1: device descriptor read/64, error -32
[ 3.890000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[ 4.020000] usb 1-1: device descriptor read/64, error -32
[ 4.280000] usb 1-1: device descriptor read/64, error -32
[ 4.510000] usb 1-1: new high-speed USB device number 4 using ehci-platform
[ 4.540000] usb 1-1: New USB device found, idVendor=058f, idProduct=6254
[ 4.540000] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 4.540000] usb 1-1: Product: USB2.0Hub
[ 4.550000] hub 1-1:1.0: USB hub found
[ 4.550000] hub 1-1:1.0: 4 ports detected
[ 4.940000] usb 1-1.4: new high-speed USB device number 5 using ehci-platform
[ 5.020000] Error: Driver 'gpio-keys-polled' is already registered, aborting...
[ 5.120000] usb 1-1.4: New USB device found, idVendor=058f, idProduct=6366
[ 5.120000] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5.120000] usb 1-1.4: Product: Mass Storage Device
[ 5.130000] usb 1-1.4: Manufacturer: Generic
[ 5.130000] usb 1-1.4: SerialNumber: 058F0O1111B1
[ 5.130000] scsi0 : usb-storage 1-1.4:1.0
- preinit -
[ 6.140000] scsi 0:0:0:0: Direct-Access Multi Flash Reader 1.00 PQ: 0 ANSI: 0
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[ 9.590000] JFFS2 notice: (522) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 11 of xref (0 dead, 0 orphan) found.
[ 11.490000] sd 0:0:0:0: [sda] 7864320 512-byte logical blocks: (4.02 GB/3.75 GiB)
[ 11.500000] sd 0:0:0:0: [sda] Write Protect is off
[ 11.500000] sd 0:0:0:0: [sda] No Caching mode page present
[ 11.500000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 11.510000] sd 0:0:0:0: [sda] No Caching mode page present
[ 11.510000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 11.520000] sda: sda1 sda2
[ 11.520000] sd 0:0:0:0: [sda] No Caching mode page present
[ 11.520000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 11.530000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 32.060000] EXT4-fs (sda2): recovery complete
[ 32.060000] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
switching to external rootfs
- init -
[ 32.220000] Kernel panic - not syncing: Attempted to kill init!
The "'gpio-keys-polled' is already registered" is notify only, nether warning nor error.
http://forum.arduino.cc/index.php?topic=262618.msg1856121#msg1856121
Move on.
How? I cannot connect to the yun
[ 32.220000] Kernel panic - not syncing: Attempted to kill init!
Yun linux enviroment is dead. [SOLVED]
http://forum.arduino.cc/index.php?topic=195589.0
Removed some files and bricked Arduino Yún [SOLVED]
http://forum.arduino.cc/index.php?topic=205732.0
Final resolve, please do not use it unless every other way failed.
Used:
root@(none):/usr/bin# ./reset-to-factory-anyway
The WLAN blinks but I cannot see it in the network list. Also the blinking doesn't stop
root@(none):/# /sbin/firstboot
[ 43.210000] JFFS2 notice: (523) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
root@(none):/# reboot
root@(none):/#
Nothing happens. Only the ON led lights up
EDIT1: Also used
root@(none):/# run-sysupgrade /mnt/sda1/openwrt-ar71xx-generic-linino-16M-squash
fs-sysupgrade.bin
root@(none):/#
But still nothing happens.
Fixed it using Bonjour Print Services!
Thank you @sonnyyu for the reply!
arduinoTime:
root@(none):/usr/bin# ./reset-to-factory-anyway
The WLAN blinks but I cannot see it in the network list. Also the blinking doesn't stop
I see you've solved the problem, but for future reference for you and anyone else reading this thread, it does take several minutes for this reset to happen. I've heard six to eight minutes. How long did you wait?
Problem occured again!
The arduino yun is working fine but when I reboot it, I can't connect to the Arduino IDE.
I check the WIFIStatus, It still connected on my internet.
I also check the YunSerialTerminal and the "'gpio-keys-polled' is already registered" is notify again..
I decided to reboot the yun because when I try to opkg update, it failed.
Here is the changes I made to yun:
- Change the password
- Change the Network Protocol to Static IP Address
How can I fix it?
EDIT1: reboot here means pressing YUN RST until the 'USB' led turns off
sonnyyu:
The "'gpio-keys-polled' is already registered" is notify only, nether warning nor error.
Error: Driver 'gpio-keys-polled' is already registered, aborting... - #2 by federicofissore - Arduino Yún - Arduino Forum
Move on.
The "'gpio-keys-polled' is already registered" is notify only, It is no problem.
arduinoTime:
The arduino yun is working fine but when I reboot it, I can't connect to the Arduino IDE.
I check the WIFIStatus, It still connected on my internet.
If I read this properly, the Yun is connected to your network, you can access the configuration pages with a web browser, but the Yun's network address does not show up under the Arduino IDE's port menu. If this is the problem you are reporting, it is a well known problem. Many people have been looking into it trying to figure out just what is going on. Some have reported some success in getting the Yun to appear in the port menu, but the success has been short lived and the problem returns. At this point, it's pretty much random chance whether it will appear or not. I've personally had the most luck opening the IDE before booting up the Yun, but it is far from foolproof.
I also check the YunSerialTerminal and the "'gpio-keys-polled' is already registered" is notify again.
That is a red herring. It will always show up in the boot messages. It is not an error and does not signify a problem. It can be, and should be, ignored.
./reset-to-factory-anyway
ShapeShifter:
I see you've solved the problem, but for future reference for you and anyone else reading this thread, it does take several minutes for this reset to happen. I've heard six to eight minutes. How long did you wait?
I normally run
/usr/bin/reset-to-factory-anyway
/sbin/reboot
without wait.
That was groupmate's reply btw.
We can now access the arduino ide. I was the first one to access it randomly(?) without factory reset then she tried but couldn't so she tried 'ipconfig /release, ipconfig /flushdns' and 'ipconfig /renew' and now she can also connect.
The problem now is when we try to enter 'opkg update' on putty connected to the SSH arduino.local port 22, this is the error:
root@Arduino:~# opkg update
Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz.
Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig.
Signature check failed.
Remove wrong Signature file.
Collected errors:
* opkg_download: Failed to download http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz, wget returned 4.
* opkg_download: Failed to download http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig, wget returned 4.
root@Arduino:~#
EDIT1: After connecting to the arduino.local randomly, i can configure the arduino but I cannot see it in the port of the arduino software
EDIT2: I also tried 'ipconfig /release, ipconfig /flushdns' and 'ipconfig /renew' and I can now see the yun in the port.
arduinoTime:
then she tried but couldn't so she tried 'ipconfig /release, ipconfig /flushdns' and 'ipconfig /renew' and now she can also connect.
I bet that's a coincidence, and it won't work the next time.
Signature check failed.
Remove wrong Signature file.
That can happen if your Yun doesn't actually have access to the Internet, or if the Yun's clock is not set properly.
i can configure the arduino but I cannot see it in the port of the arduino software
Yep, I didn't think that trick would work the next time...
ShapeShifter:
That can happen if your Yun doesn't actually have access to the Internet, or if the Yun's clock is not set properly.
Can you help us on how to set the clock properly?
The simplest way is to open a web browser to your Yun's configuration web pages. Log in, select Configure, then Advanced Configuration Panel. Then under the System tab and System sub-tab, there is a section for System Properties - General Settings. Next to the system time is a button "Sync time with Broswer"
See the attachment...