Linux Shutdown command in i.MX6

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

Linux Shutdown command in i.MX6

Jump to solution
4,956 Views
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

Labels (2)
0 Kudos
Reply
1 Solution
2,682 Views
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.

View solution in original post

0 Kudos
Reply
5 Replies
2,683 Views
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 Kudos
Reply
2,681 Views
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 Kudos
Reply
2,683 Views
igorpadykov
NXP Employee
NXP Employee

Hi ko-hey

I think one can use "poweroff" command .

Best regards

igor

0 Kudos
Reply
2,683 Views
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 Kudos
Reply
2,683 Views
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 Kudos
Reply