Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-09-2019, 11:55 AM   #1
zaoqi
github.com/zaoqi
zaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beauty
 
Posts: 79
Karma: 32020
Join Date: Mar 2017
Location: Hangzhou Zhejiang China
Device: Boox c67ml,Note S,Max2,KT3,KPW4,Kobo AurdHD,Touch N905C
I successfully ran kpw4 image in docker.

preparation:
configure binfmt-support on the Docker host (works locally or remotely, i.e: using boot2docker)
Code:
$ docker run --rm --privileged multiarch/qemu-user-static:register --reset

Dockerfile:
Code:
FROM multiarch/busybox:armel
ADD update_kindle_all_new_paperwhite_v2_5.11.2_rootfs.tgz /
generate update_kindle_all_new_paperwhite_v2_5.11.2_rootfs. tgz:
Code:
$ kindletool extract update_kindle_all_new_paperwhite_v2_5.11.2.bin .
$ gzip -d rootfs.img.gz
$ gnome-disk-image-mounter rootfs.img ## or mount rootfs.img ...
$ cd <mount point>
$ sudo tar -czvf <path to update_kindle_all_new_paperwhite_v2_5.11.2_rootfs.tgz> .

to run it
Code:
$ docker build -t kpw4 .
$ docker run -it --rm kpw4 /bin/sh
at least cvm works:
Code:
$ docker run -it --rm kpw4 /bin/sh
# /usr/java/bin/cvm
Does anyone know how to start the system UI?

Last edited by zaoqi; 07-16-2019 at 03:06 AM.
zaoqi is offline   Reply With Quote
Old 07-09-2019, 01:34 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 8,969
Karma: 14300102
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
In a shocking twist, start x. Or lab126_gui.
NiLuJe is offline   Reply With Quote
Advert
Old 07-09-2019, 09:08 PM   #3
coplate
Guru
coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.
 
Posts: 633
Karma: 1512746
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
Quote:
Originally Posted by zaoqi View Post
preparation:
configure binfmt-support on the Docker host (works locally or remotely, i.e: using boot2docker)
Code:
$ docker run --rm --privileged multiarch/qemu-user-static:register --reset

Dockerfile:
Code:
FROM multiarch/alpine:armhf-edge
ADD update_kindle_all_new_paperwhite_v2_5.11.2_rootfs.tgz /
generate update_kindle_all_new_paperwhite_v2_5.11.2_rootfs. tgz:
Code:
$ kindletool extract update_kindle_all_new_paperwhite_v2_5.11.2.bin .
$ gzip -d rootfs.img.gz
$ gnome-disk-image-mounter rootfs.img ## or mount rootfs.img ...
$ cd <mount point>
$ sudo tar -czvf <path to update_kindle_all_new_paperwhite_v2_5.11.2_rootfs.tgz> .

Does anyone know how to start the system UI?


What is your docker run command to start the kindle image?

I'm trying with PW, but I'm not great with docker and am getting :

Code:
coplate@ubuntu:~/PW10$ sudo docker run pw10
docker: Error response from daemon: No command specified.
Edit:
re-ran the tar on real linux, not windows 10, and now it is working, well: bash is runnign, but not sure what is running.

it mostly looks like standard alpine, with a bunch of extra files in folders

Last edited by coplate; 07-09-2019 at 09:20 PM.
coplate is offline   Reply With Quote
Old 07-11-2019, 12:18 PM   #4
zaoqi
github.com/zaoqi
zaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beauty
 
Posts: 79
Karma: 32020
Join Date: Mar 2017
Location: Hangzhou Zhejiang China
Device: Boox c67ml,Note S,Max2,KT3,KPW4,Kobo AurdHD,Touch N905C
Quote:
Originally Posted by coplate View Post
What is your docker run command to start the kindle image?

it mostly looks like standard alpine, with a bunch of extra files in folders
at least cvm works.
zaoqi is offline   Reply With Quote
Old 07-11-2019, 12:27 PM   #5
zaoqi
github.com/zaoqi
zaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beauty
 
Posts: 79
Karma: 32020
Join Date: Mar 2017
Location: Hangzhou Zhejiang China
Device: Boox c67ml,Note S,Max2,KT3,KPW4,Kobo AurdHD,Touch N905C
Quote:
Originally Posted by coplate View Post
What is your docker run command to start the kindle image?

Edit:
re-ran the tar on real linux, not windows 10, and now it is working, well: bash is runnign, but not sure what is running.
It's busybox of Kindle

Code:
$ docker run -it --rm multiarch/alpine:armhf-edge /bin/sh
/ # ls -lh /bin/busybox
-rwxr-xr-x    1 root     root      929.2K Jun 12 17:57 /bin/busybox
/ # ls -lh /bin/sh
lrwxrwxrwx    1 root     root          12 Jul  3 11:01 /bin/sh -> /bin/busybox
$ docker run -it --rm kpw4 /bin/sh
/ # ls -lh /bin/busybox
-rwxr-xr-x    1 root     root      886.5K May 22 22:12 /bin/busybox
/ # ls -lh /bin/sh
lrwxrwxrwx    1 root     root           7 May 22 22:52 /bin/sh -> busybox
zaoqi is offline   Reply With Quote
Advert
Old 07-11-2019, 10:30 PM   #6
coplate
Guru
coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.
 
Posts: 633
Karma: 1512746
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
Quote:
Originally Posted by zaoqi View Post
preparation:
configure binfmt-support on the Docker host (works locally or remotely, i.e: using boot2docker)
Code:
$ docker run --rm --privileged multiarch/qemu-user-static:register --reset

Dockerfile:
Code:
FROM multiarch/alpine:armhf-edge
ADD update_kindle_all_new_paperwhite_v2_5.11.2_rootfs.tgz /
generate update_kindle_all_new_paperwhite_v2_5.11.2_rootfs. tgz:
Code:
$ kindletool extract update_kindle_all_new_paperwhite_v2_5.11.2.bin .
$ gzip -d rootfs.img.gz
$ gnome-disk-image-mounter rootfs.img ## or mount rootfs.img ...
$ cd <mount point>
$ sudo tar -czvf <path to update_kindle_all_new_paperwhite_v2_5.11.2_rootfs.tgz> .

to run it
Code:
$ docker build -t kpw4 .
$ docker run -it --rm kpw4 /bin/sh
at least cvm works:
Code:
$ docker run -it --rm kpw4 /bin/sh
# /usr/java/bin/cvm
Does anyone know how to start the system UI?


'start x' or 'start framework' would work in "upstart" processes were working in docker, but apparently that doesn't really work?

You can try '/bin/sh /etc/upstart/framework' but you'll get a lot of errors
coplate is offline   Reply With Quote
Old 07-11-2019, 11:28 PM   #7
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 8,969
Karma: 14300102
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
Yeah, I honestly wouldn't have expected the GUI to work. Nor a lot of other things.

It's a giant game of dominoes, and one wrong move means nothing works. And theses dominoes expect some very peculiar things you'll never see anywhere but on a real Kindle HW.

It *is* probably useful for poking at mostly standalone/inert things in a slightly easier manner, though, if that's your kind of thing .
NiLuJe is offline   Reply With Quote
Old 07-14-2019, 12:24 AM   #8
zaoqi
github.com/zaoqi
zaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beauty
 
Posts: 79
Karma: 32020
Join Date: Mar 2017
Location: Hangzhou Zhejiang China
Device: Boox c67ml,Note S,Max2,KT3,KPW4,Kobo AurdHD,Touch N905C
Quote:
Originally Posted by coplate View Post
'start x' or 'start framework' would work in "upstart" processes were working in docker, but apparently that doesn't really work?

You can try '/bin/sh /etc/upstart/framework' but you'll get a lot of errors
https://duckduckgo.com/?q=docker+x11

x11 cannot work directly in docker
zaoqi is offline   Reply With Quote
Old 07-14-2019, 12:26 AM   #9
zaoqi
github.com/zaoqi
zaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beauty
 
Posts: 79
Karma: 32020
Join Date: Mar 2017
Location: Hangzhou Zhejiang China
Device: Boox c67ml,Note S,Max2,KT3,KPW4,Kobo AurdHD,Touch N905C
Quote:
Originally Posted by coplate View Post
'start x' or 'start framework' would work in "upstart" processes were working in docker, but apparently that doesn't really work?

You can try '/bin/sh /etc/upstart/framework' but you'll get a lot of errors
`cvm` may need to be started manually
zaoqi is offline   Reply With Quote
Old 07-16-2019, 06:58 AM   #10
trcm
Enthusiast
trcm knows the difference between 'who' and 'whom'trcm knows the difference between 'who' and 'whom'trcm knows the difference between 'who' and 'whom'trcm knows the difference between 'who' and 'whom'trcm knows the difference between 'who' and 'whom'trcm knows the difference between 'who' and 'whom'trcm knows the difference between 'who' and 'whom'trcm knows the difference between 'who' and 'whom'trcm knows the difference between 'who' and 'whom'trcm knows the difference between 'who' and 'whom'trcm knows the difference between 'who' and 'whom'
 
Posts: 35
Karma: 10000
Join Date: Dec 2018
Location: London
Device: Kindle PW4
If this is basically using Qemu inside Docker, why not just avoid Docker and use Qemu directly?
trcm is offline   Reply With Quote
Old 07-16-2019, 10:00 AM   #11
knc1
99.44/100% On Holiday
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 16,932
Karma: 18016732
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by trcm View Post
If this is basically using Qemu inside Docker, why not just avoid Docker and use Qemu directly?
Actually, its more like running Qemu-static within a chroot.
Ah, but that is what Docker is, anyway.
knc1 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there anyway I can jailbreak my kpw4 on 5.10.3? Au3C2 Kindle Developer's Corner 6 05-22-2019 05:56 AM
KPW4 battery life with audiobooks? ehesh Amazon Kindle 7 11-27-2018 10:21 PM
I ran over it with my car iPatty Kindle Fire 12 09-22-2012 06:53 PM
What if you ran your bookstore like a library? donovanh News 14 04-23-2008 09:28 AM


All times are GMT -4. The time now is 12:45 AM.


MobileRead.com is a privately owned, operated and funded community.