Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-06-2010, 08:47 AM   #1
Xaphiosis
Connoisseur
Xaphiosis doesn't litterXaphiosis doesn't litterXaphiosis doesn't litter
 
Posts: 52
Karma: 216
Join Date: Apr 2010
Device: PRS-T1
Lightbulb Serial console (i.e. shell) over USB

I managed to get a shell over USB to my PRS600. So I'm attaching a video (sorry about the quality, but it should show the idea) and everything required to get a shell over USB going.

In usb_con_2010_05_06.tar.gz there are two things mainly:
  • test - porkupan/igorsk loader with a small mod from me
  • reader - to put on the SD card

I wrote detailed documentation (README in each dir) on how to install and use both of these (not just to get a serial console, but in general) as well as an explanation of how everything works, what you need to get to make your own programs and how to compile the kernel modules yourself should you want to. Oh, and also some warnings about what can go wrong and how to prevent it.

Since I don't use windows, the instructions are a bit linux-centric. Since the PRS600 runs linux, I'm guessing people who want a remote shell on it have access to a linux or similar machine anyway.

I also included the program that draws the silly pattern (Sierpinsky carpet) in the video, because it's got comments on how to manipulate the screen (although I made a post about how I figured that out before).

Now that I have a shell, I can kill tinyhttp, open /dev/ttymxc1 myself and see if I can figure out how buttons and the touchscreen work. This might take a while though, so I'm taking this opportunity to release what I have.

If this sort of thing interests you, I hope you find it entertaining :)
Attached Files
File Type: avi PRS600_usb_con.avi (1.87 MB, 837 views)
File Type: gz usb_con_2010_05_06.tar.gz (399.1 KB, 647 views)
Xaphiosis is offline   Reply With Quote
Old 07-26-2010, 12:18 PM   #2
wolfing
Member
wolfing began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jul 2010
Device: Sony PRS-600
did you find anything interesting?
wolfing is offline   Reply With Quote
Old 07-26-2010, 03:53 PM   #3
Xaphiosis
Connoisseur
Xaphiosis doesn't litterXaphiosis doesn't litterXaphiosis doesn't litter
 
Posts: 52
Karma: 216
Join Date: Apr 2010
Device: PRS-T1
I do not understand your question. My post documents exactly what this allows, and my other posts report any findings I thought others might find interesting.

Personally, I find playing around with this stuff interesting in general, so I suppose the answer to your question is "yes".
Xaphiosis is offline   Reply With Quote
Old 07-30-2010, 09:26 AM   #4
wolfing
Member
wolfing began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jul 2010
Device: Sony PRS-600
Quote:
Originally Posted by Xaphiosis View Post
I do not understand your question. My post documents exactly what this allows, and my other posts report any findings I thought others might find interesting.

Personally, I find playing around with this stuff interesting in general, so I suppose the answer to your question is "yes".
Oh I was referring to this part...
Quote:
Now that I have a shell, I can kill tinyhttp, open /dev/ttymxc1 myself and see if I can figure out how buttons and the touchscreen work. This might take a while though, so I'm taking this opportunity to release what I have.
wolfing is offline   Reply With Quote
Old 07-30-2010, 05:56 PM   #5
Xaphiosis
Connoisseur
Xaphiosis doesn't litterXaphiosis doesn't litterXaphiosis doesn't litter
 
Posts: 52
Karma: 216
Join Date: Apr 2010
Device: PRS-T1
Quote:
Originally Posted by wolfing View Post
Oh I was referring to this part...
As I said, "my other posts", e.g.
http://www.mobileread.com/forums/sho....php?p=1031536
Xaphiosis is offline   Reply With Quote
Old 08-19-2010, 06:07 AM   #6
sartakov
Junior Member
sartakov began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2009
Device: ipaq 5550+opie
im looking a serial console on diagnostic port (large 100pin)
and see it turned off. on 10pin at start i can see small message from bootloader, and no more information. did you find console, or make otg usb ssh at start?
sartakov is offline   Reply With Quote
Old 08-22-2010, 11:06 PM   #7
Xaphiosis
Connoisseur
Xaphiosis doesn't litterXaphiosis doesn't litterXaphiosis doesn't litter
 
Posts: 52
Karma: 216
Join Date: Apr 2010
Device: PRS-T1
Well done on connecting directly to the port! That port is ttymxc0 on the device I think. If you want to run a terminal on that port, I suggest trying the getty command, something like this:
Code:
/sbin/getty -n -l /bin/sh 115200 ttymxc0 vt102
As for what I did, yeah, I compiled a version of g_serial (otg usb). However, to use it, you must unload g_file_storage and then load g_serial. If you do that, tinyhttp won't run successfully. Also, see the README file.

Since you're connected directly to the serial/debug port, you should be able to do a getty to get a shell on it on boot, which will work even with tinyhttp running.

Does this help you?
Xaphiosis is offline   Reply With Quote
Reply

Tags
console, prs600, serial, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle DX serial console ebs Kindle Developer's Corner 49 11-23-2011 12:36 PM
serial console goes to sleep - gated clock darron Kindle Developer's Corner 2 12-19-2009 08:52 PM
iLiad USB serial modules drazvan iRex Developer's Corner 8 07-30-2007 05:43 PM
Serial console BlackRat iRex 3 02-19-2007 04:35 AM
PRS-500 How to get reader's serial # through USB? VladSukhoy Sony Reader Dev Corner 19 02-10-2007 03:09 PM


All times are GMT -4. The time now is 05:54 AM.


MobileRead.com is a privately owned, operated and funded community.