This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM62A7:ordered_poweroff 不会'不会复位 A53 和 MUC-R5F 内核的所有接口

Guru**** 2943170 points

Other Parts Discussed in Thread: AM62A7

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1655477/am62a7-orderly_poweroff-doesn-t-reset-all-the-interface-of-a53-and-muc-r5f-core

器件型号: AM62A7

您好、  

最近、VTM(热管理器框架)用于我们的电路板 AM62A7。 在过热 VTM 上调用 ordered_poweroff (true) 函数。 它可以清理应用层、但不会复位以太网、GPIO、PWM 等接口 这是 ORDERDY_poweroff () 的已知行为还是应该重置所有的负面?

 

此致、

Jay

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Jay、

    您可以在执行断电时共享日志吗?

    应该会暂停 Linux 驱动程序、但我需要检查是否执行了任何其他步骤。

    此致、
    Anshu

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Anshu:  

    以下是由于热关断而发生断电时的日志。  

    root@am62axx-evm:~# echo 126000 > /sys/class/thermal/thermal_zone4/emul_temp
    [   62.273879] thermal thermal_zone4: main1-thermal (126000 mC): critical temperature reached, shutting down
    [   62.273895] reboot: HARDWARE PROTECTION shutdown (Temperature too high or too low)
    root@am62axx-evm:~#          Stopping Session c1 of User root...
    [  OK  ] Removed slice Slice /system/modprobe.
    [  OK  ] Stopped target Multi-User System.
    [  OK  ] Stopped target Login Prompts.
    [  OK  ] Stopped target Network is Online.
    [  OK  ] Stopped target Host and Network Name Lookups.
    [  OK  ] Stopped target Timer Units.
    [  OK  ] Stopped Daily rotation of log files.
    [  OK  ] Stopped Daily Cleanup of Temporary Directories.
    [  OK  ] Stopped target System Time Set.
    [  OK  ] Closed Process Core Dump Socket.
    [  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
             Stopping Avahi mDNS/DNS-SD Stack...
             Stopping containerd container runtime...
             Stopping Ethernet Interface Recovery Service...
             Stopping Getty on tty1...
             Stopping Network Time Service...
             Starting Script will be run before shutdown/reboot...
    [  OK  ] Stopped Expand the rootfs …full size of the boot device..
             Stopping Serial Getty on ttyS2...
    [   62.588834] am65-cpsw-nuss 8000000.ethernet eth0: Link is Down
    [  OK  ] Stopped Wait for Network to be Configured.
             Stopping Load/Save Random Seed...
             Stopping TEE Supplicant...
    [  OK  ] Stopped OpenSSH Key Generation.
    [  OK  ] Stopped TEE Supplicant.
    [  OK  ] Stopped Ethernet Interface Recovery Service.
    [  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
    [  OK  ] Stopped containerd container runtime.
    [  OK  ] Stopped Network Time Service.
    [  OK  ] Stopped Getty on tty1.
    [  OK  ] Stopped Serial Getty on ttyS2.
    [  OK  ] Finished Script will be run before shutdown/reboot.
    [  OK  ] Stopped Load/Save Random Seed.
    [  OK  ] Stopped Session c1 of User root.
    [  OK  ] Removed slice Slice /system/getty.
    [  OK  ] Removed slice Slice /system/serial-getty.
             Stopping User Login Management...
             Stopping User Manager for UID 0...
    [  OK  ] Stopped User Manager for UID 0.
    [  OK  ] Stopped User Login Management.
             Stopping User Runtime Directory /run/user/0...
    [  OK  ] Unmounted /run/user/0.
    [  OK  ] Stopped User Runtime Directory /run/user/0.
    [  OK  ] Removed slice User Slice of UID 0.
             Stopping Permit User Sessions...
    [  OK  ] Stopped Permit User Sessions.
    [  OK  ] Stopped target Network.
    [  OK  ] Stopped target Remote File Systems.
             Stopping Network Name Resolution...
    [  OK  ] Stopped Network Name Resolution.
             Stopping Network Configuration...
    [  OK  ] Stopped Network Configuration.
    [  OK  ] Stopped target Preparation for Network.
    [  OK  ] Stopped IPv6 Packet Filtering Framework.
    [  OK  ] Stopped IPv4 Packet Filtering Framework.
    [  OK  ] Stopped target Basic System.
    [  OK  ] Stopped target Path Units.
    [  OK  ] Stopped Dispatch Password …ts to Console Directory Watch.
    [  OK  ] Stopped Forward Password R…uests to Wall Directory Watch.
    [  OK  ] Stopped target Slice Units.
    [  OK  ] Removed slice User and Session Slice.
    [  OK  ] Stopped target Socket Units.
    [  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Closed Docker Socket for the API.
    [  OK  ] Closed sshd.socket.
    [  OK  ] Closed SWUpdate socket listener.
    [  OK  ] Closed Network Service Netlink Socket.
    [  OK  ] Closed Weston socket.
             Stopping D-Bus System Message Bus...
    [  OK  ] Stopped D-Bus System Message Bus.
    [  OK  ] Closed D-Bus System Message Bus Socket.
    [  OK  ] Stopped target System Initialization.
    [  OK  ] Stopped Apply Kernel Variables.
    [  OK  ] Stopped Load Kernel Modules.
             Stopping Network Time Synchronization...
             Stopping Record System Boot/Shutdown in UTMP...
    [  OK  ] Stopped Network Time Synchronization.
    [  OK  ] Stopped Record System Boot/Shutdown in UTMP.
    [  OK  ] Stopped Create Volatile Files and Directories.
    [  OK  ] Stopped target Local File Systems.
             Unmounting /data/production...
             Unmounting /data/user...
    [   63.353803] EXT4-fs (mmcblk0p3): unmounting filesystem.
    [   63.363626] EXT4-fs (mmcblk0p4): unmounting filesystem.
             Unmounting /media/ram...
             Unmounting /run/media/rootfs_a-mmcblk0p1...
    [   63.390990] EXT4-fs (mmcblk0p1): unmounting filesystem.
             Unmounting Temporary Directory /tmp...
             Unmounting /var/volatile...
    [  OK  ] Unmounted /data/production.
    [  OK  ] Unmounted /data/user.
    [  OK  ] Unmounted /media/ram.
    [  OK  ] Unmounted /run/media/rootfs_a-mmcblk0p1.
    [  OK  ] Unmounted Temporary Directory /tmp.
    [  OK  ] Unmounted /var/volatile.
    [  OK  ] Stopped target Swaps.
    [  OK  ] Reached target Unmount All Filesystems.
    [  OK  ] Stopped File System Check on /dev/mmcblk0p1.
    [  OK  ] Removed slice Slice /system/systemd-fsck.
    [  OK  ] Stopped target Preparation for Local File Systems.
    [  OK  ] Stopped Remount Root and Kernel File Systems.
    [  OK  ] Stopped Create Static Device Nodes in /dev.
    [  OK  ] Reached target System Shutdown.
    [  OK  ] Reached target Late Shutdown Services.
    [  OK  ] Finished System Power Off.
    [  OK  ] Reached target System Power Off.
    [   63.638321] systemd-shutdown[1]: Syncing filesystems and block devices.
    [   63.644991] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [   63.659423] systemd-journald[179]: Received SIGTERM from PID 1 (systemd-shutdow).
    [   63.660966] audit: type=1335 audit(1781586814.791:6): pid=179 uid=0 auid=4294967295 tty=(none) ses=4294967295 comm="systemd-journal" exe="/lib/systemd/systemd-journald" nl-mcgrp=1 op=disconnect res=1
    [   63.691024] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [   63.701699] systemd-shutdown[1]: Unmounting file systems.
    [   63.703981] [895]: Remounting '/' read-only with options 'n/a'.
    [   63.717083] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
    [   63.720994] systemd-shutdown[1]: All filesystems unmounted.
    [   63.721010] systemd-shutdown[1]: Deactivating swaps.
    [   63.721182] systemd-shutdown[1]: All swaps deactivated.
    [   63.721190] systemd-shutdown[1]: Detaching loop devices.
    [   63.724504] systemd-shutdown[1]: All loop devices detached.
    [   63.724518] systemd-shutdown[1]: Stopping MD devices.
    [   63.724768] systemd-shutdown[1]: All MD devices stopped.
    [   63.724776] systemd-shutdown[1]: Detaching DM devices.
    [   63.724966] systemd-shutdown[1]: All DM devices detached.
    [   63.724975] systemd-shutdown[1]: All filesystems, swaps, loop devices, MD devices and DM devices detached.
    [   63.730718] systemd-shutdown[1]: Syncing filesystems and block devices.
    [   63.731529] systemd-shutdown[1]: Powering off.
    [   63.819848] reboot: Power down

    我可以看到、驱动器没有像以前那样被移除/挂起、因为以太网指示 LED 和 PWM LED 亮起。 此外、摄像头传感器的电源仍处于开启状态、并由 GPIO 控制。 如果.remove 功能执行正常、摄像机电源应关闭。

    如果我方面还需要其他任何东西、请允许我这样做。

    此致、

    Jay

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Jay:

    一个后续问题:

    不会重置以太网、GPIO、PWM 等接口

    您能解释一下期望它做什么吗? 您是否希望这些外设完全关闭? 这些 IO 的 PMIC 电源轨是否发生了变化?

    此致、

    Anshu