10-16-2012, 09:39 AM | #1 | |
( ͡° ͜ʖ ͡°){ʇ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
|
Making a ctng Toolchain for the Kindle Touch via Buildroot
Hi.
I am endeavouring to make a nicely matching toolchain for the kindle touch using cross-tools ng. http://crosstool-ng.org/#download_and_usage This is because for some reason - I haven't got to the bottom of - the kernel headers don't "install" as I would expect on the prebuilt Toolchains (linux/eink.h missing for example after installation) So. I fired up make ctng-menuconfig. selected 32bit little endian Cortex A8 GCC 4.5.4 eglibc 2.12 all the settings outlined in https://www.mobileread.com/forums/sho...6&postcount=17 and pointed it to a custom folder for my kernel /usr/local/src/BUILD_KERNAL_5.1.2/gplrelease (setup the other stuff to sensible defaults) I also then saved out the .config file to ~/GIT/k5ctng/toolchain/toolchain-crosstool-ng folder as a custom -kindle named config file for future reference. .config was from here ~/GIT/k5ctng/output/build/build-toolchain/.config and then run a make. all software is not enabled, nor is busybox etc... which fails with: Quote:
~GIT/k5ctng/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/include/linux it (cdev.h) does exist in the kernel sources however. so I guess my question is in order to fix such an error am I to use an #ifdef something ? or have I foofed in the config? is it not being pulled because of some slight versioning issue. am digging around for clues but all help accepted. further details available upon request. Thanks : ) Last edited by twobob; 10-16-2012 at 09:58 PM. Reason: ~ http://crosstool-ng.org/#download_and_usage |
|
10-16-2012, 09:47 AM | #2 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Post the same to the BR mailing list (**not** the bug report thing, the mailing list).
There aren't enough BR people on this forum to help with that question. |
Advert | |
|
10-16-2012, 09:48 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
|
I noted
Quote:
|
|
10-16-2012, 09:49 AM | #4 |
( ͡° ͜ʖ ͡°){ʇ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
|
|
10-16-2012, 09:55 AM | #5 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Besides, most of those people are within 1 time zone of you, on your side of the pond.
|
Advert | |
|
10-16-2012, 10:34 AM | #6 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@twobob: I can gzip my ct-ng config, if you want, but, basically, it's outlined here, second column .
I went with Linaro 4.7/eglibc 2_12/Linux 2.6.31.14 (I rarely use lab126's kernels for a TC). |
10-16-2012, 11:10 AM | #7 | |
( ͡° ͜ʖ ͡°){ʇ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:
how does one make kernel headers install correctly in this instance then? eink.h for example. is it simply a case of copying them across? much obliged. very helpful link to your config mate. Last edited by twobob; 10-16-2012 at 11:13 AM. |
|
10-16-2012, 11:24 AM | #8 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@twobob: Well, there's probably no eink.h in the mainline kernel, so... .
AFAIK, every project that wanted to rely on it bundled a version of it in their own project's includes. That might not be pretty, but it works . If you plan to use it in a more widespread manner, putting it in the proper place might be a cleaner solution, but you'd have to use lab126's kernel, or patch mainline. (And given your experience with the first choice, it might *also* imply taking a hammer to some makefiles to fix it ^^). EDIT: Attached my ct-ng config. (It's from a live mercurial version of ct-ng, so it might not be adequate for older releases). |
10-16-2012, 11:58 AM | #9 | |
( ͡° ͜ʖ ͡°){ʇ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:
well. I'll give the first solution (mainstream) a try first. |
|
10-16-2012, 12:11 PM | #10 | ||
( ͡° ͜ʖ ͡°){ʇ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
|
so I went for the standard kernel
now I get... Quote:
EDIT: I'll step back to glibc2.11 and see what happens then Quote:
Last edited by twobob; 10-16-2012 at 12:44 PM. Reason: glibc2.11 |
||
10-16-2012, 12:39 PM | #11 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@twobob: That seems to imply that you're using a binutils version too old to build this libc. (FWIW, I'm using 2.22).
|
10-16-2012, 12:49 PM | #12 | |
( ͡° ͜ʖ ͡°){ʇ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:
2.20 I believe. glibc2.11 builds okay with binutils 2.18 I could drag it forward a spot then... and try 2.12 next then I misnamed my tuple (oops) so it will have to wait 30 mins or so while I do a quickie rebuild and test. EDIT: Okay, retrying with 2.20 now... and 2.12 - Fail Retrying with 2.21.1 and 2.12 Last edited by twobob; 10-16-2012 at 01:39 PM. |
|
10-16-2012, 03:01 PM | #13 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
This "re-work" business is certainly more difficult than the "just make it, our way" business.
I would bump your karma through the roof for all this work, if the system would let me. |
10-16-2012, 03:14 PM | #14 | |
( ͡° ͜ʖ ͡°){ʇ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:
Got another odd error now - the tuple keeps getting messed up, sigh. I'll figure it out in the end. |
|
10-16-2012, 04:35 PM | #15 |
Evangelist
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
If you still have problems, here is config that worked for me.
crosstool-ng-1.15.2 linaro-4.7-2012.04 glibc 2.12.1 binutils 2.20.1a kernel 2.6.31.14 |
Tags |
buildroot, ctng, k5 tools, kindle touch, toolchain |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Buildroot a linux 2.6.26-lab126 kernal. (3.3) | twobob | Kindle Developer's Corner | 155 | 05-08-2016 12:08 AM |
Kindle 3, Nook Simple Touch, Kobo Touch and Libra Pro Touch | jbcohen | Which one should I buy? | 4 | 06-18-2011 07:58 PM |
603 Toolchain for the 60x and 90x ? | bibomator | PocketBook Developer's Corner | 6 | 04-24-2011 09:11 PM |
Making epubs for Stanza on Ipod Touch | Quasar | Calibre | 2 | 04-08-2010 10:35 PM |
Toolchain Problems | benjaminvm | Sony Reader Dev Corner | 3 | 12-02-2008 10:03 PM |