Skip to contentSkip to conversation

serial input with -serial stdio

Qemu-devel Edgar E. Iglesias 2 participants 2 messages Jun 24, 2011 – Jun 27, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

Tried to stream 2K of data into a guest via an emulated serial port backed by -serial stdio but it failed. Looks like data flows for a while, then suddenly even though the last call to can_rceive returns +, nothing comes. It works OK through TCP ports (-serial tcp::xxx,server + nc).

I know this used to work before, last time I tried was about a year ago or so, maybe a little more. I suspect regression somewhere.

I run qemu something like the following:
cat file-with-ser-data | qemu-system-cris -kernel image -serial stdio

The serial port is hw/etraxfs_ser.c, can't find anything wrong there.

Unfortunately I dont have much time at the moment to debug, so I tought I just throw this out to the list and hope that someone knows whats going on. Otherwise I'll debug later.

Cheers,
Edgar

#1 lore raw

Hello,

Quoted 7 lines · Edgar E. Iglesias

Hi,

Tried to stream 2K of data into a guest via an emulated serial port backed by -serial stdio but it failed. Looks like data flows for a while, then suddenly even though the last call to can_rceive returns +, nothing comes. It works OK through TCP ports (-serial tcp::xxx,server + nc).

Quoted 5 lines

I know this used to work before, last time I tried was about a year ago or so, maybe a little more. I suspect regression somewhere.

I run qemu something like the following:
cat file-with-ser-data | qemu-system-cris -kernel image -serial stdio

I've never used serial IO this way, so can't be sure.

Quoted 5 lines

The serial port is hw/etraxfs_ser.c, can't find anything wrong there.

Unfortunately I dont have much time at the moment to debug, so I tought I just throw this out to the list and hope that someone knows whats going on. Otherwise I'll debug later.

Let us know what you find.

Amit