<?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>3719</bug_id>
          
          <creation_ts>2013-01-14 23:29:40 +0000</creation_ts>
          <short_desc>fsl-image-gui image for imx6qsabreauto machine does not reboot</short_desc>
          <delta_ts>2015-10-21 15:44:47 +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-fsl-arm</component>
          <version>1.3</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>disabled.leonardo.sandoval</reporter>
          <assigned_to name="Daiane">angolini</assigned_to>
          <cc>otavio</cc>
    
    <cc>rjohnweber</cc>
    
    <cc>sgw</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>28824</commentid>
    <comment_count>0</comment_count>
    <who name="">disabled.leonardo.sandoval</who>
    <bug_when>2013-01-14 23:29:40 +0000</bug_when>
    <thetext>when the reboot command is type on the console, the system hangs after showing some log and never reboots. This has only been tested for the fsl-image-gui on a imx6qsabreauto machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28825</commentid>
    <comment_count>1</comment_count>
    <who name="">disabled.leonardo.sandoval</who>
    <bug_when>2013-01-14 23:46:19 +0000</bug_when>
    <thetext>Log before the system stops rebooting

root@imx6qsabreauto:~# reboot

The system is going down for reboot NOW!to (ttymxc3) (Mon Jan 14 22:26:40 201
INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signalroot@imx6qsabreauto:~#
INIT: Sending processes the KILL signaStopping XServer
Stopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid 550)
dropbear.
 * Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon

** (oprofile-server:614): WARNING **: Avahi error: Daemon connection failed
   ...done.
Stopping advanced power management daemon: stopped /usr/sbin/apmd (pid 553)
apmd.
Stopping system message bus: stopping statd: done
stopping mountd: done
stopping nfsd: done
Stopping OProfileUI server
Stopping syslogd/klogd: stopped syslogd (pid 585)
stopped klogd (pid 587)
done
Stopping tcf-agent: OK
Stopping Connection Manager
Stopping Telephony daemon
ALSA: Storing mixer settings...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29655</commentid>
    <comment_count>2</comment_count>
    <who name="">disabled.leonardo.sandoval</who>
    <bug_when>2013-02-07 23:38:14 +0000</bug_when>
    <thetext>This bug is not present on core-minimal-image image. I will test it the image it was reported (fsl-image-gui)

Leo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29693</commentid>
    <comment_count>3</comment_count>
    <who name="">disabled.leonardo.sandoval</who>
    <bug_when>2013-02-08 21:08:21 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; This bug is not present on core-minimal-image image. I will test it the
&gt; image it was reported (fsl-image-gui)
&gt; 
&gt; Leo

Bug is present on core-image-base, so this is the image to work on this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29713</commentid>
    <comment_count>4</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2013-02-11 16:22:07 +0000</bug_when>
    <thetext>The issue seems related to the audio driver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29937</commentid>
    <comment_count>5</comment_count>
    <who name="">disabled.leonardo.sandoval</who>
    <bug_when>2013-02-18 19:38:35 +0000</bug_when>
    <thetext>I had to stop working on this issue. 

As mentioned in a previous comments, issue is reproducibled with the core-image-base image. The problem happens when the /etc/init.d/alsa-state script runs the command:

/usr/sbin/alsactl -f /var/lib/alsa/asound.state store

which tries to store **all** sound cards configurations. The problem comes when storing the card number 1, which is imxsddif:

# cat /proc/asound/cards
 0 [cs42888audio   ]: cs42888-audio - cs42888-audio
                      cs42888-audio
 1 [imxspdif       ]: imx-spdif - imx-spdif
                      imx-spdif


so, the halting task is in fact

/usr/sbin/alsactl -f /var/lib/alsa/asound.state store 1


My impression is that the alsactl store is halting on a imxspdif&apos;s function call (ioctl ?) but right now I have to time to further debugging it.


Also, alsacrl restore and alsactr init works as expected, no halt at all.


Leo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31605</commentid>
    <comment_count>6</comment_count>
    <who name="John Weber">rjohnweber</who>
    <bug_when>2013-04-05 14:01:05 +0000</bug_when>
    <thetext>I&apos;m seeing this same exact issue on Wandboard Dual.  The sound cards are 

cat /proc/asound/cards

 0 [sgtl5000audio  ]: sgtl5000-audio - sgtl5000-audio                           
                      sgtl5000-audio                                            
 1 [imxspdif       ]: imx-spdif - imx-spdif                                     
                      imx-spdif                                                 
 2 [imxhdmisoc     ]: imx-hdmi-soc - imx-hdmi-soc                               
                      imx-hdmi-soc                                              

The halting command is the one that stores state for card 1 (imx-spdif)

/usr/sbin/alsactl -f /var/lib/alsa/asound.state store 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31614</commentid>
    <comment_count>7</comment_count>
    <who name="John Weber">rjohnweber</who>
    <bug_when>2013-04-05 14:53:07 +0000</bug_when>
    <thetext>To elaborate on that last comment with build information:

Built using Yocto snapshot from 2013-04-03.  The image is fsl-image-test.

I&apos;ve seen this problem for a while, with both the kernels from 1.1.0 and the &apos;official&apos; wandboard kernel for which support was recently included in meta-fsl-arm-extra.

Looking through the boards, there are only a few with SPDIF ports:

mx6sl-evk
sabereauto
wandboard
arm2

I only have Wandboard, but it would be interesting to know if this problem exists on the arm2 and sl-evk.

John</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55567</commentid>
    <comment_count>8</comment_count>
    <who name="Daiane">angolini</who>
    <bug_when>2015-10-21 15:44:47 +0000</bug_when>
    <thetext>I just tested it using imx6qsabreauto and kernel 3.14.28 (from fido) and I was not able to reproduce the error any more.

I think it can be closed and, if needed, reopened in future in case of positive reproduction (with description on environment needed to reproduce)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>