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 11-28-2014, 11:44 AM   #46
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,422
Karma: 85397180
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 Ruskie_it View Post
Apart from JB and MKK, which one of the following:

Rescue pack
Coward Rescue pack
SS
python
usbnetwork

Will survive firmware upgrade and won't require to be reapplied through mrinstaller after upgrade to latest fw?
Only the rescue pack, because the latest jailbreak brides it.
eschwartz is offline   Reply With Quote
Old 11-28-2014, 11:47 AM   #47
Ruskie_it
Fanatic
Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.Ruskie_it ought to be getting tired of karma fortunes by now.
 
Posts: 535
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
Quote:
Originally Posted by eschwartz View Post
Only the rescue pack, because the latest jailbreak brides it.
I'm sorry, but from your "but" clause I am not sure we understood each other. I asked which one DO WILL survive. If the RP will survive there is no need to be bridged...
Were you saying, instead, that RP is the only one the WILL NOT survive, unless you have applied the latest jb?

Oh never mind. You said "because". My bad.
Ruskie_it is offline   Reply With Quote
Advert
Old 11-28-2014, 11:49 AM   #48
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,422
Karma: 85397180
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
@eschwartz: Yep, the staging directory not being cleared on error is a bug, will fix .

And, yep, the mntroot issue is also a bug (you have AcxE installed, I haven't, my check was too dumb to take that into account).

In the meantime, do restart without running MRPI, because your rootfs is currently rw!

Il'l fix that when I get back later this evening, thanks .
Thanks, and sorry for forgetting about AcxE.

Also, I do have kterm, so I assume mntroot ro is (and was) sufficient... Thanks for the warning. Did MRPI fail to remount ro at the end, because of uncaught errors? If so, might be best to explicitly do so at the end.
eschwartz is offline   Reply With Quote
Old 11-28-2014, 01:16 PM   #49
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
It might make even more sense to just use the mount/umount commands themselves, rather than the Lab126 mntroot scrip.
(mount/umount has much saner error behavior)

Providing our own mount/umount that does not require 'root' permission to run is also a possibility.
knc1 is offline   Reply With Quote
Old 11-28-2014, 01:43 PM   #50
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,477
Karma: 26012464
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@Ruskie_it: Assume nothing survives except what's explicitely listed in the JB: JB, MKK, RP, CRP.

@eschwartz: Nope, it didn't even try to mntroot ro, because my error handling is currently messy as hell ^^.

@knc1: Yup, but I like the safety & logging features of lab126's mntroot, so if I were to do it myself, it would pretty much look like the existing mntroot script in the end .
NiLuJe is offline   Reply With Quote
Advert
Old 11-29-2014, 11:49 AM   #51
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,477
Karma: 26012464
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
And here comes v1.4.N, which should fix the severe incompatibility with AcXE reported by @eschwartz . Thanks .
NiLuJe is offline   Reply With Quote
Old 12-02-2014, 03:12 PM   #52
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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Finally got a chance to try this out, and it's working very nicely. for this, and thanks for getting it working with AcXE and stuff!

Now I have all my packages updated to snapshots, without taking hours, I like it. Very smooth. Especially when it works.

Last edited by eschwartz; 12-02-2014 at 03:14 PM.
eschwartz is offline   Reply With Quote
Old 12-04-2014, 06:19 AM   #53
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
Dogs are doing their 4am catscan of the front yard (searching for stray cats in their territory).

Me, well, the old say, idle hands ....

Observations on reading mrinstaller.sh:

Your sourcing /etc/rc.d/functions twice for legacy devices.

The commands:

mount -o,remount rw <device>
Does not return an error if already mounted rw;
Does not return an error if mounted ro and succeeds in changing to rw
I.E: return code == 0 it either did it or it already was

mount -o,remount ro <device>
Does not return an error if already mounted ro;
Does not return an error if mounted rw and succeeds in changing to ro
I.E: return code == 0 it either did it or it already was

AND there is no call reference counting - you only need one rw to change a ro mount, regardless of how many times it was remounted ro.
Same with ro and one or more prior calls to rw.

So I am still pretty sure you can bit bucket all of the awking and greping and other crap from the mntroot script.
You can trust the kernel to 'get it right' without checking up on it.

Note:
Another thing mis-understood by Lab126 when they wrote that script (and repeated here by other posters) - -
Changing the mount status of '/' does not change the mount status of any of the other sub-mounts in the tree.

Those ro/rw status settings are **per mount point** !!

General Note:
There are only two (maybe three) special cases to the above:

The mount point is backed by storage that does not support write (cramfs, squashfs, others) - -
'mount' should return a correct error code, but this is busybox mount - it should be tested to behave correctly.

The mount point is mounted with an errors=ro option and errors have been encountered - -
same as above - 'mount' should return a correct error code
I.E: you can umount and mount a file system with errors but not over ride with the remount option.(*)
Something else to be checked to see if busybox mount gets it correct.

The third case comes up when using network file systems -
Which is going to be a rare case for a Kindle outside of the Lab126 development setup.
(Hmm... which might explain why they wrote mntroot script to begin with.)

A trivia note:
the command:
mount -o,remount <device>
(notice the lack of any ro or rw specification)
will cause the kernel to flush all of that mount point's buffers
(if the backing store supports write, if it hasn't been errors=ro set ro, and for some kernel versions, isn't VFAT )

Edit:
(*) something about what I wrote in that sentence is bothering me - I may have made a mistake in that description.

Last edited by knc1; 12-04-2014 at 06:35 AM.
knc1 is offline   Reply With Quote
Old 12-04-2014, 08:52 AM   #54
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,477
Karma: 26012464
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@knc1:

Good catch on the functions thing, c/p oversight that I distinctly remember fixing, but that must have been on another KUAL extension ;p.

Good to know how mount is *supposed* to behave, I'll take a look at it, but since the defensive approach is in there now, it'll probably stay, can't hurt to be too careful [well, unless you botch the checks like I initially did ^^] .
BB mostly seems to honor what the mount() syscall returns... .

Last edited by NiLuJe; 12-04-2014 at 09:58 AM.
NiLuJe is offline   Reply With Quote
Old 01-02-2015, 02:45 PM   #55
evlap
Junior Member
evlap began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2015
Device: Kindle PW2
Thanks for your work, NiLuJe.

Will it be possible to use your package installer on FW 5.6.1.0.2? Desperately looking to install KOReader.

Thanks
evlap is offline   Reply With Quote
Old 01-02-2015, 03:18 PM   #56
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 evlap View Post
Thanks for your work, NiLuJe.

Will it be possible to use your package installer on FW 5.6.1.0.2? Desperately looking to install KOReader.

Thanks
Yes, but -

MrPi requires the Kindle be jailbroken.

FW 5.6.x can not (currently) be jail broken, but if a recent (ver >= 1.14) was installed **prior to** installing 5.6.x, then the old JB will survive and can be updated.

There are many recent posts related to firmware version 5.6.x -
You can learn more of the details in them.
knc1 is offline   Reply With Quote
Old 01-16-2015, 11:56 AM   #57
jacobt13
Junior Member
jacobt13 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2014
Device: kindle paperwhite 2, Nook simple with glow, Nook HD, Kindle Keyboard
I am not sure if this is a good thread for this... just a quick question to be sure...

My kid turned off the Airplane mode on my Kindle Paperwhite2 by mistake and I didn't realize it. When my KUAL extensions weren't working (font and screensaver), I didn't realize that the thing had updated and tried to uninstall, reinstall thinking there was a glitch after my son was messing with it. Long story short, I finally realized that the Kindle was WiFi connected and that it had updated. Since I uninstalled the KUAL, I am out of luck until a new jailbreak comes around for this update.... right?
jacobt13 is offline   Reply With Quote
Old 01-16-2015, 12:11 PM   #58
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,477
Karma: 26012464
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@jacobt13: If your jailbreak was in a sane state before the OTA update, all might not be lost. Try this.

(And, yes, FWIW, that's a question better suited for the JailBreak thread ).
NiLuJe is offline   Reply With Quote
Old 01-16-2015, 12:29 PM   #59
jacobt13
Junior Member
jacobt13 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2014
Device: kindle paperwhite 2, Nook simple with glow, Nook HD, Kindle Keyboard
Quote:
Originally Posted by NiLuJe View Post
@jacobt13: If your jailbreak was in a sane state before the OTA update, all might not be lost. Try this.

(And, yes, FWIW, that's a question better suited for the JailBreak thread ).
Sorry for putting it in the wrong thread - I wasn't sure where it would be best!

Unfortunately, since I first uninstalled - thinking it was a glitch on my end, even though it was working before it updated, this won't work for me. I am so angry at myself for letting it happen... and Amazon, too! I just want to use a better font than the ones they offer and they make it so complicated! Grrrr! Anyway, thanks for the quick response. I will just be patient!
jacobt13 is offline   Reply With Quote
Old 01-16-2015, 12:36 PM   #60
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,477
Karma: 26012464
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@jacobt13: Uninstalled what, exactly? Because if you only uninstalled the JailBreak/MKK, provided you haven't done a factory reset, you should still be able to use this .

(My uninstallers tend to be on the conservative side of things, because uninstalling stuff is usually overkill anyway ^^).
NiLuJe 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
ISSUE: There is a problem with this Windows Installer package Eggplantus Calibre 5 04-14-2013 09:40 AM
0.8.4 new installer too slow JSWolf Calibre 6 06-04-2011 11:29 AM
Changes to Installer??? kgn Calibre 29 01-23-2011 10:40 AM
Invalid Windows Installer Package (7.4) Sydney's Mom Calibre 4 01-15-2011 01:28 PM
iLiad So ... any chance for an installer-package for FBReader 10? X. Trapnel iRex Developer's Corner 3 06-04-2009 08:32 PM


All times are GMT -4. The time now is 02:41 AM.


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