查看: 3349|回复: 6

[求助] imx6ull移植debian文件系统后poweroff不能关闭电源

[复制链接]
  • TA的每日心情

    2021-2-4 09:24
  • 签到天数: 190 天

    [LV.7]常住居民III

    38

    主题

    591

    帖子

    28

    金牌会员

    Rank: 6Rank: 6

    积分
    2193
    最后登录
    2023-12-1
    发表于 2020-5-30 23:25:23 | 显示全部楼层 |阅读模式
    大家好:
    我的imx6ull的板子,uboot和内核设备树都是基于imx6ull-14x14-evk板子修改而来,在使用yocto构建的系统的时候,可以使用poweroff进行关机,PMIC_OD_REQ引脚也能输出低电平,但是移植了debian和ubuntu系统后,使用poweroff后就不能关闭电源了,PMIC_ON_REQ一直输出高电平,请问一下大家debian系统要满足关闭电源,需要对文件系统做什么操作呢?

    (onoff按键是可以开关机的,即使debian使用poweroff关机后,还是可以长按onoff按键关闭电源的)

    下面是debian9使用poweroff命令后的控制台输出内容
    1. root@rpad_imx6:~# poweroff
    2. random: nonblocking pool is initialized
    3.          Stopping User Manager for UID 0...
    4. [  OK  ] Stopped target Timers.
    5. [  OK  ] Stopped Daily Cleanup of Temporary Directories.
    6.          Stopping Session c1 of user root.
    7.          Stopping System Logging Service...
    8.          Stopping Regular background program processing daemon...
    9.          Stopping OpenBSD Secure Shell server...
    10.          Stopping D-Bus System Message Bus...
    11.          Stopping Getty on tty1...
    12.          Stopping Getty on ttymxc0...
    13. [  OK  ] Removed slice system-serial\x2dgetty.slice.
    14. [  OK  ] Stopped Daily apt upgrade and clean activities.
    15. [  OK  ] Stopped Daily apt download activities.
    16. [  OK  ] Stopped target System Time Synchronized.
    17. [  OK  ] Stopped System Logging Service.
    18. [  OK  ] Stopped Regular background program processing daemon.
    19. [  OK  ] Stopped D-Bus System Message Bus.
    20. [  OK  ] Stopped Getty on tty1.
    21. [  OK  ] Stopped Getty on ttymxc0.
    22. [  OK  ] Stopped OpenBSD Secure Shell server.
    23. [  OK  ] Stopped User Manager for UID 0.
    24. [  OK  ] Stopped Session c1 of user root.
    25. [  OK  ] Removed slice User Slice of root.
    26.          Stopping Login Service...
    27. [  OK  ] Removed slice system-getty.slice.
    28.          Stopping Permit User Sessions...
    29. [  OK  ] Stopped Login Service.
    30. [  OK  ] Stopped Permit User Sessions.
    31. [  OK  ] Stopped target Network.
    32.          Stopping Raise network interfaces...
    33. [  OK  ] Stopped target Remote File Systems.
    34. [  OK  ] Stopped target Basic System.
    35. [  OK  ] Stopped target Sockets.
    36. [  OK  ] Closed Syslog Socket.
    37. [  OK  ] Stopped target Paths.
    38. [  OK  ] Stopped target Slices.
    39. [  OK  ] Removed slice User and Session Slice.
    40. [  OK  ] Closed D-Bus System Message Bus Socket.
    41. [  OK  ] Stopped target System Initialization.
    42. [  OK  ] Stopped target Swap.
    43.          Stopping Update UTMP about System Boot/Shutdown...
    44.          Stopping Network Time Synchronization...
    45. [  OK  ] Stopped target Encrypted Volumes.
    46. [  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
    47. [  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
    48.          Stopping Load/Save Random Seed...
    49. [  OK  ] Stopped Network Time Synchronization.
    50. [  OK  ] Stopped Load/Save Random Seed.
    51. [  OK  ] Stopped Update UTMP about System Boot/Shutdown.
    52. [  OK  ] Stopped Create Volatile Files and Directories.
    53. [  OK  ] Stopped Raise network interfaces.
    54. [  OK  ] Stopped Apply Kernel Variables.
    55. [  OK  ] Stopped Load Kernel Modules.
    56. [  OK  ] Stopped target Local File Systems.
    57.          Unmounting /run/user/0...
    58. [  OK  ] Unmounted /run/user/0.
    59. [  OK  ] Reached target Unmount All Filesystems.
    60. [  OK  ] Stopped target Local File Systems (Pre).
    61. [  OK  ] Stopped Remount Root and Kernel File Systems.
    62. [  OK  ] Stopped Create Static Device Nodes in /dev.
    63. [  OK  ] Reached target Shutdown.
    64. [  OK  ] Reached target Final Step.
    65.          Starting Power-Off...
    66. systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    67. systemd-journald[79]: Received SIGTERM from PID 1 (systemd-shutdow).
    68. systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    69. systemd-shutdown[1]: Unmounting file systems.
    70. systemd-shutdown[1]: Remounting '/' read-only with options 'errors=continue,user_xattr,acl,barrier=1,data=ordered'.
    71. systemd-shutdown[1]: Remounting '/' read-only with options 'errors=continue,user_xattr,acl,barrier=1,data=ordered'.
    72. systemd-shutdown[1]: All filesystems unmounted.
    73. systemd-shutdown[1]: Deactivating swaps.
    74. systemd-shutdown[1]: All swaps deactivated.
    75. systemd-shutdown[1]: Detaching loop devices.
    76. systemd-shutdown[1]: All loop devices detached.
    77. systemd-shutdown[1]: Detaching DM devices.
    78. systemd-shutdown[1]: All DM devices detached.
    79. systemd-shutdown[1]: Powering off.
    80. reboot: System halted
    复制代码


    下面是yocto文件系统使用poweroff后的控制台输出内容
    1. root@imx6ull14x14evk:~# poweroff
    2. INIT: Switching to runlevel: 0
    3. INIT: Sending processes the TERM signal

    4. The system is going down for system halt NOW!ttymxc0) (Thu Jun 22 10:03:42 20
    5. root@imx6ull14x14evk:~# Stopping XServer
    6. The X11 connection broke (error 1). Did the X11 server die?
    7. Stopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid 576)
    8. dropbear.
    9. * Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon                          [ ok ]
    10. Stopping advanced power management daemon: no /usr/sbin/apmd found; none killed
    11. apmd.
    12. Stopping bluetooth
    13. /usr/libexec/bluetooth/bluetoothd
    14. Stopping system message bus: dbus.
    15. Stopping syslogd/klogd: stopped syslogd (pid 599)
    16. stopped klogd (pid 603)
    17. done
    18. Stopping Connection Manager
    19. Stopping Telephony daemon
    20. ALSA: Storing mixer settings...
    21. /usr/sbin/alsactl: get_control:256: Cannot read control '3,0,0,IEC958 Capture Default,0': Resource temporarily unavailable
    22. Stopping rpcbind daemon...
    23. done.
    24. Stopping Linux NFC daemon
    25. Deconfiguring network interfaces... ifdown: interface eth0 not configured
    26. done.
    27. Sending all processes the TERM signal...
    28. logout
    29. Error VT_WAITACTIVE failed
    30. : Interrupted system call
    31. Sending all processes the KILL signal...
    32. Unmounting remote filesystems...
    33. Deactivating swap...
    34. Unmounting local filesystems...
    35. reboot: Power down
    复制代码


    我知道答案 目前已有6人回答
    哎...今天够累的,签到来了~
    回复

    使用道具 举报

    该用户从未签到

    2

    主题

    108

    帖子

    0

    中级会员

    Rank: 3Rank: 3

    积分
    281
    最后登录
    2020-9-10
    发表于 2020-5-31 21:24:37 | 显示全部楼层
    用shutdown命令可以关机吗?
    回复 支持 反对

    使用道具 举报

  • TA的每日心情

    2021-2-4 09:24
  • 签到天数: 190 天

    [LV.7]常住居民III

    38

    主题

    591

    帖子

    28

    金牌会员

    Rank: 6Rank: 6

    积分
    2193
    最后登录
    2023-12-1
     楼主| 发表于 2020-6-1 10:28:31 | 显示全部楼层
    dianyu99 发表于 2020-5-31 21:24
    用shutdown命令可以关机吗?

    shutdown  poweroff都能关闭系统   但是没法关闭PMIC_ON_REQ引脚的电源
    哎...今天够累的,签到来了~
    回复 支持 反对

    使用道具 举报

  • TA的每日心情

    2021-2-4 09:24
  • 签到天数: 190 天

    [LV.7]常住居民III

    38

    主题

    591

    帖子

    28

    金牌会员

    Rank: 6Rank: 6

    积分
    2193
    最后登录
    2023-12-1
     楼主| 发表于 2020-6-1 18:50:12 | 显示全部楼层
    顶一下
    哎...今天够累的,签到来了~
    回复

    使用道具 举报

    该用户从未签到

    2

    主题

    108

    帖子

    0

    中级会员

    Rank: 3Rank: 3

    积分
    281
    最后登录
    2020-9-10
    发表于 2020-6-4 22:28:54 | 显示全部楼层
    debian系统没搞过,不甚了解
    帮顶,
    回复 支持 反对

    使用道具 举报

  • TA的每日心情

    2021-2-4 09:24
  • 签到天数: 190 天

    [LV.7]常住居民III

    38

    主题

    591

    帖子

    28

    金牌会员

    Rank: 6Rank: 6

    积分
    2193
    最后登录
    2023-12-1
     楼主| 发表于 2020-6-5 17:37:26 | 显示全部楼层
    dianyu99 发表于 2020-6-4 22:28
    debian系统没搞过,不甚了解
    帮顶,

    谢谢,我再问问别人
    哎...今天够累的,签到来了~
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    0

    主题

    2

    帖子

    0

    新手上路

    Rank: 1

    积分
    7
    最后登录
    2023-7-17
    发表于 2023-7-17 11:40:31 | 显示全部楼层
    你好,请问无法关机的问题解决了咩?
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /4 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2024-4-19 12:22 , Processed in 0.146937 second(s), 26 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表