Groups
Groups
Sign in
Groups
Groups
日本Androidの会
Conversations
About
Send feedback
Help
デバイスのデバック\グ方法について
4,793 views
Skip to first unread message
Yo-tamaru
unread,
Jun 17, 2011, 11:39:00 AM
6/17/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
お世話になります。
教えてください。
Linuxでドライバのデバックをする場合
printkまたはdmesgを使い、「/var/log/messages」に
デバックメッセージを出力するのかと、思うのですが、
android端末(実機)には「/var/」フォルダを探したのですが
見つかりません。
android端末(実機)の場合どこに出力されるのでしょうか?
デバッグする方法が間違っているのでしょうか?
お手数をお掛けしますが、ご教授をお願致します。
l.b.
unread,
Jun 17, 2011, 12:40:58 PM
6/17/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
村上です。
カーネルからのprintk出力はdmesgコマンドで取得するか、
/proc/kmsg を見るかのどちらかでしょうね。
"adb shell dmesg > [PC上のファイル名]" や
"adb shell cat /proc/kmsg > [PC上のファイル名]"
をシェルスクリプトで何秒か毎に実行してPC側に保存するなどでログが流れるのを防ぐのはどうでしょう。
では。
Yo-tamaru
unread,
Jun 18, 2011, 10:09:03 AM
6/18/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
村上さん、回答ありがとうございます。
確かに、kmsgがありました。
重ね重ね質問して申し訳ありません。
今回追加したいデバイスを使うとき、
実機のUSBモードをホストモードに設定しなければいけないため
PCとの接続ができなくなります。
デバックの情報を特定のメモリに書き込むとか、できますか
--
l.b.
unread,
Jun 18, 2011, 9:39:05 PM
6/18/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
村上です。
カーネルログを内部/外部ストレージやNV、E2PROM等に直接保存できる仕組については存じません。
端末が開発用でroot取得できるなら/proc/kmsgを、そうでないならdmesgコマンドの出力をストレージに
保存するアプリを作った方が早い気がします。
ログ出力量が少ないなら、ひと通り動作させた後にUSBのモードを戻してadbからログ取得でもいいかもしれません。
内容的にはここよりも、Android Embedded Japan(
https://groups.google.com/forum/#!forum/android-embedded-japan
)
の方が適切な回答が得られると思います。
では。
Yo-tamaru
unread,
Jun 20, 2011, 7:20:35 AM
6/20/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
村上さん
迅速な回答ありがとうございます。
端末はよくわからない中華パッドです・・・
ドライバを追加つもりなのですが、デバイスが動かず、
追加したドライバがどの処理まで動いているのか確認したいと考えています。
メーカから配布されていたソースにベンダID/プロダクトIDを追加すれば動かせると踏んでいたのですが、
動的にマジック番号を取得する処理が必要なのかと、考えています。
ログの出力量が少ないはずなので、試してみます。
何かと初めてな者で、助言を頂いて助かります。
ありがとうございます。
Reply all
Reply to author
Forward
0 new messages