Re: Serial Port on QEMU
Posted: Thu May 10, 2012 6:22 am
Hi all.
I'm am a complete beginer with all things linux.
I have a Raspberry pi on order, but while I am waiting for it I thought I would get a head start on learning a bit about linux.
So far I have got the debian6-19-040-2012 image working in a QEMU environment.
However, I am stuck on one problem - I cannot pass data from the host machines serial port to the emulation.
The host OS in Ubuntu 11.10.
The command line I am using to start the QEMU emulation is:
qemu-system-arm -M versatilepb -cpu arm1176 -m 256 -hda rootfs_debian6_rpi.ext4 -kernel zImage_3.1.9 -append "root=/dev/sda" -serial /dev/ttyS1 -redir tcp:2222::22
on the host OS, Dmesg| grep tty shows my serial port as ttyS1 and I can communicate with the attached device from within the host OS.
So, Is it possible in the emulation to send and recieve data through the host serial port and if so, can any one offer pointers on how to achieve this?
thank you
I'm am a complete beginer with all things linux.
I have a Raspberry pi on order, but while I am waiting for it I thought I would get a head start on learning a bit about linux.
So far I have got the debian6-19-040-2012 image working in a QEMU environment.
However, I am stuck on one problem - I cannot pass data from the host machines serial port to the emulation.
The host OS in Ubuntu 11.10.
The command line I am using to start the QEMU emulation is:
qemu-system-arm -M versatilepb -cpu arm1176 -m 256 -hda rootfs_debian6_rpi.ext4 -kernel zImage_3.1.9 -append "root=/dev/sda" -serial /dev/ttyS1 -redir tcp:2222::22
on the host OS, Dmesg| grep tty shows my serial port as ttyS1 and I can communicate with the attached device from within the host OS.
So, Is it possible in the emulation to send and recieve data through the host serial port and if so, can any one offer pointers on how to achieve this?
thank you