Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2012, 12:01 PM   #1
m3l7d0wN
Zealot
m3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercise
 
Posts: 102
Karma: 38810
Join Date: Apr 2011
Device: Sony PRS-T1
HOWTO extract the PRS-T1.package

Hi,
I don't know if all this will be ever useful to someone (and if someone has done this before)... I have made a script which extract the PRS T1.package from a generic update...
Currently it can't compress but only extract.
you can find it here http://dl.dropbox.com/u/158338/ebook...ct-package.zip

it works only in a linux environment.
- put a dump of the first 20mb of the internal sd (mmcblk2p) in the dev/ folder.
- put the .package file in the main folder
- run the extract script

it would be useful to generate automated script, like dumping all partitions without using the recovery shell, etc..

it is generated also an rsa key. It is stored in the first sector of the T1. I don't if it is useful for other purposes other than update extraction..
m3l7d0wN is offline   Reply With Quote
Old 01-26-2012, 12:16 PM   #2
S3raph
Member
S3raph began at the beginning.
 
Posts: 14
Karma: 20
Join Date: Dec 2011
Device: Sony Reader PRS-T1
Thanks nice work!

by the way porkupan has a nice repository of tools/scripts for the PRS-T1

http://projects.mobileread.com/reade...orkupan/PRST1/

and a set of scripts to update/test ....images

http://projects.mobileread.com/reade...date_tools.zip
S3raph is offline   Reply With Quote
Advert
Old 01-26-2012, 12:32 PM   #3
m3l7d0wN
Zealot
m3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercisem3l7d0wN juggles running chainsaws for a bit of light exercise
 
Posts: 102
Karma: 38810
Join Date: Apr 2011
Device: Sony PRS-T1
ooh, I didn't know those tools! thanks for posting, they are what I was searching for
m3l7d0wN is offline   Reply With Quote
Old 07-06-2012, 11:54 PM   #4
peter64
Member
peter64 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2012
Device: PRS-G1
thanks!

Hey meltdown thanks so much for the tools!

I've been trying to test decompress some sample updater made by others like the minimal-root PRS-T1 Updater.

But I keep running into errors. Just so you know I'm running under mingw msys.
I had to make afew small changes to get it running like replace hexdump with xxd and remove the -of parameter from dd. But it looks like it works well (except for this one issue). Perhaps my mmcblk2 is not right? But I think one of the earlier on decryptions should have failed if the keys were bad.

I would really appreciate if you could let me know what do you think might be the cause?

Here is a link to the zip with the file containing the modified source and the updater as well as the mmcblk2.

http://www.4shared.com/archive/JARcB...t-package.html

Thanks!

Quote:
$ ./extract
### Info
ENC_KEY 2c669cd6deaf78d1a94d6d55b3d4618a
MODEL PRS-T1
SKU UC,CEW
output/sigKeyPriv.pem
-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKBgQDNP238xpb7Rmnrgj09PVm0+kBNQzYb37lLBy Lih6bBJpQixjs5
BXQwOMe4rASb54qYc2Q5sx1Xrn3dLgYaAmHYq4P6tlml0nr9pw u0Qnz6/QgE5vEL
RKbvErm3X+Ai2etp5mNzu9b0i7AHkfWC8XeaNsLVQeiGWbCyRc IDTCW9swIDAQAB
AoGAfJN9TKm0xjsM2xcn2F2+byxdjwe2deCq9LEWKWyweBfUXe 73zzpSNVqhTqOK
AJ7e7n1LXgIrUybj2jWvGmZLwEGePQQx5yvxW3lDcME8dAHBqF CvmTbQBJrOj4Gh
B3dcG9Rx4Lvn1dCovulXp+DASP5dsin+1QlzmlXsSVrnRsECQQ D7JL6auOa2OHqS
a/nae9ixPPBQG+TT7alIiNLaYURux0PBRF8VaepjQDC6RMeQd5sF e26Lm3ESChYW
nZF+FrqjAkEA0Td71OS5gyaSaAz7FLShiq9un2fSITjH45QuT+ vU06j2MgHx7KLO
MxqLAONfieDtRXGq6C8zri45lEGg9UyxsQJAZw5r/Le1TL8eZSlTzPkXMZvNDUJ1
AxY6ah5jT+OsHj08q3kv/2yIFxRHKpiAv+KkxXoiIb22h22GJN+hzXjsOwJBAKJT
CiED1WuMYcuZRrWp8CxKMOo9AywDghNwxP39XANc9KeYGrwfFR 1RWsg1ocq4WV+n
8ZJ0DQT3mHUO9nNcLgECQQCoWcnnwzjHe9X99Jg/o413ktl+lc3/qwNg83vhA2x0
8AT3nOLlVMvQ9MsnYT9LXNLg29aXhN766e8qIQWjQRvt
-----END RSA PRIVATE KEY-----

### eMMC D Package info
bad magic number
Package header decrypt error
### SD D Package info
Not exists block device : /dev/mmcblk0
### Package info : ./PRS-T1 Updater.package -> output/SETTING
UPDATE_IV 000102030405060708090a0b0c0d0e0f
SIZE 352
CHECKSUM 4268317339
decrypt CHECKSUM 4268317339
decode MODEL PRS-T1
decode SKU UC,CEW
HEADER_SIZE 1
### UPDATER : ./PRS-T1 Updater.package -> output/package.tmp
LINE UPDATER 0 11K 427810362 10240 000102030405060708090a0b0c0d0e
0f 95ab4fcc3ff4c88b567432392ea361fb7f9a66881aa9aac7cf c51578934d245351432899b2cae
2ef9a8a599f5caa29f08422ae4c05b7879f3b33e61c83a78d2 ed13a7c712de231a0c4944adbf9653
9012b4ef880d20c0e8467c6b1223df2c5a991fcbfff1efd8f1 8fad9f44918fcbe2471a3d6d3fe448
7d0b05ae165943b2ee4
OFFSET 0
BLOCK 11K
CHECKSUM 427810362 10240
SIZE 10256
UPDATE_IV 000102030405060708090a0b0c0d0e0f
SIGNATURE 95ab4fcc3ff4c88b567432392ea361fb7f9a66881aa9aac7cf c51578934d
245351432899b2cae2ef9a8a599f5caa29f08422ae4c05b787 9f3b33e61c83a78d2ed13a7c712de2
31a0c4944adbf96539012b4ef880d20c0e8467c6b1223df2c5 a991fcbfff1efd8f18fad9f44918fc
be2471a3d6d3fe4487d0b05ae165943b2ee4
add Header OFFSET 1
bad decrypt
1619636256:error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong fi
nal block length:evp_enc.c:459:
decrypt CHECKSUM 4294967295 0
Package UPDATER checksum error
UPDATE: I got it working, I needed to remove the ${TIME} from the beginning of the 3 dd commands in this section as they were replacing the data with time stats

Last edited by peter64; 07-08-2012 at 10:28 AM.
peter64 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ended Sony PRS 505 Gift Package petercreasey Flea Market 6 12-30-2011 01:44 PM
Ended Sony PRS-300 Package soondai Flea Market 6 04-19-2011 12:16 AM
UPS -package for prs 500 does include label? ilovereading Sony Reader 2 05-14-2010 05:18 AM
PRS 505 package size? yolan Sony Reader 4 08-12-2009 07:41 AM
Sell Great PRS-500 Package -Reader, Cradle, Cover ($200) pghmark Flea Market 0 10-19-2008 07:58 PM


All times are GMT -4. The time now is 02:56 PM.


MobileRead.com is a privately owned, operated and funded community.