Debugging environment for kernel

General discussion and feedback on development topics

Debugging environment for kernel

Postby mnkman » Thu Jul 28, 2011 11:20 am

What setup do you guys use to debug the kernel itself? I mean, do you have some kind of GDB stub to do kernel debugging through the USB port?

Same question for the bootloader. I had a look at the source but couldn't find anything, so I guess you're testing stuff by hand, right?
mnkman
Freshman
 
Posts: 2
Joined: Sat Jul 23, 2011 12:38 pm

Advertisement

       

Re: Debugging environment for kernel

Postby MadRocker » Sat Jul 30, 2011 5:24 pm

Yup by hand and with the kernel and android log or dmesg equivalent.
I am busy playing with cppcheck and some lint apps to get a few syntax errors sorted.
Normal six sense / ESP also works sometimes and a lot of luck.

If you can with help the kernel please feel free to jump in. I usually try to make sure some form of jtag or uarts debug option is active in the kernels I do if anyone then later wants to use a debugger it should be ready.
You should be able to start one of the sshd apps and ssh into the phone.

The restart and in touchwiz access the android files is old school / lazy but it prevents some write errors in android usb mode especially for important files and ext3 space corruption. ADB should work as well, never really like to use.
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am


Return to Development Discussion / Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

  • Advertisement
cron