View Single Post
Old 10-16-2012, 09:39 AM   #1
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
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:
[ALL ] make[3]: Leaving directory `~/GIT/k5ctng/output/build/build-toolchain/.build/arm-unknown-linux-gnueabi/build/build-cc-core-pass-1'
[ALL ] `~/GIT/k5ctng/output/build/build-toolchain/.build/arm-unknown-linux-gnueabi/buildtools/bin/arm-unknown-linux-gnueabi-cc' -> `arm-unknown-linux-gnueabi-gcc'
[INFO ] Installing pass-1 core C compiler: done in 73.02s (at 05:25)
[INFO ] ================================================== ===============
[INFO ] Installing kernel headers
[EXTRA] Installing kernel headers
[ALL ] make[3]: Entering directory `/usr/local/src/BUILD_KERNAL_5.1.2/gplrelease'
[ALL ] CHK include/linux/version.h
[ALL ] UPD include/linux/version.h
[ALL ] HOSTCC scripts/basic/fixdep
[ALL ] HOSTCC scripts/basic/docproc
[ALL ] HOSTCC scripts/basic/hash
[ALL ] HOSTCC scripts/unifdef
[ALL ] REMOVE cdev.h
[ALL ] INSTALL include/linux (374 files)
[ALL ] make[3]: Leaving directory `/usr/local/src/BUILD_KERNAL_5.1.2/gplrelease'
[EXTRA] Checking installed headers
[ALL ] make[3]: Entering directory `/usr/local/src/BUILD_KERNAL_5.1.2/gplrelease'
[ALL ] CHK include/linux/version.h
[ALL ] make[5]: `scripts/unifdef' is up to date.
[ALL ] CHECK include/linux (374 files)
[ALL ] ~/GIT/k5ctng/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/include/linux/fsl_devices.h:23: included file 'linux/cdev.h' is not exported
[ALL ] ~/GIT/k5ctng/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/include/linux/mxc_pf.h:53: found __[us]{8,16,32,64} type without #include <linux/types.h>
the file is indeed not exported (pictured) to
~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 : )
Attached Thumbnails
Click image for larger version

Name:	Selection_156.png
Views:	522
Size:	25.4 KB
ID:	94219   Click image for larger version

Name:	Selection_157.png
Views:	495
Size:	27.2 KB
ID:	94220   Click image for larger version

Name:	Selection_158.png
Views:	504
Size:	31.9 KB
ID:	94221   Click image for larger version

Name:	LXTerminal_159.png
Views:	525
Size:	75.6 KB
ID:	94222   Click image for larger version

Name:	LXTerminal_160.png
Views:	541
Size:	64.8 KB
ID:	94223   Click image for larger version

Name:	LXTerminal_161.png
Views:	525
Size:	50.6 KB
ID:	94224   Click image for larger version

Name:	LXTerminal_162.png
Views:	541
Size:	84.0 KB
ID:	94225   Click image for larger version

Name:	LXTerminal_163.png
Views:	523
Size:	91.9 KB
ID:	94226   Click image for larger version

Name:	Selection_164.png
Views:	472
Size:	15.5 KB
ID:	94227   Click image for larger version

Name:	Selection_165.png
Views:	489
Size:	13.6 KB
ID:	94228   Click image for larger version

Name:	Selection_166.png
Views:	501
Size:	41.9 KB
ID:	94229  

Last edited by twobob; 10-16-2012 at 09:58 PM. Reason: ~ http://crosstool-ng.org/#download_and_usage
twobob is offline   Reply With Quote