how to build debug-able kernel

From: bill (clinton__bill_at_hotmail.com)
Date: 01/12/05

  • Next message: PagCal: "Re: how to build debug-able kernel"
    Date: 11 Jan 2005 21:56:51 -0800
    
    

    Hi,
      I am wondering how to debug the kernel and its first step must be
    building a debug-able kernel. I have a PowerPC development board and
    on the host I installed a powerpc GDB and some other tools to download
    the kernel imgae to the board.

      As my GDB does not support MMU, I think the 1st thing I should do is
    to disable MMU inside the kernel. I will check where is the code to
    control MMU, if it is on top of your heap, please point me for that.

      The build the kernel. And my questions are:
      1) Can I use my current .config? My understanding is yes, but not
    quite sure.
      2) What is the way to insert compile option, -g, into the Makefile?
    Is there any global env variable I can define? Or I must modify all
    the Makefile?
      3) Should I still run "make clean dep bzImage" to build?

      Am I simplifying the problem?

    Thanks so much on your help.


  • Next message: PagCal: "Re: how to build debug-able kernel"

    Relevant Pages

    • embedded linux newbie:how to build kernel for debug
      ... I am wondering how to debug the kernel and its first step must be ... As my GDB does not support MMU, I think the 1st thing I should do is ... What is the way to insert compile option, -g, into the Makefile? ...
      (comp.os.linux.setup)
    • Re: how to build debug-able kernel
      ... > building a debug-able kernel. ... > on the host I installed a powerpc GDB and some other tools to download ... > to disable MMU inside the kernel. ...
      (comp.os.linux.embedded)
    • Re: Make Error (please help i need my webcam to work)...
      ... there should be a file called Makefile. ... > Looks like you have to create a soft link into the kernel source. ... > i'm having a real tough time trying to install this nw802 video driver ... > for my dark ring logitech quickcam. ...
      (comp.os.linux.misc)
    • Re: Make Error (please help i need my webcam to work)...
      ... Did you look at line 485 in the Makefile? ... There should be a README and INSTALL file in the driver source ... I'm confused as to why you needed to use a 2.4 driver for a 2.6 ... >> Looks like you have to create a soft link into the kernel source. ...
      (comp.os.linux.misc)
    • Newbie Q: spca5xx webcam driver installation problem
      ... with the included default makefile. ... Building SPCA5XX driver for 2.5/2.6 kernel. ... # Setup the tools ... # Setup compiler warnings ...
      (comp.os.linux.setup)