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 10-15-2012, 09:35 PM   #16
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: 6299991
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
Mine required a binary patch. as may others in the future. solution found. thanks for the report though!
twobob is offline   Reply With Quote
Old 10-15-2012, 09:43 PM   #17
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by twobob View Post
Mine required a binary patch. as may others in the future. solution found. thanks for the report though!
@twobob: Since the binary patch that you are mentioning is for the diags partition anyway, it would have been much easier to just flash a "known working" diags partition with SSH... or - even easier - the update package.

Just sayin'
ixtab is offline   Reply With Quote
Old 10-15-2012, 09:50 PM   #18
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
@ixtab: But that course would not have turned up the reason.
knc1 is offline   Reply With Quote
Old 10-15-2012, 09:55 PM   #19
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: 6299991
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 ixtab View Post
@twobob: Since the binary patch that you are mentioning is for the diags partition anyway, it would have been much easier to just flash a "known working" diags partition with SSH... or - even easier - the update package.

Just sayin'
err... I used that. Twice IIRC. it's on the thread. Got wiped both times. (that was the second)

I documented it. a few times.

Once you startup the DIAGS it wipes the /blah/local.

Last edited by twobob; 10-15-2012 at 10:12 PM.
twobob is offline   Reply With Quote
Old 10-15-2012, 10:11 PM   #20
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by twobob View Post
err... I used that. Twice IIRC. it's on the thread. Got wiped both times.

I documented it.
Nope. Absolutely impossible. I just checked it again with the file that I linked to - the system_diags file inside the partition image doesn't even contain the string ("rm -rf /usr/local/*") that you have patched:

Code:
$ strings /mnt/opt/factory/system_diags |grep local
localtime
/usr/local/bin/dropbearmulti
mkdir -p /usr/local/sbin
/usr/local/sbin/dropbearkey
/usr/local/sbin/dropbear
rm -f /var/local/system/low_batt
ixtab is offline   Reply With Quote
Old 10-15-2012, 10:15 PM   #21
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: 6299991
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 ixtab View Post
Nope. Absolutely impossible. I just checked it again with the file that I linked to - the system_diags file inside the partition image doesn't even contain the string ("rm -rf /usr/local/*") that you have patched:

Code:
$ strings /mnt/opt/factory/system_diags |grep local
localtime
/usr/local/bin/dropbearmulti
mkdir -p /usr/local/sbin
/usr/local/sbin/dropbearkey
/usr/local/sbin/dropbear
rm -f /var/local/system/low_batt
That may be so. And obviously IS given that evidence.

but on my device that is what happens. Over and over. Don't make me break it again to prove it ;( I didn't just create that rogue bin on my own. and I did install your files at least twice. I noted the fancy progress text

(err, and those diags sshd upstart entries were yours, No?)

So impossible, No, odd, yes.

something somewhere must be doing something unexpected. That's as specific as I am going to get. but it's real. B011 device.

Last edited by twobob; 10-15-2012 at 10:19 PM.
twobob is offline   Reply With Quote
Old 10-15-2012, 10:20 PM   #22
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by knc1 View Post
@ixtab: But that course would not have turned up the reason.
I can only speculate here, but the reason seems much simpler: people get their device into USB mode (while running in main), but forget to unplug and re-plug the cable so that the host would actually recognize it as a new device and set up the network interface.

(Yes, this keeps happening to me, too.)
ixtab is offline   Reply With Quote
Old 10-15-2012, 10:28 PM   #23
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by twobob View Post
That may be so. And obviously IS given that evidence.

but on my device that is what happens. Over and over. Don't make me break it again to prove it ;( I didn't just create that rogue bin on my own. and I did install your files at least twice. I noted the fancy progress text

(err, and those diags sshd upstart entries were yours, No?)

So impossible, No, odd, yes.

something somewhere must be doing something unexpected. That's as specific as I am going to get. but it's real. B011 device.
OK, then so be it

Can you try to *manually* overwrite the diags partition using the commands (and the file) from the update.bin, and check if it keeps happening afterwards? (or... even better: compare the md5sums of the diags partition "before" and "after") ?

I have always been suspicious of whether the update.bin *really* worked the way that it should (it goes through just a bit too fast for my personal taste, so *maybe* it's actually not doing what it should do.) - then again, it always worked correctly on my device, and geekmaster confirmed that it worked smoothly on "demo K5 devices"...
ixtab is offline   Reply With Quote
Old 10-15-2012, 10:45 PM   #24
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: 6299991
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 ixtab View Post
OK, then so be it

Can you try to *manually* overwrite the diags partition using the commands (and the file) from the update.bin, and check if it keeps happening afterwards? (or... even better: compare the md5sums of the diags partition "before" and "after") ?

I have always been suspicious of whether the update.bin *really* worked the way that it should (it goes through just a bit too fast for my personal taste, so *maybe* it's actually not doing what it should do.) - then again, it always worked correctly on my device, and geekmaster confirmed that it worked smoothly on "demo K5 devices"...
I'll give that a go tomorrow then. see what happens, could be something specific to the slightly updated firmware. I dunno.

the challenges we face
twobob is offline   Reply With Quote
Old 10-16-2012, 09:01 AM   #25
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 twobob View Post
I'll give that a go tomorrow then. see what happens, could be something specific to the slightly updated firmware. I dunno.

the challenges we face
There may well be an "Early User Space" initramfs that is being run before switching to the eMMC based root file system.
**AND** the things executed in that EUS may be different on 2bob's system.

I have not (yet) taken apart his initial 32Mbyte eMMC area to confirm the above but we have seen 'left overs' in the ps aux listing.
knc1 is offline   Reply With Quote
Old 10-31-2012, 08:06 AM   #26
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by ixtab View Post
OK, then so be it

Can you try to *manually* overwrite the diags partition using the commands (and the file) from the update.bin, and check if it keeps happening afterwards? (or... even better: compare the md5sums of the diags partition "before" and "after") ?

I have always been suspicious of whether the update.bin *really* worked the way that it should (it goes through just a bit too fast for my personal taste, so *maybe* it's actually not doing what it should do.) - then again, it always worked correctly on my device, and geekmaster confirmed that it worked smoothly on "demo K5 devices"...
OK, so I just had a conversation via PM with someone who had the exact same problem (SSH not working after using update.bin) Turns out that extracting it, and manually executing the run.ffs works exactly as it should.

Now... why on earth does it not work from the update.bin? The dd command gets executed (and yes, I have verified that it changes at least something on the diags partition, by creating a test file in diags, running the update.bin [which doesn't contain that file], and verifying that the file was gone afterwards), and runs for about 5 seconds (only).

So, first question is: how can that be? It seems like it is killed by something. I'm not too familiar with these "policy" things, but could it be that something like a ulimit/something similar is set, which would kill a process after some time? And... if so, my understanding is that the diags partition should actually be a complete mess, with a broken FS. But it seems to be just fine, even with an "aborted" dd. WTF is going on here?

EDIT: just for completeness, and to make things even stranger: while the dd runs through too fast (5 secs, where it should really take something like 10 or 20), which makes me think that it gets aborted, it still returns a 0 exit code.

Last edited by ixtab; 10-31-2012 at 09:08 AM.
ixtab is offline   Reply With Quote
Old 10-31-2012, 08:24 AM   #27
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: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@ixtab: Well, after a quick look at the package, it at least unearthed a stupid bug in KindleTool, but I'm not sure it's actually harmful since everything runs as root... (When creating a tarball, directories end up with broken permission: they're not searchable).

Will continue looking into it...

EDIT: Not sure what's the $PWD during the update process when the install script is in a subdirectory, and since it's using relative paths, I'm not quite sure it's actually finding the kernel & partition dumps... (Try repacking it with -C ?) [I'm still confused, like you, as to why that wouldn't completely wreck the FS, though. But I'm not familiar with dd, and even less with busybox's implementation, so, there may be some *nix magic at work here ^^]

Last edited by NiLuJe; 10-31-2012 at 08:40 AM.
NiLuJe is offline   Reply With Quote
Old 10-31-2012, 09:10 AM   #28
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by NiLuJe View Post
@ixtab: Well, after a quick look at the package, it at least unearthed a stupid bug in KindleTool, but I'm not sure it's actually harmful since everything runs as root... (When creating a tarball, directories end up with broken permission: they're not searchable).

Will continue looking into it...

EDIT: Not sure what's the $PWD during the update process when the install script is in a subdirectory, and since it's using relative paths, I'm not quite sure it's actually finding the kernel & partition dumps... (Try repacking it with -C ?) [I'm still confused, like you, as to why that wouldn't completely wreck the FS, though. But I'm not familiar with dd, and even less with busybox's implementation, so, there may be some *nix magic at work here ^^]
Yeah, I might try the "-C" switch. Actually, I think I'll try the kamikaze method and zero out the diags partition, then run the update.bin and see what happens
ixtab is offline   Reply With Quote
Old 11-18-2012, 08:59 AM   #29
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: 6299991
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 askak View Post
Hi,
I had a hard time connecting ssh, my error was something similar, time out connection fail port 20, I can't recall exactly now, but I searched the forum and lot of peaple had it. I also remember reading what geekmaster recomends you.
Well it may sound idiotic, but I finally made it, unplugin and pluging again the usb cable of the kindle to the pc. Really.
actually that doesn't sound so daft. just saying
twobob 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
Kindle Touch USB Networking/SSH ChrisKaos Kindle Developer's Corner 55 02-22-2013 09:53 AM
Kindle Touch SSH access? firite Kindle Developer's Corner 3 05-03-2012 09:36 AM
how to ssh into Kindle thomass Amazon Kindle 4 04-11-2011 10:48 AM
ssh from Kindle 3 aKarma Kindle Developer's Corner 6 09-21-2010 08:59 PM
SSH to Kindle Zorz Kindle Developer's Corner 16 01-15-2010 01:18 AM


All times are GMT -4. The time now is 03:29 AM.


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