04-16-2012, 09:05 PM | #1 |
wannabe developer
Posts: 192
Karma: 156548
Join Date: Mar 2011
Device: Kindle: 2xKeyboard, Classic, 2xTouch, 2xPW, PW2; Onyx: Boox M92
|
[K3] Custom Kernel (rescue shell !, kexec, patched recovery)
Hello again.
Here's my custom kernel for Kindle 3 with some nice features : - Rescue shell access over USB-Serial - Kexec support - Patched Recovery Mode 1. Rescue shell Boot procedure : - After kernel is loaded by bootloader it creates required nodes and loads g_serial module for serial-over-usb mode. - It waits 70s for connection with host machine Connection parameters : Spoiler:
If user connected to Kindle terminal ( let's say via minicom ) Spoiler:
If no connection is found, Kindle boots as usual. 1.1 Additional scripts : start-os - starts Kindle OS 2. Recovery mode Boot procedure : - Reboot Kindle holding power switch for 20s, and then hold enter key on keyboard for 80s - From Recovey mode press ALT+E to export mmcblk0p1 over USB 3. Kexec kernel execution : - run "kexec -l <path to your uImage>" - run "kexec -e" v0.1 Spoiler:
Enjoy. PS: In not-so-far future I'll prepare similiar kernels for KT & KNT with shell over usbNetwork and scp support. Last edited by seaniko7; 04-16-2012 at 09:11 PM. |
04-17-2012, 10:02 PM | #2 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Awesome!
|
Advert | |
|
04-18-2012, 03:44 AM | #3 |
Groupie
Posts: 159
Karma: 20390
Join Date: Feb 2009
Device: none
|
What is the advantage of having this over, say, the default kernel, with the USBNetwork hack and/or terminal emulator program installed?
Sorry to sound so ignorant, I just am curious what the benefits are. Does the custom kernel make the whole firmware and OS run better/faster? Again, for us less-kernel-knowledged people. Hehe. Also, is it possible to get an uninstall.bin for this hack? I always like the ability to easily uninstall all that I install. Thanks in advance. |
04-18-2012, 03:58 AM | #4 |
Time Waster
Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
[root@kindle us]# kexec -l main_kernel.img
Cannot open /proc/atags: No such file or directory kexec_load failed: Function not implemented entry = 0x80008000 flags = 280000 nr_segments = 2 segment[0].buf = 0x28028 segment[0].bufsz = 10 segment[0].mem = 0x80001000 segment[0].memsz = 1000 segment[1].buf = 0x40154008 segment[1].bufsz = 20f000 segment[1].mem = 0x80008000 segment[1].memsz = 20f000 I get the same error as in the other thread. Did you read my post? To avoid confusion, I'm on a K3G, maybe you're testing on another platform... Last edited by giorgio130; 04-18-2012 at 05:45 AM. |
04-18-2012, 03:40 PM | #5 | |
wannabe developer
Posts: 192
Karma: 156548
Join Date: Mar 2011
Device: Kindle: 2xKeyboard, Classic, 2xTouch, 2xPW, PW2; Onyx: Boox M92
|
Quote:
- fix changes that caused so called "brick" - boot another OS, for example Debian, Android ( only on KT with usbNetwork via NFS mounted from kernel level ) - create boot-menu for above by loading eink modules ( atm I have no idea how to achieve this ... ) I don't have original 3.3 kernel for uninstaller. I'd be very thankful if someone could extract it using geekmaster awesome getkernels tool. @giorgio130, I've flashed two K3W without issues. If update doesn't work, you can also flash it manually using Amazon tools. - Download uImage from here : http://dl.dropbox.com/u/16679763/uImage - Copy it to /mnt/us - Execute : Code:
cp /mnt/us/uImage /tmp ; /test/flashtools/luigi/update /tmp/uImage Last edited by seaniko7; 04-18-2012 at 03:44 PM. |
|
Advert | |
|
04-18-2012, 04:10 PM | #6 |
Time Waster
Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
Thanks, it worked this time! Is it possible that the update package for k3g contains a stock kernel?
|
04-18-2012, 04:18 PM | #7 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Done! Download URL is at the bottom of this list: http://pastebin.com/Wdw4L7yT EDIT: This compressed very little with gzip. Is it a compressed kernel? Last edited by geekmaster; 04-18-2012 at 04:30 PM. |
|
04-18-2012, 04:57 PM | #8 | |
Wizard
Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
Quote:
well, if you don't trust me then use this one: preview.tinyurl.com/kindleimages Last edited by thomass; 04-18-2012 at 05:00 PM. |
|
04-18-2012, 05:33 PM | #9 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
We are removing direct links due to warnings on the parent Amazon Kindle forum. Links to lists of links are MUCH less likely to be a problem.
|
04-18-2012, 10:18 PM | #10 | |
Groupie
Posts: 159
Karma: 20390
Join Date: Feb 2009
Device: none
|
Quote:
Now, would having a K3G versus K3W (which you used) matter in terms of using this custom kernel? |
|
09-10-2012, 04:40 AM | #11 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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:
Thanks very much for your work on this |
|
07-06-2013, 04:06 PM | #12 |
Enthusiast
Posts: 25
Karma: 29826
Join Date: Oct 2012
Device: kindle 3 Wifi
|
Hello,
I've flashed the custom kernel, and also connected a serial console to it. When it says Welcom to our world, I'm trying to connect to the tttACM0 115200 8 1 , the login screen shows , but after a while it automatically gets filled in with AT+GCAP. I'm using putty or screen, happens with both. Any idea why ? |
07-07-2013, 05:22 AM | #13 |
Enthusiast
Posts: 25
Karma: 29826
Join Date: Oct 2012
Device: kindle 3 Wifi
|
I've managed to find the root cause of the AT commands.
See explanation here. http://ubuntuforums.org/showthread.php?t=2056285 |
03-29-2014, 06:47 AM | #14 |
Member
Posts: 16
Karma: 10
Join Date: May 2013
Device: Kindle 3 wifi
|
How hard will be to redo that for 3.4 versdon of software?
|
03-29-2014, 09:47 AM | #15 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Can't root/un-root/use SD Rescue/boot into Recovery Console | bookp | Sony Reader Dev Corner | 6 | 03-07-2016 04:22 AM |
Custom kernel for Kindle 3 | yifanlu | Kindle Developer's Corner | 61 | 07-06-2013 12:58 PM |
Custom 3.3 kernel with kexec support and patched recovery | seaniko7 | Kindle Developer's Corner | 10 | 09-09-2012 05:14 PM |
Custom kernel in Kindle 4 NT? | zatix | Kindle Developer's Corner | 1 | 02-27-2012 10:09 AM |