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-31-2006, 03:42 PM   #91
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
And any more word on an Install-the-font-I-select executable file?
NatCh is offline   Reply With Quote
Old 10-31-2006, 04:11 PM   #92
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
Quote:
Originally Posted by kovidgoyal
igor a quick question. File permissions information is transmitted in the last 4 bytes of the packet. However, looking at my USB logs, the last 4 bytes are always zeroed (i.e., the reader sends no information). Looking at ebook.py you seem to assign the file permissions arbitrarily. Is that correct?
Um yeah, I don't use permissions in the listing (maybe I should fix that...). Afair, the USB interface transmits only one flag - "read-only", not the full mask. I will check later.
igorsk is offline   Reply With Quote
Advert
Old 10-31-2006, 08:44 PM   #93
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,367
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
oh in that case do you know the value of the flag for read only, because all the files I've got logs for have the permissions DWORD set to zero. Alternatively, if you could give me the path to a read-only file, I can generate new logs. I suppose I could just look for any non-zero value but it would be nice to be precise.

Thanks

Last edited by kovidgoyal; 11-02-2006 at 05:46 PM.
kovidgoyal is offline   Reply With Quote
Old 11-07-2006, 12:21 AM   #94
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,367
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
free space

igor do you know the command number for checking free space on the device?
kovidgoyal is offline   Reply With Quote
Old 11-07-2006, 01:38 AM   #95
cb2006
Junior Member
cb2006 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2006
Device: SonyReader
I believe it is 0x103.
cb2006 is offline   Reply With Quote
Advert
Old 11-07-2006, 02:00 AM   #96
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,367
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm i seem to be getting correct free space on /Data with 0x53, but I'll try 0x103 and see.

EDIT:
Looks like 0x103 gives the free space on the reader memory whereas 0x53 gives the free space and total space for a device identified by a path. /Data is the reader mem, but b:/ doesn't seem to work for the SD card. Time to generate new logs I suppose

EDIT2:
0x53 works for the cards as well, just needed to increase the timeout

Last edited by kovidgoyal; 11-07-2006 at 02:33 AM.
kovidgoyal is offline   Reply With Quote
Old 11-07-2006, 07:05 AM   #97
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
Here's the full list of commands. I'm a bit busy with something else at the moment, so no parameters description, sorry...
Code:
   0 GetUsbProtocolVersion
   1 ReqUsbConnect
  
  10 FskFileOpen
  11 FskFileClose
  12 FskGetSize
  13 FskSetSize
  14 FskFileSetPosition
  15 FskGetPosition
  16 FskFileRead
  17 FskFileWrite
  18 FskFileGetFileInfo
  19 FskFileSetFileInfo
  1A FskFileCreate
  1B FskFileDelete
  1C FskFileRename
  
  30 FskFileCreateDirectory
  31 FskFileDeleteDirectory
  32 FskFileRenameDirectory
  33 FskDirectoryIteratorNew
  34 FskDirectoryIteratorDispose
  35 FskDirectoryIteratorGetNext
  
  52 FskVolumeGetInfo
  53 FskVolumeGetInfoFromPath
 
  80 FskFileTerminate
 
 100 ConnectDevice
 101 GetProperty
 102 GetMediaInfo
 103 GetFreeSpace
 104 SetTime
 105 DeviceBeginEnd
 106 UnlockDevice
 107 SetBulkSize 
 
 110 GetHttpRequest
 111 SetHttpRespponse
 112 Needregistration
 114 GetMarlinState

 200 ReqDiwStart
 201 SetDiwPersonalkey
 202 GetDiwPersonalkey
 203 SetDiwDhkey
 204 GetDiwDhkey
 205 SetDiwChallengeserver
 206 GetDiwChallengeserver
 207 GetDiwChallengeclient
 208 SetDiwChallengeclient
 209 GetDiwVersion
 20A SetDiwWriteid
 20B GetDiwWriteid
 20C SetDiwSerial
 20D GetDiwModel
 20C SetDiwSerial
 20E GetDiwDeviceid
 20F GetDiwSerial
 210 ReqDiwCheckservicedata
 211 ReqDiwCheckiddata
 212 ReqDiwCheckserialdata
 213 ReqDiwFactoryinitialize
 214 GetDiwMacaddress
 215 ReqDiwTest
 216 ReqDiwDeletekey

 300 UpdateChangemode
 301 UpdateDeletePartition
 302 UpdateCreatePartition
 303 UpdateCreatePartitionWithImage
 304 UpdateGetPartitionSize
igorsk is offline   Reply With Quote
Old 11-07-2006, 11:50 AM   #98
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,367
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Thanks that makes my life a little easier
kovidgoyal is offline   Reply With Quote
Old 11-10-2006, 02:47 PM   #99
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
Hey, all you happy hackers! It's been quiet on this for a while, so I wanted to check if there might be any progress on an Install-the-font-I-select executable file?

For those of us who are a bit less adventurous, you know.
NatCh is offline   Reply With Quote
Old 01-06-2007, 01:05 PM   #100
susall
Member
susall began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jun 2005
where fonts dir on device?

I can't seem to find a fonts directory under Data, using Igor's tool, on the device. I was wondering where else to look?
susall is offline   Reply With Quote
Old 01-06-2007, 01:23 PM   #101
susall
Member
susall began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jun 2005
I found the exact directory, using Igor's tool.

/opt/sony/ebook/FONT
susall is offline   Reply With Quote
Old 02-11-2007, 10:47 PM   #102
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
Igor,

Any hope the pwrite will work again in the new firmware? Or are you among those smart ones who decided not to update?
porkupan is offline   Reply With Quote
Old 02-12-2007, 04:31 AM   #103
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
It stopped working? That's strange. I would expect them to keep the interface. Anyway, I'll try to have a look into it in the next few days.
igorsk is offline   Reply With Quote
Old 02-12-2007, 08:36 AM   #104
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 igorsk
It stopped working? That's strange. I would expect them to keep the interface. Anyway, I'll try to have a look into it in the next few days.
Well, it seemed to work. But reloading font-updated /opt (Fsk) filesystem made the device pretty much inaccessible (stuck in "Starting up..." screen with blinking yellow light). Ended up having to hard reset (and the documented hard reset didn't work either) to get it back. Sounded like the /opt filesystem was pretty much blown away by pwrite.

Looks like you don't much follow our discussions on the-ebook-org.
porkupan is offline   Reply With Quote
Old 02-12-2007, 12:23 PM   #105
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
Igor,

Perhaps this is no news to you, but there may be something else in the work, other than the pwrite failing. As you know well, the filesystems engaged in the recovery mode were not touched by the update. Therefore pwrite should continue working as it used to, right?

I am in no way an expert in CRAMFS, but I noticed that the format of the images presented by the update are somewhat different from what we had seen earlier. The superblock's flags field is zeroed out, the FS length field doesn't seem to make sense, and there are some other fields, which seem incorrect. Perhaps mtdmount (the Sony tool responsible for mounting filesystems) has been changed to look for certain parameters, which makes it impossible to mount a mkcramfs-generated image?
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 03:49 PM.


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