在设备上的模拟环境中启动 Android 内核
我正在尝试在我的手机上编译更新的 Android 内核。问题是它最终陷入启动循环,无法访问错误消息。我可以编译在手机上运行良好的旧版本内核,因此我可以根据需要向内核配置添加自定义内容。
我的目标是使用旧的工作操作系统启动手机,然后从工作操作系统启动新内核,并能够在新内核启动期间获取日志消息。
如果这是不可能的,是否有办法(例如将消息保存到 SD 卡)稍后(启动其他工作操作系统后)访问内核(错误)日志消息。
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).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道这是否对您有帮助,但我找到了一种启动 Android 内核并在屏幕上显示控制台消息的方法。您需要以 fastboot 模式启动设备 - 对于不同的设备,这可能非常不同,以下是有关 fastboot 的一些一般信息: http://android-dls.com/wiki/index.php?title=Fastboot
对于我的设备,我可以使用 adb 和以下命令访问引导加载程序:
您的电脑上需要有 fastboot 二进制文件。然后以快速启动模式将手机连接到电脑并编写以下命令:
手机应该尝试启动内核并向屏幕打印一些消息。您可能需要调整一些参数,例如传递给内核的命令行参数(查看“fastboot help”的输出)。
I dont know if this will help you but I found a way to boot a Android kernel with console messages on screen. You need to boot your device in fastboot mode - this can be very diffrent for diffrent devices, here are some general info about fastboot: http://android-dls.com/wiki/index.php?title=Fastboot
For my device I can access boot loader by using adb and the command:
You will need to have fastboot binary on your pc. Then connect the phone to the pc in fastboot mode and write a following command:
Phone should try to boot a kernel and print some messages to the screen. You may need to tweak some parameter like command line args passed to the kernel (look at output of "fastboot help" ).