Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-18-2006, 03:28 AM   #61
igorsk
Wizard
igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.
 
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
How do you link it?
igorsk is offline   Reply With Quote
Old 10-18-2006, 08:11 AM   #62
gseryakov
Enthusiast
gseryakov began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
Quote:
Originally Posted by geekraver
Aargh. I'm finally at the point where I'm trying to build my C shim program, and I get:

fatal error LNK1107: invalid or corrupt file: cannot read at 0x280 c:\Program Files\Sony\CONNECT Reader\Data\bin\ebookusb.dll 1
What you are doing? Could you show the command line for link? Dll is not supposed to be red during linking. It is DINAMIC link library. You must be using the dll instead of export library which you don't have.

How to produce export lib: create a fake dll in VS/C++ with the same name and with the same set of exported functions (at least the prototypes (names and parameters) and ordinals of the used exports should be the same), the build process will give you the export lib.
gseryakov is offline   Reply With Quote
Advert
Old 10-18-2006, 08:40 AM   #63
igorsk
Wizard
igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.
 
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
There's a simpler way:
1) run "dumpbin /exports ebookusb.dll /out:ebookusb.def"
2) Edit ebookusb.def to look like following:
Code:
LIBRARY ebookusb.dll
EXPORTS
  _CheckBlock@0
  _UsbBeginEnd@4
  _UsbBuffFree@4
...etc
3) run "lib /def:ebookusb.def"
4) use ebookusb.lib for linking.
igorsk is offline   Reply With Quote
Old 10-18-2006, 09:32 AM   #64
gseryakov
Enthusiast
gseryakov began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
Quote:
Originally Posted by igorsk
There's a simpler way:
1) run "dumpbin /exports ebookusb.dll /out:ebookusb.def"
...
That's great. It was possible to do with lib.exe in earlier (5 and smaller) versions of MSVS but the possibility was not present for some period. Good to know it is back. It was back in 6EE actually ;-).

Creating a fake dll gives you a debugging stub to work with you client.
gseryakov is offline   Reply With Quote
Old 10-18-2006, 12:11 PM   #65
geekraver
Addict
geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.
 
Posts: 364
Karma: 1035291
Join Date: Jul 2006
Location: Redmond, WA
Device: iPad Mini,Kindle Paperwhite
Thanks guys; my C/C++ experience is almost all in the *nix world, so I haven't had to deal with this much before (actually I did do this once before to access the radio interface library on smartphones, but had forgotten about it).

Will press on tonight. I'm planning on making a straight .exe that will act a bit like busybox; i.e. support dir/ls, cp, etc style commands. That way it will be useful outside of my RSS project, and won't require Python installed.
geekraver is offline   Reply With Quote
Advert
Old 10-18-2006, 11:19 PM   #66
Slava
Addict
Slava doesn't litterSlava doesn't litter
 
Slava's Avatar
 
Posts: 285
Karma: 129
Join Date: Sep 2006
Location: New England
Device: PRS-500 · iPad · K3
Come on, ppl, lets update that firmware
Slava is offline   Reply With Quote
Old 10-19-2006, 07:36 PM   #67
igorsk
Wizard
igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.
 
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
Well, I think I'm almost done. I just tried writing to the "Reserved" partition which seems to be unused and could read my data back. Next is to try updating an actual filesystem... wish me luck
igorsk is offline   Reply With Quote
Old 10-19-2006, 08:32 PM   #68
Slava
Addict
Slava doesn't litterSlava doesn't litter
 
Slava's Avatar
 
Posts: 285
Karma: 129
Join Date: Sep 2006
Location: New England
Device: PRS-500 · iPad · K3
Good luck, Igor
Slava is offline   Reply With Quote
Old 10-19-2006, 08:58 PM   #69
NatCh
Gizmologist
NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.
 
NatCh's Avatar
 
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
I'll second that!

Remember the Hard Reset instructions are there if you need them!
NatCh is offline   Reply With Quote
Old 10-19-2006, 09:22 PM   #70
porkupan
Fanatic
porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.
 
porkupan's Avatar
 
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
Good luck, Igor. Please keep us informed about how you get to where you get. Does writing to a reserved partition involve only a command to the eBook software, which then somehow flashes new data from one place in the filesystem into the read-only ones, or did you have to first encrypt the data being written?
porkupan is offline   Reply With Quote
Old 10-19-2006, 10:53 PM   #71
gseryakov
Enthusiast
gseryakov began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
Quote:
Originally Posted by NatCh
Remember the Hard Reset instructions are there if you need them!
If this is applicable to reflashing failure.

It is simple to test safely: when reflashing a reflashing screen is being shown. Run the hard reset and see if the screen came.

Good luck to you and shame on those helpless sony lurkers!
gseryakov is offline   Reply With Quote
Old 10-20-2006, 05:52 AM   #72
TadW
Uebermensch
TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.
 
TadW's Avatar
 
Posts: 2,583
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
Any idea what parts/memory partition is needed to keep the emergency hard-reset intact?
TadW is offline   Reply With Quote
Old 10-20-2006, 12:41 PM   #73
arivero
Guru
arivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it is
 
arivero's Avatar
 
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
Amusing, so we are "almost inside" the iLiad and the Reader at the same time. Not enough man resources for both, eh, TadW!
arivero is offline   Reply With Quote
Old 10-20-2006, 01:42 PM   #74
arivero
Guru
arivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it is
 
arivero's Avatar
 
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
I do not undestand this process tree. First, where are the Reader applications? Do they switch off automatically when you switch on the USB? Second, the only living thing is this tinyhttp.sh shell script. Is is related to usb? How? Is it a httpd process or a series of http gets going on continously?

Quote:
Originally Posted by igorsk
Process tree on my Reader:
Code:
1 init
  2 keventd
  7 mtdblockd
  29 msbdrv_thread
  31 sdbdrv_thread
  47 jffs2_gcd_mtd15
  49 jffs2_gcd_mtd16
  121 tinyhttp.sh
    125 tinyhttp
      126 tinyhttp
          127 tinyhttp
          128 tinyhttp
          130 tinyhttp
          131 tinyhttp
          145 tinyhttp
          147 tinyhttp
          148 tinyhttp
  123 getty
3 ksoftirqd_CPU0
4 kswapd
5 bdflush
6 kupdated
arivero is offline   Reply With Quote
Old 10-20-2006, 02:24 PM   #75
porkupan
Fanatic
porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.
 
porkupan's Avatar
 
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
Quote:
Originally Posted by arivero
I do not undestand this process tree. First, where are the Reader applications? Do they switch off automatically when you switch on the USB? Second, the only living thing is this tinyhttp.sh shell script. Is is related to usb? How? Is it a httpd process or a series of http gets going on continously?
Yeah, it looks like all Reader UI apps get switched off automatically when the USB is connected.

How are the USB comms handled? Perhaps by the interrupts and device drivers (loadable modules) on the Reader side.

Here is the list of kernel modules:
Code:
usbtg_pd                6916   1
usbtg_core             22300   0 [usbtg_pd]
snsc_mpu110_rtc         7328   1
libroi2s                9956   0
soundcore               3984   2 [libroi2s]
sd                     53200   2
ms_sep                 47188   2
librofb                52308  64

Last edited by porkupan; 10-20-2006 at 02:30 PM.
porkupan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-500 Reader Internals 2.0 (pics!) lint Sony Reader Dev Corner 60 11-18-2013 08:25 AM
Kindle DX Internals revilo Amazon Kindle 0 06-15-2009 04:50 AM
Kindle 2 Internals JSWolf Amazon Kindle 19 02-27-2009 02:45 PM
PRS-500 Connect internals igorsk Sony Reader Dev Corner 1 10-12-2006 04:50 AM
iLiad Iliad internals ali iRex Developer's Corner 39 07-21-2006 04:28 AM


All times are GMT -4. The time now is 08:55 PM.


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