10-15-2012, 10:59 AM | #1 |
Connoisseur
Posts: 71
Karma: 23166
Join Date: Sep 2012
Device: Kindle 4NT
|
Install newer kernel
Is it possible to install a newer kernel on my Kindle 4?
The kernel that ships with the Kindle is too old to run my Arch chroot. I wonder if I can run a normal linux kernel on the Kindle, or if Amazon has heavily modified it. At first I would like to run my chroot on the Kindle, hopefully with a custom kernel. If I can get some stuff to work, install Arch as my OS. |
10-15-2012, 11:02 AM | #2 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Why don't you just grab the source files for the kernel that Amazon has posted and the source files of the desired kernel from kernel.org, diff them and answer that question yourself?
If you do merge the Amazon sources with a newer kernel, it would be nice if you published your merge in a public repository. 2.6.34.13 would probably be a good target. Last edited by knc1; 10-15-2012 at 11:14 AM. |
Advert | |
|
10-15-2012, 11:08 AM | #3 |
( ͡° ͜ʖ ͡°){ʇ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
|
It's really not so tough. Buildroot pretty much does all the hardwork for you.
Check out "Building a kernel with Buildroot", you may have to sort out your own little patches to get the headers all in place and any other niggles. (The reference is for a 3.3 you will have to make the adjustments) But, in the main, that is probably the most user-friendly tool I found so far. As a bonus you can make a better busybox if you can be bothered to jump the hoops. HTH |
10-15-2012, 11:22 AM | #4 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
10-15-2012, 11:48 AM | #5 |
( ͡° ͜ʖ ͡°){ʇ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
|
|
Advert | |
|
10-15-2012, 12:16 PM | #6 |
Connoisseur
Posts: 71
Karma: 23166
Join Date: Sep 2012
Device: Kindle 4NT
|
I don't want a QT HTML5 in my Kindle. Just a sane Linux toolchain and terminal on my framebuffer and I'll be happy. Maybe Debian is easier though.
twobob, you mean this one? https://www.mobileread.com/forums/sho...d.php?t=188031 Seems you still use the lab126 version, or am I mistaken? I also found this about compiling the kernel: http://www.christian-hoff.com/?p=44 His sources van be found here, but are based on the Amazon kernel: http://www.christian-hoff.com/gitweb...git;a=shortlog Freescale also provides somewhat current kernel sources, maybe they would be a better starting point than kernel.org: http://git.freescale.com/git/cgit.cg...git/refs/heads |
10-15-2012, 12:28 PM | #7 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
We have lots of choices for both of those objectives already published. This video might get you started in the correct direction if you just substitute site-names: https://www.mobileread.com/forums/sho...&postcount=112 |
|
10-15-2012, 02:04 PM | #8 | |
Connoisseur
Posts: 71
Karma: 23166
Join Date: Sep 2012
Device: Kindle 4NT
|
Yes, a Debian chroot would be fairly easy, and I found a post explaining it. Native debian, not so much. I searched for general terms like "Debian"(lots of posts) and more specific "kindle debian armel debootstrap"(only the chroot post)
Christian Hoff about USB OTG support: Quote:
The Arch part is optional, but I thought that would be easy once I had to make a custom kernel anyway. I'll have a look into merging, but if that proves too hard, I will try Debian. ps, can't say I find it easy to find *anything* in forums. |
|
10-15-2012, 02:07 PM | #9 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
|
|
10-15-2012, 02:29 PM | #10 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
It was MUCH harder to find stuff before we had index wikis and prefixes. |
|
10-15-2012, 02:34 PM | #11 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Debian kernel doesn't know anything about specific Kindle board. It might work, but it will be crippled expirience for sure. As you've correctly noted, your best try (for OTG support) is merging Christian patches into Amazon sources.
|
10-15-2012, 03:30 PM | #12 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
https://www.mobileread.com/forums/sho...&postcount=511
and following posts. Also: http://yifan.lu/2011/04/02/recoverin...rupt-kindle-2/ http://yifan.lu/2010/07/26/compiling...amazon-kindle/ If you find any of that useful, add index entries for anything not already indexed. Last edited by knc1; 10-15-2012 at 03:36 PM. |
10-16-2012, 08:03 AM | #13 |
Connoisseur
Posts: 71
Karma: 23166
Join Date: Sep 2012
Device: Kindle 4NT
|
I looked at applying the Kindle 4 patches to an upstream kernel, but I clearly have the wrong version.
After applying 700+ patches and resolving all the conflicts to the best of my ability, it is very clear from the diff the Amazon v2.6.31-rt11 is not based on Kernel.org v2.6.31.11. I also tried to apply the patches to Freescale v2.6.31 with a similar result. It does seem like the Freescale version has some of the patches already applied. Special mention goes to drivers/net/fec.c for most rejections. Any idea which kernel Amazon used for their version? |
10-16-2012, 08:29 AM | #14 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
The 'real time' kernel (-rt).
You should be able to get those sources (or at least the -rt patch) from the Real Time Linux web-site. And you can't use just any old "upstream kernel" You did not say **which** upstream kernel you used, but seems most likely it was not the one that was recommended. |
10-16-2012, 03:40 PM | #15 |
Connoisseur
Posts: 71
Karma: 23166
Join Date: Sep 2012
Device: Kindle 4NT
|
Which one was recommended?
You talked about 2.6.34.13, but that is clearly a lot newer than the Kindle. I assumed you meant that as a target to merge onto the lab126. There was talk about Chris's kernel, which is a refurbished lab126 kernel. Tizen was mentioned, which is not a kernel at all. And a link was posted to someone who uploaded K2 and K3 sources. My plan is to find the smallest diff, overwrite that with the lab126 kernel, and then merge in newer kernels. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 How-to: Compiling the kernel and kernel modules | altruizine | Sony Reader Dev Corner | 9 | 09-03-2012 09:12 PM |
How to install prior version of Calibre when newer version installed? | SilentSeven | Calibre | 3 | 04-13-2011 12:46 PM |
DR800 Another (newer) build? | CoolDragon | iRex | 1 | 06-01-2010 12:19 PM |
PRS-900 Sony Digital Edition Library Install, and Install, ... | Hamlet53 | Sony Reader | 3 | 04-05-2010 03:29 PM |
Even newer cover :) | Moejoe | Writers' Corner | 35 | 01-18-2010 08:05 AM |