Comment 4 for bug 1586756

Revision history for this message
redcap97 (redcap97) wrote : Re: "-serial unix:" option of qemu-system-* is broken in qemu 2.6.0

I wrote small code which reproduces this issue.

https://bitbucket.org/redcap97/puts-hello-x80000-armv7-kernel/downloads/puts-HELLO-x80000

Above binary outputs "HELLO!" 80000 times to UART.

# Please execute in terminal
socat unix-listen:a.sock stdout | tee actual

# Please execute in another terminal
qemu-system-arm -M vexpress-a9 -nographic -kernel puts-HELLO-x80000 -serial unix:a.sock

# Check results
yes 'HELLO!' | head -n 80000 > expected
diff -u expected actual

Occasionally, a part of the output of qemu disappears.

Source code of the binary
https://bitbucket.org/redcap97/puts-hello-x80000-armv7-kernel/src