|
I did it. Just use a cross-compiler such as arm-2008q1; first of all edit Makefile, substituting
KDIR := /lib/modules/$(shell uname -r)/build
with
KDIR := /9263kernel/linux-2.6.24/
or wherever you got ARM linux sources.
Then launch:
make CROSS_COMPILE=/arm-2008q1/bin/arm-none-linux-gnueabi- ARCH=arm KERNELSRC=/9263kernel/linux-2.6.24/ CC=/arm-2008q1/bin/arm-none-linux-gnueabi-gcc
Changing path /arm-2008q1/ with your cross-compiler one. Once compilation finished, copy *.ko on arm target (in /lib/modules/2.6.24/kernel/drivers/media/video/), run depmod and modprobe your module.
It worked for me, modules was loaded and device recognized.
Unfortunately when I try to read from it (cat /dev/video0) or open with an application (such as camsource), I get an error:
Unable to handle kernel NULL pointer dereference at virtual address 0000009d
pgd = c3fec000
[0000009d] *pgd=23e6d031, *pte=00000000, *ppte=00000000
Internal error: Oops: 1 [#1]
......
Does anyone knows the cause (and hopefully the solution)?
|