Android fastboot等待设备 [英] Android fastboot waiting for devices

查看:117
本文介绍了Android fastboot等待设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在NVIDIA测试git上加载自定义内核.我输入了 fastboot boot myImage 之后,我得到了:

I am trying to load a customized kernel on my NVIDIA test git. I typed fastboot boot myImage after which which I get:

<Waiting for device> 

我认为这是设备上以 fastboot 模式运行的驱动程序的问题.但是我不知道如何在Linux上安装驱动程序.

I think this is a problem with a driver on fastboot mode on my device. But I don't know how to install the driver on linux.

你们知道如何安装驱动程序吗?

Do you guys know how to install the driver?

推荐答案

由D Shu链接的页面的简短版本(并且没有可怕的弹出广告)是当USB设备节点出现此等待设备"问题当前用户无法访问.快速启动模式下的USB ID有所不同,因此您可以轻松地在adb中获得对它的许可,而在快速启动中则没有.

The short version of the page linked by D Shu (and without the horrible popover ads) is that this "waiting for device" problem happens when the USB device node is not accessible to your current user. The USB id is different in fastboot mode, so you can easily have permission to it in adb but not in fastboot.

要修复此问题(在Ubuntu上;其他系统可能会略有不同):

To fix it (on Ubuntu; other systems may be slightly different):

运行 lsusb -v |少,然后找到相关部分,如下所示:

Run lsusb -v | less and find the relevant section which will look something like this:

Bus 001 Device 027: ID 18d1:4e30 Google Inc. 
Couldn't open device, some information will be missing
Device Descriptor:
...
  idVendor           0x18d1 Google Inc.

现在开始

sudo vi /etc/udev/rules.d/11-android.rules

该文件尚不存在也可以;用这样的一行创建它,并插入您自己的用户名和供应商ID:

it's ok if that file does not yet exist; create it with a line like this, inserting your own username and vendor id:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", MODE="0640", OWNER="mbp"

然后

sudo service udev restart

然后确认设备节点权限已更改:

then verify the device node permissions have changed:

ls -Rl /dev/bus/usb

更俗气的版本是仅以root身份运行 fastboot .但是随后,您需要以root用户身份运行与设备通信的每个命令,这往往会导致其他复杂情况.从长远来看,更简单的方法是修复权限.

The even shorter cheesy version is to just run fastboot as root. But then you need to run every command that talks to the device as root, which tends to cause other complications. Simpler just to fix the permissions in the long run.

这篇关于Android fastboot等待设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆