Wind River Support Network

HomeDefectsLINCD-5732
Fixed

LINCD-5732 : qemu instance of qemux86-64 halts on reboot

Created: Jun 6, 2021    Updated: Oct 25, 2023
Resolved Date: Oct 25, 2023
Found In Version: 10.21.25.0
Fix Version: 10.23.17.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

$ setup.sh --machines=qemux86-64 --dl-layers --accept-eula=yes && source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build
$ bitbake wrlinux-image-std

$ runqemu slirp nographic qemux86-64
......
 # on target:

qemux86-64 login: root
Password:
root@qemux86-64:~# reboot
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
[  OK  ] Finished Reboot.
[  OK  ] Reached target Reboot.
[  113.436645] systemd-shutdown[1]: Syncing filesystems and block devices.
[  113.450289] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[  113.571831] systemd-journald[154]: Received SIGTERM from PID 1 (systemd-shutdow).
[  113.604303] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[  113.696786] systemd-shutdown[1]: Unmounting file systems.
[  113.733080] [437]: Remounting '/' read-only in with options '(null)'.
[  113.743745] EXT4-fs (vda): re-mounted. Opts: (null)
[  113.754775] systemd-shutdown[1]: All filesystems unmounted.
[  113.755422] systemd-shutdown[1]: Deactivating swaps.
[  113.758892] systemd-shutdown[1]: All swaps deactivated.
[  113.759596] systemd-shutdown[1]: Detaching loop devices.
[  113.813363] systemd-shutdown[1]: All loop devices detached.
[  113.813844] systemd-shutdown[1]: Stopping MD devices.
[  113.816245] systemd-shutdown[1]: All MD devices stopped.
[  113.816687] systemd-shutdown[1]: Detaching DM devices.
[  113.819166] systemd-shutdown[1]: All DM devices detached.
[  113.819733] systemd-shutdown[1]: All filesystems, swaps, loop devices, MD devices and DM devices detached.
[  114.096437] systemd-shutdown[1]: Syncing filesystems and block devices.
[  114.102780] systemd-shutdown[1]: Rebooting.
[  114.122488] reboot: Restarting system
[  114.122937] reboot: machine restart

Workaround

Use an older bios.bin or the UEFI bios.

wget -O bios.bin [https://github.com/qemu/qemu/blob/stable-5.0/pc-bios/bios.bin?raw=true]

and pass to runqemu

qemuparams='-bios bios.bin'

*OR*

Workaround:

$ git clone https://github.com/coreboot/seabios.git && cd seabios
$ git checkout 01774004c7f7fdc9c1e8f1715f70d3b913f8d491
$ make
bios will be present in out/bios.bin

Use the bios with qemu as such:

runqemu nographic qemuparams="-bios /path/to/bios.bin"
or deploy to target with a bbappend.
 

 

Steps to Reproduce

$ setup.sh --machines=qemux86-64 --dl-layers --accept-eula=yes && source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build
$ bitbake wrlinux-image-std

$ runqemu slirp nographic qemux86-64
......
Wind River Linux development 21.22 qemux86-64 ttyS0

qemux86-64 login: root
Password:
root@qemux86-64:~# reboot
Live chat
Online