Yun problems

Ok, so I just got myself a Yun to play with because I thought it’d be a fun board to investigate, and already I am having big problems with it.

It seems to be stuck in a reboot cycle. It runs for about 45 seconds, then the whole thing resets itself. Not just the AR9331, but the 32U2 as well, both at the same time.

Linux will boot, it gets as far as “Please press Enter to activate this console.”, then spools out a load of Wifi stuff and a few more drivers being loaded, then finishes up with

“[ 40.500000] fuse init (API version 7.18)”

After that the linux reboots, and the 32U2’s bootloader (L13 fading in and out) loads, and the whole cycle starts again.

Here’s the full console output:

[    2.850000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Gene]
[    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.530000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[    3.810000] usb 1-1: new high-speed USB device number 4 using ehci-platform
[    4.230000] usb 1-1: device not accepting address 4, error -71  
[    4.350000] usb 1-1: new high-speed USB device number 5 using ehci-platform
[    4.390000] usb 1-1: New USB device found, idVendor=058f, idProduct=6254
[    4.390000] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    4.390000] usb 1-1: Product: USB2.0Hub
[    4.400000] usb 1-1: can't set config #1, error -71
[    4.990000] Error: Driver 'gpio-keys-polled' is already registered, aborting...
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[    8.520000] JFFS2 notice: (509) jffs2_build_xattr_subsystem: complete building xattr subsystem, 2 .
switching to jffs2
- init -

Please press Enter to activate this console. [   37.070000] Loading modules backported from Linux verd
[   37.070000] Backport generated by backports.git backports-20140124-0-g1256d3e
[   37.110000] cfg80211: Calling CRDA to update world regulatory domain
[   37.110000] cfg80211: World regulatory domain updated:
[   37.110000] cfg80211:  DFS Master region: unset
[   37.110000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   37.120000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   37.120000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   37.120000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   37.130000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[   37.130000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[   37.130000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
[   38.100000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   38.100000] cfg80211: Calling CRDA for country: US
[   38.100000] cfg80211: Regulatory domain changed to country: US
[   38.110000] cfg80211:  DFS Master region: FCC
[   38.110000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   38.110000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[   38.120000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 1700 mBm)
[   38.120000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
[   38.120000] cfg80211:   (5490000 KHz - 5600000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
[   38.130000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2400 mBm)
[   38.130000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 3000 mBm)
[   38.130000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
[   38.550000] NTFS driver 2.1.30 [Flags: R/O MODULE].
[   38.590000] Error: Driver 'gpio-keys-polled' is already registered, aborting...
[   38.720000] PPP generic driver version 2.4.2
[   38.770000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   38.890000] NET: Registered protocol family 24
[   38.920000] nf_conntrack version 0.5.0 (954 buckets, 3816 max)
[   39.360000] i2c /dev entries driver
[   39.400000] Linux video capture interface: v2.00
[   39.510000] fuse init (API version 7.18)

If I get into failsafe mode it seems to be a little more stable:

Press the [f] key and hit [enter] to enter failsafe mode
- 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):/# uptime
 00:01:12 up 1 min,  load average: 0.05, 0.02, 0.01

So it looks like something’s being loaded by the linux startup that’s causing the whole thing to crash.

So far it’s being a bit of a disappointment and a waste of money. Can anyone help me change my opinion of it?

– edit –
Single stepping through the startup manually I get as far as starting the wifi and it crashes:

root@Arduino:/# /sbin/wifi up
Configuration file: /var/run/hostapd-phy0.conf
Using interface wlan0 with hwaddr 90:a2:da:f8:02:00 and ssid "Arduino Yun-90A2DAF80200"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED 
### RESETS ###
[    2.850000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Gene]
...

Ok, so I gave it more juice and it seems to have stabilized. It would be nice if somewhere on the Yun page it stated that it will not run reliably from USB and that you have to provide it with external power. It would also be nice if there were actually a connector to provide it power through!!!

But that's all a moot point now, as it is now completely dead.

I went to upgrade the firmware though the (now working) web interface, which looked like it was all going fine, then it asked me to log in again, and from that point... nothing!

Looking at the console it hadn't actually rebooted, and even looks like it hadn't installed the image properly. There's only a handful of basic commands there.

So a manual reboot to refresh it all - and now nothing. No kernel.

What a complete waste of time and money!

I would say "At least it's not a Raspberry Pi", but I may actually have it the wrong way round... The Pi is good... compared to this shit!

Fortunately I know my onions and have reflashed it all with TFTP. I really pity any novice trying to do anything with a Yun...

Sorry to hear you've had issues with the Yun. Maybe you just got a bad apple?

I'm definitely a novice, and the Yun has been great for learning/experimenting.

I've been running power through USB for weeks on end with no issues. Did you supply it with regulated power? From the playground : There is no built in 5V regulator. If you power your Yún with more than 5V, you will likely damage it.

Best of luck, kiobod

I'm too really sorry for your bad experience. Now that you reflashed it via TFTP, does it work as expected?

majenkotech: Ok, so I gave it more juice and it seems to have stabilized. It would be nice if somewhere on the Yun page it stated that it will not run reliably from USB and that you have to provide it with external power. It would also be nice if there were actually a connector to provide it power through!!!

You don't need external power: I've always used the yun plugging it to my laptop. Maybe your computer/usb hub is giving out less current than usual? Like when you use an unpowered usb hub and charge your phone and use a scanner while using the yun?

Could be, could be. I have it purely remote now though, after much fighting.

One thing to note with the Yun - you can't feed 5V into the 5V pin as you can with all the other Arduinos - you have to feed it into Vin, I haven't examined the schematics yet, but I guess there's a diode in there blocking it somewhere.

Now to write some mDNS probing and SCP/SSH Java routines to allow UECIDE to directly communicate with it over the air...

I'm actually having the exact same issue whether i'm plugged into the wall or my computer. It seems to happen on and off. I can reboot a few times and get in. For the last two hours though, I haven't been able to finish booting. I'm really stuck! Please help. I just get to "fuse init (API version 7.18)" and stop before the wifi every time! So frustrating!

What wall adapter are you using? Can you tell us the max output current?