![]() |
#1 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
![]()
This thread was created in response to the following IRC request:
14:22 < nueva> geekmstr: will you post to mobileread about kexec? The news is that multiple people (including nueva and geekmaster) have successfully booted a custom linux kernel on our kindle touch from an SSH shell, by using the kexec program to load a diags kernel image file from the USB drive and to boot the kindle from it. The information provided here includes a "cleaned up" IRC transcript, serial port status messages captured during a kexec kernel boot, and other files from links provided by neuva and geekmaster. IRC Transcript: Spoiler:
Serial port capture during kexec kernel boot: Spoiler:
kexec.sh: Spoiler:
diags_kernel-5.0.0.img.tgz: http://www.mediafire.com/?wxv0eat6lcz6mx6 kexec binary extracted from Debian armel package: http://ge.tt/3xjysLE/v/0?c getkernels tool: https://www.mobileread.com/forums/sho...d.php?t=174674 Please post here if you attempt this. We want to know about successes and failures, and especially any customized linux kernels that you booted. Also, be sure to post disk image and kernel files that boot Android OS from the USB Drive when you have them ready for us... ![]() ![]() Last edited by geekmaster; 05-13-2012 at 02:55 PM. Reason: fixed bad link |
![]() |
![]() |
![]() |
#2 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
The title of this thread was changed to prevent confusion with booting from a linux kernel sent over a USB cable (using MfgTool or sb_loader). Those things are discussed in other threads, such as the "Select Boot" thread.
This thread is about booting a kindle from a kernel image stored on the kindle USB drive (using kexec). ![]() Last edited by geekmaster; 03-19-2012 at 12:46 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() Posts: 67
Karma: 10
Join Date: Feb 2012
Device: Kindle Touch SO
|
Hmm...
Sorry, I can't understand, can it be any useful for unbricking Kindle Touch? I flashed diags partition and successfully "dd" mmcblk0p1 using SSH but still can't boot in main mode. |
![]() |
![]() |
![]() |
#4 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Booting a custom linux kernel is useful for kernel mode development, such as creating a new device driver, without a bug in the new device driver causing the kindle to get bricked. One of our members (dasmoover) had his kindle touch sit on a shelf gathering dust after his "tun.ko" driver bricked his touch in a way that required our debricking methods to progress to a point where he was able to recover it. Regarding the problem that you described, it sounds like you repaired your kindle. Perhaps you need to change your bootmode idme var. To do that, boot to diags, and from an SSH shell, type these commands: idme -d --bootmode main rm -f /mnt/us/ENABLE_DIAGS reboot simple kindle touch (and k4nt) debricking method: https://www.mobileread.com/forums/sho...d.php?t=170929 Select Boot for K4 and Touch: https://www.mobileread.com/forums/sho...d.php?t=169645 Fastboot Manifesto: https://www.mobileread.com/forums/sho...d.php?t=170241 fastboot for win32: https://www.mobileread.com/forums/sho...d.php?t=171460 ![]() Last edited by geekmaster; 03-19-2012 at 11:35 AM. |
|
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
With this, (unless I am VERY wrong) porting openinkpot would be possible, if not trivial!
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
I don't think this changes the game regarding openinkpot. In order to use it, you still have to compile it and adapt to the platform. This probably belongs in another thread, but anyway: The kernel itself is open enough already, at least for a lot of purposes. Of course, the kexec is still a good thing to have, but openinkpot won't require a different kernel. Rather, openinkpot would have to be adopted to the kindle environment: e-ink handling, and I think more importantly power management (and some secondary things like wifi and wan). After all, you still need a kernel tailored for the hardware. And the best fit for now are most probably Amazon's kernel sources.
|
![]() |
![]() |
![]() |
#7 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Where a custom kernel is most needed is for running android, which has lots of custom kernel patches. Thankfully, this is only a temporary problem, because many custom android patches were just included in the latest official linux kernel build.
|
![]() |
![]() |
![]() |
#8 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
nook os?
|
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Feb 2012
Device: k touch
|
can we boot diags from mmcblk0p2.img using KindleSelectBoot,i erase my kindle using fastboot,now it has nothing in it. how am i gonna fix it? help me geekmaster, please.
|
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
I think you should read the thread that geekmaster referenced above - and maybe ask resulting questions there. As for what this thread is about: I don't think that kexec will help in your case. It's rather for booting a different kernel from a working environment. Please refer to
Quote:
|
|
![]() |
![]() |
![]() |
#11 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
![]() As described in the "simple debricking" thread linked from hawhill's post, you can download mmcblk0p2_ssh and flash it to diags with fastboot, then boot diags with MfgTool and export USB drive, download and copy mmcblk0p1 to USB drive, start SSH from diags and copy mmcblkp1 from USB drive to /dev/mmcblk0p1. Then set bootmode to main and reboot. As hawhill said, this simple debricking method is described in detail at the link he provided. Go there for details and download links. ![]() Last edited by geekmaster; 03-23-2012 at 08:02 AM. Reason: typophrenia |
|
![]() |
![]() |
![]() |
#12 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Feb 2012
Device: k touch
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Can you boot to diags? Or, did you erase that too? If you erased EVERYTHING (why?) you either need to flash the partitions over the serial port, or wait until SOMEBODY creates a custom MfgTool profile that can flash these partitions. There is a post in this forum by rastik about how he recovered from a total erasure of mmc, by flashing mmc using the serial port and a flash image sent to the kindle using ymodem serial protocol. There is no need to erase the mmc (ever), and it just makes recovery more difficult. Yifanlu warned against doing any fastboot commands that you do not understand, and now you must learn new stuff to overcome the consequences of your actions. You must either invest the time to learn how to debrick this using methods described in various posts (or read the freescale documents and create a custom MfgTool profile to flash the partitions), or you must buy a replacement kindle. It is up to you to decide how to invest your time and money resources. If you do not want to spend the time, then spend the money on a replacement kindle (and donate this one to somebody who DOES want to spend the time on it). Last edited by geekmaster; 03-24-2012 at 12:23 AM. |
|
![]() |
![]() |
![]() |
#14 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Feb 2012
Device: k touch
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 7124
Join Date: Feb 2012
Device: KT
|
can i use the same method to boot main?
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting Did I get my kindle stuck in USB Drive Mode? | peacedog | Amazon Kindle | 9 | 02-13-2020 08:13 AM |
extract initramfs from kindle dx kernel image | chinaet | Kindle Developer's Corner | 16 | 04-19-2013 12:16 PM |
[Kindle Touch] Boot over USB HID serial / "USB downloader" mode | eureka | Kindle Developer's Corner | 16 | 02-25-2012 10:21 PM |
Troubleshooting Kindle 3 usb drive mode problem | readpro | Amazon Kindle | 7 | 10-25-2011 12:22 AM |
Does Kindle spread USB virus like USB flash drive? | rockchen | General Discussions | 49 | 02-17-2011 10:03 AM |