![]() |
#61 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
The amazon 5.9.22 instruction on how to build the cross compiler did not work on my Windows 10 Bash install. I think the toolsets have problems with 'PATH' variabl that contains parentheses.
So I used the same cmpiler from 5.8.1 that I used on my PW3 ** This will be a work in progress until it is finished. I may try to use the one amazon recommends again, now that I know about theis PATH issue, 'bit-bake / yocto?' UNTAR THE FILES WITH LINUX, not windows, there are files with the same name, with case sensitive issues
Amazon source download page: https://www.amazon.com/gp/help/custo...deId=200203720 Making the linux kernel is only necessary for the kernel modules, the programs can be built just by installing that linaro cross compiler. This is my makefile for Kernel modules Code:
export ARCH:=arm export CROSS_COMPILE:=/home/osboxes/kindle/opt/cross-gcc-linaro/bin/arm-linux-gnueabi- #obj-m := hello-2.o #obj-m := evdev_mouse.o #obj-m := ev_mdc.o obj-m := tkbd.o KDIR := /home/osboxes/kindle/gplrelease/linux-4.1.15 PWD := $(shell pwd) EXTRA_CFLAGS := -I$(src)/drivers/ default: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules clean: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean This is my makefile for programs Code:
# i used amazon's own toolchain, from kindle fw sources CROSS_COMPILE = /home/osboxes/kindle/opt/cross-gcc-linaro/bin/arm-linux-gnueabi- CFLAGS = LDFLAGS = SRC = tpoint.c OUT = tpoint.lix # -print-search-dirs kindle: $(SRC) $(CROSS_COMPILE)gcc -DBUILD_KINDLE $(SRC) -o $(OUT) $(CFLAGS) $(LDFLAGS) host: $(SRC) gcc -DBUILD_KINDLE $(SRC) -o $(OUT) $(CFLAGS) $(LDFLAGS) clean: rm $(OUT) Notes: there is a missing include statment somewhere. the file exists but the compiler wont find it - while compiling the kernel: ** Woops, I forgot that linux was case sensitive, thats why it wasnt working. net/ipv4/netfilter/ipt_ECN.c:20:42: fatal error: linux/netfilter_ipv4/ipt_ECN.h: No such file or directory Code:
#include <linux/netfilter_ipv4/ipt_ECN.h> Code:
#include <ipt_ecn.h> Last edited by coplate; 11-10-2017 at 09:00 PM. |
![]() |
![]() |
![]() |
#62 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#63 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 86
Karma: 25608
Join Date: Sep 2022
Device: PW3, PW2, KT2, 2xKT, 2xK3G
|
I know this thread is old, but anyone who successfully completed the steps in method one, could you possibly share your resulting "armdisk.img" file?
I'd do it myself, but I'm having problems with mirrors and such. Thanks. |
![]() |
![]() |
![]() |
Tags |
cross compile, debian, source |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Voyage 5.6.2.1 Serial Jailbreak Step-by-Step | noismaster | Kindle Developer's Corner | 72 | 11-08-2021 08:04 PM |
Mac OSX: Idiot-Proof Font Scaling Fix [Step-by-step] | Jelbee | Kobo Reader | 2 | 06-14-2010 12:16 PM |
Step by step instructions for font changing (Polish) | Jabberwock | Sony Reader | 2 | 09-04-2007 06:21 PM |