View Single Post
Old 02-20-2011, 07:10 PM   #1467
the-equinoxe
Hardware Tweaker
the-equinoxe began at the beginning.
 
the-equinoxe's Avatar
 
Posts: 43
Karma: 28
Join Date: Oct 2010
Device: K3-Wifi
since the whole file probably is copyrighted I will just post the important differences of the old and new otaup
usr/sbin/otaup

line 32 in the new file is:
Code:
KEYYFILES="/etc/uks/pubprodkey01.pem /etc/uks/pubprodkey02.pem "
change this back into:
Code:
KEYFILES=$(ls /etc/uks/*pem)

line 124 in the new file is:
Code:
    _BUNDLE_FILES=$(find $1 ! -type d | grep -v \\.sig$)
change this back into:
Code:
    _BUNDLE_FILES=$(find $1 -type f | grep -v sig$)
should work

And don't forget to chmod 755the new file, otherwise execution is impossible.
BTW I tested it from shell

just download eg. update_backup_0.01.zip (this is a backup hack from this forum which doesn't install anything, but you do need 800 megs of free space for the backup to store! )
Try to run from commandline:
otaup /mnt/us/update_backup_0.01_k3##_install.bin
this will give you feedback if an error should occur..

in my case:
Code:
Welcome to Kindle!

root@192.168.15.200's password: 
#################################################
#  N O T I C E  *  N O T I C E  *  N O T I C E  # 
#################################################
Rootfs is mounted read-only. Invoke mntroot rw to
switch back to a writable rootfs.
#################################################
[root@kindle root]# mntroot rw
system: I mntroot:def:Making root filesystem writeable
[root@kindle root]# otaup /mnt/us/update_backup_0.01_k3w_install.bin 
system: I mntroot:def:Making root filesystem writeable
system: I otaup:def:processing update /mnt/us/update_backup_0.01_k3w_install.bin
4+0 records in
4+0 records out
system: I otaup:def:version is "FC02"
32+0 records in
32+0 records out
19+1 records in
19+1 records out
system: I otaup:def:update image checksum OK
19+1 records in
19+1 records out
install.sh.sig
install.sh
update_backup_0.01_k3w_install.dat
update_backup_0.01_k3w_install.dat.sig
7688+0 records in
7688+0 records out
..etc etc..
Now you have both keysets working again both the amazon as the hack key

Last edited by the-equinoxe; 02-20-2011 at 07:37 PM. Reason: added terminal output
the-equinoxe is offline   Reply With Quote