我想在我的Nexus 5中构建一个Android图像,但adb设备无法检测到它。我想我的笔记本电脑有USB问题。当我插入设备时,它没有连接。 以下是我用Google搜索时建议的各种命令的一些输出:
lsusb -t:
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/9p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
sudo fdisk -l </ p>
Attention : identifiant de table de partitions GPT (GUID) détecté sur « /dev/sda » ! L'utilitaire fdisk ne prend pas GPT en charge. Utilisez GNU Parted.
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 têtes, 63 secteurs/piste, 121601 cylindres, total 1953525168 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
Identifiant de disque : 0x8c377765
Périphérique Amorçage Début Fin Blocs Id. Système
/dev/sda1 1 1953525167 976762583+ ee GPT
La partition 1 ne commence pas sur une frontière de cylindre physique.
dmesg |尾巴⇒插上usb⇒dmesg| tail -n 20:这是前两个命令之间的区别:
[ 2919.365968] [UFW BLOCK] IN=wlan0 OUT= MAC=01:00:5e:00:00:01:c4:2c:03:2f:2d:54:08:00 SRC=141.223.83.156 DST=224.0.0.1 LEN=44 TOS=0x00 PREC=0x00 TTL=1 ID=63097 PROTO=UDP SPT=64283 DPT=8612 LEN=24
[ 2939.662014] [UFW BLOCK] IN=wlan0 OUT= MAC=01:00:5e:00:00:01:c4:2c:03:2f:2d:54:08:00 SRC=141.223.83.156 DST=224.0.0.1 LEN=44 TOS=0x00 PREC=0x00 TTL=1 ID=9057 PROTO=UDP SPT=54364 DPT=8612 LEN=24
[ 2954.005896] [UFW BLOCK] IN=wlan0 OUT= MAC=01:00:5e:00:00:01:c4:2c:03:2f:2d:54:08:00 SRC=141.223.83.156 DST=224.0.0.1 LEN=44 TOS=0x00 PREC=0x00 TTL=1 ID=65052 PROTO=UDP SPT=61778 DPT=8612 LEN=24
[ 2975.324471] [UFW BLOCK] IN=wlan0 OUT= MAC=01:00:5e:00:00:01:c4:2c:03:2f:2d:54:08:00 SRC=141.223.83.156 DST=224.0.0.1 LEN=44 TOS=0x00 PREC=0x00 TTL=1 ID=21456 PROTO=UDP SPT=59758 DPT=8612 LEN=24
[ 2996.844609] [UFW BLOCK] IN=wlan0 OUT= MAC=01:00:5e:00:00:01:c4:2c:03:2f:2d:54:08:00 SRC=141.223.83.156 DST=224.0.0.1 LEN=44 TOS=0x00 PREC=0x00 TTL=1 ID=58470 PROTO=UDP SPT=55238 DPT=8612 LEN=24
4.USB的设备
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=03.13
S: Manufacturer=Linux 3.13.0-55-generic ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:1d.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 8
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=8087 ProdID=8000 Rev=00.04
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 9
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=03.13
S: Manufacturer=Linux 3.13.0-55-generic xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:14.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 4
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev=03.13
S: Manufacturer=Linux 3.13.0-55-generic xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:14.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
感谢您的帮助:)