Thread: PRS-500 lbhook.sh support patch
View Single Post
Old 10-24-2006, 04:08 PM   #28
gseryakov
Enthusiast
gseryakov began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
Quote:
Originally Posted by TadW
Someone (boroda, is that you, porkupan?) has published the updated instruction on Russian the-ebook.org. Of course I don't understand a single word. Someone care to translate?
You'll be disappointed.

Quote:
Originally Posted by porkupan, tranlated by GS
So, I am describing the sequence on what I done.

0. Read and carefully grasp instructions from Igor Sk. (Mobileread's igorsk)
on Rootfs modification, downloaded cramfs-tools.zip.

1. Figured out the size of the file system in Fsk partition.
For this first downloaded 0х100 byte from /dev/mtd14 (./ebook.py get /dev/mtd14 0x100) checked the value of the second 32-bit word: 0x40A000 -
it is the size of the filesystem of Fsk partition.

2. Downloaded all filesystem from Fsk (a.k.a. /dev/mtd14, mounted on /opt) as contiguous file:
$ ./ebook.py get /dev/mtd14 0x40A000

3. Decompressed the file with command cramfsck (it you downloaded in the current directory the DLLs from CygWin, attached by Igor Sk into cramfs-tools.zip Cygwin DLLs, then you do not need cygwin window, plain dos command line is ok. I myself have done all that in cygwin but it is not nesessary):
$ ./cramfsck.exe -v -x opt -d opt.dt mtd14

4. To be sure compressed back the directory into contiguous file and made sure MD5 checksum is as before:
$ md5sum mtd14
12e8e500e0dac98f9cd89650c0510d85 *mtd14
$ ./mkcramfs -D opt.dt opt opt.fs
$ md5sum opt.fs
12e8e500e0dac98f9cd89650c0510d85 *opt.fs

5. Copied the prepared fonts into directory
./opt/sony/ebook/FONT

6. Compressed crams image with mkcramfs command:
$ ./mkcramfs -D opt.dt opt opt.fs
If somebody is lazy to download/upload the image, change it and compres it back you can download it from отсюда, until Sergey deleted it.

7. Swith the e-book to recovery mode
$ ./ebook.py um recovery
Reader got reloaded and was ready to receive "updates"

8. Tried to upload opt.fs:
$ ./ebook.py pwrite "Fsk" opt.fs
Because of it was done in DOS command line, it occurred that command cksum is needed (you can add the exe-file from cygwin to the current directory and everything will be ok if you took all dlls from cramfs-tools.zip). When I got through cksum, the update of filesystem of Fsk partition was name successfully.

9. Swithched Reader into normal mode:
$ ./ebook.py um normal
There were warnings but the e-book reloaded ok and after some period a circle of arrows appeared which signalize content reload. The circle stayed on the screen longe then usial and I almost started worrying but instantly the native Reader menu came to the screen with Cyrillic letters.

10. This is essentially it. Did try RTF - works fine. Text file LRF from Librie did not try yet, will do today evening. See not reason for not working. It looks like Reader needs the file names to be Latin (I did try to load to SD card a file named with Cyrillic - Бонч-Бруевич.rtf, it failed so I renamed to Bonch-Bruevich.rtf).

The fonts Dutch801 BT and Swis721 BT with full Unicode I found on the net, Courier font I rewrote from the beginning till Cyrillic with Courier New Bold (it is pretty much readable so I will rewrite it someday with some monospace font which is more pleasable, if I failed to find Courier10 BT with Cyrillic).
Did not try to add more fonts. If you downloaded my image you can decompress it and rewrite the fonts or correct them.
I don't like too much as the Dutch font is being rendered in RTF file (see picture above). I'd be pleased if somebody helped me with fonts.
gseryakov is offline   Reply With Quote