[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] /dev/parport0 not recognized
From: |
tacorner |
Subject: |
Re: [avrdude-dev] /dev/parport0 not recognized |
Date: |
Wed, 16 Jun 2004 03:17:01 +0200 (CEST) |
On my system:
inx# ls -l /dev/parport0
crw-rw---- 1 root lp 99, 0 Jun 13 22:06 /dev/parport0
address@hidden:/home/tcorner/avr-gcc/src/loconet-throttle/cvs-20040613/apps/OmniL
inx# uname -a
Linux wanderer 2.6.5 #13 Sat Jun 12 22:22:29 CEST 2004 i686 unknown unknown
GNU/Linux
Ponyprog claims to be using /dev/parport0. I have parport compiled into the
kernel so I don't need any modules. In ponyprog the ports are listed Windows
fashion. i,e, LPT1, LPT2, & LPT3, but if you are not root the port selections
are greyed out and you can't change the selection and it stays at LPT2 which
doesn't exist. This is true even if you give all users read/write priveleges
and change the user to the current user.
now:
avrdude# ls -l /dev/parport?
crw-rw-rw- 1 tcorner users 99, 0 Jun 13 22:06 /dev/parport0
crw-rw-rw- 1 tcorner users 99, 1 Jun 13 22:06 /dev/parport1
crw-rw-rw- 1 tcorner users 99, 2 Jun 13 22:06 /dev/parport2
crw-rw-rw- 1 tcorner users 99, 3 May 20 2002 /dev/parport3
Tom
On 15-Jun-2004 Theodore A. Roth wrote:
> On Wed, 16 Jun 2004 address@hidden wrote:
>
>> I am running avrdude on Slackware 9.1 Linux with kernel 2.6.6. I get the
>> following response:
>> ----------------------------------------------------------------------
>> inx# avrdude -p m8 -c dt006
>> avrdude: can't open device "/dev/parport0": No such device or address
>> avrdude: failed to open parallel port "/dev/parport0"
>
> Does /dev/parport0 exist?
>
> Here's what is looks like on my debian system
>
> $ ls -l /dev/parport0
> crw-rw-rw- 1 root root 99, 0 Oct 22 2002 /dev/parport0
> $ uname -a
> Linux knuth 2.6.6-1-686 #1 Wed May 12 14:57:57 EST 2004 i686 GNU/Linux
>
> Do you have the parport module installed?
>
> $ lsmod | grep par
> parport_pc 35008 1
> parport 41832 2 lp,parport_pc
>
>
>> ----------------------------------------------------------------------
>> I am running as root and have no trouble programming an ATMega8 with
>> ponyprog2000 for linux. I get the same response with version 4.3.0 and the
>> current cvs.
>
> Does ponyprog use the parport driver or does it use direct IO access to
> the parallel port? Does ponyprog work if you are not root? You really
> should not need to be root to run avrdude.
>
>>
>> Trying /dev/lp0 yields the following:
>> ----------------------------------------------------------------------
>> inx# avrdude -P /dev/lp0 -p m8 -c dt006
>> avrdude: can't claim device "/dev/lp0": Invalid argument
>> ----------------------------------------------------------------------
>
> I don't think that /dev/lp0 will work since we are not using direct IO
> access with avrdude.
>
>
> ---
> Ted Roth
> PGP Key ID: 0x18F846E9
> Jabber ID: address@hidden
>
---------------------------------------------------
|\/\/\___/\/\/| Carol Anne Corner &
\____ o o ____/ Thomas Corner address@hidden
) ( 16-Jun-2004 02:51:55 Vienna, Austria
( * * ) mailer: xfmail
\___/ Web Page: www.corner.chello.at
---------------------------------------------------