Android fastboot 等待设备

发布于 2024-12-08 02:02:00 字数 235 浏览 1 评论 0原文

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

<Waiting for device> 

我认为这是我设备上 fastboot 模式下的驱动程序的问题。 但我不知道如何在linux上安装驱动程序。

大家知道怎么安装驱动吗?

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> 

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

╭⌒浅淡时光〆 2024-12-15 02:02:00

D Shu 链接的页面的简短版本(没有可怕的弹出广告)是,当当前用户无法访问 USB 设备节点时,就会发生这种“等待设备”问题。在fastboot模式下,USB id是不同的,因此你可以轻松地在adb中获得它的权限,但在fastboot下却没有。

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

运行 lsusb -v | less 并找到相关部分,如下所示:

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:

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

然后

sudo service udev restart

验证设备节点权限是否已更改:

ls -Rl /dev/bus/usb

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

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.

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

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.

Now do

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

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"

then

sudo service udev restart

then verify the device node permissions have changed:

ls -Rl /dev/bus/usb

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.

怪异←思 2024-12-15 02:02:00

只需使用sudo,快速启动需要Root权限

Just use sudo, fast boot needs Root Permission

再可℃爱ぅ一点好了 2024-12-15 02:02:00

要使用 fastboot 命令,您首先需要将设备置于 fastboot 模式:

$ adb reboot bootloader

一旦设备处于 fastboot 模式,您就可以使用您自己的内核启动它,例如:

$ fastboot boot myboot.img

上面只会启动您的内核一次,当您重新启动设备时,旧内核将再次使用。要替换设备上的内核,您需要将其刷新到设备:

$ fastboot flash boot myboot.img

希望有帮助。

To use the fastboot command you first need to put your device in fastboot mode:

$ adb reboot bootloader

Once the device is in fastboot mode, you can boot it with your own kernel, for example:

$ fastboot boot myboot.img

The above will only boot your kernel once and the old kernel will be used again when you reboot the device. To replace the kernel on the device, you will need to flash it to the device:

$ fastboot flash boot myboot.img

Hope that helps.

白色秋天 2024-12-15 02:02:00

发生这种情况时,尝试使用编译器生成的 fastboot
文件路径为out/host/linux(或其他)/bin/fastboot
并且还需要sudo
它在大多数时间都有效。

try to use compiler generated fastboot when this happes.
the file path is out/host/linux(or other)/bin/fastboot
and sudo is also needed.
it works in most of the time.

你在我安 2024-12-15 02:02:00

就我而言(在 Windows 10 上),它可以很好地连接到 adb,并且我可以输入任何 adb 命令。但是,一旦使用 adb restart bootloader 到达引导加载程序,我就无法执行任何 fastboot 命令。

我注意到,在设备管理器中,当我连接到设备时它会刷新。接下来要做的就是检查连接时发生了什么变化。显然,fastboot 设备位于 Kedacom USB 设备 内。不太确定那是什么,但我更新了设备以使用不同的驱动程序,在我的例子中是 Fastboot 接口(Google USB ID),并且修复了我的等待设​​备 问题

In my case (on windows 10), it would connect fine to adb and I could type any adb commands. But as soon as it got to the bootloader using adb reboot bootloader I wasn't able to perform any fastboot commands.

What I did notice that in the device manager that it refreshed when I connected to device. Next thing to do was to check what changed when connecting. Apparently the fastboot device was inside the Kedacom USB Device. Not really sure what that was, but I updated the device to use a different driver, in my case the Fastboot interface (Google USB ID), and that fixed my waiting for device issue

野侃 2024-12-15 02:02:00

最短的答案是首先运行 fastboot 命令(在我的 ubuntu 情况下,即 ./fastboot-linux oem unlock)(这里我使用 ubuntu 12.04 和 rooting nexus4)
然后以快速启动模式打开设备电源(在 Nexus 4 中按音量下键和电源按钮)

The shortest answer is first run the fastboot command (in my ubuntu case i.e. ./fastboot-linux oem unlock) (here i'm using ubuntu 12.04 and rooting nexus4)
then power on your device in fastboot mode (in nexus 4 by pressing vol-down-key and power button)

○愚か者の日 2024-12-15 02:02:00

在您的设备上转到“设置”->“开发设置,然后选择“允许 OEM 解锁”
解锁所示你的引导加载程序

至少这对我的 MotoE 4G 有用。

On your device Go To Settings -> Dev Settings, And Select "Allow OEM Unlock"
As shown on Unlock Your Bootloader

At least this worked for me on my MotoE 4G.

笑忘罢 2024-12-15 02:02:00

您可能一切正常,但设备只允许您执行一个 fastboot 命令。如果您可以成功执行fastboot devices,但随后尝试fastboot OEM解锁,并且遇到可怕的waiting for devices,请尝试执行fastboot oem解锁后直接重新启动到fastboot,无需执行任何其他命令。

You may have everything OK but the device only allows you to execute one fastboot command. If you can successfully do a fastboot devices but you then try a fastboot oem unlock and you get the dreaded waiting for devices, try executing fastboot oem unlock directly after doing the reboot to fastboot without executing any other commands.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文