PCMCIA 'port' not in /dev ?
hi, i'm hoping someone might have some help here... i am desperately trying to figure out how to run my parallel port..
it is a PCMCIA parport, and does not show up in /dev/parport0 i need to link to the card from .wine to give parport access to programs. googling turns up device linking for wine like this Code:
ln -s /dev/parport $HOME/.wine/dosdevices/lpt1 but I have no /dev/parport.. so what do I link to? /sys/bus/pcmcia/devices/0.0/ is another directory. not sure what to link to there. the kernel pcmcia howto does not (to me) explain 'where' the device is actually mounted.. . Code:
$ ls -l /sys/bus/pcmcia/devices/0.0/ i'm really getting nowhere. I know the card is detected: Code:
$ /sbin/pccardctl ident I am up against a deadline which is fast approaching, please help! no idea will be refused :) thanks. |
well, here i go talking to myself again..
more googling turned up a snippet about parport.opts for multiple cards, I don't have multiple cardss but here is my translation of that page: Code:
case "$ADDRESS" in so dmesg seems to now also recognize the card, and I made a symbolic link to the pcmcia 'card': Code:
# dmesg | grep parport pls remember I'm a n00b at this and any scrutiny is appreciated. I'll of course keep plugging at this and sorry if my rambling is wasting space/time on the continuum.. :D |
problem: now I reboot and my /dev/parport link is gone.. ghast! can anyone help me with where to config this to exist all the time?
|
It's a udev thing. The config file (IIRC) is at /etc/udev/rules.d/udev.rules or somesuch. Can't help you with the actual configuration changes, though.
|
you are correct, and I've been reading through the man pages about this but I'm not sure how to translate my card to the parport0 device node.
I have since done more tweaking, and now my kernel added ppdev (under char devices) which if I modprobe ppdev gives me a /dev/parport0 but I think thats still incorrect, because its not pointing to the pcmcia card. the udev.rules is confusing the hell out of me.. i can't get wine to work with the parport either... it seems I'm doomed to windows.. |
so in case anyone is still listening to me ramble..
Code:
cat /proc/ioports Code:
$_ports = $_ports, "device /sys/bus/pcmcia/devices/0.0 fast range 0x378 0x37f" # lpt0 ++tried this Code:
$_ports = $_ports, "0x2100 fast range 0x378 0x37f" # lpt0 also of note, in windows the little light on my peripheral will glow red when plugged into the port, but now in linux it is not on... does this mean my port is not really 'on' or just that windows is sloppy about handing out power? so now i'm trying to test from the linux side Code:
#include <stdio.h> |
Solution
i've found the cure for the plague of the 21st century (windows... blech!)
well, perhaps thats overstating things just a little bit... so to recap, my setup: linux 2.6.19.1 slackware 11 (of course) dosemu 1.3.5/freedos-1.0 dell latitude d820 (no parallel port) quatech SPP-100 parallel port needed these modules: Code:
parport_cs 4224 1 Code:
$ cat /proc/ioports <edit forgot something-sorry 'tis late here> so the scrupulous reader will note that the assignments changed between post #6 and this one. thats because of this bus path: Quote:
Code:
append="pci=assign-busses" Code:
$ /sbin/lspci -v | grep subordinate but lets just say... hypothetically, you need to use dosemu to write to an eprom burner, or eprom emulator... ;) enter ppdev... ppdev creates /dev/parport0 so that in /etc/dosemu.conf you can do this: Code:
$_ports = $_ports, " device /dev/parport0 range 0x2100 0x2107" # lpt0 now you just run dosemu and bin\rttest16.exe /P2100... oh, wait thats not related to this.. seriously I hope this helps some other troubled soul... |
All times are GMT -5. The time now is 04:11 AM. |