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

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-20-2012, 12:10 PM   #271
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677559
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by ninki View Post
Do I have to uninstall the older patch to install this one??
thanks, this is great
You can uninstall the previous version, but you don't have to. You can simply install v2 over the old one.
ixtab is offline   Reply With Quote
Old 07-20-2012, 01:23 PM   #272
techiemonkey
Tech Geek Forever
techiemonkey ought to be getting tired of karma fortunes by now.techiemonkey ought to be getting tired of karma fortunes by now.techiemonkey ought to be getting tired of karma fortunes by now.techiemonkey ought to be getting tired of karma fortunes by now.techiemonkey ought to be getting tired of karma fortunes by now.techiemonkey ought to be getting tired of karma fortunes by now.techiemonkey ought to be getting tired of karma fortunes by now.techiemonkey ought to be getting tired of karma fortunes by now.techiemonkey ought to be getting tired of karma fortunes by now.techiemonkey ought to be getting tired of karma fortunes by now.techiemonkey ought to be getting tired of karma fortunes by now.
 
techiemonkey's Avatar
 
Posts: 230
Karma: 568824
Join Date: Jun 2012
Location: USA
Device: Kindle Touch hacked
noob question but does margins patch for beta version 2.0.0 also work on full version of jbpatch 2.0.0
techiemonkey is offline   Reply With Quote
 
Advertisement
Old 07-20-2012, 01:40 PM   #273
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677559
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by techiemonkey View Post
noob question but does margins patch for beta version 2.0.0 also work on full version of jbpatch 2.0.0
The margins patch is already included with 2.0.0. In other words, you can throw the old one away, it was buggy and incomplete anyway
ixtab is offline   Reply With Quote
Old 07-20-2012, 06:35 PM   #274
skull43
Enthusiast
skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.
 
Posts: 28
Karma: 20614
Join Date: Jun 2012
Device: Kindle Touch
En JBpatch log file

Initializing patches
FATAL ERROR: Firmware ID could not be determined.

Kindle touch 5.1.1 Saludos !!
skull43 is offline   Reply With Quote
Old 07-20-2012, 06:40 PM   #275
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,002
Karma: 6359394
Join Date: Feb 2012
Device: Too many.
Hmm... Some kind of record, only took 27 hours to become obsolete.
knc1 is offline   Reply With Quote
Old 07-20-2012, 07:14 PM   #276
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677559
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by skull43 View Post
En JBpatch log file

Initializing patches
FATAL ERROR: Firmware ID could not be determined.

Kindle touch 5.1.1 Saludos !!
Yes, that is normal. We have been begging for 5.1.1 images for weeks now. Since nobody wants to provide such an image, I cannot support that firmware version.
ixtab is offline   Reply With Quote
Old 07-20-2012, 07:21 PM   #277
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677559
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by knc1 View Post
Hmm... Some kind of record, only took 27 hours to become obsolete.
It's not obsolete
It just doesn't support FW 5.1.1 (yet).
ixtab is offline   Reply With Quote
Old 07-20-2012, 07:35 PM   #278
Titano
Definitely not King Kong
Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.
 
Titano's Avatar
 
Posts: 126
Karma: 59238
Join Date: Jul 2012
Location: United States
Device: Kindle Touch
Great work ixtab, I love the margin hack and just wanted to say thanks!

P.S. - If you don't mind me asking what's with your alias, thanking about committing suicide? ;-)
Titano is offline   Reply With Quote
Old 07-20-2012, 11:39 PM   #279
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677559
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by Titano View Post
Great work ixtab, I love the margin hack and just wanted to say thanks!
You're welcome... and thanks for the feedback & karma!

Quote:
Originally Posted by Titano View Post
P.S. - If you don't mind me asking what's with your alias, thanking about committing suicide? ;-)
...just a mayan goddess...
ixtab is offline   Reply With Quote
Old 07-21-2012, 12:38 AM   #280
skull43
Enthusiast
skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.skull43 can self-interpret dreams as they happen.
 
Posts: 28
Karma: 20614
Join Date: Jun 2012
Device: Kindle Touch
Quote:
Originally Posted by ixtab View Post
Yes, that is normal. We have been begging for 5.1.1 images for weeks now. Since nobody wants to provide such an image, I cannot support that firmware version.
How do I capture the screen kindle in touch?
skull43 is offline   Reply With Quote
Old 07-21-2012, 02:03 AM   #281
Titano
Definitely not King Kong
Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.
 
Titano's Avatar
 
Posts: 126
Karma: 59238
Join Date: Jul 2012
Location: United States
Device: Kindle Touch
EDIT: Disregard this post please!
Quote:
Originally Posted by skull43 View Post
How do I capture the screen kindle in touch?
I think Ixtab means a firmware image (the entire nand memory [if the kindle uses nand]). Or the operating system of the kindle. You would basically be backing up the kindle. The guide on the Wiki is a little old. You could write a shell script something like this and execute it (through usbnetwork or xterm).
Quote:
#!/bin/sh

dd if=/dev/mmcblk0p1 of=/mnt/us/mmcblk0p1.bin bs=4k &&
echo "mmcblk0p1 done Continue? (If not ctrl-c)" && read &&
dd if=/dev/mmcblk0p2 of=/mnt/us/mmcblk0p2.bin bs=4k &&
echo "All Done!"
Then plug in your kindle and copy the file's named mmcblk0p1.bin and mmcblk0p2.bin. I think it should (SHOULD!!) work. (Their is no reason I can see why it would not...) If you need more help please ask, I know how great it would be for all (awesome) developers to get their hands on this image. I hope I could Help!

P.S. - If he did mean screenshot you can just execute the "screenshot" command from usbnetwork.

Last edited by Titano; 07-21-2012 at 04:28 AM.
Titano is offline   Reply With Quote
Old 07-21-2012, 02:29 AM   #282
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
dd will be very slow using the default 512 byte block size. 4K is much faster. You should test your script before publishing it.
geekmaster is offline   Reply With Quote
Old 07-21-2012, 02:46 AM   #283
Titano
Definitely not King Kong
Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.
 
Titano's Avatar
 
Posts: 126
Karma: 59238
Join Date: Jul 2012
Location: United States
Device: Kindle Touch
Quote:
Originally Posted by geekmaster View Post
dd will be very slow using the default 512 byte block size. 4K is much faster. You should test your script before publishing it.
Thanks again Geekmaster, totally forgot about BS. Oh well, It's fixed. Can I go higher than 4K? How big is the kindle OS though? (Just out of curiosity..) It can't be over 700mb?

Last edited by Titano; 07-21-2012 at 03:02 AM.
Titano is offline   Reply With Quote
Old 07-21-2012, 04:05 AM   #284
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,002
Karma: 6359394
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by Titano View Post
I think Ixtab means a firmware image (the entire nand memory [if the kindle uses nand]).
- - - -
Then plug in your kindle and copy the file's named mmcblk0p1.bin and mmcblk0p2.bin.
The device names in Linux are very regular.
mmc -- is, well, an MMC device. In the Kindles, an eMMC device (e == embedded) but the drivers don't care if the device plugs in or gets soldered in.
It does not matter how the storage is implemented, the device has a built-in "high level" controller.
Although in the case of the Kindles, the eMMC part does implement the storage in NAND behind the controller.
(The tech. data sheet is indexed in the "Tools Prefix" index.)

mtd -- Memory Technology Device. This is the driver that is used for "lower level" flash devices (NAND, NOR of various kinds).

In Linux (a Unix work-alike), true to its heritage, "all devices are files" or at least that was the Unix design goal, that all devices share the semantics of files.
(Plan-9, the successor to Unix, does a better job reaching that goal.)

In legacy *nix (and Linux) all "device files" (specifically: device nodes) appear in the file system in the /dev directory.

So just the pathname: /dev/mmcblk0p1 (first block of MMC memory, first partition) is tells you that this is a device not a file and that it has a "high level" controller in front of its storage.

The controller provides a: read/write/seek/etc interface, the lower level mtd devices provides a: read/erase/re-program interface.

The fact that you can use programs that do "file operations" on it is just "*nix at work".

In the Kindle case - the backing storage of the eMMC controller is NAND and that NAND (an mtd type device) has an erase block size of 4,096 bytes.

So if you provide the eMMC controller with 4K blocks to write, it can implement that as one 4K byte one read/erase/re-program cycle.
Using the default 512 byte block size, the eMMC controller has to use 8 read/merge/erase/re-program cycles to get the same job done.

The partitions of an eMMC device, like those of a (spinning) hard disk drive need not describe the entire storage area of the device.
In the case of the Kindles, they do not, there is storage area "outside" of that described by the partition table.

The /mnt/us is a file system, ultimately stored on the /dev/mmcblk0p4 device. I write "ultimately" because there are a couple of VFS layers involved before the bits and bytes actual hit the silicon.

Translation: There is a lot of useful information in a *nix /dev/name.

Now, to continue with the topic at hand, getting a forensics's image file ....

We know there are four partitions;
We know the partitions 3 and 4 (mmcblk0p3 and mmcblk0p4) are not of any interest;
We know there is storage area outside of the partition table described areas;
We know that either partition 1 or partition 2 (or both) will be mounted (in-use) during "normal" operation;
We know that we can not get a complete (in the sense of being correct) image of the backing store of a file system while the file system is "in-use";

A procedure that "will work" -
Boot the system that uses partition 1 as its file system ("main"), copy partition 2; then:

Boot the system that uses partition 2 as its file system ("diags"), copy partition 1; and:

somewhere along the way (from either system):
Read the partition table of mmcblk0 (the "raw" device) and copy the storage area from 0 ... the block prior to the first block described in partition 1.

A much better procedure -
Use one of the "service and maintenance" tools that boot the Kindle into a state where it is using a RAM RESIDENT file system;
Read the partition table;
Copy from 0 .. the block prior to the start of partition 3.

Then, off-kindle, sort out the various parts of the copied image.

Since we want a quality copy of this 5.1.1 release, the second procedure is the desired one.
And GM can best recommend which of the various "service and maintenance" tools to use for this job.
knc1 is offline   Reply With Quote
Old 07-21-2012, 04:29 AM   #285
Titano
Definitely not King Kong
Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.Titano never is beset by a damp, drizzly November in his or her soul.
 
Titano's Avatar
 
Posts: 126
Karma: 59238
Join Date: Jul 2012
Location: United States
Device: Kindle Touch
Quote:
Originally Posted by knc1 View Post
The device names in Linux are very regular.
mmc -- is, well, an MMC device. In the Kindles, an eMMC device (e == embedded) but the drivers don't care if the device plugs in or gets soldered in.
It does not matter how the storage is implemented, the device has a built-in "high level" controller.
Although in the case of the Kindles, the eMMC part does implement the storage in NAND behind the controller.
(The tech. data sheet is indexed in the "Tools Prefix" index.)

mtd -- Memory Technology Device. This is the driver that is used for "lower level" flash devices (NAND, NOR of various kinds).

In Linux (a Unix work-alike), true to its heritage, "all devices are files" or at least that was the Unix design goal, that all devices share the semantics of files.
(Plan-9, the successor to Unix, does a better job reaching that goal.)

In legacy *nix (and Linux) all "device files" (specifically: device nodes) appear in the file system in the /dev directory.

So just the pathname: /dev/mmcblk0p1 (first block of MMC memory, first partition) is tells you that this is a device not a file and that it has a "high level" controller in front of its storage.

The controller provides a: read/write/seek/etc interface, the lower level mtd devices provides a: read/erase/re-program interface.

The fact that you can use programs that do "file operations" on it is just "*nix at work".

In the Kindle case - the backing storage of the eMMC controller is NAND and that NAND (an mtd type device) has an erase block size of 4,096 bytes.

So if you provide the eMMC controller with 4K blocks to write, it can implement that as one 4K byte one read/erase/re-program cycle.
Using the default 512 byte block size, the eMMC controller has to use 8 read/merge/erase/re-program cycles to get the same job done.

The partitions of an eMMC device, like those of a (spinning) hard disk drive need not describe the entire storage area of the device.
In the case of the Kindles, they do not, there is storage area "outside" of that described by the partition table.

The /mnt/us is a file system, ultimately stored on the /dev/mmcblk0p4 device. I write "ultimately" because there are a couple of VFS layers involved before the bits and bytes actual hit the silicon.

Translation: There is a lot of useful information in a *nix /dev/name.

Now, to continue with the topic at hand, getting a forensics's image file ....

We know there are four partitions;
We know the partitions 3 and 4 (mmcblk0p3 and mmcblk0p4) are not of any interest;
We know there is storage area outside of the partition table described areas;
We know that either partition 1 or partition 2 (or both) will be mounted (in-use) during "normal" operation;
We know that we can not get a complete (in the sense of being correct) image of the backing store of a file system while the file system is "in-use";

A procedure that "will work" -
Boot the system that uses partition 1 as its file system ("main"), copy partition 2; then:

Boot the system that uses partition 2 as its file system ("diags"), copy partition 1; and:

somewhere along the way (from either system):
Read the partition table of mmcblk0 (the "raw" device) and copy the storage area from 0 ... the block prior to the first block described in partition 1.

A much better procedure -
Use one of the "service and maintenance" tools that boot the Kindle into a state where it is using a RAM RESIDENT file system;
Read the partition table;
Copy from 0 .. the block prior to the start of partition 3.

Then, off-kindle, sort out the various parts of the copied image.

Since we want a quality copy of this 5.1.1 release, the second procedure is the desired one.
And GM can best recommend which of the various "service and maintenance" tools to use for this job.
Ah..No......... I... That's not right....... Okay, got about half that. I guess my way was wrong so I told people to disregard that. I have not even scratched the sacrifice of my kindles file system.... All really know (that's from what I have learned while messing around) is that it's busybox based... I have used linux for a few years now and understand enough to get by but...... Not enough to do THAT! So I step aside and let the masters do their magic. Thanks for the big learning curve there. I really did enjoy trying to act like I knew what eMMC was .
Titano is offline   Reply With Quote
Reply

Tags
jbpatch, kindle touch hacks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump


All times are GMT -4. The time now is 01:58 AM.


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