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 06-26-2012, 09:14 AM   #31
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 UnknownUser View Post
So I created a Debian image file and am trying to set it up as a chroot system on the KT. I tried both creating my own image, and using someone elses image from somewhere on these forums.. can't remember exactly where.
Would you please bring me up to date here?

Are we now using the "someone else's" image?

Are we now using the one you built yourself?
Thread is tagged "K5" - which arch are you using, armel or armhf?
knc1 is offline   Reply With Quote
Old 06-26-2012, 09:44 AM   #32
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
Armel, afik
aditya3098 is offline   Reply With Quote
Old 06-26-2012, 04:25 PM   #33
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
dasmoover had a debian image that installed with an extension for yifanlu's touch menu. You could do apt-get to install stuff from the debian repo when chrooted to it.

I also used an arm BackTrack image that was larger than 2GB, so to fit it on vfat, I removed stuff from it I was not using, then copied its files to a 2GB image file. I played with nmap on the kindle a bit. I also had kismet working on the kindle. I also have a working "John the Ripper" that runs on the kindle, but a LOT slower than on a host PC.

But that was on the K3. On the K5, I only had success with chroot on diags. Both I and dasmoover had virtually bricked our K5's trying to do chroots from main (until I developed "select boot" to debrick my and dasmoover's K5s).

Last edited by geekmaster; 06-26-2012 at 04:27 PM.
geekmaster is offline   Reply With Quote
Old 06-26-2012, 08:14 PM   #34
UnknownUser
Member
UnknownUser understands the Henderson-Hasselbalch Equation.UnknownUser understands the Henderson-Hasselbalch Equation.UnknownUser understands the Henderson-Hasselbalch Equation.UnknownUser understands the Henderson-Hasselbalch Equation.UnknownUser understands the Henderson-Hasselbalch Equation.UnknownUser understands the Henderson-Hasselbalch Equation.UnknownUser understands the Henderson-Hasselbalch Equation.UnknownUser understands the Henderson-Hasselbalch Equation.UnknownUser understands the Henderson-Hasselbalch Equation.UnknownUser understands the Henderson-Hasselbalch Equation.UnknownUser understands the Henderson-Hasselbalch Equation.
 
Posts: 12
Karma: 85746
Join Date: Jun 2012
Device: Kindle Touch
Quote:
Originally Posted by knc1 View Post
Would you please bring me up to date here?
I made a new image from stable today, until now, I had been using an image I made from the testing repos. both created with deboostrap with arch=armel.

Both of them freeze while doing things on the kindle, but are fine when copied back to a host PC and ran with user-mode qemu.

with the squeeze image, I didn't need to call apt-update, since it was already done on the host-pc before copying over. I even managed to do an apt-get install from the kindle without it crashing! unfortunately, it wasn't that the problem went away, it just seems like it just managed to finish before freezing. I tryed to install another larger package, and froze while unpacking...
( good news though! I can play tetris as long as I like! )

regarding diags mode, Theres two reasons I see why I don't really want to go that route:
1. no ssh access means I have to flash a new image there, which I'm nt sure I'm ready to do at this point.
2. from information in several posts before, you seem to say that it drains batteries several times faster than main mode.

however I might end up there soon...
UnknownUser is offline   Reply With Quote
Old 06-26-2012, 08:34 PM   #35
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 UnknownUser View Post
I made a new image from stable today, until now, I had been using an image I made from the testing repos. both created with deboostrap with arch=armel.

Both of them freeze while doing things on the kindle, but are fine when copied back to a host PC and ran with user-mode qemu.

with the squeeze image, I didn't need to call apt-update, since it was already done on the host-pc before copying over. I even managed to do an apt-get install from the kindle without it crashing! unfortunately, it wasn't that the problem went away, it just seems like it just managed to finish before freezing. I tryed to install another larger package, and froze while unpacking...
( good news though! I can play tetris as long as I like! )
There once was a major problem with "apt-get update" in that it used a tremendous amount of memory.
That should have been dealt with by now, but perhaps it still requires more resources than are available.

One way to minimize the resource requirements -
have an absolute minimum number of repositories listed in /etc/apt/sources.list

If that doesn't do it - now that you are running Deb-6 (which should be a fairly close match in age with the Kindle kernel) - - -
It will not be changing that often - you can copy off you chroot environment file and do the "apt-get update" and "apt-get dist-upgrade" under qemu - say once every 2 or 3 months.

The two hung processes you noticed both take large amounts of ram - the log rotate only needs it briefly but it probably made its request at "just the wrong time" during the apt-get update fetch.

You should be able to manage when (and if) the log rotate daemon runs - it is usually a cron job. Do a crontab -l and edit it with crontab -e as required to make it behave.

PS:
This is not impossible to do - I run Debian on my NSLU-2 with only 32Mbyte of ram, and have successfully rebuilt the Debian base install packages from source (twice).
Added note: It does take awhile - like days, its only a 233Mhz machine.

Last edited by knc1; 06-26-2012 at 08:41 PM.
knc1 is offline   Reply With Quote
Old 06-27-2012, 06:30 AM   #36
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by UnknownUser View Post
regarding diags mode, Theres two reasons I see why I don't really want to go that route:
1. no ssh access means I have to flash a new image there, which I'm nt sure I'm ready to do at this point.
2. from information in several posts before, you seem to say that it drains batteries several times faster than main mode.

however I might end up there soon...
No need to flash diags_ssh. That was just for convenience. You really only need to copy the missing /usr/local files (dropbear). I also changed the PW to mario, but that is optional. You can copy those files with a RUNME.sh script...

There have been reports of some newer firmware erasing files from /usr/local to break SSH on a reboot though...

P.S. On my K3, running in chroot, it took 12 hours to build X11. Builds in a K5 should be faster...
geekmaster is offline   Reply With Quote
Old 10-24-2012, 06:02 PM   #37
ThomasT
Junior Member
ThomasT began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2012
Device: K4NT, K5Touch
The same problems with apt-get as described above, including a heavily bricked K5, happend to me, too.
After replacing
Code:
 mount -o loop -t ext3 /mnt/us/debian.ext3 /mnt/debian
by
Code:
 mount -o loop -t ext3 /mnt/base-us/debian.ext3 /mnt/debian
everything works fine.
This avoids file transfers through that strange mount loop on /mnt/us. RAM monitoring with
Code:
 free -s 5
shows always more than 6 MB free RAM.

As I don`t understand that strange /mnt/us loop, I don`t know, whether this is save. Up to now it works.

BTW: I have no swap file/partition. Debian version is testing. /etc/issues says wheezy/sid.
ThomasT is offline   Reply With Quote
Old 10-24-2012, 06:08 PM   #38
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by ThomasT View Post
The same problems with apt-get as described above, including a heavily bricked K5, happend to me, too.
After replacing
Code:
 mount -o loop -t ext3 /mnt/us/debian.ext3 /mnt/debian
by
Code:
 mount -o loop -t ext3 /mnt/base-us/debian.ext3 /mnt/debian
everything works fine.
This avoids file transfers through that strange mount loop on /mnt/us. RAM monitoring with
Code:
 free -s 5
shows always more than 6 MB free RAM.

As I don`t understand that strange /mnt/us loop, I don`t know, whether this is save. Up to now it works.

BTW: I have no swap file/partition. Debian version is testing. /etc/issues says wheezy/sid.
That is strange, but interesting. I and others have experienced locked up kindles when using loop mounts on /mnt/us. But I thought we were supposed to avoid using /mnt/base-us/.

Can somebody please explain the difference between /mnt/us and /mnt/base-us, and when we should use which one, and why the startup scripts generally use /mnt/us?

Is there a reason why a loop mount would hang on /mnt/us but work on /mnt/base-us, or is that just coincidental here?

Thanks.
geekmaster is offline   Reply With Quote
Old 10-24-2012, 06:13 PM   #39
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by geekmaster View Post
That is strange, but interesting. I and others have experienced locked up kindles when using loop mounts on /mnt/us. But I thought we were supposed to avoid using /mnt/base-us/.

Can somebody please explain the difference between /mnt/us and /mnt/base-us, and when we should use which one, and why the startup scripts generally use /mnt/us?

Is there a reason why a loop mount would hang on /mnt/us but work on /mnt/base-us, or is that just coincidental here?

Thanks.
When they are mounted /mnt/us has exec permissions and the other does not.

That is of course only from my reading of the DIAGS monolithic startup script.
but I have to believe the code is cut-pasted from the main startup. but in terms of mounting details the permissions are set differently

permissions based nomenclature. If there was another permission I missed then you can find it in the upstarts mount section but that was the big difference I noticed between the two calls.

Last edited by twobob; 10-24-2012 at 08:37 PM. Reason: put in some names
twobob is offline   Reply With Quote
Old 10-24-2012, 06:15 PM   #40
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
Anything that upsets the operation of the kernel's VFS layer should have left messages in the kernel message file.

That message may not have survived the system hang.
If that is why no message is seen, monitor the kernel's operator console port.
knc1 is offline   Reply With Quote
Old 10-24-2012, 08:32 PM   #41
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by geekmaster View Post
Can somebody please explain the difference between /mnt/us and /mnt/base-us, and when we should use which one, and why the startup scripts generally use /mnt/us?
/mnt/base-us is the real partition mounted. A filesystem proxy /sbin/fsp (built on top of FUSE) sits between /mnt/us and /mnt/base-us, so that requests to /mnt/us are passed through that proxy to /mnt/base-us.

Unfortunately, I don't know for sure whether these requests are modified by proxy in any way and, if so, when and how they are modified.

Once I've read on this forum that fsp serves for holding requests on pause if real parition isn't available at the moment. But I didn't check this theory (or, maybe, fact?) by myself, because I don't know how to do it.
eureka is offline   Reply With Quote
Old 10-24-2012, 09:02 PM   #42
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by eureka View Post
/mnt/base-us is the real partition mounted. A filesystem proxy /sbin/fsp (built on top of FUSE) sits between /mnt/us and /mnt/base-us, so that requests to /mnt/us are passed through that proxy to /mnt/base-us.

Unfortunately, I don't know for sure whether these requests are modified by proxy in any way and, if so, when and how they are modified.

Once I've read on this forum that fsp serves for holding requests on pause if real parition isn't available at the moment. But I didn't check this theory (or, maybe, fact?) by myself, because I don't know how to do it.
So perhaps the proxy /mnt/base-us is what prevents the loop mount lockups by modifying or delaying loop accesses to /mnt/base /mnt/us?

Last edited by geekmaster; 10-24-2012 at 09:31 PM.
geekmaster is offline   Reply With Quote
Old 10-24-2012, 09:14 PM   #43
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by geekmaster View Post
So perhaps the proxy /mnt/base-us is what prevents the loop mount lockups by modifying or delaying loop accesses to /mnt/base?
But there is no /mnt/base.
eureka is offline   Reply With Quote
Old 10-24-2012, 09:30 PM   #44
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by eureka View Post
But there is no /mnt/base.
Typo. Fixed. See previous post.
geekmaster is offline   Reply With Quote
Old 10-24-2012, 10:11 PM   #45
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by geekmaster View Post
So perhaps the proxy /mnt/base-us is what prevents the loop mount lockups by modifying or delaying loop accesses to /mnt/base /mnt/us?
Perhaps. Perhaps not. I don't know for sure. (BTW, it is /mnt/us => proxy => /mnt/base-us, not the other way. Access to /mnt/base-us isn't proxied.).
eureka is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting my kindle3g locks up when I go online carbide08 Amazon Kindle 5 08-21-2011 02:35 PM
Kobo locks up on this ePub RSaunders Devices 3 08-10-2011 01:55 PM
Library Software Locks Up sakura-panda Sony Reader 8 01-02-2010 01:40 AM
Document locks up Kindle 2 Rhett Amazon Kindle 0 10-25-2009 07:45 PM
HanLin V3 locks up roytravis HanLin eBook 8 05-27-2009 10:03 AM


All times are GMT -4. The time now is 05:26 PM.


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