我正在尝试让 kgdb 与 Android 内核一起使用http://bootloader.wikidot.com/android:kgdb http://bootloader.wikidot.com/android:kgdb。我陷入了以下步骤:
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 文件传递启动参数,该文件可以在创建(或更新)启动映像时指定。例如,我使用以下命令使用新的配置文件和新内核更新现有的启动映像:
abootimg -u boot.img -f bootimg.cfg -u zImage-dtb
此配置文件中的参数之一是“cmdline”,您可以在其中附加选项。
或者,为了快速而肮脏的修改,您可以将'-c“param=value”'选项传递给abootimg,这将允许您动态指定新选项。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)