Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4459

K5 Making a ctng Toolchain for the Kindle Touch via Buildroot

$
0
0
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 http://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 ? :bookworm:

or have I foofed in the config? :book2: 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:	N/A
Size:	25.4 KB
ID:	94219   Click image for larger version

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

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

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

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

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

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

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

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

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

Name:	Selection_166.png
Views:	N/A
Size:	41.9 KB
ID:	94229  

Viewing all articles
Browse latest Browse all 4459

Trending Articles