Parallel Port Support
Hi
I have also posted this (QEMU for Linux //// has anyone got their parallel port working?) on the QEMU forum regarding this, but since I understand parallel port support is recent I thought It might be useful to post on the development list as well.
I am trying to capture my parallel port scanner setup data so a Linux driver can be written, (portmon for windows doesn't capture anything).
I cannot currently get the scanner working on windows 98SE running on QEMU.
I first downloaded the QEMU binary, but QEMU wouldn't run with the parallel port option enabled:
# qemu -parallel /dev/parport0 -dummy-net -enable-audio -localtime -boot c windows.img Could not open '/dev/kqemu' - QEMU acceleration layer not activated qemu: could not open parallel device '/dev/parport0'
I did the following to create the /dev/parport0 device:
modprobe parport-pc && modprobe ppdev
rmmod lp
I then ran
makedev /dev
and that created /dev/parport0 to /dev/parport7
I have now built QEMU 0.7.2 from source and am getting a similar error message:
# qemu -parallel /dev/parport0 -dummy-net -enable-audio -localtime -boot c windows.img qemu: could not open parallel device '/dev/parport0'
Is this a problem with my set up or does this problem occur with everyones.
Best Regards
Trev
Hi everyone
I looked at the code (vl.c) and I don't know if I am missing something, but as far as I can see unless the parameter passed to -parallel is either "vc" "null" "pty" or "stdio" the function qemu_chr_open function that is called returns null, which sets parallel_hds[0] to null, which in turn causes the error message "qemu: could not open parallel device" to print and exit the program.
Best Regards
Trev
Quoted 49 lines · Trev Jackson
Hi
I have also posted this (QEMU for Linux //// has anyone got their parallel port working?) on the QEMU forum regarding this, but since I understand parallel port support is recent I thought It might be useful to post on the development list as well.
I am trying to capture my parallel port scanner setup data so a Linux driver can be written, (portmon for windows doesn't capture anything).
I cannot currently get the scanner working on windows 98SE running on QEMU.
I first downloaded the QEMU binary, but QEMU wouldn't run with the parallel port option enabled:
# qemu -parallel /dev/parport0 -dummy-net -enable-audio -localtime -boot c windows.img Could not open '/dev/kqemu' - QEMU acceleration layer not activated qemu: could not open parallel device '/dev/parport0'I did the following to create the
/dev/parport0device:modprobe parport-pc && modprobe ppdev
rmmod lpI then ran
makedev /devand that created
/dev/parport0to/dev/parport7I have now built QEMU 0.7.2 from source and am getting a similar error message:
# qemu -parallel /dev/parport0 -dummy-net -enable-audio -localtime -boot c windows.img qemu: could not open parallel device '/dev/parport0'Is this a problem with my set up or does this problem occur with everyones.
Best Regards
Trev
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 8 lines · Trev Jackson
Hi everyone
I looked at the code (
vl.c) and I don't know if I am missing something, but as far as I can see unless the parameter passed to -parallel is either "vc" "null" "pty" or "stdio" the functionqemu_chr_openfunction that is called returns null, which sets parallel_hds[0] to null, which in turn causes the error message "qemu: could not open parallel device" to print and exit the program.
Sorry, I guess I overlooked in the forum thread that you use the binary version :( The host parallel port support is at the moment only available in the CVS version (the CVS log message is at
http://lists.gnu.org/archive/html/qemu-devel/2005-11/msg00185.html).
So, if you want to use the host parallel port with qemu, you should upgrade to the current CVS version.
Daily CVS snapshots are available at
http://qemu.dad-answers.com/download/qemu/
Regards,
Oliver
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDn0AGTFOM6DcNJ6cRAsJJAJ9uWg65F93tbPnlPeXd+uXRiCy4EACfbkmc IbMxcTVJU0iZSBHWxwf2E+s=
=k8KL
-----END PGP SIGNATURE-----
Quoted 6 lines
Sorry, I guess I overlooked in the forum thread that you use the binary version :( The host parallel port support is at the moment only available in the CVS version (the CVS log message is at
http://lists.gnu.org/archive/html/qemu-devel/2005-11/msg00185.html).
Quoted 9 lines
So, if you want to use the host parallel port with qemu, you should upgrade to the current CVS version.
Daily CVS snapshots are available at
http://qemu.dad-answers.com/download/qemu/Regards,
Oliver
Thanks for the answer
The snapshot appears to be 46 bytes in size.
I would be grateful if you would let me know how to download from CVS or how to download the snapshot without it downloading only 46 bytes.
Best Regards
Trev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 10 lines · Trev Jackson
Quoted 10 lines
Sorry, I guess I overlooked in the forum thread that you use the binary version :( The host parallel port support is at the moment only available in the CVS version (the CVS log message is at
http://lists.gnu.org/archive/html/qemu-devel/2005-11/msg00185.html).So, if you want to use the host parallel port with qemu, you should upgrade to the current CVS version.
Daily CVS snapshots are available at
http://qemu.dad-answers.com/download/qemu/
Quoted 8 lines
Quoted 4 lines
Regards,
OliverThanks for the answer
The snapshot appears to be 46 bytes in size.
Wow... looks like Fabrice stripped down Qemu to its bare minimum during the past days ;)
Seriously, probably the script which downloads the CVS version every day broke somehow... But I can confirm that it still worked on 2005-12-07, though.
Quoted 2 lines
I would be grateful if you would let me know how to download from CVS or how to download the snapshot without it downloading only 46 bytes.
On the Qemu website, on the links page, there's a link to the page which also hosts the Qemu CVS. The quick link to the relevant page is probably
http://savannah.nongnu.org/cvs/?group=qemu
Regards,
Oliver
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDn0qTTFOM6DcNJ6cRAsSxAKCyfV0X6ZRCm/+aDK8OAgZJMeAqvgCfVY7X K0np1HEIogexFKEmn3HqfRI=
=JnFD
-----END PGP SIGNATURE-----
Hi,
Quoted 6 lines · Oliver Gerlich
Wow... looks like Fabrice stripped down Qemu to its bare minimum during the past days ;)
Seriously, probably the script which downloads the CVS version every day broke somehow... But I can confirm that it still worked on 2005-12-07, though.
No. Savannah changed the way anonymous checkouts work. If you do a manual "cvs update", you'll see a message leading to the forum post. The new CVSROOT is :pserver:[email protected]:/cvsroot/qemu
Hth,
Dscho
Quoted 1 line · Johannes Schindelin
CVSROOT is :pserver:[email protected]:/cvsroot/qemu
^^^^^^^
That should be "sources".
Andreas.
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Quoted 15 lines
Quoted 4 lines
Thanks for the answer
The snapshot appears to be 46 bytes in size.
Wow... looks like Fabrice stripped down Qemu to its bare minimum during the past days ;)
Seriously, probably the script which downloads the CVS version every day broke somehow... But I can confirm that it still worked on 2005-12-07, though.
Quoted 2 lines
I would be grateful if you would let me know how to download from CVS or how to download the snapshot without it downloading only 46 bytes.
Quoted 7 lines
On the Qemu website, on the links page, there's a link to the page which also hosts the Qemu CVS. The quick link to the relevant page is probably
http://savannah.nongnu.org/cvs/?group=qemuRegards,
Oliver
Hi
I have now downloaded the CVS version of the driver.
I have edited parallel.c and uncommented the #define DEBUG_PARALLEL so that the parallel port reads and writes are reported.
I have run qemu as follows:
$ qemu -parallel /dev/parport0 -net none -enable-audio -localtime -boot c windows.img 1>printer.txt
The file printer.txt contains lots of printer port reads and writes i.e. it is 1216 lines long, however I am still getting the "scanner not found" error from windows.
I believe the scanner driver is expecting the parallel port to be set to EPP, mode. I don't know enough about the parallel port and the emulation software to know what it is emulated as at the moment.
From the looks of the file a lot of the reads occur 8 times with the same value read back all 8 times, so I would guess the code is expecting the value to change and it isn't so I am not sure if it is a speed problem - although I wouldn't have thought so because the scanner worked OK on my old 200MHz computer and my current computer is more than 10 times faster than that so the emulation layer shouldn't slow it down that much.
Any further advice would be gratefully received.
Best Regards
Trev