2009-04-28 07:00:33 Problem ADV7183B Blackfin Cam
Samuel Ayet (SPAIN)
Message: 73352
Hi,
I'm using a STAMP - BF537 with a ADV7183B daughter board to capture video from a composite video signal. I have selected the options in the config menu as you can read here "http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:v4l_blackfin_camera&s[]=adv7183b".
Then I have booted the image and set up the drivers and this is what I get from the STAMP:
Have a lot of fun...
BusyBox v1.4.1 (2009-04-24 12:40:18 CEST) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> modprobe i2c-bfin-twi
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller Driver, Version 1.8, regs_base@ffc01400
root:/> modprobe blackfin_cam
driver for ADV7183B get_camops
ADV7183B: i2c driver ready
The board is pluged into the STAMP...Is the Blackfin detecting the ADV7183B Board? I'm not sure why, but I dont get the same output compared with the page of docs.blackfin...
root:/> modprobe blackfin_cam
driver for ADV7183B get_camops
driver for ADV7183B get_camops
ADV7183B: detecting client on address 0x40
driver for ADV7183B init
ADV7183B: V4L driver Blackfin CMOS Camera now ready
ADV7183B: i2c driver ready
Then I tried lsmod to see if the blackfin_cam has been loaded...
root:/> lsmod
Module Size Used by
blackfin_cam 9868 0
adv7183b 1344 1 blackfin_cam
i2c_bfin_twi 5856 0
i2c_core 13840 3 blackfin_cam,adv7183b,i2c_bfin_twi
But I don't know why anotehr time, I don't have any video capture device in /dev
root:/> ls -l /dev/video0
ls: /dev/video0: No such file or directory
What's wronw with this? Why I dont have any device? Could someone tell me what can I do to get the ADV7183B running on my STAMP Board?
Thank You.
QuoteReplyEditDelete
2009-04-28 07:12:53 Problem ADV7183B Blackfin Cam
Michael Hennerich (GERMANY)
Message: 73353
Can you explain which ADV7183B daughter board you are using?
It looks like the ADV7183 isn't detected on the i2c bus.
Double check the I2C hardware interface. Make sure the ADV7183B isn't in RESET.
And that ALSB (I2C Slave address select) is grounded.
-Michael
QuoteReplyEditDelete
2009-04-28 11:11:01 Re: Problem ADV7183B Blackfin Cam
Samuel Ayet (SPAIN)
Message: 73379
The Daughter Board I´m using is a Daugter Board based on the ADV7183A from the hardware section of this web http://blackfin.uclinux.org/gf/project/stamp/frs/?action=FrsReleaseBrowse&frs_package_id=13 and the Video Input of the BF533 and BF561 kits as you can see in the Schematic (atacched in PDF). Also I have designed it to be compilant with the ADV7184 (product that will replace the ADV7183B). After test what you told me, I have noticed that I forgot connect the pin 40 to AGND (as you can see in the Schematic) so this is the problem I had this morning... the ADV7183B was not "well grounded". Now Blackfin detects the ADV7183B and I have the /dev/video0 device as you can see in the traces below:
Loading Modules:
root:/> modprobe i2c-bfin-twi
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller Driver, Version 1.8, regs_base@ffc01400
root:/> modprobe blackfin_cam
driver for ADV7183B get_camops
driver for ADV7183B get_camops
ADV7183B: detecting client on address 0x40
driver for ADV7183B init
ADV7183B: V4L driver Blackfin CMOS Camera now ready
ADV7183B: i2c driver ready
Lsmod:
root:/> lsmod
Module Size Used by
blackfin_cam 9708 0
adv7183b 1344 1 blackfin_cam
i2c_bfin_twi 5856 0
i2c_core 13840 3 blackfin_cam,adv7183b,i2c_bfin_twi
And the device /dev/video0:
root:/> ls -l /dev/video0
crw-rw---- 1 root root 81, 0 Jan 1 05:56 /dev/video0
I don´t have tested as input of linphone yet because I don´t have a source of composite video signal, but tomorrow I will test it with a CVBS Camera output, but I hope it will work!
Thanks Michael!
ADV7183B_84_DAUGHTER_BOARD_V1.0.pdf