Yesterday when I reached home, I received my Raspberry Pi camera which was ordered 2 weeks ago from RS UK. I was quite tired but I was very excited to try it out on my Arch Linux ARM. So I spent about 1 hour to get it worked, here is the result (pls notice that I didn't get to watch the live video so you can see the camera was pointing to random locations) :)

Received Raspberry Pi camera

Received Raspberry Pi camera 02

Here is how I get it works on my Arch Linux ARM:

Add /opt/vc/bin to PATH

echo 'export PATH=$PATH:/opt/vc/bin' >> ~/.bashrc

Then add the necessary setting to /boot/config.txt

...
...
##added for camera
gpu_mem=128
start_file=start_x.elf
fixup_file=fixup_x.dat

Reboot the Pi

To capture still image

raspistill -o testimage.jpg -hf

Take note that I need to use -hf to horizontal flip the image (otherwise the result image will be mirrored)

To capture 30s video

raspivid -o testvideo.h264 -t 30000 -hf

References

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=43&t=44539 http://www.raspberrypi.org/archives/tag/camera-board

My working environment set up with bspwm, zsh, urxvt, tmux and vim on Arch Linux

(Select `720p` (or `1080p`) HD video quality and watch in full screen mode if you want to see the commands)This video showcases my latest...… Continue reading

Full disk encryption on Arch Linux

Published on March 02, 2015

Jekyll blog on Amazon S3

Published on February 13, 2015