I usually tell everyone to use:
sudo systemctl poweroff
as systemd knows how to tell the external tps65217 to cut power.
looking at the syslog, i don't remember any issues with 4.4.39-ti-r75,
and looking at the git log i don't see any poweroff regressions
mentioned..
Regards,
--
Robert Nelson
https://rcn-ee.com/
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/9VdtZKf3Dz0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYgHtwySLzoGJOdRLwGKm34kPxxwz6GBj5BFwWYUUtbR9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
What OS/kernel is ithinu running?"shutdown -P now" works on all my BBB/BBG boards.But, I run from external +5V, without anything on the battery connections.--- Graham==
I usually tell everyone to use:
sudo systemctl poweroff
as systemd knows how to tell the external tps65217 to cut power.
looking at the syslog, i don't remember any issues with 4.4.39-ti-r75,
and looking at the git log i don't see any poweroff regressions
mentioned..
Regards,
--
Robert Nelson
https://rcn-ee.com/
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/9VdtZKf3Dz0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
The board is connected to a 5V power supply, to a USB hub and via Ethernet to a router. It has no capes.
uname -a
Linux beaglebone 4.4.39-ti-r75 #1 SMP Thu Dec 15 22:16:11 UTC 2016 armv7l GNU/Linux
The command
sudo systemctl poweroff
reboots it just like
shutdown -P now
However, if the board is disconnected from the USB hub (still connected to the power supply), both of the above commands shut the unit down as expected. I checked this several times: connecting even a running unit to USB makes it unable to shutdown. However, if powered from USB (power supply disconnected) the board shuts down again without a problem.I tested this several times and it seems, that the only combination where the board can not shut down is when connected to both the power supply and USB at once. Which is ok as of me, as I do not need the USB connection any more.
There is an old thread (the kernel must obviously have been different) where a similar problem is reported by several people: https://groups.google.com/forum/#!msg/beagleboard/qw5zlS4F4p4/chu0J3VXKgAJ
Perhaps a work-around would be to provide a software possibility of freezing the unit after the kernel is down. Handy for someone who has a power-hungry cape requiring a power supply, no Ethernet and would like to safely replace the sd card. If it were possible to detect, that the unit is going to reboot anyway, the freeze could even be chosen automatically if a shutdown is requested.
It's meant to impress on the point that the hardware was designed with cost in mind, and that the software for this hardware is provided free of charge.
I am sure there is someone out in the world that would be happy to make these changes for you, if you're willing to pay their fee.
But I can sympathize, I understand where you're coming from. I've had to make software changes myself for various things I needed built into the system. Granted, I never needed this specific functionality myself, as I said in my previous post, we do not use our own boards in this specific manner. You may have to end up adapting your usage, or the software to conform to your own specific needs. But that's often how the open source world works.
USB ~~~ - compatible: ti,musb-am33xx - reg: offset and length of "USB Controller Registers", and offset and length of "USB Core" register space. - reg-names: control for the ""USB Controller Registers" and "mc" for "USB Core" register space - interrupts: USB interrupt number - interrupt-names: mc - dr_mode: Should be one of "host", "peripheral" or "otg". - mentor,multipoint: Should be "1" indicating the musb controller supports multipoint. This is a MUSB configuration-specific setting. - mentor,num-eps: Specifies the number of endpoints. This is also a MUSB configuration-specific setting. Should be set to "16" - mentor,ram-bits: Specifies the ram address size. Should be set to "12" - mentor,power: Should be "500". This signifies the controller can supply up to 500mA when operating in host mode. - phys: reference to the USB phy - dmas: specifies the dma channels - dma-names: specifies the names of the channels. Use "rxN" for receive and "txN" for transmit endpoints. N specifies the endpoint number. The controller should have an "usb" alias numbered properly in the alias node.
. . .
You can try experimenting with the "mode" I've highlighted above. You'd have to modify this board file
here: https://github.com/jadonk/cape-firmware/blob/master/arch/arm/boot/dts/am335x-bone-common.dtsi#L204
And recompile all of, or the single board file you use at boot time. Of course then you've have to move the old board file out of the way, and replace it with the one you built yourself.