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.

J721EXCPXEVM: poweroff command does not work on top of the problematic J721EXCPXEVM board

Part Number: J721EXCPXEVM

Hi TI 

A customer reported an issue regarding poweroff comand failure on their problematic CP board.

The following test result is observed depending on board.

CP board                               SOM board                              Result

-----------------------------------------------------------------------------

Arrow' PROC079E3D             Customer' PROC105E6          OK

Arrow' PROC079E3D             Arrow' PROC105E8                OK

Customer' PROC079E3D       Customer' PROC105E6          NG

Customer' PROC079E3D       Arrow' PROC105E8                 NG

It seems there's problems on the customer' CP board. It does not work for USB3.0 as well.

The followings are logs captured during poweroff command test.

*Normal case

root@j7200-evm:~# poweroff
         Stopping Session c1 of user root.
[  OK  ] Stopped target Login Prompts.
[  OK  ] Stopped target RPC Port Mapper.
[  OK  ] Stopped target Timers.
[  OK  ] Stopped Daily rotation of log files.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Stopping Job spooling tools...
         Stopping Avahi mDNS/DNS-SD Stack...
         Stopping Periodic Command Scheduler...
         Stopping Ethernet Bridge Filtering Tables...
         Stopping Getty on tty1...
         Stopping irqbalance daemon...
         Stopping Reboot and dump vmcore via kexec...
         Stopping NFS status monitor for NFSv2/3 locking....
         Stopping Telephony service...
         Stopping Serial Getty on ttyS2...
         Stopping Serial Getty on ttyS3...
         Stopping Simple Network Management Protocol (SNMP) Daemon....
         Stopping System Logger Daemon "default" instance...
         Stopping Load/Save Random Seed...
         Starting Update UTMP about System Runlevel Changes...
         Stopping TEE Supplicant...
[  OK  ] Stopped target System Time Synchronized.
[  OK  ] Stopped target System Time Set.
         Stopping syslog.service...
         Stopping Vsftpd ftp daemon...
[  OK  ] Stopped Job spooling tools.
[  OK  ] Stopped Periodic Command Scheduler.
[  OK  ] Stopped irqbalance daemon.
[  OK  ] Stopped TEE Supplicant.
[  OK  ] Stopped Wait for Network to be Configured.
[  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
[  OK  ] Stopped NFS status monitor for NFSv2/3 locking..
[  OK  ] Stopped Vsftpd ftp daemon.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Serial Getty on ttyS2.
[  OK  ] Stopped Serial Getty on ttyS3.
[  OK  ] Stopped Telephony service.
[  OK  ] Stopped syslog.service.
[  OK  ] Stopped Session c1 of user root.
[  OK  ] Started Update UTMP about System Runlevel Changes.
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Removed slice system-serial\x2dgetty.slice.
[  OK  ] Stopped target Host and Network Name Lookups.
         Stopping Login Service...
         Stopping telnetd.service...
         Stopping User Manager for UID 0...
[  OK  ] Stopped telnetd.service.
[  OK  ] Stopped System Logger Daemon "default" instance.
[  OK  ] Removed slice system-syslog\x2dng.slice.
[  OK  ] Stopped Login Service.
[  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 Reboot and dump vmcore via kexec.
[  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 Load/Save Random Seed.
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped Simple Network Man…ement Protocol (SNMP) Daemon..
[  OK  ] Stopped target Network.
         Stopping Network Name Resolution...
[  OK  ] Stopped Network Name Resolution.
         Stopping Network Service...
[  OK  ] Stopped Network Service.
[  OK  ] Stopped target Network (Pre).
[  OK  ] Stopped IPv6 Packet Filtering Framework.
[  OK  ] Stopped IPv4 Packet Filtering Framework.
[  OK  ] Stopped Ethernet Bridge Filtering Tables.
[  OK  ] Stopped target Basic System.
[  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 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 Docker Socket for the API.
[  OK  ] Closed dropbear.socket.
[  OK  ] Stopped target System Initialization.
         Stopping Hardware RNG Entropy Gatherer Daemon...
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped Load Kernel Modules.
         Stopping Network Time Synchronization...
[  OK  ] Stopped Hardware RNG Entropy Gatherer Daemon.
[  OK  ] Stopped Network Time Synchronization.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped target Local File Systems.
         Unmounting /media/ram...
         Unmounting /run/media/mmcblk0p1...
         Unmounting /run/media/mmcblk0p2...
         Unmounting /run/media/mmcblk1p1...
         Unmounting Temporary Directory (/tmp)...
         Unmounting /var/volatile...
[  OK  ] Unmounted /media/ram.
[  OK  ] Unmounted /run/media/mmcblk0p1.
[  OK  ] Unmounted /run/media/mmcblk0p2.
[  OK  ] Unmounted /run/media/mmcblk1p1.
[  OK  ] Unmounted Temporary Directory (/tmp).
[  OK  ] Unmounted /var/volatile.
[  OK  ] Stopped target Swap.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped File System Check on /dev/mmcblk0p1.
[  OK  ] Stopped File System Check on /dev/mmcblk0p2.
[  OK  ] Stopped File System Check on /dev/mmcblk1p1.
[  OK  ] Removed slice system-systemd\x2dfsck.slice.
[  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.
[  OK  ] Started Power-Off.
[  OK  ] Reached target Power-Off.
[   24.100065] systemd-shutdown[1]: Syncing filesystems and block devices.
[   24.370907] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[   24.383257] systemd-journald[164]: Received SIGTERM from PID 1 (systemd-shutdow).
[   24.395960] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[   24.408013] systemd-shutdown[1]: Unmounting file systems.
[   24.415195] [1097]: Remounting '/' read-only in with options '(null)'.
[   24.502481] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[   24.511903] systemd-shutdown[1]: All filesystems unmounted.
[   24.517508] systemd-shutdown[1]: Deactivating swaps.
[   24.522595] systemd-shutdown[1]: All swaps deactivated.
[   24.527829] systemd-shutdown[1]: Detaching loop devices.
[   24.535098] systemd-shutdown[1]: All loop devices detached.
[   24.540692] systemd-shutdown[1]: Detaching DM devices.
[   24.546025] systemd-shutdown[1]: All DM devices detached.
[   24.551427] systemd-shutdown[1]: All filesystems, swaps, loop devices and DM devices detached.
[   24.569977] systemd-shutdown[1]: Syncing filesystems and block devices.
[   24.576690] systemd-shutdown[1]: Powering off.
[   24.604745] reboot: Power down

*Failure case

root@j7200-evm:~# poweroff
         Stopping Session c1 of user root.
[  OK  ] Stopped target Multi-User System.
[  OK  ] Stopped target Login Prompts.
[  OK  ] Stopped target RPC Port Mapper.
[  OK  ] Stopped target Timers.
[  OK  ] Stopped Daily rotation of log files.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Stopping Job spooling tools...
         Stopping Avahi mDNS/DNS-SD Stack...
         Stopping Periodic Command Scheduler...
         Stopping Docker Application Container Engine...
         Stopping Ethernet Bridge Filtering Tables...
         Stopping Getty on tty1...
         Stopping irqbalance daemon...
         Stopping Reboot and dump vmcore via kexec...
         Stopping NFS status monitor for NFSv2/3 locking....
         Stopping Telephony service...
         Stopping Serial Getty on ttyS2...
         Stopping Serial Getty on ttyS3...
         Stopping Simple Network Ma…ent Protocol (SNMP) Daemon....
         Stopping strongSwan IPsec …Ev2 daemon using ipsec.conf...
         Stopping System Logger Daemon "default" instance...
         Stopping Load/Save Random Seed...
         Stopping TEE Supplicant...
         Stopping thermal-zone-init.service...
         Stopping Vsftpd ftp daemon...
[  OK  ] Stopped Job spooling tools.
[  OK  ] Stopped Periodic Command Scheduler.
[  OK  ] Stopped irqbalance daemon.
[  OK  ] Stopped Telephony service.
[  OK  ] Stopped System Logger Daemon "default" instance.
[  OK  ] Stopped TEE Supplicant.
[  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
[  OK  ] Stopped NFS status monitor for NFSv2/3 locking..
[  OK  ] Stopped Simple Network Man…ement Protocol (SNMP) Daemon..
[  OK  ] Stopped Vsftpd ftp daemon.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Serial Getty on ttyS2.
[  OK  ] Stopped Serial Getty on ttyS3.
[  OK  ] Stopped strongSwan IPsec I…IKEv2 daemon using ipsec.conf.
[  OK  ] Stopped Ethernet Bridge Filtering Tables.
[  OK  ] Stopped Reboot and dump vmcore via kexec.
[  OK  ] Stopped Load/Save Random Seed.
[  OK  ] Stopped thermal-zone-init.service.
[  OK  ] Stopped Session c1 of user root.
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Removed slice system-serial\x2dgetty.slice.
[  OK  ] Removed slice system-syslog\x2dng.slice.
         Stopping LSB: start and stop docker...
         Stopping LSB: network benchmark...
         Stopping syslog.service...
         Stopping Login Service...
         Stopping User Manager for UID 0...
[  OK  ] Stopped User Manager for UID 0.
[  OK  ] Stopped LSB: start and stop docker.
[  OK  ] Stopped LSB: network benchmark.
[  OK  ] Stopped syslog.service.
[  OK  ] Stopped target Host and Network Name Lookups.
[  OK  ] Stopped target System Time Synchronized.
[  OK  ] Stopped target System Time Set.
         Stopping telnetd.service...
         Stopping User Runtime Directory /run/user/0...
[  OK  ] Unmounted /run/user/0.
[  OK  ] Stopped telnetd.service.
[  OK  ] Stopped User Runtime Directory /run/user/0.
[  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 Login Service.
[  OK  ] Stopped Docker Application Container Engine.
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped target Network is Online.
[  OK  ] Stopped target Network.
[  OK  ] Stopped target Remote File Systems.
         Stopping Network Name Resolution...
[  OK  ] Stopped Network Name Resolution.
         Stopping Network Service...
[  OK  ] Stopped Network Service.
[  OK  ] Stopped target Network (Pre).
[  OK  ] Stopped IPv6 Packet Filtering Framework.
[  OK  ] Stopped IPv4 Packet Filtering Framework.
[  OK  ] Stopped target Basic System.
[  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 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 Docker Socket for the API.
[  OK  ] Closed dropbear.socket.
[  OK  ] Stopped target System Initialization.
         Stopping Hardware RNG Entropy Gatherer Daemon...
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped Load Kernel Modules.
         Stopping Network Time Synchronization...
[  OK  ] Stopped Network Time Synchronization.
[  OK  ] Stopped Hardware RNG Entropy Gatherer Daemon.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped target Local File Systems.
         Unmounting /media/ram...
         Unmounting /run/media/mmcblk0p3...
         Unmounting Temporary Directory (/tmp)...
         Unmounting /var/volatile...
[  OK  ] Unmounted /media/ram.
[  OK  ] Unmounted /run/media/mmcblk0p3.
[  OK  ] Unmounted Temporary Directory (/tmp).
[  OK  ] Unmounted /var/volatile.
[  OK  ] Stopped target Swap.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped File System Check on /dev/mmcblk0p3.
[  OK  ] Removed slice system-systemd\x2dfsck.slice.
[  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.
[  OK  ] Started Power-Off.
[  OK  ] Reached target Power-Off.
[  197.892534] systemd-shutdown[1]: Syncing filesystems and block devices.
[  197.910544] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[  197.921712] systemd-journald[152]: Received SIGTERM from PID 1 (systemd-shutdow).
[  197.934979] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[  197.946437] systemd-shutdown[1]: Unmounting file systems.
[  197.953802] [1279]: Remounting '/' read-only in with options '(null)'.
[  197.972933] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  197.979839] systemd-shutdown[1]: All filesystems unmounted.
[  197.985538] systemd-shutdown[1]: Deactivating swaps.
[  197.990663] systemd-shutdown[1]: All swaps deactivated.
[  197.995912] systemd-shutdown[1]: Detaching loop devices.
[  198.003569] systemd-shutdown[1]: All loop devices detached.
[  198.009162] systemd-shutdown[1]: Detaching DM devices.
[  198.014498] systemd-shutdown[1]: All DM devices detached.
[  198.019902] systemd-shutdown[1]: All filesystems, swaps, loop devices and DM devices detached.
[  198.035582] systemd-shutdown[1]: Syncing filesystems and block devices.
[  198.042350] systemd-shutdown[1]: Powering off.
[  198.065714] reboot: Power down
ERROR:   System Off: operation not handled.

Please help us to find the reason of failure. 

Customer's CP board has the same revision#, But it does not work for poweroff command as well as USB3 via type-C.

Plz let us know how to handle the problematic board which was purchased from ti.com.

Is it possible for us to send the board to RMA team for board repair.

Thanks.

Regards, 

Jack

  • Jack,

    The last message in the failing case does give the clues. The customer cp board image does not seem to have the PMIC driver configs enabled. As the poweroff control still seems to be going to ATF as against kernel PMIC driver. Can you double check that?

    Regards,

    Keerthy

  • Hi Keerthy

    Can you please help me to contain CONFIG_MFD_TPS6594X in /proc/config.gz ?

    I cam not find CONFIG_MFD_TPS6594X in /proc/config.gz although I set it to tisdk_j7200-evm_defconfig

    .config file also has the valid config setup as I did it into defconfig. 

    I did try the following steps.

    1. Modify CONFIG_MFD_TPS6594X=y for kernel built-in driver.

    2. make 

    3. make install
    # sudo -E BOOTFS=/media/$USER/boot DESTDIR=/media/$USER/rootfs make install

    Thanks.

    Regards, 

    Jack

  • HI Jack,

    Poweroff is currently not supported for J721e. I believe you are not using j7200 but using j721e. Can you please confirm that?

    Subject states: 

    J721EXCPXEVM: poweroff command does not work on top of the problematic J721EXCPXEVM board

    Can you please confirm which SoC/Board is being used|

    - Keerthy