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!!! |
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. |
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 |
Great you go it sorted.
|
All times are GMT -5. The time now is 10:38 AM. |