iMX53 TV-in Demo - A simple howto -blog archive

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX53 TV-in Demo - A simple howto -blog archive

16,964 Views
daiane_angolini
NXP Employee
NXP Employee

119-TVin_ARD.JPG

 

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

Tags (1)
21 Replies

2,131 Views
shyamjithkv
Contributor III

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

0 Kudos

2,134 Views
ningzhou
Contributor II

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?

0 Kudos

2,134 Views
daiane_angolini
NXP Employee
NXP Employee

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

0 Kudos

2,134 Views
ningzhou
Contributor II

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?

0 Kudos

2,131 Views
daiane_angolini
NXP Employee
NXP Employee

modprobe the camera driver

0 Kudos

2,134 Views
Aubineau_FAE
NXP Employee
NXP Employee

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!

20130131_184211.jpg


2,134 Views
Henry_p
NXP Employee
NXP Employee

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.

0 Kudos

2,134 Views
Aubineau_FAE
NXP Employee
NXP Employee

Hi,

I don't remember exactly, it might be LTIB1209.

Vincent

0 Kudos

2,134 Views
Henry_p
NXP Employee
NXP Employee

Yes, it is working on LTIB1209.

4.0.0 seems to have some problems with ADV7180.

Thanks for your information.

0 Kudos

2,134 Views
RandyKrakora
NXP Employee
NXP Employee

This procedure worked for me on 11.09 BSP as well.

2,134 Views
daiane_angolini
NXP Employee
NXP Employee

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.

0 Kudos

2,134 Views
Swamy
Contributor III

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

0 Kudos

2,134 Views
daiane_angolini
NXP Employee
NXP Employee

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.

0 Kudos

2,134 Views
Swamy
Contributor III

Hi Daiane Angolini,

I am trying to enable Video-In functionality for IMX53 ARD board (AD7180). Please tell me which are option I need to select in menuconfig option?

Regards,

Swamy

0 Kudos

2,134 Views
daiane_angolini
NXP Employee
NXP Employee

What are you trying to display?

Are you using the right format (-f) for your case?

0 Kudos

2,134 Views
RobetAyala
Contributor I

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

0 Kudos

2,134 Views
daiane_angolini
NXP Employee
NXP Employee

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 

;)

0 Kudos

2,134 Views
RobetAyala
Contributor I

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

0 Kudos

2,134 Views
daiane_angolini
NXP Employee
NXP Employee

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.

0 Kudos

2,134 Views
CraigPetku
Contributor III
Daiane,  Did you create a patchfile of this demo for show the correct changes to LTIB?  I seem to be having to make several unexpected changes to the drivers to get the unit tests to attempt to communicate with the 7180 device.
0 Kudos