View Single Post
Old 12-23-2011, 04:34 PM   #4
yifanlu
Kindle Dissector
yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.
 
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
Quote:
Originally Posted by LittleLui View Post
To elaborate a little on yifanlu's statement: On the Kindle Touch, via ssh, you just have to
1. > mntroot rw
2. > vi /etc/upstart/framework
3. (if not yet familiar with vi, learn to use it)
4. find the commented-out line with the debug configuration (starts with #DEBUG), remove the # and change to suit (i tend to set suspend=n), save it
5. (i usually mntroot ro immediately when i don't need rw anymore)
6. > restart framework

Then you can connect to the VM on the kindle through the usbnetworking.

Obviously, the most daring task of those is number three *g*. Not sure if any editors besides vi are on the kindle, but you could of course always scp to/from your development machine and use your preferred one.
Even easier (and you don't have to risk losing amazon updates by modifying the rootfs): go to USB mode and mount on the Kindle's USB drive, make a empty text file named "DEBUG_CVM_JDWP". Then restart and switch to usbnetwork mode. You debug with usbnetwork's IP.
yifanlu is offline   Reply With Quote