avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] AVRdude on gnu/linux not working (ppi)


From: Francisco Seratti
Subject: [avrdude-dev] AVRdude on gnu/linux not working (ppi)
Date: Wed, 29 Apr 2009 16:38:34 -0300

Hi all,
 dont know if the proper place to post my problem but cant find a better
one.
Im trying to program atmel uc with avrdude on gnu/linux debian using the
parallel port interface but im having trouble to access the port.
I will paste below all info about it.

Thanks in advance for your help and time.

Francisco
----



osqui:~# avrdude  -v

avrdude: Version 5.6, compiled on Mar  3 2009 at 21:17:45
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular file,
skipping


avrdude: no programmer has been specified on the command line or the config
file
         Specify a programmer using the -c option and try again

osqui:~# avrdude -p m8 -c avrisp -P /dev/parport0
*avrdude: ser_open(): can't set attributes for device "/dev/parport0":
Inappropriate ioctl for device*


osqui:~# strace avrdude -p m8 -c avrisp -P /dev/parport0
execve("/usr/bin/avrdude", ["avrdude", "-p", "m8", "-c", "avrisp", "-P",
"/dev/parport0"], [/* 15 vars */]) = 0
brk(0)                                  = 0x642000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4279041000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f427903f000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=110186, ...}) = 0
mmap(NULL, 110186, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f4279024000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/libusb-0.1.so.4", O_RDONLY)  = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\31\0\0\0\0\0\0"..., 832)
= 832
fstat(3, {st_mode=S_IFREG|0644, st_size=32608, ...}) = 0
mmap(NULL, 2128016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f4278c1e000
mprotect(0x7f4278c25000, 2093056, PROT_NONE) = 0
mmap(0x7f4278e24000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f4278e24000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P>\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=534736, ...}) = 0
mmap(NULL, 2629848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f427899b000
mprotect(0x7f4278a1d000, 2093056, PROT_NONE) = 0
mmap(0x7f4278c1c000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x81000) = 0x7f4278c1c000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/libreadline.so.5", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20M\1\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=260984, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4279023000
mmap(NULL, 2361408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f427875a000
mprotect(0x7f4278792000, 2097152, PROT_NONE) = 0
mmap(0x7f4278992000, 32768, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x38000) = 0x7f4278992000
mmap(0x7f427899a000, 2112, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f427899a000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/libncurses.so.5", O_RDONLY)  = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240&\1\0\0\0\0\0"..., 832) =
832
fstat(3, {st_mode=S_IFREG|0644, st_size=256928, ...}) = 0
mmap(NULL, 2353792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f427851b000
mprotect(0x7f4278556000, 2093056, PROT_NONE) = 0
mmap(0x7f4278755000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3a000) = 0x7f4278755000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\346\1\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1375536, ...}) = 0
mmap(NULL, 3482264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f42781c8000
mprotect(0x7f4278311000, 2097152, PROT_NONE) = 0
mmap(0x7f4278511000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x149000) = 0x7f4278511000
mmap(0x7f4278516000, 17048, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4278516000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\r\0\0\0\0\0\0"..., 832)
= 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14608, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4279022000
mmap(NULL, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f4277fc4000
mprotect(0x7f4277fc6000, 2097152, PROT_NONE) = 0
mmap(0x7f42781c6000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f42781c6000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4279021000
arch_prctl(ARCH_SET_FS, 0x7f42790216f0) = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "7\247\33k\245=\1\233", 8)      = 8
close(3)                                = 0
mprotect(0x7f42781c6000, 4096, PROT_READ) = 0
mprotect(0x7f4278511000, 16384, PROT_READ) = 0
mprotect(0x7f4278c1c000, 4096, PROT_READ) = 0
mprotect(0x7f4279042000, 4096, PROT_READ) = 0
munmap(0x7f4279024000, 110186)          = 0
brk(0)                                  = 0x642000
brk(0x663000)                           = 0x663000
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
open("/etc/avrdude.conf", O_RDONLY)     = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff810400d0) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat(3, {st_mode=S_IFREG|0644, st_size=467997, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f427903e000
read(3, "# $Id: avrdude.conf.in,v 1.140 2"..., 8192) = 8192
read(3, " input data bit\n#\n#       'o'  ="..., 8192) = 8192
brk(0x685000)                           = 0x685000
brk(0x6a7000)                           = 0x6a7000
read(3, "STK200\";\n  type  = par;\n  buff  "..., 8192) = 8192
brk(0x6c8000)                           = 0x6c8000
brk(0x6e9000)                           = 0x6e9000
read(3, ";\n        max_write_delay = 2000"..., 8192) = 8192
read(3, "e_delay = 4500;\n        max_writ"..., 8192) = 8192
read(3, "      \"x  x  x  x   x  x a1 a0  "..., 8192) = 8192
read(3, "vcode   = 0x42;\n    avr910_devco"..., 8192) = 8192
read(3, "E, 0x3E, 0x2F, 0x3F,\n        0x4"..., 8192) = 8192
brk(0x70a000)                           = 0x70a000
read(3, " 1;\n\n    memory \"eeprom\"\n       "..., 8192) = 8192
read(3, "       \"  x   x   x   x    a11 a"..., 8192) = 8192
read(3, "              \"x x x x  x x x x "..., 8192) = 8192
read(3, "0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x"..., 8192) = 8192
read(3, "   0   0      0   0   0   0\",\n\t\t"..., 8192) = 8192
read(3, "    i   i   i   i\";\n\n        wri"..., 8192) = 8192
read(3, " size            = 4;\n\n        r"..., 8192) = 8192
brk(0x72b000)                           = 0x72b000
read(3, "out = 10;\n    programfusepulsewi"..., 8192) = 8192
read(3, "lay = 4500;\n        readback_p1 "..., 8192) = 8192
read(3, " 1 x  x x x x\",\n                "..., 8192) = 8192
read(3, "          \"0 0 0 0  0 0 0 0   o "..., 8192) = 8192
read(3, "x   x   x   x      x   x   x  a8"..., 8192) = 8192
read(3, "0   0 0 0 0  0 0 0 0\",\n         "..., 8192) = 8192
read(3, "--------------------------------"..., 8192) = 8192
brk(0x74c000)                           = 0x74c000
read(3, "rom\"\n        paged           = n"..., 8192) = 8192
read(3, "                         \"  o   "..., 8192) = 8192
read(3, "             \"x x x x  x x x x  "..., 8192) = 8192
read(3, "o o  o o o o\";\n      ;\n  ;\n\n#---"..., 8192) = 8192
read(3, "\"  x   x   x   x      x   x   x "..., 8192) = 8192
read(3, " \"0  0  1  1   0  0  0  0   x  x"..., 8192) = 8192
brk(0x76d000)                           = 0x76d000
read(3, "    \"  0   0   0   0  a11 a10  a"..., 8192) = 8192
read(3, "debugwire = yes;\n     flash_inst"..., 8192) = 8192
read(3, "a1 a0    o o o o  o o o o\";\n\n   "..., 8192) = 8192
read(3, "                         \"  x  x"..., 8192) = 8192
read(3, "    size            = 1;\n       "..., 8192) = 8192
read(3, "7, 0x6A, 0x7A, 0x6B, 0x7B,\n\t0xBE"..., 8192) = 8192
read(3, "        \"  0   0   0   0  a11 a1"..., 8192) = 8192
brk(0x78e000)                           = 0x78e000
read(3, "  signature        = 0x1e 0x91 0"..., 8192) = 8192
read(3, "lay = 4500;\n         readback_p1"..., 8192) = 8192
read(3, "             \"  x   x   x  a4   "..., 8192) = 8192
read(3, " 0  1 1 0 0  1 0 1 0  1 0 0 0\",\n"..., 8192) = 8192
read(3, "  1 0 0 x  x x x x\",\n           "..., 8192) = 8192
read(3, "  memory \"flash\"\n         paged "..., 8192) = 8192
read(3, " a1 a0   o  o  o  o   o  o  o  o"..., 8192) = 8192
brk(0x7af000)                           = 0x7af000
read(3, "   \"x  x  x  x   x  x a1 a0   o "..., 8192) = 8192
read(3, " 0;\n    programlockpolltimeout ="..., 8192) = 8192
read(3, "     readback_p2     = 0x00;\n   "..., 8192) = 8192
read(3, "      \"  0   0   0   0      0   "..., 8192) = 8192
read(3, "1 1 1 x  x x x x\",\n             "..., 8192) = 8192
read(3, "\t= 1;\n\n    hvsp_controlstack   ="..., 8192) = 8192
brk(0x7d0000)                           = 0x7d0000
read(3, "page_size       = 64;\n         n"..., 8192) = 8192
read(3, "      = \"1 0 1 0  1 1 0 0  1 0 1"..., 8192) = 8192
read(3, "o\";\n      ;\n\n    memory \"signatu"..., 8192) = 8192
read(3, "vleavestabdelay    = 15;\n    chi"..., 8192) = 8192
read(3, "4500;\n        max_write_delay = "..., 8192) = 8192
read(3, "      read            = \"0 1 0 1"..., 8192) = 8192
read(3, "= 9000;\n        max_write_delay "..., 8192) = 8192
brk(0x7f1000)                           = 0x7f1000
read(3, "   = 100;\n    cmdexedelay       "..., 8192) = 8192
read(3, "      readback_p2     = 0xff;\n  "..., 8192) = 8192
read(3, "e            = 4096;\n      ;\n\n  "..., 8192) = 1053
read(3, "", 4096)                       = 0
read(3, "", 8192)                       = 0
*ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff81040090) = -1 ENOTTY
(Inappropriate ioctl for device)*
close(3)                                = 0
munmap(0x7f427903e000, 4096)            = 0
stat("/root/.avrduderc", 0x7fff81042ad0) = -1 ENOENT (No such file or
directory)
open("/dev/parport0", O_RDWR|O_NOCTTY|O_NONBLOCK) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff81040910) = -1 EINVAL (Invalid
argument)
fstat(2, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 4), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f427903e000
write(2, "avrdude: ser_open(): can't set a"..., 101avrdude: ser_open():
can't set attributes for device "/dev/parport0": Inappropriate ioctl for
device
) = 101
exit_group(1)                           = ?



osqui:~# ls -l /dev/parport0
crw-rw---- 1 lp lp 99, 0 2009-04-29 16:18 /dev/parport0


osqui:~# lsmod |grep pp
ppdev                   7560  0
parport                37280  2 ppdev,parport_pc


osqui:~# uname -a
Linux osqui.burialnet 2.6.29.1 #1 SMP Tue Apr 7 13:56:28 ART 2009 x86_64
GNU/Linux


osqui:~# dmesg|tail
ppdev0: claim the port first
ppdev0: claim the port first
ppdev: user-space parallel port driver
ppdev0: claim the port first
ppdev0: claim the port first
ppdev0: claim the port first
ppdev0: claim the port first
ppdev0: claim the port first
ppdev0: claim the port first
ppdev0: claim the port first
osqui:~#


reply via email to

[Prev in Thread] Current Thread [Next in Thread]