anonymous@RULINUX.NET~# Last login: 2024-11-22 22:48:54
Регистрация Вход Новости | Разметка | Пользователи | Галерея | Форум | Статьи | Неподтвержденное | Трекер | Правила форума | F.A.Q. | Ссылки | Поиск
[#] [Добавить метку] [Редактировать]
Скрыть

usbasp & linux fedora21 - не работает

не хочет работать, система плату видит в списке девайсов

text

Bus 003 Device 006: ID 16c0:05dc Van Ooijen Technische Informatica shared ID for use with libusb
 
однако при попытке опросить контроллер пишет

text

[root@localhost ~]# avrdude -c usbasp -p 1200

avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.


avrdude done. Thank you.

[root@localhost ~]#
 


если вытыкаю шлейф из прошиваемого контролеера пишет тоже самое , т.е. не работает.

напустил команду

text

[root@localhost ~]# strace avrdude -c usbasp -p 1200 2&>1 1.txt
[root@localhost ~]# cat 1.txt | grep "No such"
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/tls/x86_64/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/alliance/lib/tls/x86_64", 0x7fff27ae4ae0) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/tls/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/alliance/lib/tls", 0x7fff27ae4ae0) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/x86_64/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/alliance/lib/x86_64", 0x7fff27ae4ae0) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libusb-0.1.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libftdi1.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libreadline.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libncurses.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libudev.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libdw.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libelf.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/tls/x86_64/libelf.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/elfutils/tls/x86_64", 0x7fff27ae4480) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/tls/libelf.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/elfutils/tls", 0x7fff27ae4480) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/x86_64/libelf.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/elfutils/x86_64", 0x7fff27ae4480) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/libelf.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/liblzma.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/liblzma.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libbz2.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/libbz2.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/root/.avrduderc", 0x7fff27ae3280) = -1 ENOENT (No such file or directory)
stat("/sys/subsystem", 0x7fff27ae2de0) = -1 ENOENT (No such file or directory)
[root@localhost ~]#
 


и чего делать?

vilfred(*) (2014-12-28 16:41:23)

Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0

[Ответить на это сообщение]
[#] [Добавить метку] [Редактировать] Ответ на: usbasp & linux fedora21 - не работает от vilfred 2014-12-28 16:41:23
avatar
Скрыть

Re:usbasp & linux fedora21 - не работает

это какието траблы с отсутствием /etc/ld.so.preload

как система ваще могет работать без этого файла - не знаю...

все либы есть но в других директориях, я создал все диры и сделал все симлинки - ей все равно. симлинк есть - а она все равно ругается

vilfred(*)(2014-12-28 16:47:34)

Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
[#] [Добавить метку] [Редактировать] Ответ на: usbasp & linux fedora21 - не работает от vilfred 2014-12-28 16:41:23
avatar
Скрыть

Re:usbasp & linux fedora21 - не работает

Кажется ldconfig сможет тебе помочь.

anonymous(*)(2014-12-28 16:50:16)

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
[#] [Добавить метку] [Редактировать] Ответ на: Re:usbasp & linux fedora21 - не работает от anonymous 2014-12-28 16:50:16
avatar
Скрыть

Re:usbasp & linux fedora21 - не работает

ей пофигу

text

[root@localhost ~]# ldconfig
[root@localhost ~]# strace avrdude -c usbasp -p 1200 2&>1 1.txt
[root@localhost ~]# cat 1.txt | grep "No such"
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/tls/x86_64/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/alliance/lib/tls/x86_64", 0x7fff27ae4ae0) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/tls/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/alliance/lib/tls", 0x7fff27ae4ae0) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/x86_64/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/alliance/lib/x86_64", 0x7fff27ae4ae0) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libusb-0.1.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libftdi1.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libreadline.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libncurses.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libudev.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libdw.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libelf.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/tls/x86_64/libelf.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/elfutils/tls/x86_64", 0x7fff27ae4480) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/tls/libelf.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/elfutils/tls", 0x7fff27ae4480) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/x86_64/libelf.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/elfutils/x86_64", 0x7fff27ae4480) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/libelf.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/liblzma.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/liblzma.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libbz2.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/libbz2.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/elfutils/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/root/.avrduderc", 0x7fff27ae3280) = -1 ENOENT (No such file or directory)
stat("/sys/subsystem", 0x7fff27ae2de0)  = -1 ENOENT (No such file or directory)
[root@localhost ~]#
 

vilfred(*)(2014-12-28 16:51:57)

Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
[#] [Добавить метку] [Редактировать] Ответ на: Re:usbasp & linux fedora21 - не работает от vilfred 2014-12-28 16:51:57
avatar
Скрыть

Re:usbasp & linux fedora21 - не работает

Программа небось 32битная, а у тебе не стоит поддержка 32битных либ, не?

anonymous(*)(2014-12-28 17:01:31)

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
[#] [Добавить метку] [Редактировать] Ответ на: Re:usbasp & linux fedora21 - не работает от anonymous 2014-12-28 17:01:31
avatar
Скрыть

Re:usbasp & linux fedora21 - не работает

И попробуй создать пустой /etc/ld.so.preload

anonymous(*)(2014-12-28 17:05:37)

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
[#] [Добавить метку] [Редактировать] Ответ на: Re:usbasp & linux fedora21 - не работает от anonymous 2014-12-28 17:01:31
avatar
Скрыть

Re:usbasp & linux fedora21 - не работает

а я об этом не подумал, а поддержка 32битных либ в линухе есть?

vilfred(*)(2014-12-28 17:14:37)

Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
[#] [Добавить метку] [Редактировать] Ответ на: Re:usbasp & linux fedora21 - не работает от vilfred 2014-12-28 17:14:37
avatar
Скрыть

Re:usbasp & linux fedora21 - не работает

Есть, но читай для своего дистра "совместимость с 32битными приложениями". Поидее доставляется один пакет и все.

anonymous(*)(2014-12-28 17:19:38)

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
[#] [Добавить метку] [Редактировать] Ответ на: usbasp & linux fedora21 - не работает от vilfred 2014-12-28 16:41:23
avatar
Скрыть

Re:usbasp & linux fedora21 - не работает

Выхлоп strace у меня на машине:

$ strace avrdude -c usbasp -p 1200
execve("/usr/bin/avrdude", ["avrdude", "-c", "usbasp", "-p", "1200"], [/* 127 vars */]) = 0
brk(0)                                  = 0x187c000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9dc472e000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib64/mpich/lib/tls/x86_64/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/mpich/lib/tls/x86_64", 0x7fffab1bf760) = -1 ENOENT (No such file or directory)
open("/usr/lib64/mpich/lib/tls/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/mpich/lib/tls", 0x7fffab1bf760) = -1 ENOENT (No such file or directory)
open("/usr/lib64/mpich/lib/x86_64/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/mpich/lib/x86_64", 0x7fffab1bf760) = -1 ENOENT (No such file or directory)
open("/usr/lib64/mpich/lib/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/mpich/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib64/alliance/lib/tls/x86_64/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/alliance/lib/tls/x86_64", 0x7fffab1bf760) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/tls/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/alliance/lib/tls", 0x7fffab1bf760) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/x86_64/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/alliance/lib/x86_64", 0x7fffab1bf760) = -1 ENOENT (No such file or directory)
open("/usr/lib64/alliance/lib/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/alliance/lib", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=502480, ...}) = 0
mmap(NULL, 502480, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9dc46b3000
close(3)                                = 0
open("/lib64/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300A`\2248\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=102088, ...}) = 0
mmap(0x3894600000, 2192704, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3894600000
mprotect(0x3894617000, 2093056, PROT_NONE) = 0
...
Ну и дальше работает норм
...


Ты всё из штатных репов ставил? Через yum install? Попробуй переустановить glibc.

anonymous(*)(2014-12-28 17:29:51)

Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
[#] [Добавить метку] [Редактировать] Ответ на: Re:usbasp & linux fedora21 - не работает от anonymous 2014-12-28 17:01:31
avatar
Скрыть

Re:usbasp & linux fedora21 - не работает

> Программа небось 32битная

Для этого ему пришлось бы извращаться специальным образом. Если просто сделать yum install avrdude, то в 64х битной системе поставится 64х битная версия программы:

$ yum info avrdude
Loaded plugins: auto-update-debuginfo, langpacks, show-leaves
Installed Packages
Name        : avrdude
Arch        : x86_64
Version     : 6.1
Release     : 2.fc21
Size        : 2.2 M
Repo        : installed
Summary     : Software for programming Atmel AVR Microcontroller
URL         : http://www.nongnu.org/avrdude
Licence     : GPLv2+
Description : AVRDUDE is a program for programming Atmel's AVR CPU's. It can program the
            : Flash and EEPROM, and where supported by the serial programming protocol, it
            : can program fuse and lock bits. AVRDUDE also supplies a direct instruction
            : mode allowing one to issue any programming instruction to the AVR chip
            : regardless of whether AVRDUDE implements that specific feature of a
            : particular chip.

anonymous(*)(2014-12-28 17:35:08)

Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
Этот тред читают 1 пользователь:
Анонимных: 1
Зарегистрированных: 0




(c) 2010-2020 LOR-NG Developers Group
Powered by TimeMachine

Valid HTML 4.01 Transitional Правильный CSS!