So I gave compiling this another go. Why not.
Spoiler:
me@dev /usr/local/src/gnuboy-1.0.3.kindle $
strace -fF -o ~/gnuboy-strace.txt make
Quote:
arm-none-linux-gnueabi-gcc -march=armv6 --sysroot=/arm -O0 -Wall -Wno-implicit -Wno-long-long -fstrength-reduce -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop -I. -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c sys/fbdev/fbdev.c -o sys/fbdev/fbdev.o
sys/fbdev/fbdev.c:20:26: error: linux/einkfb.h: No such file or directory
|
Okay I thought. The TC must be missing the headers. (Thought I had actually done this?)
so I tried
cd /usr/local/src/BUILD_KERNAL/linux-2.6.26/
make headers_install ARCH=arm INSTALL_HDR_PATH=/arm/usr/include
which (incredibly?) doesn't actually emit an einkfb.h file (did I get the ARCH wrong?)
SEE EDIT BELOW:
so I thought I would just try including this by-hand
Quote:
me@dev /usr/local/src/gnuboy-1.0.3.kindle $ strace -fF -o ~/gnuboy-strace2.txt make
arm-none-linux-gnueabi-gcc -march=armv6 --sysroot=/arm -O0 -Wall -Wno-implicit -Wno-long-long -fstrength-reduce -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop -I. -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c lcd.c -o lcd.o
..Blah...
arm-none-linux-gnueabi-gcc -march=armv6 --sysroot=/arm -O0 -Wall -Wno-implicit -Wno-long-long -fstrength-reduce -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop -I. -I./sys/nix -DHAVE_CONFIG_H -DIS_LITTLE_ENDIAN -DIS_LINUX -c sys/fbdev/fbdev.c -o sys/fbdev/fbdev.o
In file included from sys/fbdev/fbdev.c:20:
/arm/usr/include/linux/einkfb.h:39: error: expected specifier-qualifier-list before 'u8'
/arm/usr/include/linux/einkfb.h:50: error: expected specifier-qualifier-list before 'u8'
make: *** [sys/fbdev/fbdev.o] Error 1
|
reading around the only thing I could find (so far) that makes reference to this error is
http://www.linuxquestions.org/questi...ml#post4008056
Which is completely unrelated to my issue... (other than perhaps inferring I actually need another file entirely that I don't have)
and the more general
http://stackoverflow.com/questions/6...ist-before-typ
Now this one infers that I am indeed an idiot and this is PEBCAK...
Clues? anyone?
So I tried patching ./sys/fbdev/fbdev.c
Quote:
#include <linux/fb.h>
#include <linux/einkfb.h>
// just to make the compiler happy
#include <asm/types.h>
typedef __u8 u8;
#include "fb.h"
#include "input.h"
|
This was something I noted in the fbKindle project that I thought
may be relevant... Still didn't swallow it.
Hmm. running out of ideas. Any clues anyone?
EDIT: me@dev /usr/local/src/BUILD_KERNAL/linux-2.6.26 $
ls -d include/asm-* | sed 's/.*-//'
err? I dunno, don't think so. I will try again with
arm26
Err.. no I wont...
me@dev /usr/local/src/BUILD_KERNAL/linux-2.6.26/arch $
ls
Quote:
alpha blackfin h8300 m32r mips powerpc sh um xtensa
arm cris ia64 m68k mn10300 ppc sparc v850
avr32 frv Kconfig m68knommu parisc s390 sparc64 x86
|
there is no arm26... sigh... perhaps my sed was mangled.
... erm no...
me@dev /usr/local/src/BUILD_KERNAL/linux-2.6.26/include $
ls -d asm-*
Quote:
asm-alpha asm-cris asm-m32r asm-parisc asm-sparc asm-xtensa
asm-arm asm-frv asm-m68k asm-powerpc asm-sparc64
asm-arm26 asm-generic asm-m68knommu asm-ppc asm-um
asm-avr32 asm-h8300 asm-mips asm-s390 asm-v850
asm-blackfin asm-ia64 asm-mn10300 asm-sh asm-x86
|
but it simply contains a single ref to a pci include. as opposed to a full set of headers
DOH! why it it so difficult. : ) Oh that's right! because I obviously don't understand the instructions...
Solution below (4 posts down)