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: 5.385 ]

Por: andre uebe em 18/03/2016 | Blog: http://resa.net.br


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 kernel otimizado do Ubuntu no Asus eeepc

Capturando vídeo através do mencoder

Avidemux - Corrigindo arquivos com "crash"

Traduzindo legendas de maneira prática no Linux

Utilizando o Smartphone Samsung Omnia 900i como modem via bluetooth no Ubuntu 9.10

Leitura recomendada

Gerenciamento de Lan House com Main Control System

Projeto OpenFarm

Configure seu Linux pela Web!

Quando é que eu vou usar isso na minha vida?

Elaborando vídeo-aula no Linux com Gtk-recordMydesktop

  
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


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts