Linux Shutdown command in i.MX6

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Linux Shutdown command in i.MX6

ソリューションへジャンプ
5,811件の閲覧回数
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,537件の閲覧回数
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,538件の閲覧回数
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,536件の閲覧回数
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,538件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi ko-hey

I think one can use "poweroff" command .

Best regards

igor

0 件の賞賛
返信
3,538件の閲覧回数
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,538件の閲覧回数
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 件の賞賛
返信