LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2012, 01:40 AM   #1
arundhyoti
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Rep: Reputation: 0
failed to open parellel port


Hi all

I am really new to Linux. I am trying to run a code on Atmega8 via parallel port.
everytime i execute make flash, gives an error

avrdude: can't open device "/dev/parport0": Permission denied
avrdude: failed to open parallel port "/dev/parport0"

So seems like need to install few files. how? and what? Please help!!!
 
Old 07-09-2012, 02:03 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
You get an 'Permisson denied' error. So it seems that the user you are running avrdude as does not have the permission to access /dev/parport0.
Please provide the output of ls -lh /dev/par* or try running the command as the root user.

To be more of help it would be good if you provide the name of the distribution you have in use.
 
Old 07-09-2012, 02:45 AM   #3
arundhyoti
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Smile

Well I am using Ubuntu 12.04

I was doing my search meanwhile. Have resolved the problem for now.

mknod /dev/parport0 c 99 0

and had to change permission from root using

chmod a+rw /dev/parport0

which i could not since i dont have access to root.

So went to the directory containing my .c file typed following commands.

make
sudo make flash

This worked!
So I am thinking when i made the device node, access permission was granted by default since i am the only user.

thanks for you reply

Cheers
 
Old 07-09-2012, 02:55 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Great you go it sorted.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh -L '>channel 3: open failed: connect failed:' Luke771 Linux - Networking 14 01-24-2012 03:14 AM
Warning: remote port forwarding failed for listen port 7869 windstory Linux - Newbie 1 08-02-2010 10:07 AM
ssh -D "channel 6: open failed: administratively prohibited: open failed" 1veedo Linux - Networking 1 06-24-2009 09:23 PM
Dosemu to program parellel port TheBrick Linux - Hardware 4 05-31-2006 04:08 AM
Python Parellel Port Programming pembo13 Programming 2 10-26-2004 05:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration