在线时间255 小时
UID3464804
注册时间2018-5-28
NXP金币0
TA的每日心情 | 衰 2021-2-4 09:24 |
---|
签到天数: 190 天 [LV.7]常住居民III
金牌会员
- 积分
- 2193
- 最后登录
- 2023-12-1
|
大家好:
我的imx6ull的板子,uboot和内核设备树都是基于imx6ull-14x14-evk板子修改而来,在使用yocto构建的系统的时候,可以使用poweroff进行关机,PMIC_OD_REQ引脚也能输出低电平,但是移植了debian和ubuntu系统后,使用poweroff后就不能关闭电源了,PMIC_ON_REQ一直输出高电平,请问一下大家debian系统要满足关闭电源,需要对文件系统做什么操作呢?
(onoff按键是可以开关机的,即使debian使用poweroff关机后,还是可以长按onoff按键关闭电源的)
下面是debian9使用poweroff命令后的控制台输出内容
- root@rpad_imx6:~# poweroff
- random: nonblocking pool is initialized
- Stopping User Manager for UID 0...
- [ OK ] Stopped target Timers.
- [ OK ] Stopped Daily Cleanup of Temporary Directories.
- Stopping Session c1 of user root.
- Stopping System Logging Service...
- Stopping Regular background program processing daemon...
- Stopping OpenBSD Secure Shell server...
- Stopping D-Bus System Message Bus...
- Stopping Getty on tty1...
- Stopping Getty on ttymxc0...
- [ OK ] Removed slice system-serial\x2dgetty.slice.
- [ OK ] Stopped Daily apt upgrade and clean activities.
- [ OK ] Stopped Daily apt download activities.
- [ OK ] Stopped target System Time Synchronized.
- [ OK ] Stopped System Logging Service.
- [ OK ] Stopped Regular background program processing daemon.
- [ OK ] Stopped D-Bus System Message Bus.
- [ OK ] Stopped Getty on tty1.
- [ OK ] Stopped Getty on ttymxc0.
- [ OK ] Stopped OpenBSD Secure Shell server.
- [ OK ] Stopped User Manager for UID 0.
- [ OK ] Stopped Session c1 of user root.
- [ OK ] Removed slice User Slice of root.
- Stopping Login Service...
- [ OK ] Removed slice system-getty.slice.
- Stopping Permit User Sessions...
- [ OK ] Stopped Login Service.
- [ OK ] Stopped Permit User Sessions.
- [ OK ] Stopped target Network.
- Stopping Raise network interfaces...
- [ OK ] Stopped target Remote File Systems.
- [ OK ] Stopped target Basic System.
- [ OK ] Stopped target Sockets.
- [ OK ] Closed Syslog Socket.
- [ OK ] Stopped target Paths.
- [ OK ] Stopped target Slices.
- [ OK ] Removed slice User and Session Slice.
- [ OK ] Closed D-Bus System Message Bus Socket.
- [ OK ] Stopped target System Initialization.
- [ OK ] Stopped target Swap.
- Stopping Update UTMP about System Boot/Shutdown...
- Stopping Network Time Synchronization...
- [ OK ] Stopped target Encrypted Volumes.
- [ OK ] Stopped Dispatch Password Requests to Console Directory Watch.
- [ OK ] Stopped Forward Password Requests to Wall Directory Watch.
- Stopping Load/Save Random Seed...
- [ OK ] Stopped Network Time Synchronization.
- [ OK ] Stopped Load/Save Random Seed.
- [ OK ] Stopped Update UTMP about System Boot/Shutdown.
- [ OK ] Stopped Create Volatile Files and Directories.
- [ OK ] Stopped Raise network interfaces.
- [ OK ] Stopped Apply Kernel Variables.
- [ OK ] Stopped Load Kernel Modules.
- [ OK ] Stopped target Local File Systems.
- Unmounting /run/user/0...
- [ OK ] Unmounted /run/user/0.
- [ OK ] Reached target Unmount All Filesystems.
- [ OK ] Stopped target Local File Systems (Pre).
- [ OK ] Stopped Remount Root and Kernel File Systems.
- [ OK ] Stopped Create Static Device Nodes in /dev.
- [ OK ] Reached target Shutdown.
- [ OK ] Reached target Final Step.
- Starting Power-Off...
- systemd-shutdown[1]: Sending SIGTERM to remaining processes...
- systemd-journald[79]: Received SIGTERM from PID 1 (systemd-shutdow).
- systemd-shutdown[1]: Sending SIGKILL to remaining processes...
- systemd-shutdown[1]: Unmounting file systems.
- systemd-shutdown[1]: Remounting '/' read-only with options 'errors=continue,user_xattr,acl,barrier=1,data=ordered'.
- systemd-shutdown[1]: Remounting '/' read-only with options 'errors=continue,user_xattr,acl,barrier=1,data=ordered'.
- systemd-shutdown[1]: All filesystems unmounted.
- systemd-shutdown[1]: Deactivating swaps.
- systemd-shutdown[1]: All swaps deactivated.
- systemd-shutdown[1]: Detaching loop devices.
- systemd-shutdown[1]: All loop devices detached.
- systemd-shutdown[1]: Detaching DM devices.
- systemd-shutdown[1]: All DM devices detached.
- systemd-shutdown[1]: Powering off.
- reboot: System halted
复制代码
下面是yocto文件系统使用poweroff后的控制台输出内容
- root@imx6ull14x14evk:~# poweroff
- INIT: Switching to runlevel: 0
- INIT: Sending processes the TERM signal
- The system is going down for system halt NOW!ttymxc0) (Thu Jun 22 10:03:42 20
- root@imx6ull14x14evk:~# Stopping XServer
- The X11 connection broke (error 1). Did the X11 server die?
- Stopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid 576)
- dropbear.
- * Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon [ ok ]
- Stopping advanced power management daemon: no /usr/sbin/apmd found; none killed
- apmd.
- Stopping bluetooth
- /usr/libexec/bluetooth/bluetoothd
- Stopping system message bus: dbus.
- Stopping syslogd/klogd: stopped syslogd (pid 599)
- stopped klogd (pid 603)
- done
- Stopping Connection Manager
- Stopping Telephony daemon
- ALSA: Storing mixer settings...
- /usr/sbin/alsactl: get_control:256: Cannot read control '3,0,0,IEC958 Capture Default,0': Resource temporarily unavailable
- Stopping rpcbind daemon...
- done.
- Stopping Linux NFC daemon
- Deconfiguring network interfaces... ifdown: interface eth0 not configured
- done.
- Sending all processes the TERM signal...
- logout
- Error VT_WAITACTIVE failed
- : Interrupted system call
- Sending all processes the KILL signal...
- Unmounting remote filesystems...
- Deactivating swap...
- Unmounting local filesystems...
- reboot: Power down
复制代码
|
|