View Single Post
Old 04-16-2012, 08:05 PM   #1
seaniko7
wannabe developer
seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.
 
seaniko7's Avatar
 
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:
Code:
ttyACM0, 115200 8N1


If user connected to Kindle terminal ( let's say via minicom )
Spoiler:
It asks for login and password, which is :
Code:
login : root
password : fiona


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


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 08:11 PM.
seaniko7 is offline   Reply With Quote