PRS-500 and PRS-505 (Sony Reader) universal flasher
v 2.0 2008/07/26 by igorsk

* Description

This set of scripts allows to flash a custom image or replace any files inside
the /opt directory of the Reader filesystem using just a flash card. The /opt
directory contains the main Reader UI and supporting files.
Possible uses include:
  1) rolling back to an older firmware version
  2) customizing the UI look and behavior
  3) replacing/adding built-in fonts

As an example, provided xml files add a configurable clock display in the
status bar of the navigation menus and book reader.

* Usage

  1) Extract the zip onto a flash card, keeping the directory structure. It's 
     best to use a card with not many files on it so that Reader can scan it quickly.
     N.B. readme.txt should be in the root of the card, not in any subdirectory! 
  2) Insert the card in Reader.
  3) Wait until the "Run Script" screen appears.
  4) Press 5. Wait for the success message (the process will take about one to
     two minutes).
  5) Press 6. Wait for the success message.
  6) Press 9 to reboot.
  7) Extract the card.

* Using the clock display
  
  To set the correct time on PRS-500, you need to connect it to
  the PC and run the eBook Library software after each reset. 
  It should also be possible with libprs500 or Calibre.
  For PRS-505, you can set the time in Settings or connect to PC with
  the eBook Library software running.

  To set up 12/24 hour format or turn off the clock, use the Settings-About
  screen and the button 0 (check the status bar).

* Other uses
  
  Put any files you want to add/replace in /opt to the /files
  directory. E.g. if you want to replace the stock fonts, put the following
  files in the /files.XXXX/opt/sony/ebook/FONT directory:

    tt0003m_.ttf for Swiss721 BT Roman
    tt0011m_.ttf for Dutch801 Rm BT Roman
    tt0419m_.ttf for Courier10 BT Roman

  You should edit yout .ttf files to have these exact font names, as most of
  the LRFs use them.
    
  If you have a ready-made /opt image you want to flash (e.g. a stock Sony firmware),
  put it as a new_opt.img in the root of the card and use option 4 then 6.

  You can run any custom shell script by editing script.sh in the card's root
  and using option 3. Please note that the script needs to have Unix endlines 
  to run properly.

* Version history

  2007/05/11 Initial release
  2007/05/16 Version 1.1
             Added support for MemoryStick cards
             Added a sample shell script

  2007/05/17 Version 1.2
             Support for firmware version 1.0.02.01300
  
  2008/07/26 Version 2.0
             Support for PRS-505

* Credits
  
  Shell scripts by Corwin
  Clock display by Shade
  PRS-505 support by porkupan
