Re: [android-porting] how do i redirect printk to adb shell?

1,129 views
Skip to first unread message

Deva R

unread,
Jun 21, 2010, 2:18:23 AM6/21/10
to bubb...@gmail.com, android-porting
you can get android logs by "adb logcat"

printk traces might be tricky., as its kernel side, 'm not sure if we can grab it over adb.
try "adb dmesg" -> it can give last kernel printk buffer copy.,


On Sun, Jun 20, 2010 at 4:49 PM, B.Y <bubb...@gmail.com> wrote:
i have a device, and i want to port android to it.
now i can boot android on this device, and connect to it with adb, but
the device doesn't have a Serial output. so how do i make printk print
debug messages to adb shell?

thanks

--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

Pavan Savoy

unread,
Jun 21, 2010, 2:37:45 AM6/21/10
to r.de...@gmail.com, bubb...@gmail.com, android-porting
echo 7 > /proc/sys/kernel/printk ?
the kernel debug message level for shells ?

--
--Pavan Savoy

Deva R

unread,
Jun 21, 2010, 3:09:25 AM6/21/10
to Pavan Savoy, bubb...@gmail.com, android-porting
>echo 7 > /proc/sys/kernel/printk
how will this help for a device without serial port??
all bubbyyby got is adb connection., 'm also curious to know, if possible, how to redirect printk traces to adb.

Pavan Savoy

unread,
Jun 21, 2010, 3:23:04 AM6/21/10
to Deva R, bubb...@gmail.com, android-porting
not even cat /proc/kmsg ?
hnm ... don't use much of adb .. have to check it out ...

--
--Pavan Savoy

Abhishek Srivastav

unread,
Jun 21, 2010, 2:40:21 PM6/21/10
to pavan...@gmail.com, Deva R, bubb...@gmail.com, android-porting
We can use the following command to get dmesg print's over ADB.

$adb shell dmesg
~
Abhishek
Reply all
Reply to author
Forward
Message has been deleted
0 new messages