gnupic: Linux & Parallel PIC Programmer


Previous by date: 22 Dec 2004 18:19:29 +0000 Adding devices to gpsim, toftat.cowshed.8m.com
Next by date: 22 Dec 2004 18:19:29 +0000 Re: Linux & Parallel PIC Programmer, Byron A Jeff
Previous in thread: 22 Dec 2004 18:19:29 +0000 Re: Linux & Parallel PIC Programmer, Sylvain Giroudon
Next in thread: 22 Dec 2004 18:19:29 +0000 Re: Linux & Parallel PIC Programmer, Byron A Jeff

Subject: RE: Linux & Parallel PIC Programmer
From: "Romagnoli, Massimo" ####@####.####
Date: 22 Dec 2004 18:19:29 +0000
Message-Id: <58E83503FA38464DA2BB18EFC6CFD2DC3CE737@itlrm203.emea.corp.eds.com>

Laurence Withers wrote :

>Just to check -- have you got the printer driver *unloaded* when you try 
>to access the parallel port? (I could never get a parallel port 
>programmer to work if the printer driver was loaded).

>Can you send us the output of 'lsmod' and the relevant parts 'dmesg'?

Ok, below you'll find simple last night picprg2.3 run ( +/- same story with other software or BIOS Setup just different device/module)

Bye.
Massimo



**** BIOS setup = ECP ****

#rmmod printer

#dmesg
...
printer.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x6104
usb.c: deregistering driver usblp
printer.c: usblp0: removed

#lsmod 
Module                  Size  Used by    Not tainted
r128                   79828   1 
thermal                 6404   0  (unused)
processor               8536   0  [thermal]
fan                     1632   0  (unused)
button                  2540   0  (unused)
snd-pcm-oss            37832   0  (unused)
snd-mixer-oss          13688   2  [snd-pcm-oss]
usb-storage            69760   1 
nfsd                   72880   8 
usb-ohci               19016   0  (unused)
snd-intel8x0           19784   3 
snd-ac97-codec         55280   0  [snd-intel8x0]
snd-pcm                59464   0  [snd-pcm-oss snd-intel8x0]
snd-timer              14596   0  [snd-pcm]
snd-mpu401-uart         3488   0  [snd-intel8x0]
snd-rawmidi            13572   0  [snd-mpu401-uart]
snd-seq-device          4272   0  [snd-rawmidi]
snd                    33988   1  [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
snd-page-alloc          5324   0  [snd-mixer-oss snd-intel8x0 snd-pcm snd-timer snd-rawmidi snd-seq-device snd]
soundcore               3652   4  [snd]
uhci                   25372   0  (unused)
ehci-hcd               18156   0  (unused)
usbcore                62220   0  [usb-storage usb-ohci uhci ehci-hcd]
xfs                   532992   1  (autoclean)
ide-scsi               10096   0 
agpgart                45764   3 

#./picprg -p0
Error, base address for 0 is 0x0000
Failed to initalize /dev/lp0

#modprobe lp

#cat /etc/modules.conf
alias parport_lowlevel parport_pc
options parport_pc io=0x378 irq=7 dma=3

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.5 ---
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. ---

#dmesg
...
printer.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x6104
usb.c: deregistering driver usblp
printer.c: usblp0: removed
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
lp0: using parport0 (interrupt-driven).

#lsmod
Module                  Size  Used by    Not tainted
parport_pc             23304   1  (autoclean)
lp                      6692   0  (unused)
parport                24936   1  [parport_pc lp]
r128                   79828   1 
thermal                 6404   0  (unused)
processor               8536   0  [thermal]
fan                     1632   0  (unused)
button                  2540   0  (unused)
snd-pcm-oss            37832   0  (unused)
snd-mixer-oss          13688   2  [snd-pcm-oss]
usb-storage            69760   1 
nfsd                   72880   8 
usb-ohci               19016   0  (unused)
snd-intel8x0           19784   3 
snd-ac97-codec         55280   0  [snd-intel8x0]
snd-pcm                59464   0  [snd-pcm-oss snd-intel8x0]
snd-timer              14596   0  [snd-pcm]
snd-mpu401-uart         3488   0  [snd-intel8x0]
snd-rawmidi            13572   0  [snd-mpu401-uart]
snd-seq-device          4272   0  [snd-rawmidi]
snd                    33988   1  [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
snd-page-alloc          5324   0  [snd-mixer-oss snd-intel8x0 snd-pcm snd-timer snd-rawmidi snd-seq-device snd]
soundcore               3652   4  [snd]
uhci                   25372   0  (unused)
ehci-hcd               18156   0  (unused)
usbcore                62220   0  [usb-storage usb-ohci uhci ehci-hcd]
xfs                   532992   1  (autoclean)
ide-scsi               10096   0 
agpgart                45764   3 

#./picprg -p0   <---- now start but really don't work

Same result without option parport_pc in modules.conf

#dmesg
lp0: ECP mode
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
lp0: using parport0 (polling).
 

Previous by date: 22 Dec 2004 18:19:29 +0000 Adding devices to gpsim, toftat.cowshed.8m.com
Next by date: 22 Dec 2004 18:19:29 +0000 Re: Linux & Parallel PIC Programmer, Byron A Jeff
Previous in thread: 22 Dec 2004 18:19:29 +0000 Re: Linux & Parallel PIC Programmer, Sylvain Giroudon
Next in thread: 22 Dec 2004 18:19:29 +0000 Re: Linux & Parallel PIC Programmer, Byron A Jeff


Powered by ezmlm-browse 0.20.