View Single Post
Old 11-27-2012, 10:13 AM   #169
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
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/.*-//'
Quote:
alpha
arm
Spoiler:
arm26
avr32
blackfin
cris
frv
generic
h8300
ia64
m32r
m68k
m68knommu
mips
mn10300
parisc
powerpc
ppc
s390
sh
sparc
sparc64
um
v850
x86
xtensa


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)

Last edited by twobob; 11-27-2012 at 03:53 PM. Reason: perhaps inferring, PEBCAK
twobob is offline   Reply With Quote