| Summary: | [2.8 M2 RC1] beaglebone can not poweroff when run "shutdown -h now" | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BSPs | Reporter: | Yi Zhao <yi.zhao> |
| Component: | bsps-meta-yocto | Assignee: | Kevin Hao <kexin.hao> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | High | CC: | ee.peng.yeoh, randy.macleod, yi.zhao |
| Version: | 0.0.0 | ||
| Target Milestone: | 2.8 M3 | ||
| Hardware: | BeagleBone | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Yi Zhao
2019-07-30 08:29:47 UTC
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 "shutdown -h now" After run command "shutdown -h now", 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) 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 This has been fixed by the following commit: commit f45a48887fd5 Author: Kevin Hao <kexin.hao@windriver.com> 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 <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Verified with 2.8 M3 RC1. Git rev: master/81f9e815d36848761a9dfa94b00ad998bb39a4a6 |