It´s for iMX53 ARD (SABRE AI)
modprobe ipu_prp_enc.ko
modprobe ipu_prp_vf_sdc.ko
modprobe ipu_prp_vf_sdc_bg.ko
modprobe ipu_still.ko
modprobe ipu_csi_enc.ko
modprobe adv7180_tvin.ko
modprobe mxc_v4l2_capture.ko
root@freescale ~$ lsmod
Module Size Used by
mxc_v4l2_capture 18316 1
adv7180_tvin 4361 0
ipu_csi_enc 2445 1 mxc_v4l2_capture
ipu_still 1667 1 mxc_v4l2_capture
ipu_prp_vf_sdc_bg 3273 1 mxc_v4l2_capture
ipu_prp_vf_sdc 3364 1 mxc_v4l2_capture
ipu_prp_enc 3841 1 mxc_v4l2_capture
/unit_tests/mxc_v4l2_tvin.out -ow 1024 -oh 768 -ol 10 -ot 20 -f YU12
I tested using BSP11.05 running on ARD (iMX53)
I connected composite cable on J42
Please, take a look on video I made for Demo:
http://imxcommunity.org/video/tv-in-on-ard
You can find more info regarding TV in on Chapter 16 (TV Decoder driver) from mx53_linux.pdf
If you looking for ADV7180 datasheet, please go to:
http://www.analog.com/static/imported-files/data_sheets/ADV7180.pdf
Hi,
Though the post is old, just wanted to know if anyone who did this already have faced a similar issue.
I am trying to bring up an analog video input using the adv7180 on n IMX6 SABRE AI board.
The display starts to roll every time I start the mxc_v4l2_tvin appplication. It rolls 2 times in the worst case and then stops.
The IPU shows the below warning when the rolling happens.
IPU_INT_STAT_5 = 0x00000001
I read through many posts but didnt have luck with any of those.
Need help.
TIA,
Shyamjith
Hi,daiana:
We doing the same thing as yours, but seems no direction at all.
What kernel configuration option should I use to have the modules avaialable?
mxc_v4l2_capture 18316 1
adv7180_tvin 4361 0
ipu_csi_enc 2445 1 mxc_v4l2_capture
ipu_still 1667 1 mxc_v4l2_capture
ipu_prp_vf_sdc_bg 3273 1 mxc_v4l2_capture
ipu_prp_vf_sdc 3364 1 mxc_v4l2_capture
ipu_prp_enc 3841 1 mxc_v4l2_capture
I don't have any .ko file in the system. so strange, and I also don't have the /unit_test folder.
could you give me some advise?
if you don´t have /unit_test folder in your rootfs you are not using LTIB. (Or you are not using the default LTIB config)
What are you using to create your rootfs? What is the procedure to include imx-text (the /unit_test folder)?
If you don´t have any *.ko you must install the modules, something like that:
$ make modules
$ make modules_install INSTALL_MOD_PATH=/path/to/your/place
I have the /unit_tests folder and all the *.ko loaded fine after I change the LTIB configuration to "Full Profile" instead of minimum profile.
But when I run the mxc_v4l2_tv.out script. It gave error: "Can't find the /dev/video0".
Then I checked the /dev folder, and found a /video16, no /video0 was found.
What is going wrong?
This procedure works as well with i.MX6Q SABRE Automotive reference design.
You can simplify the script:
modprobe mxc_v4l2_capture.ko
modprobe adv7180_tvin.ko
/unit_tests/mxc_v4l2_tvin.out -ow 1024 -oh 768 -ol 10 -ot 20 -f YUYV &
are enough!
Hi Vincent,
Could you let me know which version of i.MX6 BSP was used for your test?
I'm testing it with 4.0.0 Linux BSP, but adv7180 module doesn't seem to be loaded correctly.
It stops at following log and doesn't return to prompt.
root@freescale ~$ modprobe adv7180_tvin.ko
In adv7180_init
DBG sensor data is at 7f021a58
In adv7180_probe
pca953x 2-0032: failed writing register
Regards,
Henry.
Hi,
I don't remember exactly, it might be LTIB1209.
Vincent
it´s the unit_test, and it is only inside linux rootfs (for example, from LTIB) I don´t think there is the same for Android.
Hi Daiane Angolini,
Now I enabled the driver, and now my .config file is updated with "CONFIG_MXC_TVIN_ADV7180=y"...Please let me know how shall I verify the video in? I have connected the camera as shown by you. If I type lsmod, I am not seeing anything. I am using IMX53 ARD board (android 2.3.4).
Also modprobe is not working, but insmod works.
I am not able to find mxc_v4l2_tvin.out or any of the .ko files mentioned.
Please suggest.
Regards,
Swamy
Hi Swamy,
You can take imx53_ard_linux.pdf, there is a ADV7180 chapter and you can see the kernel variable needed. I don´t know if by heart.
But, I know BSP11.05 has this support by default.
What are you trying to display?
Are you using the right format (-f) for your case?
Hello Daiane,
Thank you for you help it was most helpful. I have AD7180 detected now. When i run the same commands you ran to test the interface i get a green screen appear on my screen. On the COM 1 port i get the following messages.
root@freescale ~$ modprobe ipu_prp_enc.ko
root@freescale ~$ modprobe ipu_prp_vf_sdc.ko
root@freescale ~$ modprobe ipu_prp_vf_sdc_bg.ko
root@freescale ~$ modprobe ipu_still.ko
root@freescale ~$ modprobe ipu_csi_enc.ko
root@freescale ~$ modprobe adv7180_tvin.ko
root@freescale ~$ modprobe mxc_v4l2_capture.ko
root@freescale ~$ lsmod
Module Size Used by
mxc_v4l2_capture 20764 1
adv7180_tvin 6400 0
ipu_csi_enc 4244 1 mxc_v4l2_capture
ipu_still 3488 1 mxc_v4l2_capture
ipu_prp_vf_sdc_bg 5312 1 mxc_v4l2_capture
ipu_prp_vf_sdc 5496 1 mxc_v4l2_capture
ipu_prp_enc 5632 1 mxc_v4l2_capture
root@freescale /unit_tests$ ./mxc_v4l2_tvin.out -ow 1024 -oh 768 -ol 10 -ot 20 -
f YU12
cap_mode is 0
frame buffer width 0, height 0,mxc_ipu mxc_ipu: Channel already disabled 10
bytesperline 0
mxc_ipu mxc_ipu: Channel already uninitialized 10
mxc_ipu mxc_ipu: Channel already disabled 10
mxc_ipu mxc_ipu: Channel already uninitialized 10
Does this indicate what i am doing wrong to you.
Thank you.
Robert
I did use the BSP. Take a look on how AD7180 are included on arc/arm/mach_mx5/imx53_ard.c. It can help you on your port
;)
Daiane,
We are working on integrating the AD7180 to the i.MX515 Eval kit linux but are not seeing the device recongnized when we launch the module is launched. Can you tell me what changes you made to the Linux BSP to get the 7180 probed?
Best Regards,
Alex
Sorry guys for my delay! I was not notified so I just figure out there was updates over here! Shame on me.
Craig- I used the released BSP, made no change! But I had to choose the right source for the video. One of my old DVD player got a wrong image displayed.
Lautaro- You should use IPU library documentation and V4L2 (from kernel community) documentation.
Thanks for the comments.