10-21-2006, 09:51 AM | #1 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
lbhook.sh support patch
igorsk 1 - cramfs 0
Read the provided readme.txt for instructions. Here's a sample script: Code:
#! /bin/bash PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/sony/bin:/usr/sbin" LD_LIBRARY_PATH="/opt/sony/ebook/application:/lib:/usr/lib:/usr/local/sony/lib:/opt/sony/ebook/lib" export PATH LD_LIBRARY_PATH pstree -a -c -l >/tmp/pstree.log & Code:
init) |-getty) console |-(jffs2_gcd_mtd15) |-(jffs2_gcd_mtd16) |-(keventd) |-lbhook.sh) /tmp/lbhook.sh | `-pstree) -a -c -l |-(msbdrv_thread) |-(mtdblockd) |-(sdbdrv_thread) `-tinyhttp.sh) /opt/sony/ebook/bin/tinyhttp.sh `-tinyhttp) |
10-21-2006, 10:12 AM | #2 | ||
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
|
Quote:
Quote:
What is the difference between cramfs from Reader and Librie? I mean - after mounting the cramfs-es. |
||
Advert | |
|
10-21-2006, 10:39 AM | #3 | |||
Guru
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
|
Quote:
Quote:
Quote:
a) try for console access via USB. b) try to show a picture in the display using command line utilities. c) try my command line utilities for DJVU files. d) review how to compile Andrew's "simple reader", of if it works straighforward. e) if not console access, create a "SMS-phone" way to enter text to show it in the console. Note that the netpbm utilities, a lot of them, are included in the djvu package, and this includes some text display utility, I believe to remember. |
|||
10-21-2006, 10:55 AM | #4 | ||
Addict
Posts: 285
Karma: 129
Join Date: Sep 2006
Location: New England
Device: PRS-500 · iPad · K3
|
Quote:
Quote:
|
||
10-21-2006, 11:22 AM | #5 | |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
|
Quote:
|
|
Advert | |
|
10-21-2006, 11:42 AM | #6 |
Addict
Posts: 285
Karma: 129
Join Date: Sep 2006
Location: New England
Device: PRS-500 · iPad · K3
|
Igor,
I wonder if it's possible to create softlinks for directories under /opt tree to updatable filesystem like /Data? It will make updating fonts and graphics much easier. |
10-21-2006, 11:46 AM | #7 |
Gizmologist
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
|
igorsk, You Da Man! You Da Man!
|
10-21-2006, 11:55 AM | #8 | |||
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Quote:
Quote:
Quote:
|
|||
10-21-2006, 12:20 PM | #9 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
For the brave, here's modified cramfs tools from Cygwin which I used to extract and reassemble the cramfs image. To make sure you get the same permissions in your new filesystem, use a devtable file (-d in cramfsk and -D in mkcramfs).
A few things to know to minimize a chance to brick your device: 1) Linux0 and Rootfs2 are kernel and root fs used in the recovery (update) mode. It's best not to touch them. 2) USB control is handled by switcher.so (loaded by tinyhttp) in normal mode, and by /opt0/UsbUpdater in recovery mode. So, disabling any of them will leave you without a way to control the unit via USB. 3) Using USB interface, in normal mode you cannot write flash partitions and in recovery mode you cannot read and write files. |
10-21-2006, 03:49 PM | #10 | |
Guru
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
|
Quote:
|
|
10-21-2006, 06:56 PM | #11 | |
Uebermensch
Posts: 2,583
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
|
Quote:
|
|
10-21-2006, 08:19 PM | #12 |
Fanatic
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
|
Igor,
Just wondering, why are you dumping 0x863000 bytes of Rootfs while the actual size of the filesystem is supposed to be 0x980000? Did you try dumping the whole 0x980000 bytes? |
10-21-2006, 09:57 PM | #13 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
The partition size is 0x980000. However, the actual size used by the cramfs image is 0x863000. You can check it yourself, it's specified in the second dword of the image.
|
10-23-2006, 11:20 PM | #14 |
Fanatic
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
|
Thank you, igorsk!
|
10-23-2006, 11:32 PM | #15 |
Gizmologist
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
|
Y'all did it! Excellent!
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hello from Pixie's briar patch! | sweetPixiesmile | Introduce Yourself | 10 | 08-08-2010 09:33 PM |
1.7.1 Patch Released | curbarthedog | iRex | 22 | 11-18-2009 03:03 PM |
Latest MobiDeDRM Patch | pdurrant | Kindle Formats | 65 | 08-09-2009 04:02 PM |
New patch: 2.9.1 | vranghel | iRex | 10 | 03-16-2007 05:51 AM |
MSBlaster patch | emale07 | Lounge | 0 | 08-13-2003 12:17 PM |