While I would also like to migrate to 2.6, that means I also need to migrate the BSP also.
My efforts to date haven't been successful at that.
I'm getting better at figuring out where I'm going wrong, but until I get it running, or someone else does it,we're on 2.4.20
The Camera SoC allegedly does motion detection, although I don't have a data sheet.
Maybe someone can dig one up?
Motion detection isn't that hard to do in software.
What I would do is something like this:
Take the image, apply some fast processing to reduce color depth, divide the capture into small squares (like a chessboard) 128x128 or 64x64 or 32x32 depending on size of original, then do an average color algorithm for each square.
Store the result, then compare to previous result. If the differences are > trigger amount, then capture some images.
The CPU doesn't have an FPU so we'd have to make sure that we use integer based math, and ensure it will run fine in 40mips or so.