<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13461</bug_id>
          
          <creation_ts>2019-07-30 08:29:47 +0000</creation_ts>
          <short_desc>[2.8 M2 RC1] beaglebone can not poweroff when run &quot;shutdown -h now&quot;</short_desc>
          <delta_ts>2019-09-26 02:21:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-meta-yocto</component>
          <version>0.0.0</version>
          <rep_platform>BeagleBone</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.8 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Kevin Hao">kexin.hao</assigned_to>
          <cc>ee.peng.yeoh</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84549</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2019-07-30 08:29:47 +0000</bug_when>
    <thetext>Image location: https://autobuilder.yocto.io/pub/releases/yocto-2.8_M2.rc1/machines/beaglebone-yocto/

Git rev: master/835f7eac0610325e906591cd81890bebe8627580

Steps:
1. Download the wic image from the above site
2. dd the image to MircoSD card
3. Boot up the board
4. Run command &quot;shutdown -h now&quot;

After run command &quot;shutdown -h now&quot;, all processes are stopped but at the end the board can not power off. The screen hangs on the splash image.
There is no such issue in previous build.

Here is the log:

root@beaglebone-yocto:~# shutdown -h now

The system is going down for system halt NOW!(ttyS0) (Tue Jul 30 08:24:08 201
INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
root@beaglebone-yocto:~# Stopping OpenBSD Secure Shell server: sshdstopped /usr/sbin/sshd (pid 545)
.
[ ok ]pping Avahi mDNS/DNS-SD Daemon: avahi-daemon
Stopping atd: OK
Stopping bluetooth: bluetoothd.
Stopping system message bus: dbus.
Stopping syslogd/klogd: stopped syslogd (pid 578)
stopped klogd (pid 581)
done
Stopping tcf-agent: OK
Stopping XServer
xinit: connection to X server lost

waiting for X server to shut down dbus-daemon[669]: Reloaded configuration
(II) Server terminated successfully (0). Closing log file.

xinit: unexpected signal 15
Stopping Connection Manager
Stopping Telephony daemon
cpsw 4a100000.ethernet eth0: Link is Down
Stopping random number generator daemon.
ALSA: Storing mixer settings...
Failed to stop kdump!
Stopping crond: OK
Stopping rpcbind daemon...
done.
Stopping Linux NFC daemon
Deconfiguring network interfaces... 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...
EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84552</commentid>
    <comment_count>1</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2019-08-01 00:27:10 +0000</bug_when>
    <thetext>Same issue happening on genericx86-64.

Image location: https://autobuilder.yocto.io/pub/releases/yocto-2.8_M2.rc1/machines/genericx86-64/core-image-sato-sdk-genericx86-64.hddimg

Git rev: master/835f7eac0610325e906591cd81890bebe8627580

Steps:
1. Download the hddimg image from the above site
2. dd the image to USB 
3. Boot up the genericx86-64 board
4. Run command &quot;shutdown -h now&quot;

After run command &quot;shutdown -h now&quot;, all processes are stopped but at the end the board can not power off. The screen hangs on the splash image.
There is no such issue in previous build.

Log:
INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
...
...
Sending all processes the TERM signal...
Sending all processes the KILL signal...
Unmounting remote filesystems...
Deactivating swap...
Unmounting local filesystems...
EXT4-fs (loop0): re-mounted. Opts: (null)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84629</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2019-08-09 08:49:33 +0000</bug_when>
    <thetext>This issue only happens if the board connects a LCD display with mini HDMI cable.
There is no this issue if I disconnect the display.  

When the bug occurs,  it will report an error on screen:

Error VT_WAITACTIVE failed
: Interrupted system call</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84719</commentid>
    <comment_count>3</comment_count>
    <who name="Kevin Hao">kexin.hao</who>
    <bug_when>2019-08-22 01:17:59 +0000</bug_when>
    <thetext>This has been fixed by the following commit:
commit f45a48887fd5
Author: Kevin Hao &lt;kexin.hao@windriver.com&gt;
Date:   Mon Aug 19 17:27:15 2019 +0800

    psplash: Avoid mount the psplash tmpfs twice
    
    The /etc/init.d/psplash.sh will be invoked both in boot and
    shutdown/reboot. And the psplash tmpfs will be mounted twice. This
    will trigger a bug in umount and let the system hang when
    shutdown/reboot. I already made a patch [1] to fix the issue in
    umount, but there is no reason for the psplash to do the twice mount.
    So also fix it.
    
    [Yocto 13461]
    
    [1] https://lore.kernel.org/util-linux/20190819083022.12289-1-kexin.hao@windriver.com/T/#u
    
    (From OE-Core rev: 5cea0448c5c75b9defc5fc2582e9b0c14e26a4e9)
    
    Signed-off-by: Kevin Hao &lt;kexin.hao@windriver.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85077</commentid>
    <comment_count>4</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2019-09-26 02:21:19 +0000</bug_when>
    <thetext>Verified with 2.8 M3 RC1.
Git rev: master/81f9e815d36848761a9dfa94b00ad998bb39a4a6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>