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 06-23-2012, 11:38 AM   #391
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 kirokko View Post
Maybe I missed something but is there fastboot tool for linux? Or should I use Windows?
https://www.mobileread.com/forums/sho...d.php?t=174638
knc1 is offline   Reply With Quote
Old 06-23-2012, 02:49 PM   #392
kirokko
Member Retired
kirokko began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Mar 2012
Device: Kindle 4
So, after trying to flash kernels and images with fastboot I got the same problem as it was described early with K4. I can load fastboot mode, I can load diags mode, but I can't load main mode. MgfTool also doesn't work. Fastboot also can't help me to get into main mode using this commands:
Code:
fastboot setvar bootmode main
fastboot reboot
I checked everything before flashing, and I'm sure that I choose correct files.
May be we have the wrong kernel image?

I had 4.1.0 before. And I had succesfull experience when I flashed main image using dd command through ssh. I didn't flash kernel and diags images and at that time everything was fine.
kirokko is offline   Reply With Quote
Advert
Old 06-23-2012, 03:10 PM   #393
kirokko
Member Retired
kirokko began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Mar 2012
Device: Kindle 4
I can't edit my previous post

Size of main kernel in bytes: 4724736
Size of diags kernel in bytes: 5123072

MD5 of both kernels:
Code:
99c31fa3ad2618e577194a912f139550 *diags_kernel.img
2e880fdfd48c3d460151c5051ca8161b *kernel-4.0.1.img
kirokko is offline   Reply With Quote
Old 06-24-2012, 01:26 AM   #394
Azrhei
Member
Azrhei began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2012
Device: Kindle
Ok, I posted somewhere else but it looks like this is the place to be for me. My kindle wasn't bricked, I just wanted to update. After messing around I bricked it. Then I followed this guide and ....

K4NT is my toy 4.0.1

MFGTool never worked, never detected my Kindle, but I was able to instal drivers and get fastboot to work. I flashed the K4 main img and diag img and that seemed to work. I SSH'd into the device and that worked. I dd'd the imgs, and that worked (it seemed) and then I zero'd the partition and that... well, then I disabled DIAG and rebooted and now I'm bricked again. I can't get my device to show up on MFGtool. I can't even get my computer to realized it's plugged in when I do the power/home trick.

I'm stuck on the USBnet screen, if it matters.
I did this on Windows 7 AMD x64

The only thing that I may have done wrong. I did the flashing on one computer, but then switched computers to do the SSH part (because I had that already setup on my other computer)

Last edited by Azrhei; 06-24-2012 at 01:29 AM.
Azrhei is offline   Reply With Quote
Old 06-24-2012, 02:25 AM   #395
Azrhei
Member
Azrhei began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2012
Device: Kindle
Sorry for the double post:

I was able to fastboot again, followed all steps again... When I try to disable diag mode, it bricks... I've tried using both the diag menu to do this and fastboot and either way it bricks. I'm wondering if I used the wrong images? I grabbed the ones marked K4 and had no errors along the way with them.
Azrhei is offline   Reply With Quote
Advert
Old 06-24-2012, 02:50 AM   #396
kirokko
Member Retired
kirokko began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Mar 2012
Device: Kindle 4
Quote:
Originally Posted by Azrhei View Post
Sorry for the double post:

I was able to fastboot again, followed all steps again... When I try to disable diag mode, it bricks... I've tried using both the diag menu to do this and fastboot and either way it bricks. I'm wondering if I used the wrong images? I grabbed the ones marked K4 and had no errors along the way with them.
It seem like you have the same problem as I describe above. Everything works fine when flashing diags and kernels until it stucks and the same point at load to normal mode.
kirokko is offline   Reply With Quote
Old 06-24-2012, 03:16 AM   #397
Azrhei
Member
Azrhei began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2012
Device: Kindle
Quote:
Originally Posted by kirokko View Post
It seem like you have the same problem as I describe above. Everything works fine when flashing diags and kernels until it stucks and the same point at load to normal mode.
I noticed your post. Only difference is that I was at 4.0.1 otherwise I think we are at the same point.

I can repeat all the steps as much as I want. I can fastboot/flash. I can SSH in and re-dd the imgs etc.
Azrhei is offline   Reply With Quote
Old 06-24-2012, 04:09 AM   #398
kirokko
Member Retired
kirokko began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Mar 2012
Device: Kindle 4
As I've said before, I thought we have wrong kernel image. I flashed the new one by hostar form this post and kindle works fine. I think it should be replaced in pastebin page. I flashed both diags_kernel and main kernel, so I'm not sure which was caused of such problems.

Sorry for my English, it's not perfect
kirokko is offline   Reply With Quote
Old 06-24-2012, 04:32 AM   #399
kirokko
Member Retired
kirokko began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Mar 2012
Device: Kindle 4
Sorry for double post, I just want that all this should be clear.

This is the MD5 hash for all kernels which I found:
Code:
99c31fa3ad2618e577194a912f139550  diags_kernel_forensic.img
3566d91f123e609b6a1aa8e679d65bfc  diags_kernel_hostar.img
2e880fdfd48c3d460151c5051ca8161b  main_kernel_forensic.img
f8ee194c84bbc824537b469265785691  main_kernel_hostar.img
2e880fdfd48c3d460151c5051ca8161b  main_kernel_mediafire.img
As you can see, main kernel form forensic server and from mediafire are the same. The main kernel from hostar differ from main kernel form forensic.

Also I attach info using file utility. This is for main kernel from forensic:
Code:
main_kernel_forensic.img: u-boot legacy uImage, Linux-2.6.31-rt11-lab126, Linux/ARM, OS Kernel Image (Not compressed), 4760896 bytes, Fri Sep 23 11:34:55 2011, Load Address: 0x70008000, Entry Point: 0x70008000, Header CRC: 0xEE89786D, Data CRC: 0x04F95A54
And this is for main kernel by hostar:
Code:
main_kernel_hostar.img: u-boot legacy uImage, Linux-2.6.31-rt11-lab126, Linux/ARM, OS Kernel Image (Not compressed), 4760896 bytes, Sat Sep  3 12:46:54 2011, Load Address: 0x70008000, Entry Point: 0x70008000, Header CRC: 0x3E5D2E75, Data CRC: 0x8C67E408
We can see that Header CRC and Data CRC differ.

And info about diags kernel. As you can see, MD5 also differ.
This info for diags kernel from mediafire (there is no such kernel on forensic server):
Code:
diags_kernel_forensic.img: u-boot legacy uImage, Linux-2.6.31-rt11-lab126, Linux/ARM, OS Kernel Image (Not compressed), 5122432 bytes, Sat Sep  3 09:01:08 2011, Load Address: 0x70008000, Entry Point: 0x70008000, Header CRC: 0x2A4A2E2C, Data CRC: 0xAB6660C5
And info for diags kernel by hostar:
Code:
diags_kernel_hostar.img: u-boot legacy uImage, Linux-2.6.31-rt11-lab126, Linux/ARM, OS Kernel Image (Not compressed), 5122432 bytes, Sat Sep  3 09:01:08 2011, Load Address: 0x70008000, Entry Point: 0x70008000, Header CRC: 0x2A4A2E2C, Data CRC: 0xAB6660C5
As we can see, Header CRC and Data CRC are the same.

Summarize all, the reason is wrong main kernel from forensic and mediafire. I think it would be useful to correct all links.
kirokko is offline   Reply With Quote
Old 06-24-2012, 05:52 AM   #400
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
About the md5sum's of the image files . . . .
  • Each image file contains (in /etc/shadow) a machine serial number based password for the user 'root'. The md5sum's will differ if the images are from machines with different serial numbers.
  • Each image file contains files with three timestamps, one of which is the "last accessed" (atime) field. Even if the images are from the same machine with the same serial number, if the last time any of the files where accessed are different, the md5sums will be different.
  • The non-windows file system (the ones listed here) have meta-data super blocks, each with a "last mount time" - which gets written to even when the media is mounted "read-only". This will also cause the md5sums to differ.

Instead of comparing image md5sums -
Mount each of the images;
Copy out ("cat") the contents of <mount-point>/etc/version.txt and <mount-point>/etc/prettyversion.txt and post those contents.
It those exact file names are not present in an image, browse around in <mount-point>/etc until you find something similar.

The <mount-point>/etc/version.txt will have a software "build code" in it and a software build date.
It would be nice to see those.

Last edited by knc1; 06-24-2012 at 07:20 AM.
knc1 is offline   Reply With Quote
Old 06-24-2012, 06:05 AM   #401
kirokko
Member Retired
kirokko began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Mar 2012
Device: Kindle 4
But this is kernel images, how to mount it? Also I don't think that this kernels have /etc/version.txt and so on.

Also you can watch on CRC header and CRC data. This is important, not md5sum. It was created to show that forensic and mediafire kernels are the same. And you miss something. Are you sure that last access date will change md5? I tried with simple text file filled with random characters. Last access date doesn't change, but if I save file without add or remove or change something inside of it date of modification si changing but md5 are the same.

Even the date is different. In hostar files all dates are 3 Sep (for main and for diags), but for forensic main kernel date is 23 Sep and mediafire diags are 3 Sep.

Last edited by kirokko; 06-24-2012 at 06:09 AM.
kirokko is offline   Reply With Quote
Old 06-24-2012, 06:12 AM   #402
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 kirokko View Post
But this is kernel images, how to mount it? Also I don't think that this kernels have /etc/version.txt and so on.
My bad.
I will leave the post above for the information that it contains.
Quote:
Originally Posted by kirokko View Post
And you miss something. Are you sure that last access date will change md5? I tried with simple text file filled with random characters. Last access date doesn't change, but if I save file without add or remove or change something inside of it date of modification si changing but md5 are the same.
IF we here talking about file system images, rather than kernel images: Yes.
Depending on your mount options. Check the mount options on the file you are testing with - many distro's default to "noatime".
knc1 is offline   Reply With Quote
Old 06-24-2012, 07:29 AM   #403
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by kirokko View Post
As I've said before, I thought we have wrong kernel image. I flashed the new one by hostar form this post and kindle works fine. I think it should be replaced in pastebin page. I flashed both diags_kernel and main kernel, so I'm not sure which was caused of such problems.

Sorry for my English, it's not perfect
I cannot access pastebin.com from my current location. I get a redirect to a "pastebin.com Blocked by Government Act (translated)" page. I cannot update it now. I will add Hostar's post to the first post for now.

EDIT: Done! Hostar's images are 4.0.0, according to the post immediately before that linked post. It looks like we need a mirror for pastebin.com now that it is banned and blocked in some countries (at least by the ISP I am now using).

Request: Can somebody please COPY the pastebin page to another site, and I will add that mirror link to the first post in this thread?

Last edited by geekmaster; 06-24-2012 at 07:46 AM.
geekmaster is offline   Reply With Quote
Old 06-24-2012, 07:34 AM   #404
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 kirokko View Post
But this is kernel images, how to mount it?
The short answer: It is possible.
The long answer: It isn't fun and simple, I will have to write that one up.

One way to compare the binary kernels is to dump its symbol table.
If two kernels support the same symbols, then they may be functionally the same (or may not be).

(Kernels have a symbol table, even when "stripped", to make loadable modules work.)

In general, u-boot/ARM uses a zImage with a perpended u-boot header.
And like any other kernel, that image may also have an appended initramfs file (which may in turn, have other files appended to it).

The u-boot header will not be compressed, the kernel image may well be, after the leading "piggy" block (the relocation and decompression code).

There seems to be a lot of information on the 'net about taking apart the omap (TI, ARM) images. I guess we need to re-write that info for the Freescale/Amazon images.

(I have done several write-up on taking apart the MIPS images, which is not relevant here. Those can be found by clicking through to my "home website" in the left hand info blocks.)
knc1 is offline   Reply With Quote
Old 06-24-2012, 07:50 AM   #405
kirokko
Member Retired
kirokko began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Mar 2012
Device: Kindle 4
Quote:
Originally Posted by geekmaster View Post
[COLOR="DarkRed"]EDIT: Done! Hostar's images are 4.0.0, according to the post immediately before that linked post. It looks like we need a mirror for pastebin.com now that it is banned and blocked in Turkey (at least by the ISP I am now using).
So, mmcblk0p1.img 4.0.1 works with kernel 4.0.0 and mmcblk0p1.img 4.0.1 doesn't work with kernel 4.0.1.
I didn't try to flash mmcblk0p1.img 4.0.0 with dd's command, 4.0.1 works fine.

Does the diags partition and diags kernel also update with new firmware 4.1.0? How to check main kernel and diags kernel version in my Kindle? It looks like 4.0.1 fw update didn't change diags_kernel.

Last edited by kirokko; 06-24-2012 at 07:53 AM.
kirokko is offline   Reply With Quote
Reply

Tags
debricking

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which one Nook simple touch or Kobo mini? capuchino71 Which one should I buy? 18 07-12-2013 05:09 PM
Sell Kindle Keyboard 3G, Nook Simple Touch austinmitchell Flea Market 5 03-01-2013 11:34 AM
I have some questions about K4 touch debricking drjonvargas Kindle Developer's Corner 4 04-22-2012 03:46 PM
kindle touch simple debricking for help non_fox Amazon Kindle 4 04-18-2012 08:32 PM
Troubleshooting simple kindle touch (and k4nt) debricking method geekmaster Amazon Kindle 0 03-02-2012 10:31 PM


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


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