Quote:
Originally Posted by NiLuJe
There may be a guard (usually a simple check for a specific flag file somewhere in the rootfs) that prevents it from running on production FW if the script lives someplace that doesn't get wiped  .
(That's a generic comment, I haven't checked this script in particular).
|
OK, so I have now checked.
For our new(er) readers, how to do that (whitespace added):
Code:
mszick@HP8300:~/Downloads/pw3$ ls
update_kindle_all_new_paperwhite_5.9.6.1.bin
mszick@HP8300:~/Downloads/pw3$ kindletool convert --keep update_kindle_all_new_paperwhite_5.9.6.1.bin
Converting update package 'update_kindle_all_new_paperwhite_5.9.6.1.bin' to 'update_kindle_all_new_paperwhite_5.9.6.1_converted.tar.gz' (without sig, keep input).
Bundle SP01 (Signing Envelope)
Cert number 2
Cert file pubprodkey02.pem (Official 2K)
Bundle FB03 (Fullbin [OTA?, fwo?])
Bundle Type Recovery V2
Target OTA 3314460001
MD5 Hash 54c00a44f0a2c635fcc89dbfed6838bc
Magic 1 2048630901
Magic 2 1897089723
Minor 1
Platform Wario
Header Rev 0
Board Unspecified
Devices 14
Device White Kindle PaperWhite 3 (2016) WiFi (32GB) Japan
Device Kindle PaperWhite 3 (2016) WiFi (32GB) Japan
Device White Kindle PaperWhite 3 (Unknown Variant 0KG)
Device White Kindle PaperWhite 3 (2016) WiFi+3G International (Bis)
Device White Kindle PaperWhite 3 (2016) WiFi+3G International
Device White Kindle PaperWhite 3 (Unknown Variant 0KD)
Device White Kindle PaperWhite 3 (2016) WiFi+3G Japan
Device White Kindle PaperWhite 3 (2016) WiFi
Device Kindle PaperWhite 3 (2015) WiFi+3G Japan
Device Kindle PaperWhite 3 (2015) WiFi+3G Canada
Device Kindle PaperWhite 3 (2015) WiFi+3G Europe
Device Kindle PaperWhite 3 (2015) WiFi+3G Mexico
Device Kindle PaperWhite 3 (2015) WiFi+3G
Device Kindle PaperWhite 3 (2015) WiFi
mszick@HP8300:~/Downloads/pw3$
That gives a 'standard' *.tar.gz compressed archive which system tools can easily handle.
Code:
mszick@HP8300:~/Downloads/pw3$ tar --extract --file update_kindle_all_new_paperwhite_5.9.6.1_converted.tar.gz
mszick@HP8300:~/Downloads/pw3$ gunzip rootfs.img.gz
mszick@HP8300:~/Downloads/pw3$ sudo mount rootfs.img /mnt/pw3
Check file system tree portion, /usr/sbin:
Code:
mszick@HP8300:~/Downloads/pw3$ tree /mnt/pw3/usr/sbin
/mnt/pw3/usr/sbin
├── alsaconf
├── alsactl
├── blanket
├── brctl -> ../../bin/busybox
├── chat
├── chpasswd -> ../../bin/busybox
├── chroot -> ../../bin/busybox
├── closerun
├── cmd
├── cramfsck
├── crond -> ../../bin/busybox
├── csp-extract-manifest
├── csp-instbundle
├── csp-unbundle
├── csp-unbundle-all
├── csp-update-props
├── deleteUserContent
├── dhcprelay -> ../../bin/busybox
├── dm
├── dmdld
├── dmld
├── dropdtr
├── eips
├── eu
├── factory_reset
├── fbset -> ../../bin/busybox
├── feature
├── force_compaction
├── ftpd -> ../../bin/busybox
├── genl-ctrl-list
├── get_free_loop_device
├── iconvconfig
├── idme
├── idme_functions
├── ifrename
├── ihbslupdater
├── install_boot_images
├── iptables -> xtables-multi
├── iptables-restore -> xtables-multi
├── iptables-save -> xtables-multi
├── iw
├── iwconfig
├── iwevent
├── iwgetid
├── iwlist
├── iwpriv
├── iwspy
├── loginfo
├── lpd -> ../../bin/busybox
├── lsof
├── manif2prop
├── mcsd
├── mkcramfs
├── mntroot
├── mntus
├── modemcmd
├── nl-class-add
├── nl-class-delete
├── nl-classid-lookup
├── nl-class-list
├── nl-cls-add
├── nl-cls-add
├── nl-cls-delete
├── nl-cls-list
├── nl-link-list
├── nl-pktloc-lookup
├── nl-qdisc-add
├── nl-qdisc-delete
├── nl-qdisc-list
├── otaup
├── parse_waveform
├── passwdlg
├── phd
├── pngGray2X
├── popmaildir -> ../../bin/busybox
├── pppd
├── pppdump
├── pppstats
├── rdate -> ../../bin/busybox
├── rdev -> ../../bin/busybox
├── readprofile
├── resell_demo
├── screenshot
├── sendmail -> ../../bin/busybox
├── setdate
├── setfont -> ../../bin/busybox
├── settings_reset
├── settz
├── shipping_mode
├── startWan
├── stopWan
├── syslog-ng
├── tinyrot
├── tmd
├── tunelp
├── udevadm
├── udevd
├── udhcpd -> ../../bin/busybox
├── update_content_packs
├── updatetime
├── updatewait
├── uperf-log
├── usbnetwork
├── usbserial
├── userstore_clean
├── userstore_reset
├── verbose
├── volumd
├── wancontrol
├── wand
├── waninfo
├── wfm_delete
├── wfm_erase
├── wfm_forceupdate
├── wfm_mount
├── wfm_umount
├── wfm_update
├── wifid
├── xDamageLogger
├── xtables-multi
└── zic
0 directories, 120 files
So that confirms that my memory failed me (again).
There are a number of things in that part of the system tree that I would not expect on the consumer version of any embedded system.
Note 1: the above song and dance is a preliminary to any investigation of a Kindle system image on your Linux powered PC.
Note 2: get your copy of KindleTool from NiLuJe's snapshots thread (he has builds for most of the common PC systems.)