Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to test a custom Android build on a tablet and I need to know the method to debug the Android kernel from booting in the tablet?

The tablet has only a screen, 2 USB ports and an HDMI port.

share|improve this question
What do you mean by 'from booting'? Also this question comes close to a development one which would be better on StackOverflow. – Peanut Apr 4 '13 at 2:13
I mean that i need to read the debug message since the boot stage – wa27 Apr 4 '13 at 2:49
Have you tried to turn on USB-Debugging, and then after boot call adb shell dmesg >boot.log? As on Linux systems, this should store all messages from the device boot into a file called boot.log. // What is it you want to achieve? The more precise you are with your question, the more precise we can be with our answers :) – Izzy Apr 4 '13 at 6:52

Generally, what you need to achieve this is to connect to the serial console of the system. Like on a desktop system, this gives you all the kernel and init messages as the device boots, and access to a shell once the device has booted.

How to connect to the serial console varies between devices, and you haven't told us which device you have. Usually, you need to take the main board out of its case (this is irreversible in some devices, as you have to damage the case to get it open), and find the serial port. In most cases, there won't be any connector there, just exposed points on the motherboard to solder a connector or ribbon cable to. You need to find the datasheet for the device online to find the right point to connect to.

On some devices, the serial console is instead provided by connecting a special adaptor to the headphone jack. With a proper build of the kernel, the device can be made to send serial output on that connector, and you can connect to it with an adaptor you make yourself (if you can get the specifications from the manufacturer).

share|improve this answer
Interesting that serial console can be sent to headphone jack! mind giving more details? :) – t0mm13b Sep 12 '13 at 10:51
I'm not sure I can give any more details, as I used this feature while working under NDA. It's a relatively recent thing, and requires hardware support. – Dan Hulme Sep 12 '13 at 11:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.