0

我正在尝试使用http://bootloader.wikidot.com/android:kgdb让 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 吗?或者有没有其他方法可以在引导时将这些参数传递给内核?

4

2 回答 2

0

一篇旧帖子,但我最近一直在看 KGDB,所以想分享一下:

对于 Android,我一直在通过 bootimg.cfg 文件传递​​引导参数,该文件可以在您创建(或更新)引导映像时指定。例如,我正在使用以下内容使用新配置文件和新内核更新现有启动映像:

abootimg -u boot.img -f bootimg.cfg -u zImage-dtb

此配置文件中的参数之一是“cmdline”,您可以在其中附加您的选项。

或者,为了进行快速而肮脏的修改,您可以将“-c "p​​aram=value"' 选项传递给 abootimg,这将允许您动态指定新选项。

于 2015-05-30T12:09:18.037 回答
-1

http://www.stlinux.com/u-boot/kernel-booting

您可以像这样更改内核命令行:

setenv bootargs mem=128M kgdboc=ttyGS0 kgdbretry=4

saveenv

您可能需要删除console=ttyAS0,115200kgdb 才能正常工作。

于 2013-09-24T05:47:01.247 回答