View Single Post
Old 02-20-2011, 08:02 PM   #1468
yifanlu
Kindle Dissector
yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.
 
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
Quote:
Originally Posted by the-equinoxe View Post
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
The only problem with modifying the otaup file is that future updates that modify this file will fail, so be sure to keep a backup.
yifanlu is offline   Reply With Quote