imx6 linux 4.1.15 poweroff fail

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6 linux 4.1.15 poweroff fail

668 Views
huangpeter
Contributor II

system:linux 4.1.15

soc: imx6d

device_tree config:

    &snvs_poweroff {
         status = "okay";
      };

   1.tty shell cmd poweroff fail and tty shell can't input anything

root@HNS:~# poweroff
root@HNS:~# [ 80.477984] br-lan: port 1(eth0) entered disabled state
[ 80.498540] device eth0 left promiscuous mode
[ 80.502967] br-lan: port 1(eth0) entered disabled state
[ 80.526333] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 80.532227] device usb0 left promiscuous mode
[ 80.536739] br-lan: port 2(usb0) entered disabled state
[ 80.550448] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 85.057558] imx2-wdt 20bc000.wdog: Device shutdown: Expect reboot!
[ 85.063887] reboot: Power down
[ 86.067241] Unable to poweroff system

0 Kudos
2 Replies

534 Views
igorpadykov
NXP Employee
NXP Employee

Hi huang

what bsp used in the case, one can try Demo Images from

i.MX Software | NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

534 Views
huangpeter
Contributor II

I track code and find the code from syscon-poweroff.c(driver/power/reset). 

void syscon_poweroff(void)
{
/* Issue the poweroff */
regmap_write(map, offset, mask);

mdelay(1000);

pr_emerg("Unable to poweroff system\n");
}

0 Kudos