RobertCNelson / netinstall

Network Install for a bunch of arm boards
https://rcn-ee.com
80 stars 19 forks source link

No MT9P031 in latest debian netinstall (3.13.0-rc8-armv7-x8)? #25

Open Andy1978 opened 10 years ago

Andy1978 commented 10 years ago

Dear RobertCNelson,

I have a BeagleBoard-xM Rev C with LI-5M03CS camera module from Leopard Imaging with Aptina mt9p031 sensor.

I've followed the steps on http://www.elinux.org/BeagleBoardDebian#Debian_NetInstall (basically git clone, ./mk_mmc.sh --mmc /dev/sdX --dtb omap3-beagle-xm --distro wheezy-armhf)

The kernel installed is 3.13.0-rc8-armv7-x8 but I cant find the MT9P031 module (used in 3.7.10)

$ grep -i mt9 /boot/config-3.13.0-rc8-armv7-x8 CONFIG_VIDEO_MT9V011=m CONFIG_SOC_CAMERA_MT9M001=m CONFIG_SOC_CAMERA_MT9M111=m CONFIG_SOC_CAMERA_MT9T031=m CONFIG_SOC_CAMERA_MT9T112=m CONFIG_SOC_CAMERA_MT9V022=m

Any hint?

-- Andy

RobertCNelson commented 10 years ago

Hi Andy, I think we can re-enable support for this device in v3.14-rcX as device tree patches for the isp interface just showed up. I have the same hardware, so when it works you'll see a new dtb option.. Otherwise for legacy sake, i just tag the commit right before i ripped all the non-device tree stuff out..

cd netinstall/
git pull
git checkout legacy-board-file -b tmp

Regards,

Andy1978 commented 10 years ago

I've now cloned armv7-multiplatform origin/v3.13.x and configured CONFIG_VIDEO_MT9P031=m and installed it to mmc card with ./tools/install_kernel.sh.

After reboot I get: $ uname -a Linux IUASBeagle 3.13.0-armv7-x9 #2 SMP Tue Jan 21 15:07:51 CET 2014 armv7l GNU/

$ grep -i mt9 /boot/config-3.13.0-armv7-x9 ... CONFIG_VIDEO_MT9P031=m ... CONFIG_SOC_CAMERA_MT9M001=m CONFIG_SOC_CAMERA_MT9M111=m CONFIG_SOC_CAMERA_MT9T031=m CONFIG_SOC_CAMERA_MT9T112=m CONFIG_SOC_CAMERA_MT9V022=m

$sudo modprobe -v mt9p031 insmod /lib/modules/3.13.0-armv7-x9/kernel/drivers/media/i2c/aptina-pll.ko insmod /lib/modules/3.13.0-armv7-x9/kernel/drivers/media/i2c/mt9p031.ko

$ dmesg |grep -i mt9 $ dmesg |grep -i cam [ 0.000000] Kernel command line: console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p5 ro rootfstype=ext4 rootwait fixrtc buddy=none buddy2=none camera=li5m03

I would have expected something like "mt9p031 2-0048: MT9P031 detected at address 0x48" as this was the case with kernel 3.7.10.

Regards, Andy

PS: I started this comment before you answered :-) Just saw your answer now.

RobertCNelson commented 10 years ago

In v3.13.x there is no device tree support for the omap3-isp block.. AKA today with device tree's the omap3-beagle-xm and the Aptina mt9p031 sensor WILL NOT work. Like i said, i'm looking into this for v3.14-rc as a few needed device tree patches have shown up.. Revert back to v3.7.x for this camera till then..

Regards,

Andy1978 commented 10 years ago

Hi RobertCNelson, thank you for your reply. Is there something I can do help to get it working or do I have to wait x weeks? Regards, Andy

RobertCNelson commented 10 years ago

I'm watching: https://lkml.org/lkml/2013/12/17/197

His tree is here: https://github.com/vaussard/linux

Latest changes: https://github.com/vaussard/linux/commits/overo-for-3.14/iommu/dt-v2

Andy1978 commented 9 years ago

Is there anythin new on this topic?

mtmspm commented 9 years ago

Just tried latest wheezy 3.19.0-armv7-x3 and the camera is still not recognized. Did anybody got this camera to ever work in any meaningfull way ?

Alaganraj commented 8 years ago

Hi All,

I've tested beagleboard-xM camera LI-5M03 (mt9p031) with device tree on Linux 4.2.0-rc5.

Sakari's omap3isp device tree patches are mainlined in linux 4.1.0-rc1. However couple of Laurent's patches not mainlined.

If anybody interested, please go through link for more details https://alaganraj.wordpress.com/2015/08/08/beagleboard-xm-camera-li-5m03-mt9p031-support-with-device-tree/

Thanks & Regards, Alaganraj