LI-5M03CS mt9p031 Beagleboard-XM camera module in Ubuntu

Hi all,

I have two LI-5M03CS camera modules and I need to make them work in Ubuntu 12.04 with BeagleBoard-XM.
I downloaded Ubuntu kernel following the instructions in: http://elinux.org/BeagleBoardUbuntu#Building_Kernel

  • I ran build_dev.sh
  • Then I activated Device Drivers->Multimedia support->V4L2 sub-device userspace API (EXPERIMENTAL) menuconfig kernel option.
  • After this I activated Device Drivers->Multimedia support->Video Capture adapters->Encoders, decoders, sensors and other helper chips->Aptina MT9P031 support
    And then I continued compiling the kernel.

After the kernel compilation I installed the .deb packages, and then I runned:
sudo modprobe mt9p031
sudo modprobe v4l2_common

mt9p031 module is loaded, but no /dev/video0 device is created.

dmesg doesn’t show anything regarding this matter. This is an lsmod dump:
sudo lsmod
Module Size Used by
mt9p031 6888 0
v4l2_common 8923 1 mt9p031
videodev 83509 2 mt9p031,v4l2_common
aes_generic 27921 1
arc4 1211 2
rt2800usb 12806 0
rt2800lib 45106 1 rt2800usb
crc_ccitt 1525 1 rt2800lib
rt2x00usb 10667 1 rt2800usb
rt2x00lib 39580 3 rt2800usb,rt2800lib,rt2x00usb
snd_soc_omap 3353 1
mac80211 271024 3 rt2800lib,rt2x00usb,rt2x00lib
snd_soc_omap_mcbsp 8230 1
snd_seq_midi 5218 0
cfg80211 169596 2 rt2x00lib,mac80211
snd_rawmidi 21021 1 snd_seq_midi
rfkill 17282 1 cfg80211
snd_soc_omap3beagle 2195 0
snd_soc_twl4030 37284 1
smsc95xx 11302 0
snd_soc_core 105726 4 snd_soc_omap,snd_soc_omap_mcbsp,snd_soc_omap3beagle,snd_soc_twl4030
regmap_spi 1231 1 snd_soc_core
snd_pcm_oss 40049 0
snd_mixer_oss 13252 1 snd_pcm_oss
snd_seq_midi_event 6217 1 snd_seq_midi
rtc_twl 4418 0
snd_seq 54610 2 snd_seq_midi,snd_seq_midi_event
snd_pcm 80381 5 snd_soc_omap,snd_soc_omap_mcbsp,snd_soc_twl4030,snd_soc_core,snd_pcm_oss
snd_timer 19979 2 snd_seq,snd_pcm
snd_seq_device 6488 3 snd_seq_midi,snd_rawmidi,snd_seq
snd 58205 9 snd_seq_midi,snd_rawmidi,snd_soc_core,snd_pcm_oss,snd_mixer_oss,snd_seq,snd_pcm,snd_timer,snd_seq_device
soundcore 7465 1 snd
snd_page_alloc 4959 1 snd_pcm
gpio_keys 6945 0

Please, could anybody give me a tip?

Hi,
I too followed the instructions mentioned on the elinux website but the kernel configuration menu does not contain Device Drivers->Multimedia support->Video Capture adapters
Instead, I could find
Device Drivers->Multimedia support->Sensors used on soc_camera driver
But still I cannot find mt9p031 driver option. I am not sure if I did something wrong or does the support not exist now.

Any help would be welcome.
-Kartik

It's still enabled by default in the v3.7.x branch of that repo.
Anything later is still broken for the omap3-isp driver..

Regards,

Hi Robert,
Thank you for your response.
I am a little confused though. Do you mean that for v3.7.x, the driver is really baked into the kernel and that is why I cannot see it in the menuconfig option list?

I am relatively new to embedded linux and still trying to learn the ways so please be patient.

Thanks in advance,
-Kartik