Using the original kernel I tested the decode demos in the dm365EVM SDK, and that works well.
After patch the kernel with patch Leopard provided, I build the mt9p031 as a module. Then insmod the driver and running the leopard programme, the sensor works well and returns the fps normally. But after that I runned the SDK DEMO, I found the cmemk.ko could not be loaded . The message is as below:
./loadmodules_sd.sh
CMEMK module: built on Aug 17 2009 at 03:49:10
Reference Linux version 2.6.18
File /projwork/dm365/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linux
utils/cmem/src/module/cmemk.c
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x85000000) overlaps kernel (0x80000000 -> 0x87400000)
CMEMK Error: Failed to request_mem_region(0x85000000, 50331648)
insmod: error inserting 'cmemk.ko': -1 Bad address
IRQK module: built on Aug 17 2009 at 03:49:13
Reference Linux version 2.6.18
File /projwork/dm365/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linux
utils/irq/src/module/irqk.c
irqk initialized
EDMAK module: built on Aug 17 2009 at 03:49:13
Reference Linux version 2.6.18
File /projwork/dm365/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linux
utils/edma/src/module/edmak.c
And the bootargs in U-boot is :
bootargs :'console=ttyS0,115200n8 noinitrd rw ip=192.168.0.41:192.168.0.24:192.168.0.1:255.255.255.0:::off root=/dev/nfs nfsroot=192.168.0.24:/projwork/workdir/filesys,nolock mem=116M video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,4050K dm365_imp.oper_mode=0 davinci_capture.device_type=3'
I tried to use 76M as the nolock MEM, but the driver of the mt9p031 can't work with that.
Is this problem comes from the kernel difference or the bootargs difference? Thanks a lot .
Best Regards;