
我试图让kgdb使用http://bootloader.wikidot.com/android:kgdb使用AndroID内核.我被困在以下步骤:
Configure kernel command line Specify ttyGS0 as the kgdboc device. Add the following into the kernel command line (possibly in BoardConfig.mk) kgdboc=ttyGS0 kgdbretry=4 The second option "kgdbretry=4" is a new parameter added to kgdboc.c. It means that if kgdb cannot find the device "ttyGS0" in early boot, it will retry once after the specifIEd number of seconds. This is a work-around if the USB device is not immediately initialized during system boot.有人可以告诉我它指的是哪个BoardConfig.mk吗?或者是否有任何其他方法在启动时将这些参数传递给内核?
解决方法:
一个旧帖子,但我最近一直在关注KGDB所以我想分享:
对于AndroID,我一直通过bootimg.cfg文件传递boot params,可以在创建(或更新)启动映像时指定.例如,我使用以下内容使用新配置文件和新内核更新现有启动映像:
abootimg -u boot.img -f bootimg.cfg -u zImage-dtb此配置文件中的一个参数是“cmdline”,您可以在其中附加选项.
或者,对于快速和脏的修改,您可以将’-c“param = value”’选项传递给abootimg,这将允许您动态指定新选项.
总结以上是内存溢出为你收集整理的调试Android内核:在启动时将参数传递给android内核全部内容,希望文章能够帮你解决调试Android内核:在启动时将参数传递给android内核所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)