Random shutdown

my BBB has been doing random shutdowns.

Today, I was in the middle of an apt-get update, and part way through the board decides that the power button was pushed and shuts down. This was while I had both a USB connection to my mac and a 5v power supply plugged in. There is also a powered USB hub connected that has the wifi adapter so this should not be a matter of insufficient power.

debian@beaglebone:~$ sudo ifup wlan0

ioctl[SIOCSIWAP]: Operation not permitted

ioctl[SIOCSIWENCODEEXT]: Invalid argument

ioctl[SIOCSIWENCODEEXT]: Invalid argument

Internet Systems Consortium DHCP Client 4.2.2

Copyright 2004-2011 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/74:da:38:0c:e3:5a

Sending on LPF/wlan0/74:da:38:0c:e3:5a

Sending on Socket/fallback

DHCPREQUEST on wlan0 to 255.255.255.255 port 67

DHCPREQUEST on wlan0 to 255.255.255.255 port 67

DHCPACK from 192.168.1.1

bound to 192.168.1.28 – renewal in 34746 seconds.

debian@beaglebone:~$ sudo apt-get update

Hit http://security.debian.org wheezy/updates Release.gpg

Hit http://repos.rcn-ee.net wheezy Release.gpg

Hit http://ftp.us.debian.org wheezy Release.gpg

Hit http://security.debian.org wheezy/updates Release

Hit http://ftp.us.debian.org wheezy-updates Release.gpg

Hit http://repos.rcn-ee.net wheezy Release

Hit http://ftp.us.debian.org wheezy Release

Hit http://ftp.us.debian.org wheezy-updates Release

Hit http://security.debian.org wheezy/updates/main armhf Packages

Hit http://repos.rcn-ee.net wheezy/main armhf Packages

Hit http://security.debian.org wheezy/updates/contrib armhf Packages

Hit http://security.debian.org wheezy/updates/non-free armhf Packages

Hit http://ftp.us.debian.org wheezy/main armhf Packages

Hit http://ftp.us.debian.org wheezy/contrib armhf Packages

Hit http://ftp.us.debian.org wheezy/non-free armhf Packages

Hit http://ftp.us.debian.org wheezy-updates/main armhf Packages

Hit http://ftp.us.debian.org wheezy-updates/contrib armhf Packages

Hit http://ftp.us.debian.org wheezy-updates/non-free armhf Packages

100% [Packages 7,432 kB]

Broadcast message from root@beaglebone (Sun Jun 14 16:11:48 2015):

Power button pressed

The system is going down for system halt NOW!

Reading package lists… 11%

Broadcast message from root@beaglebone (Sun Jun 14 16:11:55 2015):

Power button pressed

The system is going down for system halt NOW!

Connection to 192.168.7.2 closed by remote host.

Connection to 192.168.7.2 closed.

chriss-air:~ chrisholm$

Any hints/clues?

Chris

What kernel?

uname -r

Regards,

Hi Robert,

I have a similar problem when using the 5V jack. When I turn off VDD_5V (always) or out of the blue (less frequent), the BBB will turn off issuing a “Power button pressed” message.

I am using an element BBB with Debian 3.8.13-bone47.

Cheers,

Correct, that's the way 3.8.x always been setup:

https://github.com/beagleboard/linux/blob/3.8/drivers/mfd/tps65217.c#L182

/* Handle AC power status change */
dev_dbg(tps->dev, "AC power status change\n");
/* Press KEY_POWER when AC not present */

Regards,

Robert,

Thanks for the pointer. It has happened to me a few times when I connect something else on the VDD_5V, probably because the AC fluctuates (although I’m connected directly to an Agilent bench PSU).

  • Is there a specific reason for this (protecting the AM335X somehow) or would it be OK to change that behavior?
  • Would I need to recompile the whole kernel or could I just recompile the TPS driver and replace it somehow?

Cheers,

I believe it was originally setup that way to initiate a last ditch
effort to shutdown and save the rootfs.

3.14/4.1.x doesn't copy that behavior, and the tps driver in
3.14/4.1.x uses kernel interfaces to shutdown when the button is
pressed.

Regards,

That makes sense… I’ll try to upgrade soon then.

From what I understand there is no cape manager in the 3.14, right? I would have to load the device tree at boot time (editing uEnv?!), correct?

Thank you very much for your help!