Debugging Android kernel: Passing arguments to android kernel while booting

前端 未结 2 1998

I am trying to get kgdb working with Android kernel using http://bootloader.wikidot.com/android:kgdb. I got stucked at following step:

    Configure kernel          


        
2条回答
  •  忘掉有多难
    2021-01-07 15:21

    An old post, but I've been looking at KGDB recently so thought I'd share:

    For Android, I've been passing boot params in via the bootimg.cfg file which can be specified when you create (or update) your boot image. For example, I am updating an existing boot image with a new config file and new kernel using the following:

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

    One of the params within this config file is "cmdline" where you can append your options.

    Alternatively, for a quick and dirty modification you can pass the '-c "param=value"' option to abootimg which will allow you to specify new options on the fly.

提交回复
热议问题