View Single Post
Old 02-15-2008, 11:39 PM   #1
alanine
Connoisseur
alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.
 
Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
Unicode Font support without flashing

WARNING: MAY RESULT in WIPING OUT 505's INTERNAL MEM (equal to a Hard Reset, won't damage the firmware), BACKUP FIRST, AND TRY IT AT YOUR OWN RISK!

STEPS:

1. connect 505 to PC, create a directory called FONT (note all upper case) under its root directory.

2. put your customized Unicode font files in FONT directory (three files tt0003m_.ttf,tt0011m_.ttf,tt0419m_.ttf, with the font family name "Swis721 BT", "Dutch801 Rm BT", and "Courier10 BT" respectively, basically the same as you would do with a prs-500).

3. get my fontmapper-070218.zip, unzip it onto the root directory of a SD card formatted as FAT16.

4. insert SD card into 505, wait until it display the message, press 1 to activate.

5. wait 10 seconds or so and then the screen flashes a few times, until it displays the "already activated" message, hit MENU to exit. DONE!

NOTES:

1. Though this method is based on igorsk's flashing package, it doesn't actually do the flashing. Instead it mounts /Data/FONT over existing /opt/sony/ebook/FONT. So the effect will be lost if you reset (cold reboot) the reader. Then you only need to insert the SD card to activate it again to get back the font support. This method is based on the discussion thread led by obelix on the-ebooks.org Russian forum.

2. If you use Sony Connect software to upload LRFs to the reader, make sure you update the fonts used by the Connect software to your customized fonts too, otherwise the reader will attempt to reformat those LRF books again due to different set of fonts used. They are usually in the directory called \CONNECT Reader\Data\fonts. Make sure you back up those original fonts before you do so.

All credits go to igorsk, obelix and those who contributed their works towards hacking the sony reader!

(For Chinese Unicode font support, see this thread over hi-pda forum for details)

Known Problem (this may be a bit technical):

1. the method is essentially just "mount --bind /Data/FONT /opt/sony/ebook/FONT", trivial! But the real problem is how to restart tinyhttp in order for reload the new fonts.

2. Directly killing tinyhttp.sh and tinyhttp, and then restart tinyhttp.sh works. But the reader will no longer be able to load books from SD card, and the system time is messed up.

3. In the hack given above, I used another solution to do it
Quote:
ebook.setExitCode(3);
this.container.getWindow().doQuit();
This will get tinyhttp to do a natural quit, and let tinyhttp.sh to restart it. But then there is something very strange in tinyhttp.sh, it does the following
Quote:
NUM=`grep Data /proc/mtd | awk -F: '{print $1}' | awk -Fd '{print$2}'`
/usr/local/sony/bin/mkdosfs /dev/mtdblock$NUM
/bin/grep Data /etc/mtab > /dev/null
Essentially this is formatting /Data partition! But indeed if /Data/FONT is already mounted, the mkdosfs will not format /Data. This also relates to gwynevans' report. In gwynevans' case /Data is formatted, but I suspect it's because /Data/FONT wasn't successfully mounted since everyone who tried this over the Chinese forum have enabled Chinese Unicode font successfully.

So if things were done properly, tinyhttp gets restarted and new fonts are loaded. Only problem is that the mkdosfs thing may have done some damage to the partition table of /Data, so if you use Connect software to transfer LRF files to the reader's internal memory AFTER using this hack, you may end up corrupting the cache, and the reader will attempt to re-format the LRF files before displaying them for the first time.

The temporary solution is to either transfer LRFs to SD card, or to do the transfer before this hack is applied (i.e., do a reset, then transfer files before using this hack).

Help is need to further investigate this problem and find a real solution!
Attached Thumbnails
Click image for larger version

Name:	505 355.jpg
Views:	3906
Size:	113.9 KB
ID:	10479  

Last edited by alanine; 06-25-2009 at 06:42 PM. Reason: update download URL for fontmapper zip file
alanine is offline   Reply With Quote