Bug 3719 - fsl-image-gui image for imx6qsabreauto machine does not reboot
Summary: fsl-image-gui image for imx6qsabreauto machine does not reboot
Status: RESOLVED WORKSFORME
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-fsl-arm (show other bugs)
Version: 1.3
Hardware: Other arm
: Low normal
Target Milestone: Future
Assignee: Daiane
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-01-14 23:29 UTC by disabled.leonardo.sandoval
Modified: 2015-10-21 15:44 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description disabled.leonardo.sandoval 2013-01-14 23:29:40 UTC
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.
Comment 1 disabled.leonardo.sandoval 2013-01-14 23:46:19 UTC
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...
Comment 2 disabled.leonardo.sandoval 2013-02-07 23:38:14 UTC
This bug is not present on core-minimal-image image. I will test it the image it was reported (fsl-image-gui)

Leo
Comment 3 disabled.leonardo.sandoval 2013-02-08 21:08:21 UTC
(In reply to comment #2)
> This bug is not present on core-minimal-image image. I will test it the
> image it was reported (fsl-image-gui)
> 
> Leo

Bug is present on core-image-base, so this is the image to work on this issue.
Comment 4 Otavio Salvador 2013-02-11 16:22:07 UTC
The issue seems related to the audio driver.
Comment 5 disabled.leonardo.sandoval 2013-02-18 19:38:35 UTC
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'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
Comment 6 John Weber 2013-04-05 14:01:05 UTC
I'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
Comment 7 John Weber 2013-04-05 14:53:07 UTC
To elaborate on that last comment with build information:

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

I've seen this problem for a while, with both the kernels from 1.1.0 and the 'official' 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
Comment 8 Daiane 2015-10-21 15:44:47 UTC
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)