Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get /dev/parport0 to work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bastibasti
Guru
Guru


Joined: 27 Nov 2006
Posts: 590

PostPosted: Mon Jan 05, 2009 6:44 pm    Post subject: Can't get /dev/parport0 to work Reply with quote

Hi here's my setup:

I have a Netmos parport card. It is meant to work with the kernel's driver. Here's what I do

Code:

lspci -vv
05:02.0 Communication controller: NetMos Technology PCI 1 port parallel adapter (rev 01)
        Subsystem: LSI Logic / Symbios Logic Device 0010
        Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 23
  [b]      Region 0: I/O ports at ec00 [size=8][/b]
        Region 1: I/O ports at e880 [size=8]
        Region 2: I/O ports at e800 [size=8]
        Region 3: I/O ports at e480 [size=8]
        Region 4: I/O ports at e400 [size=8]
        Region 5: I/O ports at e080 [size=16]
        Kernel modules: parport_pc


so I load the module manually

Code:

rmmod parport_pc
modprobe parport_pc io=0xec00 irq=4,10


and it gives me a:
Code:

parport0: PC-style at 0xec00, irq 4 [PCSPP(,...)]

without further moaning...

still /dev/parport0 is not existing, so I enter
Code:

mknod /dev/parport0 c 99 0 -m 666


and the port is there.

Code:

ls /dev/parport0

returns:

/dev/parport0


also

Code:

ls /proc/sys/dev/parport/

gives me

default  parport0


Now I try some cool application like avrdude... and it gives me

Code:

avrdude -p ATMEGA8 -c STK200 -n -v 
.
.
.
.
avrdude: can't open device "/dev/parport0": No such device or address
avrdude: failed to open parallel port "/dev/parport0"


has anyone any idea???
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54809
Location: 56N 3W

PostPosted: Mon Jan 05, 2009 7:12 pm    Post subject: Reply with quote

bastibasti,

The /dev file should be /dev/lp0 or /dev/lp/0 and udev should add it for you.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bastibasti
Guru
Guru


Joined: 27 Nov 2006
Posts: 590

PostPosted: Tue Jan 06, 2009 12:00 pm    Post subject: Reply with quote

Yeah /dev/lp0 does not exist.

And you are right. UDEV automatically loads the module during boot: (not creating the device)

dmesg:
Code:

parport_pc 0000:05:02.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
PCI parallel port detected: 14d2:8001, I/O at 0xec00(0xe880)
parport0: PC-style at 0xec00 (0xe880) [PCSPP(,...)]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum