This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
环境:DM365开发板 dvsdk_dm365_4_02_00_06,linux-driver-examples-psp03.01.01.38,linux-2.6.32.17-psp03.01.01.39
hi :
我在nfs为文件系统的环境下执行demo :capture_prev_rsz_onthe_fly_bayer_mew没有如何问题。
当我在以nandflash jffs2的环境下执行demo:capture_prev_rsz_onthe_fly_bayer_mew,就出现了下列错误:
root@dm365-evm:/davincibin# ./loadmodules.sh
[ 1859.960000] CMEMK module: built on Mar 24 2011 at 19:34:57
[ 1859.960000] Reference Linux version 2.6.32
[ 1859.980000] File /sdk/build/DVSDK_4_02/4_02_00_06/arago-install/arago-tmp/work/dm365-evm-none-linux-gnueabi/ti-linuxutils-1_2_26_01_02-r52d/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
[ 1860.010000] allocated heap buffer 0xc9000000 of size 0x40b000
[ 1860.010000] cmemk initialized
root@dm365-evm:/davincibin# ./capture_prev_rsz_onthe_fly_bayer_mew -i1 -m4
[ 1903.940000] CMEMK Error: Failed to find a pool which fits 4149248
CMEM Error: getPool: Failed to get a pool fitting a size 4149248
Failed to allocate cmem buffer
Unable to Allocate user buffers
我的uboot配置为:
bootargs=mem=80M console=ttyS0,115200n8 root=/dev/mtdblock3 rw rootfstype=jffs2 ip=192.168.3.48:192.168.3.201:192.168.3.1:255.255.255.0::eth0:off eth=00:40:01:2B:64:60 video=davincifb:vid0=OFF:vid1=OFF:osd0=20x20x16,4050K vpfe_capture.interface=1 dm365_imp.oper_mode=0 vpfe_capture.debug=1 davinci_enc_mngr.ch0_output=COMPONENT davinci_enc_mngr.ch0_mode=720P-60
请问如何解决这个问题呢?各位大虾们。先谢谢了。
loadmodules.sh为:
CMEM_MODPARAMS="phys_start=0x87800000 phys_end=0x88000000 pools=1x4149248"
if [ -e cmemk.ko ]
then
insmod cmemk.ko $CMEM_MODPARAMS
else
modprobe cmemk $CMEM_MODPARAMS
fi
# Allow cmem driver to be used by all users
if [ -e /dev/cmem ]
then
chmod 666 /dev/cmem
fi