[VmWare] Port parallele

Port parallele [VmWare] - Installation - Linux et OS Alternatifs

Marsh Posté le 02-11-2004 à 17:25:57    

Voila, j'ai installe vmware sous linux pour pouvoir emuler une machine tournant sous windows. En effet j'ai besoin d'un tel bidouillage car je possede une imprimante canon LBP-800 qui est qualifiée par Linux-printing.org de presse papier.
Donc sur le papier, ca devrait marcher, je partage l'imprimante sous windows et tous mes pcs connectes au reseau ont acces a l'imprimante.
Malheureusement, le port parallele me pose un probleme : au lancement de vmware, j'ai droit au petit message suivant : "Parallel port "/dev/parport1" is used by another program (such as another instance of VMware Workstation) or driver (such as lp).
Device parallel0 will start disconnected."
 
Evidemment, je n'ai qu'une seule instance de vmware, et les seuls modules charges sont :
 
Module                  Size  Used by
8250                   21728  0  
serial_core            23552  1 8250
floppy                 58768  0  
ppdev                   9924  0  
vmnet                  30224  14  
vmmon                  48568  5  
uhci_hcd               32784  0  
usbcore               117924  3 uhci_hcd
parport_pc             23296  0  
parport                26688  2 ppdev,parport_pc
nls_iso8859_1           4096  7  
nls_cp437               5760  7  
rtc                    12664  0  
 
petite precision (kernel 2.6.8.1)
 
donc si quelqu'un a une idee je suis preneur.
(Si quelqu'un a une idee pour ne pas passer par vmware qui est une veritable usine a gaz, j'adopte ;-) )
 
d'avance merci.


---------------
BiBi Max
Reply

Marsh Posté le 02-11-2004 à 17:25:57   

Reply

Marsh Posté le 02-11-2004 à 17:30:35    

lsof /dev/parport1


---------------
Mandriva : parce que nous le valons bien ! http://linux-wizard.net/index.php
Reply

Marsh Posté le 02-11-2004 à 20:58:10    

Dark_Schneider a écrit :

lsof /dev/parport1


 
Malheureusement lsof reste muet a ce sujet.
Merci de ton aide, si tu as une autre idée ;-)


---------------
BiBi Max
Reply

Marsh Posté le 02-11-2004 à 20:59:01    

lsof /dev/parport*
lsof /dev/lp*


---------------
Mandriva : parce que nous le valons bien ! http://linux-wizard.net/index.php
Reply

Marsh Posté le 02-11-2004 à 21:08:20    

Dark_Schneider a écrit :

lsof /dev/parport*
lsof /dev/lp*


 
J'avais essaye aussi. Desole de ne pas l'avoir precise.  :(


---------------
BiBi Max
Reply

Marsh Posté le 02-11-2004 à 21:09:27    

je ne vois pas où conf le port // dans vmware ...


---------------
Mandriva : parce que nous le valons bien ! http://linux-wizard.net/index.php
Reply

Marsh Posté le 02-11-2004 à 21:17:44    

Dark_Schneider a écrit :

je ne vois pas où conf le port // dans vmware ...


 
je ne vois pas où conf le port // dans vmware ...
 
La seule chose qu'il y a : c'est dans  
   Edit virtual machine
   Add...
   Parallel port
 
Soit on choisit use a physical port (c'est ce que j'ai fait) ou use output file


---------------
BiBi Max
Reply

Marsh Posté le 03-11-2004 à 06:53:54    

décharge les modules lp et parport(_pc), ou au besoin, supprime le support du port // du noyau :)

Reply

Marsh Posté le 03-11-2004 à 10:35:17    

Le module lp est decharge, par contre comment veux-tu que ca marche si le systeme ne reconnait pas le port parallele.
En fait, est-ce que tu connaitrais un moyen de savoir si son port parallele est bien reconnue et fonctionnel. genre comme un cat /etc/psaux pour la souris.
Merci :)


---------------
BiBi Max
Reply

Marsh Posté le 03-11-2004 à 12:10:16    

ça se tient, au dira que je n'étais pas réveillé :D ;)
 
est-ce qu'à tout hasard ça ne serait pas juste un problème d'accès (droits) à /dev/parport0 plutôt qu'une ressource utilisée ?
 
sinon, dans dmesg tu devrais avoir quelques reseignements sur la bonne détection du port //

Reply

Marsh Posté le 03-11-2004 à 12:10:16   

Reply

Marsh Posté le 03-11-2004 à 12:12:14    

ls -l /dev/parport*


---------------
Mandriva : parce que nous le valons bien ! http://linux-wizard.net/index.php
Reply

Marsh Posté le 04-11-2004 à 00:37:12    

crw-------  1 root root 99, 1 2004-10-31 20:07 /dev/parport1
crw-------  1 root root 99, 2 2004-10-31 20:07 /dev/parport2
crw-------  1 root root 99, 3 2004-10-31 20:07 /dev/parport3
 
de toute facon la je testai en root donc normalement pas de pb de droits. J'ai teste a tout hasard en 777. Rien de plus concluant :-(


---------------
BiBi Max
Reply

Marsh Posté le 04-11-2004 à 00:48:42    

Linux version 2.6.8.1 (root@server) (version gcc 3.3.4 (Debian 1:3.3.4-13)) #4 Tue Nov 2 13:58:41 CET 2004
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
 BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
 BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
511MB LOWMEM available.
On node 0 totalpages: 131056
  DMA zone: 4096 pages, LIFO batch:1
  Normal zone: 126960 pages, LIFO batch:16
  HighMem zone: 0 pages, LIFO batch:1
DMI 2.2 present.
ACPI: RSDP (v000 VIA694                                    ) @ 0x000f6fc0
ACPI: RSDT (v001 VIA694 MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x1fff3000
ACPI: FADT (v001 VIA694 MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x1fff3040
ACPI: DSDT (v001 VIA694 AWRDACPI 0x00001000 MSFT 0x0100000c) @ 0x00000000
ACPI: PM-Timer IO Port: 0x4008
Built 1 zonelists
Kernel command line: root=/dev/hda3 ro  
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
PID hash table entries: 2048 (order 11: 16384 bytes)
Detected 699.957 MHz processor.
Using pmtmr for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 514956k/524224k available (2258k kernel code, 8504k reserved, 934k data, 160k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 1384.44 BogoMIPS
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0183fbff c1c7fbff 00000000 00000000
CPU: After vendor identify, caps:  0183fbff c1c7fbff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 64K (64 bytes/line)
CPU: After all inits, caps:        0183fbff c1c7fbff 00000000 00000020
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: AMD Duron(tm) Processor stepping 01
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 699.0592 MHz.
..... host bus clock speed is 199.0883 MHz.
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfb250, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040326
ACPI: IRQ11 SCI: Level Trigger.
spurious 8259A interrupt: IRQ7.
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
Disabling VIA memory write queue (PCI ID 0305, rev 03): [55] 89 & 1f -> 09
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 5 6 7 10 11 12 14 15) *9
ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 5 6 7 10 *11 12 14 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
SCSI subsystem initialized
PCI: Using ACPI for IRQ routing
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 5
ACPI: PCI interrupt 0000:00:07.2[D] -> GSI 5 (level, low) -> IRQ 5
ACPI: PCI interrupt 0000:00:07.3[D] -> GSI 5 (level, low) -> IRQ 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
ACPI: PCI interrupt 0000:00:0a.0[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
ACPI: PCI interrupt 0000:00:0c.0[A] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI interrupt 0000:00:0e.0[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 5 (level, low) -> IRQ 5
Machine check exception polling timer started.
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
apm: overridden by ACPI.
NTFS driver 2.1.15 [Flags: R/W DEBUG].
udf: registering filesystem
Initializing Cryptographic API
Applying VIA southbridge workaround.
PCI: Disabling Via external APIC routing
Linux agpgart interface v0.100 (c) Dave Jones
8139too Fast Ethernet driver 0.9.27
ACPI: PCI interrupt 0000:00:0a.0[A] -> GSI 11 (level, low) -> IRQ 11
eth0: RealTek RTL8139 at 0xd400, 00:50:fc:6d:bd:cf, IRQ 11
eth0:  Identified 8139 chip type 'RTL-8139C'
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:07.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci0000:00:07.1
    ide0: BM-DMA at 0xc000-0xc007, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xc008-0xc00f, BIOS settings: hdc:DMA, hdd:DMA
hda: Maxtor 6Y120P0, ATA DISK drive
hdb: Maxtor 6Y200P0, ATA DISK drive
Using anticipatory io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: SONY CD-RW CRX300E, ATAPI CD/DVD-ROM drive
hdd: Maxtor 5T040H4, ATA DISK drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 240121728 sectors (122942 MB) w/7936KiB Cache, CHS=65535/16/63, UDMA(100)
 hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 hda10 > hda3
hdb: max request size: 1024KiB
hdb: 398297088 sectors (203928 MB) w/7936KiB Cache, CHS=24792/255/63, UDMA(100)
 hdb: hdb1
hdd: max request size: 128KiB
hdd: 80043264 sectors (40982 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(33)
 hdd: hdd1 hdd2 < hdd5 >
hdc: ATAPI 48X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
input: ImExPS/2 Generic Explorer Mouse on isa0060/serio1
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
Advanced Linux Sound Architecture Driver Version 1.0.4 (Mon May 17 14:31:44 2004 UTC).
ACPI: PCI interrupt 0000:00:0e.0[A] -> GSI 11 (level, low) -> IRQ 11
ALSA device list:
  #0: Sound Blaster Live! (rev.5) at 0xdc00, irq 11
NET: Registered protocol family 2
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET: Registered protocol family 1
NET: Registered protocol family 17
PM: Reading pmdisk image.
PM: Resume from disk failed.
ACPI: (supports S0 S1 S4 S5)
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 160k freed
Adding 497972k swap on /dev/hda10.  Priority:-1 extents:1
EXT3 FS on hda3, internal journal
Real Time Clock Driver v1.12
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hdb1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
parport0: PC-style at 0x378 (0x778) [PCSPP(,...)]
parport_pc: Via 686A parallel port: io=0x378
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.2
ACPI: PCI interrupt 0000:00:07.2[D] -> GSI 5 (level, low) -> IRQ 5
uhci_hcd 0000:00:07.2: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
uhci_hcd 0000:00:07.2: irq 5, io base 0000c400
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ACPI: PCI interrupt 0000:00:07.3[D] -> GSI 5 (level, low) -> IRQ 5
uhci_hcd 0000:00:07.3: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2)
uhci_hcd 0000:00:07.3: irq 5, io base 0000c800
uhci_hcd 0000:00:07.3: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
lp0: using parport0 (polling).
lp0 off-line
inserting floppy driver for 2.6.8.1
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
can't create port
 
voila : tout le dmesg (on sait jamais peut-etre que quelque chose m'a echappe :-) )
 
et apres avoir lance vmware, j'obtiens ca pour le dmesg :
 
vmmon: module license 'unspecified' taints kernel.
/dev/vmmon: Module vmmon: registered with major=10 minor=165
/dev/vmmon: Module vmmon: initialized
/dev/vmmon: Module vmmon: unloaded
/dev/vmmon: Module vmmon: registered with major=10 minor=165
/dev/vmmon: Module vmmon: initialized
/dev/vmnet: open called by PID 2471 (vmnet-bridge)
/dev/vmnet: hub 0 does not exist, allocating memory.
/dev/vmnet: port on hub 0 successfully opened
bridge-eth0: enabling the bridge
bridge-eth0: up
bridge-eth0: already up
bridge-eth0: attached
/dev/vmnet: open called by PID 2484 (vmnet-natd)
/dev/vmnet: hub 8 does not exist, allocating memory.
/dev/vmnet: port on hub 8 successfully opened
/dev/vmnet: open called by PID 2494 (vmware-vmx)
bridge-eth0: set IFF_PROMISC
eth0: Promiscuous mode enabled.
/dev/vmnet: port on hub 0 successfully opened
ppdev: user-space parallel port driver
ppdev1: no associated port!
/dev/vmnet: open called by PID 2510 (vmnet-netifup)
/dev/vmnet: port on hub 8 successfully opened
/dev/vmnet: open called by PID 2509 (vmnet-netifup)
/dev/vmnet: hub 1 does not exist, allocating memory.
/dev/vmnet: port on hub 1 successfully opened
/dev/vmnet: open called by PID 2569 (vmnet-dhcpd)
/dev/vmnet: port on hub 1 successfully opened
/dev/vmnet: open called by PID 2572 (vmnet-dhcpd)
/dev/vmnet: port on hub 8 successfully opened
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
/dev/vmmon: fast clock rate 0 -> 19
bridge-eth0: clear IFF_PROMISC
/dev/vmmon: fast clock rate 19 -> 0
vmmon: Had to deallocate locked 992 pages from vm driver dffa3a00
vmmon: Had to deallocate AWE 1347 pages from vm driver dffa3a00
 
Je remercie tout ceux qui sont en train de m'aider :)
Merci !!


---------------
BiBi Max
Reply

Marsh Posté le 04-11-2004 à 07:10:41    

un truc qu'il faudrait étudier:
ton dmesg fait mention de parport 0

parport0: PC-style at 0x378 (0x778) [PCSPP(,...)]
parport_pc: Via 686A parallel port: io=0x378  
....
lp0: using parport0 (polling).
lp0 off-line


 
or vmware semble vouloir utiliser parport1 via un module ppdev que je ne connais pas

ppdev: user-space parallel port driver
ppdev1: no associated port!


 
à mon sens, tu devrais essayer de configurer vmware pour qu'il utilise le vrai port //


Message édité par Acontios le 04-11-2004 à 07:10:59
Reply

Marsh Posté le 04-11-2004 à 09:31:09    

Tu obtiens le module ppdev en selectionnant en module dans character devices le support de l'imprimante.
Mais alors ce matin, je comprends pas.
Dans /dev, j'ai parport0 (alors que je ne l'avais pas auparavant). J'ai selectionne dans vmware et ca kartonne.
 
Merci a tous !!!
 
PS: Si quelqu'un connait un autre logicile que vmware ou une autre solution, je suis toujours preneur.


---------------
BiBi Max
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed