at least things work manually.
Edit config.txt: $ cat /mnt/mmcblk0p1/config.txt
...
[ALL]
# Enable camera
start_x=1
gpu_mem=128
Load kernel driver: $ tce-load -i libv4l2
$ sudo modprobe bcm2835-v4l2
$ dmesg | tail -10
...
[ 518.025413] media: Linux media interface: v0.10
[ 518.036981] Linux video capture interface: v2.00
[ 518.080558] bcm2835-v4l2: scene mode selected 0, was 0
[ 518.080934] bcm2835-v4l2: V4L2 device registered as video0 - stills mode > 1280x720
[ 518.085780] bcm2835-v4l2: Broadcom 2835 MMAL video capture ver 0.0.2 loaded
Take a photo: $ v4l2-ctl --overlay=1 [enable viewfinder]
$ v4l2-ctl --set-fmt-video=width=2592,height=1944,pixelformat=3
$ v4l2-ctl --stream-mmap=3 --stream-count=1 --stream-to=photo.jpg