Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-20-2014, 08:38 PM   #991
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: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@williamrochira: Don't. That never really worked well, and it's far more likely to screw up in an horrible way than anything else (it was done in the time of the Kindle touch, which happens to be a nigh-indestructible beast, software-wise). If you *really* want new stuff without the hassle of cross compiling or emulated native compiling, look at twobob & knc1's threads on how to rip stuff out of Debian armel.

The rootfs is mounted ro for very good reasons (the most prominent ones being keeping the sw safe, and that there's almost no room in there). Do not mess with it, unless you know exactly what you're doing and what that entails. The most recent 'I bricked my PW' thread was from someone who didn't think anything wrong would happen. Spoilers: it did. ;p.

Last edited by NiLuJe; 07-20-2014 at 08:42 PM.
NiLuJe is offline   Reply With Quote
Old 07-20-2014, 10:19 PM   #992
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by williamrochira View Post
@NiLuJe

Okay then, I guess it's just a waiting game...

However, I have another question for your infinite Kindle-related wisdom! I can't cd into most of the /opt/ subdirectories. Do you know why? It's really frustrating because I just discovered that there's a package manager for the Kindle (https://www.mobileread.com/forums/sho...d.php?t=118472) but I can't install it!
Please do not do that on a PW2 !!!

If you really can't help yourself, and must diddle, buy a used Kindle Touch to play with.

If you really, really must -
Install the current (at the moment 0.3) ARMhf system libraries (they install into user storage - not Amazon filespace) -
Then pick from Debian/Jessy ARMhf packages.

You will have to do a bit of un-packaging, finding dependencies, running patchelf as required - -
**BUT**
You will not be bricking a non-recoverable device.

Quote:
Originally Posted by williamrochira View Post
I don't understand! I've mounted read/write, I've tried resetting the thing, but no luck. Any thoughts?

Will.
Yes!

You have written the answer yourself:
Quote:
I don't understand!
STOP NOW!!

- - - -

Just the simplified over-view:

A "filesystem" is something that exists on top of a "backing store".
In a *nix system, two different levels of abstraction.
Either, or both, or neither may be "read only" in nature.

In addition, *nix systems support filesystems that **can not be written** -
sorry, not in their design spec.
they can only be created and read, never written to.

Your PW2 has a large number of such creatures included in its file system tree.
knc1 is offline   Reply With Quote
Advert
Old 07-21-2014, 08:07 AM   #993
afterbox
Enthusiast
afterbox began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Jul 2014
Device: Paperwhite 2013 3G + Wifi
@NiLuJe @knc1

Thanks guys! I'm glad you're around to stop people like me screwing up our Kindles ;-)

Could either of you give me a link to the latest "threads on how to rip stuff out of Debian armel" ? Because that would be a lifesaver, so many debian packages I want!

Thanks again,
Will.
afterbox is offline   Reply With Quote
Old 07-21-2014, 08:50 AM   #994
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by williamrochira View Post
@NiLuJe @knc1

Thanks guys! I'm glad you're around to stop people like me screwing up our Kindles ;-)
You are welcome.

It is also nice to find someone that asks when they first run into a problem rather than waiting to post when it is too late.

Quote:
Originally Posted by williamrochira View Post
Could either of you give me a link to the latest "threads on how to rip stuff out of Debian armel" ? Because that would be a lifesaver, so many debian packages I want!

Thanks again,
Will.
Ripping Debian ARMel packages - -

Most of that was done by twobob, but is pretty well scattered around the forum inside of his various posts.
His work does include scripting to determine the dependencies of a binary.

This process is limited to software from a fairly old Debian release that is compatible with the very old system libraries that are pre-installed on your Kindle.
(Still, that is many thousands of packages)

Ripping Debian ARMhf packages - -

Takes bow, pats self on back...
I have the done the basics of that, but am a long way from finished due to lack of time.
https://www.mobileread.com/forums/sho...d.php?t=240616
Which is a set of the **most recent** Linux system libraries.

The advantage of this project direction, is that it allows the Kindle to concurrently support more than one set of Linux system libraries (only two at the moment, but it is not limited to that).
I.E: Both (Amazon age) ancient applications and very recent applications.

My base installation includes very recent scripting engines (Busybox ash and Lua(Jit) ) but the only scripting is what is hinted at in my notes (and twobob's work).

The time and effort of making up "end-user" scripted tools is a large item.
If the world waits for me, we may all die of old age before I finish that on my own.

Ah, but I can probably find time to help guide someone else in that work.

The same for other members here -
They "know the answers" but do not have time to do the work themselves.
But they are all quick to respond with answers to problems posted by others.

I'll start a different thread for this topic -
If you find time to add to it (even just adding good "how do I" questions) - that would be great.

- - - -

Do not be intimidated -
twobob started with hardly knowing more than the name of the OS: "Linux" and became one of our most prolific contributors in a short amount of time.

Last edited by knc1; 07-21-2014 at 09:10 AM.
knc1 is offline   Reply With Quote
Old 07-21-2014, 11:56 AM   #995
afterbox
Enthusiast
afterbox began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Jul 2014
Device: Paperwhite 2013 3G + Wifi
[deleted]

Last edited by afterbox; 04-29-2018 at 07:15 PM.
afterbox is offline   Reply With Quote
Advert
Old 07-21-2014, 12:25 PM   #996
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Because you renamed the directory.

https://www.mobileread.com/forums/sho...1&postcount=47

Let me know if you find a typo or other error in that post.
knc1 is offline   Reply With Quote
Old 07-21-2014, 01:36 PM   #997
afterbox
Enthusiast
afterbox began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Jul 2014
Device: Paperwhite 2013 3G + Wifi
@knc1

You're a wonderful person ;-) I knew it would be something stupid I'd done!

Just wondering... What does the "exec esys/bin/busybox ash" command achieve? Whether or not I run this, just setting the PATH variable seems to work for me, so is it still necessary?

Last question! This is probably very stupid of me, but adding the PATH setting command to a '.bashrc' or a '.bash_profile' didn't set the path at login. Is there a way to do this?

Thanks,
Will.
afterbox is offline   Reply With Quote
Old 07-21-2014, 01:45 PM   #998
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by williamrochira View Post
Just wondering... What does the "exec esys/bin/busybox ash" command achieve? Whether or not I run this, just setting the PATH variable seems to work for me, so is it still necessary?

Will.
It replaces the currently executing (very old, Amazon provided) copy of the command line interpreter with the new one.

You will notice the differences when you try to run ash ('sh') scripts.
The old version provided on your Kindle is a real headache to use at times.
knc1 is offline   Reply With Quote
Old 07-21-2014, 01:58 PM   #999
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
What about manually setting the PATH in /etc/environment
eschwartz is offline   Reply With Quote
Old 07-21-2014, 02:24 PM   #1000
afterbox
Enthusiast
afterbox began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Jul 2014
Device: Paperwhite 2013 3G + Wifi
@knc1: Ah, okay. So the command still has to be executed every session?

@eschwartz: I'm afraid that /etc/environment didn't work for the PATH variable, and obviously isn't suitable for executing the "exec esys/bin/busybox ash" command. I've also tried /etc/bash/bashrc to no avail.

Any other ideas? I'm thinking I might just put it in a shell script and remembering to run it at login.

Will.

Sidenote: What do people do with the 'control' directory in deb packages? Should I keep 'em?

Last edited by afterbox; 07-21-2014 at 02:32 PM.
afterbox is offline   Reply With Quote
Old 07-21-2014, 02:38 PM   #1001
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: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Wild guess: Try ~/.profile. Drawback: ${HOME} is a tmpfs for root by default.
NiLuJe is offline   Reply With Quote
Old 07-21-2014, 02:45 PM   #1002
afterbox
Enthusiast
afterbox began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Jul 2014
Device: Paperwhite 2013 3G + Wifi
Well we're getting somewhere, ~/.profile successfully executed:

cd /mnt/us
exec esys/bin/busybox ash

But echo $PATH returns:

/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/python/bin

So the export PATH=/mnt/us/esys/bin:/mnt/us/esys/usr/bin:$PATH didn't work...

PS: Same result with a shell script, can't export the PATH variable.

Last edited by afterbox; 07-21-2014 at 02:48 PM.
afterbox is offline   Reply With Quote
Old 07-21-2014, 03:02 PM   #1003
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by NiLuJe View Post
Wild guess: Try ~/.profile. Drawback: ${HOME} is a tmpfs for root by default.
Code:
mntroot rw && sed -i -e "s/\/tmp\/root/\/mnt\/us\/home/" /etc/paswd && mntroot ro
Doesn't seem much of a drawback.
eschwartz is offline   Reply With Quote
Old 07-21-2014, 03:14 PM   #1004
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by williamrochira View Post
Well we're getting somewhere, ~/.profile successfully executed:

cd /mnt/us
exec esys/bin/busybox ash

But echo $PATH returns:

/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/python/bin

So the export PATH=/mnt/us/esys/bin:/mnt/us/esys/usr/bin:$PATH didn't work...

PS: Same result with a shell script, can't export the PATH variable.
shellscripts can't set paths, because it becomes a subshell. you need to source the script instead of executing it.

Kterm is actually running ~/.profile on startup, but isn't picking up on exports?
eschwartz is offline   Reply With Quote
Old 07-21-2014, 04:39 PM   #1005
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: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
IIRC, there's a login sell vs. non-login shell shenanigan for the KTerm thing (cf. KTerm's issue tracker on GH).
NiLuJe is offline   Reply With Quote
Reply

Tags
5.1.0, 5.2.0, jailbreak, kindle touch hacks, paperwhite, touch


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Touch 5.0 Jailbreak yifanlu Kindle Developer's Corner 246 01-03-2013 04:57 PM
Is a Kindle Touch for a PaperWhite a good trade? route66 Amazon Kindle 7 09-29-2012 03:21 PM
Kindle Touch with 'Paperwhite' backlit display JoHunt Amazon Kindle 2 08-31-2012 04:33 AM
[Kindle Touch] Firmware 5.1.0 and jailbreak ixtab Kindle Developer's Corner 85 06-28-2012 04:43 AM
How to Kindle touch - jailbreak, screensaver morgun Kindle Developer's Corner 3 05-21-2012 06:39 PM


All times are GMT -4. The time now is 01:17 PM.


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