Ixora board does not power ON after software poweroff

Running a Linux system BSP 5 on Ixora and Apalis iMX8
After a software poweroff of the system with the command poweroff is no longer possible to switch on the board pressing power button SW1.

Note: If the Ixora is shut down by pressing power button SW1, the board turns on at the next power button press as expected.

Could you please provide more details?

  • Full name of Apalis imX8 module and its HW revision
  • Exact BSP version. ( For example: Linux Reference Minimal Downstream SoC vendor based kernel Wayland/XWayland graphics back-end supported but not included [5.5.0+build.15] )
  • Version Of Ixora board
  • Log from debug UART from boot to shutdown including attempts to press power button after shutdown

Apalis 1.1.C
Ixora 1.2.A
BSP : repo init -u https://git.toradex.com/toradex-manifest.git -b dunfell-5.x.y -m tdxref/default.xml

Configuration

$ bitbake tdx-reference-minimal-image

Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-tdx-linux"
MACHINE              = "apalis-imx8"
DISTRO               = "tdx-xwayland-rt"
DISTRO_VERSION       = "5.5.0-devel-20220309081435+build.0"
TUNE_FEATURES        = "aarch64"
TARGET_FPU           = ""

The log is not important because after shut down is no longer possible to power on the board pressing power button SW1.

You can easily try yourself to reproduce the problem.

Thank you

root@localhost:~# poweroff 
         Stoppi[  OK  ] Stopped target Multi-User System.
[  OK  ] Stopped target Login Prompts.
[  OK  ] Stopped target Host and Network Name Lookups.
[  OK  ] Stopped target RPC Port Mapper.
[  OK  ] Stopped target Sound Card.
[  OK  ] Stopped target System Time Synchronized.
[  OK  ] Stopped target System Time Set.
[  OK  ] Stopped target Timers.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Stopped target Hardware activated USB gadget.
[  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Stopping Save/Restore Sound Card State...
         Stopping Avahi mDNS/DNS-SD Stack...
         Stopping Bluetooth service...
         Stopping Kernel Logging Service...
         Stopping System Logging Service...
         Stopping Getty on tty1...
         Stopping Telephony service...
         Stopping Serial Getty on ttyLP1...
         Stopping Load/Save Random Seed...
         Stopping Vsftpd ftp daemon...
[  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
[  OK  ] Stopped Kernel Logging Service.
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped Telephony service.
[  OK  ] Stopped Vsftpd ftp daemon.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Serial Getty on ttyLP1.
[  OK  ] Stopped Bluetooth service.
[  OK  ] Stopped Save/Restore Sound Card State.
[  OK  ] Stopped Load/Save Random Seed.
[  OK  ] Stopped Session c1 of user root.
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Removed slice system-serial\x2dgetty.slice.
         Stopping Login Service...
         Stopping User Manager for UID 0...
[  OK  ] Stopped User Manager for UID 0.
         Stopping User Runtime Directory /run/user/0...
[  OK  ] Unmounted /run/user/0.
[  OK  ] Stopped User Runtime Directory /run/user/0.
[  OK  ] Stopped Login Service.
[  OK  ] Removed slice User Slice of UID 0.
         Stopping D-Bus System Message Bus...
         Stopping Permit User Sessions...
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Network.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped Dispatch Password …ts to Console Directory Watch.
[  OK  ] Stopped Forward Password R…uests to Wall Directory Watch.
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped target Slices.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Closed sshd.socket.
[  OK  ] Stopped target System Initialization.
[  OK  ] Closed Syslog Socket.
         Stopping Hardware RNG Entropy Gatherer Daemon...
         Stopping Load/Save Screen …ness of backlight:backlight...
[  OK  ] Stopped Commit a transient machine-id on disk.
         Stopping Network Name Resolution...
         Stopping Network Time Synchronization...
[  OK  ] Stopped Update is Completed.
[  OK  ] Stopped Rebuild Dynamic Linker Cache.
[  OK  ] Stopped Rebuild Journal Catalog.
         Stopping Update UTMP about System Boot/Shutdown...
[  OK  ] Stopped Network Time Synchronization.
[  OK  ] Stopped Network Name Resolution.
[  OK  ] Stopped Hardware RNG Entropy Gatherer Daemon.
[  OK  ] Stopped Load/Save Screen B…htness of backlight:backlight.
[  OK  ] Removed slice system-systemd\x2dbacklight.slice.
         Stopping Network Service...
[  OK  ] Stopped Update UTMP about System Boot/Shutdown.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped target Local File Systems.
         Unmounting Temporary Directory (/tmp)...
         Unmounting /var/volatile...
[  OK  ] Stopped Network Service.
[  OK  ] Unmounted Temporary Directory (/tmp).
[  OK  ] Unmounted /var/volatile.
[  OK  ] Stopped target Local File Systems (Pre).
[  OK  ] Stopped target Swap.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped Load Kernel Modules.
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Stopped Create System Users.
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Stopped File System Check on Root Device.
[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
[  OK  ] Started Power-Off.
[  OK  ] Reached target Power-Off.
[ 1397.667181] 001: systemd-shutdown[1]: Syncing filesystems and block devices.
[ 1397.697185] 001: systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 1397.718395] 000: systemd-journald[431]: Received SIGTERM from PID 1 (systemd-shutdow).
[ 1397.733754] 001: systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 1397.758798] 001: systemd-shutdown[1]: Unmounting file systems.
[ 1397.761375] 004: [661]: Remounting '/' read-only in with options '(null)'.
[ 1397.775715] 004: EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[ 1397.778682] 001: systemd-shutdown[1]: All filesystems unmounted.
[ 1397.778694] 001: systemd-shutdown[1]: Deactivating swaps.
[ 1397.778792] 001: systemd-shutdown[1]: All swaps deactivated.
[ 1397.778801] 001: systemd-shutdown[1]: Detaching loop devices.
[ 1397.782638] 001: systemd-shutdown[1]: All loop devices detached.
[ 1397.782650] 001: systemd-shutdown[1]: Detaching DM devices.
[ 1397.783011] 001: systemd-shutdown[1]: All DM devices detached.
[ 1397.783023] 001: systemd-shutdown[1]: All filesystems, swaps, loop devices and DM devices detached.
[ 1397.794117] 001: systemd-shutdown[1]: Syncing filesystems and block devices.
[ 1397.795166] 001: systemd-shutdown[1]: Powering off.
[ 1397.795176] 001: kvm: exiting hardware virtualization
[ 1397.854636] 001: mwifiex_pcie 0000:01:00.0: info: shutdown mwifiex...
[ 1397.896276] 001: mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
[ 1397.976154] 002: mwifiex_pcie 0000:01:00.0: performing cancel_work_sync()...
[ 1397.976160] 002: mwifiex_pcie 0000:01:00.0: cancel_work_sync() done
[ 1397.999261] 002: ci_hdrc ci_hdrc.1: remove, state 1
[ 1397.999278] 002: usb usb3: USB disconnect, device number 1
[ 1397.999284] 002: usb 3-1: USB disconnect, device number 2
[ 1397.999289] 002: usb 3-1.1: USB disconnect, device number 3
[ 1398.003508] 000: ci_hdrc ci_hdrc.1: USB bus 3 deregistered

hello koan,

this behavior is expected. The IXORA board has an LTC push button controller on board. When you press the button the controller turns on the supply voltages for the SOM. in return the SOM module starts. The SOM modules are built the way that they start as soon as the get the supply voltage.
When you power down the SOM via software the external push button controller does not know about it and the power for the SOM stays on. Too turn on the SOM again it needs a full power cycle. so long press the power button to shut down and then press again.

If you want to power down the IXORA board together with the SOM there is a dedicated power force of pin to the LTC push button controller on the IXORA.

It is located on the IXORA connector X5.

Now you connect this pin to a GPIO from the SOM module and you assign a shut down fuctionality to this GPIO according to the following manual.

When you now do a software shut down the last thing which is happening is that the force off GPIO shuts down the power to the board.

Best Regards,

Matthias

1 Like