4

I am trying to compile a newer Android kernel on my phone. The problem is it ends up in a boot loop without any means to access error messages. I can compile an older version of the kernel wich runs well on the phone, so I am able to add custom things to the kernel configuration if needed.

My goal is to boot up the phone with the old, working OS, then boot up the new kernel from the working OS and being able to get log messages during the new kernel's boot.

If this is impossible, is there a way (for example to save messages to the SD card) to access kernel (error) log messages later (after booting up an other working OS).

4

1 回答 1

2

我不知道这是否会对您有所帮助,但我找到了一种在屏幕上使用控制台消息启动 Android 内核的方法。您需要在 fastboot 模式下启动设备 - 这对于不同的设备可能非常不同,这里有一些关于 fastboot 的一般信息:http ://android-dls.com/wiki/index.php?title=Fastboot 对于我的设备我可以使用 adb 和以下命令访问引导加载程序:

adb reboot bootloader

你需要在你的电脑上安装 fastboot 二进制文件。然后在fastboot模式下将手机连接到pc并编写以下命令:

fastboot boot [path/to/your/kernel]

手机应该尝试启动内核并将一些消息打印到屏幕上。您可能需要调整一些参数,例如传递给内核的命令行参数(查看 "fastboot help" 的输出)。

于 2012-01-12T13:04:07.167 回答