Como resolver libusb error no Heimdall

Este artigo ensinará como resolver o erro de conexão libusb error no Heimdall (equivalente open source do Odin para acesso a dispositivos móveis). Como localizei várias pessoas sem solução fora do Brasil, resolvi fazer uma versão em inglês.

[ Hits: 10.292 ]

Por: andre uebe em 18/03/2016


How to solve libusb error in Heimdall



This article aims to explain a solution for libusb error has happened in time to trying mobile access using Heimdall (Open Source software to mobile connection equivalent to Odin).

About Heimdall

Heimdall is an open source alternative solution for Odin where is possible communication between PC and your mobile device. With Heimdall it is possible to upgrade Recovery and ROM by your mobile's Download Mode. For changes by Recovery Mode applets like ADB and Fastboot are demanded instead Heimdall. Know more about Heimdall bellow:
Linux: Como resolvendo libusb error no Heimdall / How to solve libusb error in Heimdall

libusb error

libusb is a C library that gives applications easy access to USB devices on many different operating systems. In this way libusb is an important part of communication process between Heimdall and you mobile device.
Heimdall from most recent Linux OS is coming with a bug that shows the follow error message in PC & mobile device connection trying:

Failed to access device. libusb error: -12
Next we will see how to solve this issue that is stressing Heimdall users.
Linux: Como resolvendo libusb error no Heimdall / How to solve libusb error in Heimdall

Solving the problem

Supposing that your mobile device is USB attached to PC you will need to open the Terminal (command line) and type:

lsusb

Attached USB devices will be showed. Search you device and look for equivalent numbers to "Bus" (greenish) and "Device" (yellowish).
Linux: Como resolvendo libusb error no Heimdall / How to solve libusb error in Heimdall
Next it is needed to change device mobile access permission. Fortunately Linux has not disgusting Register (as Windows) since all configurations are located in files. So what we need to do is find the file and change its access permission. To make it we need refering to previously found "Bus" and "Device".

USB devices are located in /dev/bus/usb/ folder. For its location is needed to refer to "Bus". In our case the number is 003.

To know which file refers the USB connected device we need to refering to "Device" number that in our case is 012.

Holding these information is possible to take file access permission typing in terminal:

ls -la /dev/bus/usb//

In our case:

ls -la /dev/bus/usb/003/012

Sistem will feedback:

crw-rw-r-- 1 root root 189, 257 Mar 12 06:46 012

To know more about file permission you can read:
Changing file permission is possible typing in Terminal:

sudo chmod 666 /dev/bus/usb//

In our case:

sudo chmod 666 /dev/bus/usb/003/012

Verifying file permission again:

ls -la /dev/bus/usb//

In our case:

ls -la /dev/bus/usb/003/012

We will obtain:

crwxrwxrwx 1 root root 189, 257 Mar 12 06:46 012

And now communication between Heimdall and your mobile device is supose going to work!

Página anterior    

Páginas do artigo
   1. Sobre o Heimdall
   2. How to solve libusb error in Heimdall
Outros artigos deste autor

Instalando o Ubuntu Linux 8.04 (Hardy heron) no MSI Wind

Instalando e usando impressora e scanner na multifuncional HP F4180 (e série F4100) no Linux

Instalando e utilizando o Web Crawler OpenWebSpider

Configurando placa 3D nVidia 6200 com TV-out no Kurumin 7

Atualização do Firmware da BIOS do Dell Inspiron via Linux

Leitura recomendada

Um olhar para o futuro: cloud, big data, programadores, economia e software livre

Fazendo jus ao nome GNU/Linux

Finnix - Ótima distro para manutenção de sistemas

Instalação do SAGU-PRO em Debian Etch Linux

Um tour pelos gerenciadores de downloads/uploads do Linux

  
Comentários
[1] Comentário enviado por removido em 19/03/2016 - 04:41h

É o VOL se internacionaizando.

Eu uso a libusb para conectar scanners Epson sem drivers no Linux.
A configuração vai no arquivo /etc/fstab.
A coisa é montada como uma espécie de sistema de arquivos.
E depois configura-se outro arquivo para localizar o scanner.

----------------------------------------------------------------------------------------------------------------
http://24.media.tumblr.com/tumblr_m62bwpSi291qdlh1io1_250.gif

# apt-get purge systemd (não é prá digitar isso!)

Encryption works. Properly implemented strong crypto systems are one of the few things that you can rely on. Unfortunately, endpoint security is so terrifically weak that NSA can frequently find ways around it. — Edward Snowden

[2] Comentário enviado por euzebio22 em 20/11/2022 - 09:18h

Pessoal, a dica do André é valiosíssima, realmente é o que funciona normal, mas eu testando aqui, vi que rodando esses comandos do heimdall no terminal, ou o front-end com o "sudo", funciona normal, acaba não necessitando dessas permissões; testei várias vezes, e todas funcionaram.


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts