Other Parts Discussed in Thread: OMAP3530
hi,
I have compiled DVTB in DVSDK_3_00_00_40 and there were dvtb-r and dvtb-d in the dvtb_3_00_016 directory. (I have already compiled dsplink and codec engine and could run the codec engine examples).
When I was compiling DVTB , there was an error said V4L2_CID_ROTATION was not declared in dvtbVideo.c. That's because my build kernel is linux_2.6.22 and there was no V4L2_CID_ROTATION macro in the kernel. So I commentted the lines in dvtbVideo.c :
. . .
/*control.id = V4L2_CID_ROTATION;
control.value = vpbe->rotate;
if (( err = ioctl(vpbe->videoFd,VIDIOC_S_CTRL,&control)) < 0)
{
SYS_PERROR("Unable to set rotation %d errno %d %s\n",err,errno, strerror(errno));
dvevm_st_close_vpbe(vpbe);
return retval;
}
//get the degree by which rotation is set
control.id = V4L2_CID_ROTATION;
if (( err = ioctl(vpbe->videoFd,VIDIOC_G_CTRL,&control)) < 0)
{
SYS_PERROR("Unable to set rotation %d errno %d %s\n",err,errno, strerror(errno));
dvevm_st_close_vpbe(vpbe);
return retval;
}
SYS_DEBUG("Rotation set to degree: %d\n", control.value);*/
. . . . . .
/*if(vpbe->rotate)
{
//clear rotation to 0 degree
vpbe->rotate = 0;
control.id = V4L2_CID_ROTATION;
control.value = vpbe->rotate;
if (( err = ioctl(vpbe->videoFd,VIDIOC_S_CTRL,&control)) < 0)
{
SYS_PERROR("Unable to set rotation %d errno %d %s\n",err,errno, strerror(errno));
dvevm_st_close_vpbe(vpbe);
return retval;
}
}*/
. . .
Then the compiling was fine and when I download the dvtb-r and dvtb-d and run it and it said:(cmem.ko , dsplinkk.ko , lpm_omap3530.ko had already been loaded)
[root@OMAP3EVM dsptools]# lsmod
Module Size Used by Not tainted
cmemk 28236 0
lpm_omap3530 10740 0
dsplinkk 227184 1 lpm_omap3530
[root@OMAP3EVM dsptools]# ./dvtb-r
./dvtb-r: error while loading shared libraries: libncurses.so.5: cannot open shy
When I run dvtb-d , it was the same error.
I then tried to uncomment the lines above and then defined V4L2_CID_ROTATION in dvtbVideo.c myself by inserting
#define V4L2_CID_ROTATION 0x0098091F // that's the value in linux_2.6.29
then I tried on the board again but the error was still the same.
The compiling is fine but it could not execute , I don't know if that's the problem of linux kernel edition.
Please advice