01-30-2007, 10:58 AM | #1 |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Mountable Sony Reader Filesystem
This took a bit longer than I expected but I've finally gotten this project to the point where I feel comfortable I can go public with it. And reveal just what the heck has been sucking down all my time recently.
I've developed a mountable Sony Reader Filesystem. What the heck is that you ask? Well rather than an application such as the wonderful libprs500 or the Connect application supplied by Sony this piece of code isn't an application. You insert a SD card and the operating system uses some code to read the contents of that SD card and present the contents as files and folders. This piece of software does the same task, but for the Sony Reader. You can then use your favorite tools to explore and modify the contents of your Sony Reader. On the Mac you can use Finder or Terminal. If you are writing an application to bind ebooks or RSS feeds onto the Sony you can write the data to the Sony Reader as if it were a regular collection of files and folders on the computer itself. For example, you can have Word 2004 export an RTF file directly to the Sony Reader. The code is written using FUSE and libusb. This allows the same code base to work on Mac, Linux and FreeBSD. There is no Windows version, but heck: you've got Sony's CONNECT software on Windows right, you don't need this. First release is for the Mac. You will need Mac Fuse from Google: http://code.google.com/p/macfuse/ and libusb: http://www.ellert.se/PKGS/libusb-0.1...usb.pkg.tar.gz. Code later today. |
01-30-2007, 11:04 AM | #2 |
Fully Converged
Posts: 18,170
Karma: 14021202
Join Date: Oct 2002
Location: Switzerland
Device: Too many to count here.
|
Such a tease!!!!!!!!!!!!!!!
|
Advert | |
|
01-30-2007, 12:03 PM | #3 |
Member
Posts: 21
Karma: 14
Join Date: Sep 2006
|
So, does this transparently convert folders in the FUSE filesystem to "collections" on the reader. If so, that totally rocks. Otherwise, this is still very nice. Thanks.
Last edited by griffbrad; 01-30-2007 at 12:06 PM. |
01-30-2007, 12:25 PM | #4 |
creator of calibre
Posts: 44,337
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Nice. I had planned on doing this at some point, but the fuse python bindings aren't stable enough. Incidentally, there is another project to do this at http://code.google.com/p/prs500fs/
|
01-31-2007, 09:58 AM | #5 |
curmudgeon
Posts: 1,487
Karma: 5748190
Join Date: Jun 2006
Location: Redwood City, CA USA
Device: Kobo Aura HD, (ex)nook, (ex)PRS-700, (ex)PRS-500
|
Source, please! This sounds like a lovely tool to have available.
Xenophon |
Advert | |
|
01-31-2007, 10:57 AM | #6 |
Addict
Posts: 219
Karma: 368
Join Date: Jan 2006
Location: UK
Device: PRS500, Looking at 700
|
Interesting. I look forward to trying it out.
|
01-31-2007, 04:19 PM | #7 |
Lovin' the e-book life...
Posts: 633
Karma: 2509
Join Date: Nov 2006
Location: Colorado
Device: Ebookwise 1150, Sony PRS-505, Amazon Kindle, BeBook (with OpenInkpot)
|
Oooh, this sounds promising. I can't wait to try this!
Last edited by tsgreer; 05-23-2007 at 07:34 PM. |
01-31-2007, 05:28 PM | #8 |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
I had developed a tremendous amount of diagnostic cruft as I slugged it out with the FUSE/libusb (each had their own unique pound of flesh to collect) and removing it all took a bit more time than I expected. My apologies.
This is a Mac OS X 10.4.8 Intel executable. PPC/Installer etc in the future. You can look, you can read, no writes yet. You need to have the Google port of FUSE installed and the libusb as linked in the first post in this thread. Example of using it in Terminal, with Sony Reader plugged in... Code:
mkdir MySonyReader readerfs MySonyReader ls MySonyReader umount MySonyReader I've got a start on a Mac OS X GUI listener application that will listen for the Sony Reader being attached/deetached and bring the filesystem up and down automatically. I'm working on the bug about ls'ing the dev/fd/10 directory on the Sony Reader. For now I suggest being careful of the /dev directory, ls'ing in there causes the Reader to crash. If you crash the Reader just umount and then re-run the readerfs after the Sony recovers. |
02-01-2007, 04:11 AM | #9 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2007
Device: Sony PRS-500
|
Is there is a way to modify this program in such a way, that it would allow us to use costom fonts in Reader?
|
02-01-2007, 05:07 AM | #10 | |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Quote:
I'm pretty sure that will be something someone will have to handle when creating a user friendly Mac/Linux re-flash tool. |
|
02-05-2007, 01:36 AM | #11 |
Member
Posts: 16
Karma: 10
Join Date: Feb 2007
Device: /Reader/
|
Hi, I'm the person behind http://code.google.com/p/prs500fs/ ..
It looks like this is exactly the thing I'm doing (and I was targeting Mac as a first release platform too). Although due to the lack of time I'm still in the "tools" stage - just finished libusb C++ wrappers by today - wanted to start coding prs protocol tomorrow evening. Any chance to see the source code of scotty1024 filesystem? =) If so, then perhaps http://code.google.com/p/prs500fs/ is not needed at all.. If not, then we could still benefit by sharing bugs information etc. Last edited by VladSukhoy; 02-05-2007 at 01:46 AM. |
02-05-2007, 01:56 AM | #12 |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Mine is written in C, not C++ and utilizes all my knowledge and 21 years experience in writing portable cross Unix platform code.
I've got the PRS writing protocol code mostly working, a couple more details to iron out and then I'll be posting a new Mac version that can write the Sony. Source will follow after I get Linux up (my first cut for Debian looks promising). |
02-05-2007, 02:10 AM | #13 | ||
Member
Posts: 16
Karma: 10
Join Date: Feb 2007
Device: /Reader/
|
Quote:
Quote:
By the way I incorporated libusb sources directly into the build - i.e. no need for it to be installed, just FUSE. One dependency less for the end-user... Last edited by VladSukhoy; 02-05-2007 at 02:44 AM. |
||
02-05-2007, 06:49 AM | #14 | |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Quote:
I expect to have Mac and Linux done in the next two weeks. Then comes a Mac GUI App for monitoring inserts/removals to plug/unplug the filesystem and a .deb for Debian. Then a packaged installer with the ability to install Mac FUSE/libusb for the user (for Mac). |
|
02-05-2007, 12:18 PM | #15 |
Member
Posts: 16
Karma: 10
Join Date: Feb 2007
Device: /Reader/
|
Ok.
My plan was to produce working MacOS binary by the end of this week which would include: * full filesystem operations implemented and tested. * multiple reader support (in theory, though, since I have just one) - the readers show as different directories in the filesystem root. * support for main memory, memory stick and SD (being subdirectories of each individual reader directory - I don't have memory stick around though) Also my intent was to use idle thread within the filesystem binary and/or on-demand mapping rather than a separate listener application. This way the user would "just" mount the filesystem once (perhaps in one of the startup scripts available) and it would handle reader(s) connecting unconnecting on its own. I guess I'll stick around for some time. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PB360 Filesystem error | ArchCarrier | PocketBook | 4 | 06-06-2010 08:46 AM |
astak ezreader, read-only filesystem | scar | Astak EZReader | 7 | 07-28-2009 02:20 AM |
Character encoding in the filesystem | Jellby | Bookeen | 1 | 03-30-2008 05:36 AM |
filesystem formats supported on the SD card | jakeluck | Sony Reader | 8 | 12-21-2006 02:46 AM |
GmailFS - make your Gmail a mountable filesystem | Alexander Turcic | Lounge | 2 | 08-30-2004 03:07 AM |