Feb 20 2014

fritzbox 7390 – module building – MIPS_24K vs MIPS32_R2

just change arch/mips/include/asm/module.h
from
#define MODULE_PROC_FAMILY “MIPS32_R2 ”
to
#define MODULE_PROC_FAMILY “MIPS_24K ”

————

building modules for a different system is not always an easy task.
required information’s and where to get:

1. cat /proc/cpuinfo to find out what kind of cpu (mips,arm,sh4 etc)
2. file busybox – any elf file and find out if LSB or MSB , also CPU type should be there.
3. get crosstool-chain prebuild or build one yourself -> crosstool-ng
4. get the kernel sources -> cat /proc/version / uname -a
5. make mrproper, make menuconfig, make < - after this you should have all required files like Module.symvers and .config 6. go in your module directory and create your makefile: obj-m += hello.o

all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

type make, close your eyes and press enter…


Feb 19 2014

make(-file) modules

obj-m = ati_remote.o
KVERSION = $(shell uname -r)
all:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean