tjjh89017
(Date Huang)
December 10, 2018, 9:02am
1
It seems there is no way to poweroff the hardware “normally”
Even I use poweroff cmd, the hardware LEDs are still on.
If I force to plug out the power supply, filesystem will be broken and some data may be lost.
PWR button doesn’t work.
So, How to Poweroff BPI-W2 “Normally”
Jackzeng
(ZB)
December 10, 2018, 10:54am
2
Hello, What image did you use? and could you provide me log?
it seems doesn’t real poweroff, I will do a test.
tjjh89017
(Date Huang)
December 10, 2018, 11:12am
3
2018-09-16-ubuntu-18.04-mate-desktop-demo-aarch64-bpi-w2-sd-emmc.img
Sorry, I don’t have any UART to USB connector.
So I will ask my friend to help me for the serial log
He meet the same problem
tjjh89017
(Date Huang)
December 10, 2018, 1:16pm
4
BPI-W2_poweroff_log.txt (122.2 KB)
attachment the log from serial
thanks Jalen
jofri
December 11, 2018, 11:40am
6
os: debian stretch
Kernel from https://github.com/BPI-SINOVOIP/BPI-W2-bsp
[ 259.877634] WARNING: CPU: 0 PID: 3512 at drivers/soc/realtek/common/rpc/rtk_rpc_kern.c:556 send_rpc_command+0x2a4/0x2e0
[ 259.888674] Modules linked in: 8822be(O) mali_kbase(O) spi_rtk129x nfsd nfs_acl
[ 259.896240]
[ 259.897772] CPU: 0 PID: 3512 Comm: bpi-w2-daemon Tainted: G O 4.9.119-BPI-W2-Kernel #3
…
[ 300.802088] kernel BUG at drivers/soc/realtek/rtd129x/rtd129x_suspend.c:357!
[ 300.809308] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[ 300.814926] Modules linked in: 8822be(O) mali_kbase(O) spi_rtk129x nfsd nfs_acl
[ 300.822490] CPU: 0 PID: 1 Comm: systemd-shutdow Tainted: G W O 4.9.119-BPI-W2-Kernel #3
before poweroff 340 mA
after poweroff 300 mA
sata-, usb-, gpio-power are not turned off
addendum:
hw rev v1.0
By pressing the pwr button for about 3-5 sec the bpi-w2 switches off.
Current consumption <10mA
rebooting is only possible with interruption of the power supply.
a schematic would help
spxu
(spxu)
December 14, 2018, 11:44am
7
yes, w2 can not power off really。this is a big bug
I confirm the problem with power off. Could you please check it?
The problem exists. Power off gracefully available only with uart debugger. You should remove power cord after system reached target "poweroff’. Or else you will have problem with fs. Every time after power loss fs corrupted and mounts with read only options.