View Single Post
Old 08-22-2012, 05:01 AM   #19
xms
Junior Member
xms knows what time it isxms knows what time it isxms knows what time it isxms knows what time it isxms knows what time it isxms knows what time it isxms knows what time it isxms knows what time it isxms knows what time it isxms knows what time it isxms knows what time it is
 
Posts: 9
Karma: 2304
Join Date: Aug 2012
Device: kindke dx us
My Kindle restored!

It was needed just to overwrite rootfs with the dump (using "dd").

All like described here:
http://yifan.lu/2011/04/02/recoverin...rupt-kindle-2/

except i didn't use custom kernel because have password
(received by Kindle diagnostic tool: http://www.siralex.info/wp-content/p...nload.php?id=9)

also you can ask anyone with same model to do the image for you with just simple script
Spoiler:

#!/bin/sh

# diff OTA patch script

_FUNCTIONS=/etc/rc.d/functions
[ -f ${_FUNCTIONS} ] && . ${_FUNCTIONS}


MSG_SLLVL_D="debug"
MSG_SLLVL_I="info"
MSG_SLLVL_W="warn"
MSG_SLLVL_E="err"
MSG_SLLVL_C="crit"
MSG_SLNUM_D=0
MSG_SLNUM_I=1
MSG_SLNUM_W=2
MSG_SLNUM_E=3
MSG_SLNUM_C=4
MSG_CUR_LVL=/var/local/system/syslog_level

logmsg()
{
local _NVPAIRS
local _FREETEXT
local _MSG_SLLVL
local _MSG_SLNUM

_MSG_LEVEL=$1
_MSG_COMP=$2

{ [ $# -ge 4 ] && _NVPAIRS=$3 && shift ; }

_FREETEXT=$3

eval _MSG_SLLVL=\${MSG_SLLVL_$_MSG_LEVEL}
eval _MSG_SLNUM=\${MSG_SLNUM_$_MSG_LEVEL}

local _CURLVL

{ [ -f $MSG_CUR_LVL ] && _CURLVL=`cat $MSG_CUR_LVL` ; } || _CURLVL=1

if [ $_MSG_SLNUM -ge $_CURLVL ]; then
/usr/bin/logger -p local4.$_MSG_SLLVL -t "ota_install" "$_MSG_LEVEL def:$_MSG_COMP:$_NVPAIRS:$_FREETEXT"
fi

[ "$_MSG_LEVEL" != "D" ] && echo "ota_install: $_MSG_LEVEL def:$_MSG_COMP:$_NVPAIRS:$_FREETEXT"
}

if [ -z "${_PERCENT_COMPLETE}" ]; then
export _PERCENT_COMPLETE=0
fi

update_percent_complete()
{
_PERCENT_COMPLETE=$((${_PERCENT_COMPLETE} + $1))
update_progressbar ${_PERCENT_COMPLETE}
}

update_percent_complete 10

dd if=/dev/mmcblk0 of=/mnt/us/mmcblk0_7688.dmp bs=512 count=7688
update_percent_complete 20
dd if=/dev/mmcblk0p1 of=/mnt/us/mmcblk0p1.dmp
update_percent_complete 70
dd if=/dev/mmcblk0p2 of=/mnt/us/mmcblk0p2.dmp
update_percent_complete 90
dd if=/dev/mmcblk0p3 of=/mnt/us/mmcblk0p3.dmp
update_progressbar 100

return 0

packed into update.bin package with KindleTool (taken from this forum)
NB: jailbreak installed is needed!

p.s. seems it was possible to do the restore even without disassembling kindle and serial console, just packing rootfs.tar.gz into restore package..
(didn't test this)

Thanks for all advices!
xms is offline   Reply With Quote