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 03-02-2010, 11:46 AM   #601
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Guys, I feel tired and do not want to rush yet another release. It's postponed until tomorrow.
kartu is offline   Reply With Quote
Old 03-02-2010, 12:34 PM   #602
PaladinBL
Enthusiast
PaladinBL began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Mar 2010
Location: Banjaluka, BiH
Device: Sony PRS-505
No problem
PaladinBL is offline   Reply With Quote
Old 03-03-2010, 06:15 AM   #603
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Just to elaborate, what was wrong with 1.01. In a startup script there was a change, at the moment needed mostly by Russian/Chinese speaking users:

Code:
/usr/local/sony/bin/mtdmount -t vfat -o utf8 -o shortname=winnt Data /Data 
if [ -f /Data/database/system/PRSPlus/prsp.sh ]
then
	. /Data/database/system/PRSPlus/prsp.sh
fi
/bin/umount /Data
.

What it basically did was, mount internal memory, check if prsp.sh file exists, call it. This kind of call:

. /Data/database/system/PRSPlus/prsp.sh

basically means that content of the prsp.sh file is included in the calling script. (this was "needed" to allow setting variables visible in the caller script. Russians need LD_PRELOAD variable to point to their win1251 -> utf8 translator) Which means one could easily write a broken "custom" script and brick the device (well, 10 resets, or reset and hold bookmark + volume+ buttons still works, no worries ) which has happened quite quickly after release. And by broken, I mean, even having windows style \r\n end of lines was enough.

So there is a nasty choice between opening Pandora's box and not letting big part of the users to have what they'd like to have.

Now, the solution, I am still evaluating it and your ideas/comments are welcome, would probably look like this (written in human words ):

Code:
if exists prsp.sh and does not exist /Data/guard then 
  touch /Data/guard 
  /bin/sh prsp.sh
end
this would call custom prsp.sh only if "guard" file doesn't exist in internal memory. The "guard" file would then be deleted either by the calling script itself or by the PRS+ script. The latter is probably the best way, as if PRS+ script has started, then everything went ok and even if it didn't, there is a way to not let it start - just by connect reader it to PC, when device is booting.

In the end, it would allow anyone to experiment with custom shell script without fearing to have to brick/reflash the reader.

Linux gurus, tell me what you think.

Last edited by kartu; 03-03-2010 at 06:22 AM.
kartu is offline   Reply With Quote
Old 03-03-2010, 07:35 AM   #604
Joember
Enthusiast
Joember began at the beginning.
 
Posts: 32
Karma: 46
Join Date: Feb 2010
Device: PRS-505
The solution seems like a sensible one. Any reason for not putting the guard file on the SD card root instead? (Edit: Actually, the guard file is automatically created by the PRS-505 when plugged into USB... isn't it? Never mind the SD card then.)

Can we still expect the new release today? Or is it likely to be delayed?

Lastly, do you know of what font Russian and Chinese users employ with your script? The PRS Customizer unicode font is still more limited than I generally prefer.

Joember

Ps.: Unbricked my PRS-505 by the way. The trick was to use a wall charger (part of the problam was battery issues), and reformat (wipe clean) the internal memory.

Pps.: Do you have a guide on how to do translations of your Enhanced firmware?

Last edited by Joember; 03-03-2010 at 07:38 AM.
Joember is offline   Reply With Quote
Old 03-03-2010, 07:44 AM   #605
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Joember
It will be delayed. I want to do more testing before releasing it.

Quote:
The solution seems like a sensible one. Any reason for not putting the guard file on the SD card root instead?
Well, not everyone and not always has an SD card in the reader. Allowing to start prsp.sh from SD card sounds like a good idea. But IM solution is still needed.

Quote:
Lastly, do you know of what font Russian and Chinese users employ with your script? The PRS Customizer unicode font is still more limited than I generally prefer.
Russians just use the one included in PRS+. Chinese (Japanese) fonts are simply too big to fit in it.

But most of the other alphabets could be easily added to the default fonts, there are about 2Mbs of free space. Which symbols do you miss?
kartu is offline   Reply With Quote
Old 03-03-2010, 08:09 AM   #606
PaladinBL
Enthusiast
PaladinBL began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Mar 2010
Location: Banjaluka, BiH
Device: Sony PRS-505
Quote:
Originally Posted by Joember View Post
reformat (wipe clean) the internal memory
This delete all books in internal memory or just system files?
PaladinBL is offline   Reply With Quote
Old 03-03-2010, 08:53 AM   #607
sideburnt
Connoisseur
sideburnt began at the beginning.
 
Posts: 83
Karma: 46
Join Date: May 2009
Device: Sony prs-505
Would it be possible to get a more accurate reading on the battery level?, We get a lot of bricks because syncing via the computer gives the illusion of full battery, while in fact draining the hell out of the device.

Massive support for KARTU, I noticed you're already starting on style switching in 1.02. You deserve enough beer to drown a small village.
sideburnt is offline   Reply With Quote
Old 03-03-2010, 09:10 AM   #608
Joember
Enthusiast
Joember began at the beginning.
 
Posts: 32
Karma: 46
Join Date: Feb 2010
Device: PRS-505
Quote:
Originally Posted by kartu View Post
Russians just use the one included in PRS+. Chinese (Japanese) fonts are simply too big to fit in it.

But most of the other alphabets could be easily added to the default fonts, there are about 2Mbs of free space. Which symbols do you miss?
I actually need Chinese/Japanese character support in the menus (for Titles and/or Authors). I think I recall seeing screenshots before that look like they had that...

How come the font only has 2 MB available for it? Is the 220 MB available to the user on a separate partition? Even if so, can the sytem file not be located on that? Or is it a font fitting into memory issue?

Quote:
Originally Posted by PaladinBL View Post
This delete all books in internal memory or just system files?
It deletes everything that is visible when you mount internal memory via USB. Some of those are system(-ish) files, and definitely all books in internal memory. (Which is fine, because I store everything on my SD card.)

Joember
Joember is offline   Reply With Quote
Old 03-03-2010, 09:34 AM   #609
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Joember
Quote:
How come the font only has 2 MB available for it?
Fsk partition (firmware) is only 8mb, 6 are occupied.

Chinese normally use shell call that looks like:

mount --bind /Data/FONT /opt/sony/ebook/FONT

which basically says "use FONT folder in internal memory, instead of default folder". It will be possible to do it, one way or another, with 1.02.

sideburnt
Quote:
Would it be possible to get a more accurate reading on the battery level?
I am afraid ebook.getBattery() returns already rounded numbers.
kartu is offline   Reply With Quote
Old 03-03-2010, 09:45 AM   #610
Joember
Enthusiast
Joember began at the beginning.
 
Posts: 32
Karma: 46
Join Date: Feb 2010
Device: PRS-505
Quote:
Originally Posted by kartu View Post
Joember

Fsk partition (firmware) is only 8mb, 6 are occupied.

Chinese normally use shell call that looks like:

mount --bind /Data/FONT /opt/sony/ebook/FONT

which basically says "use FONT folder in internal memory, instead of default folder". It will be possible to do it, one way or another, with 1.02.
Good to know. Thanks!

Are there any guides to Javascript/XML development on the PRS-505? The source files look byzantine to me, and leave me scratching my head about how to get started.

Joember
Joember is offline   Reply With Quote
Old 03-03-2010, 09:47 AM   #611
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Joember
Decompiled binaries/images and existing hacks are pretty much the only guide.
kartu is offline   Reply With Quote
Old 03-03-2010, 09:48 AM   #612
Joember
Enthusiast
Joember began at the beginning.
 
Posts: 32
Karma: 46
Join Date: Feb 2010
Device: PRS-505
Quote:
Originally Posted by kartu View Post
Joember
Decompiled binaries/images and existing hacks are pretty much the only guide.
Is there any specific hack or set of files that you would recommend an aspiring beginner to study?

Joember
Joember is offline   Reply With Quote
Old 03-03-2010, 09:54 AM   #613
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
I've started with BookSwap (one of the stickied threads) and a bit of Sudoku, then switched to reading decompiled script files / experimenting.

You can decompile xsb and some .so files using this:
http://projects.mobileread.com/reade...k/DeFsk_02.zip

kbook.so and FskCache.so are probably the most interesting. You can extract them from firmware image yourself or just download them from PRS+ site:

http://code.google.com/p/prs-plus/so...ok/application
kartu is offline   Reply With Quote
Old 03-03-2010, 10:23 AM   #614
Joember
Enthusiast
Joember began at the beginning.
 
Posts: 32
Karma: 46
Join Date: Feb 2010
Device: PRS-505
Thanks, Kartu!

Is there any way to simulate symlinking on the (FAT filesystem formatted) SD card? Maybe via a physical file (e.g.: filename.lnk) that contains nothing but the location of the eBook file it is standing in for?

I have books that I want showing up in multiple folders, but without having to have multiple physical copies.

I know that the academically correct way to do this is via Collections... but they are not manageable for me, as they are simply dumb fixed lists with no sense around sorting by author and/or title within their set of books.

Joember
Joember is offline   Reply With Quote
Old 03-03-2010, 10:44 AM   #615
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kartu View Post
I didn't try all options, but those that I've tried did it, yes.
So can I just put the new file over the old one without having to flash my 505? If so, can you attach it to this thread please?
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using HD Folders as Collections on Sony PRS-505 fglaysher Calibre 8 07-26-2010 09:55 PM
Enhanced Firmware for V3 keng2000 HanLin eBook 12 04-12-2010 09:30 AM
Poll: Sony Reader PRS-505 upgrade to Sony PRS-700 Kris777 Sony Reader 70 02-18-2009 06:34 PM
Sony Reader PRS-505 upgrade to Sony PRS-700 Kris777 Sony Reader 23 12-08-2008 06:56 AM
Sub folders in firmware v1.08 Prince Hal Amazon Kindle 28 10-23-2008 03:20 PM


All times are GMT -4. The time now is 09:57 AM.


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