Linux Shutdown command in i.MX6

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Linux Shutdown command in i.MX6

跳至解决方案
5,806 次查看
ko-hey
Senior Contributor II

Hi all

I want to know about behavior of the PMIC_STBY_REQ.

I designed my board using i.MX 6Solo.

When I use Linux "Shutdown" command, the PMIC_STBY_REQ will be "High".

Is it correct ?

What is a correct behavior when using the "Shutdown" command ?

ko-hey

标签 (2)
0 项奖励
回复
1 解答
3,532 次查看
matthewsealey
Contributor II

Hello ko-hey,

The status of the PMIC_STBY_REQ (and PMIC_ON_REQ) lines are entirely down to SNVS and CCM configuration settings and which modes will be transitioned through as a result of the kernel "reboot" system call.

The userspace command "shutdown" or "poweroff" really only calls into the kernel as above and will eventually cause something to happen which can easily be board-specific and overridden depending on the kernel version and BSP support in place - it could be the function assigned to pm_power_off() or something more complicated. Usually it will wire up a watchdog timer to reset the system - and what your system does as a result of the timer expiring is usually board-dependent.

You can find very adequate documentation on "Power mode transitions" in the i.MX6 documentation set on what the PMIC_* pin states should be for the internal SoC processes, but which ones the Linux kernel code will configure and invoke is a little more complicated.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
3,533 次查看
matthewsealey
Contributor II

Hello ko-hey,

The status of the PMIC_STBY_REQ (and PMIC_ON_REQ) lines are entirely down to SNVS and CCM configuration settings and which modes will be transitioned through as a result of the kernel "reboot" system call.

The userspace command "shutdown" or "poweroff" really only calls into the kernel as above and will eventually cause something to happen which can easily be board-specific and overridden depending on the kernel version and BSP support in place - it could be the function assigned to pm_power_off() or something more complicated. Usually it will wire up a watchdog timer to reset the system - and what your system does as a result of the timer expiring is usually board-dependent.

You can find very adequate documentation on "Power mode transitions" in the i.MX6 documentation set on what the PMIC_* pin states should be for the internal SoC processes, but which ones the Linux kernel code will configure and invoke is a little more complicated.

0 项奖励
回复
3,531 次查看
ko-hey
Senior Contributor II

Hi Matthew

Thank you  for your quick response and description.

I understand that I need to investigate the kernel.

Thank you.

ko-hey

0 项奖励
回复
3,533 次查看
igorpadykov
NXP Employee
NXP Employee

Hi ko-hey

I think one can use "poweroff" command .

Best regards

igor

0 项奖励
回复
3,533 次查看
ko-hey
Senior Contributor II

Hi Igor

This is just your info.

I tried that command but it's behavior was not change.

Anyway I have already resolved my issue.

Thank you for your Cooperation.

ko-hey

0 项奖励
回复
3,533 次查看
huyadi
Contributor I

Hi

I encounter the same issue as your, would you kind enough to tell me how to  poweroff the target? I have filled a question via

Why target fails to power off on IMX6 sabre auto

but, I can't figure out what supporter said, or, which FSL's kernel version can resolve the issue?

Yadi

0 项奖励
回复