View Single Post
Old 07-12-2012, 05:12 PM   #36
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
I've just published v05. It has quite experimental, but quite useful new features:

The first is a simple thing: The "info" command will now also display the serial number of the Kindle plus the Wifi MAC address. Can probably also be a bit expanded. This can serve as an indicator if the memory in question has been overwritten with other stuff, too.

The other thing is complex, but veeeery useful. It's a built-in NBD (network block device) server. It will listen on localhost:12345 by default. You start it with the "nbd" command.
If successfully connected to the device, you can start "nbd-client" on your host machine (make sure you have the "nbd" package installed). You may need to modprobe the "nbd" kernel module on the host before nbd-client would work.

Example:
session1:
Code:
root# ./k3flasher mx35to2_mmc.bin nbd
session2:
Code:
root# modprobe nbd max_part=10
root# nbd-client localhost 12345 /dev/nbd0 -t 120
...use devices...
root# nbd-client -d /dev/nbd0
This will present the Kindle's flash as device(s) /dev/nbd0(p1,p2,p3,p4).

I've successfully tested reading (slow), writing (slower) and mounting (well, slow), even read/write. Works a treat. Some day, we might use this to fix filesystems on the Kindle.

Oh, and I've updated the code documentation quite a bit. I'll probably leave it this way, except for bugfixes.
hawhill is offline   Reply With Quote