1、lsusb
vivian@vivian-OptiPlex-9020:~/workspace/APP/SNPE/caffe/pytorch$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 037: ID 2833:0086 Google Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 003 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
2、编辑文件
sudo gedit /etc/udev/rules.d/51-android.rules
51-android.rules文件名每台机器不同,可去目录下自行查看
添加
SUBSYSTEM==”usb”,ATTRS{idVendor}==”2833”,ATTRS{idProduce}==”0086”,MODE=”0666”, GROUP="plugdev"
3、给文件权限
sudo chmod a+r /etc/udev/rules.d/51-android.rules
4、重新启动udev
sudo service udev restart
sudo adb kill-server
sudo adb start-server
sudo adb device
5、拔掉usb重新连上再执行adb devices即可
网友评论