2011-06-06 09:15:23     Old BF561EZKIT with ADV7183

Document created by Aaronwu Employee on Aug 27, 2013
Version 1Show Document
  • View in full screen mode

2011-06-06 09:15:23     Old BF561EZKIT with ADV7183

Vladimir Fusek (CZECH REPUBLIC)

Message: 101010   

 

I have very old board BF561EZKIT rev. 1.3. Trying to compile kernel (2008R1.5RC3 with last toolchain). I did everything here https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:v4l_blackfin_camera but when I compiled kernel I get these errors. Thanks for your help.

 

errors

QuoteReplyEditDelete

 

 

2011-06-06 12:14:55     Re: Old BF561EZKIT with ADV7183

Mike Frysinger (UNITED STATES)

Message: 101011   

 

sorry, but 2008R1.5 is no longer supported

QuoteReplyEditDelete

 

 

2011-06-07 02:54:45     Re: Old BF561EZKIT with ADV7183

Vladimir Fusek (CZECH REPUBLIC)

Message: 101017   

 

Hello Mike

 

I tried also compile kernel 2010R1RC5 with last toolchain. The same result. I think that the problem caused by these two lines in .config file:

 

https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:v4l_blackfin_camera

 

CONFIG_I2C_BLACKFIN_TWI=m

CONFIG_I2C_BLACKFIN_TWI_CLK_KHZ=50

 

Thanks

 

 

 

errors

QuoteReplyEditDelete

 

 

2011-06-07 03:00:16     Re: Old BF561EZKIT with ADV7183

Mike Frysinger (UNITED STATES)

Message: 101018   

 

the BF561 doesnt have a TWI peripheral, so enabling the driver makes no sense on a BF561 system.  so dont do that.

QuoteReplyEditDelete

 

 

2011-06-07 11:11:59     Re: Old BF561EZKIT with ADV7183

Mike Frysinger (UNITED STATES)

Message: 101051   

 

not that i can see any way for you to have selected this in the first place.  the Kconfig explicitly disallows it being selected for BF561 targets in current trunk.

QuoteReplyEditDelete

 

 

2011-06-14 03:17:56     Re: Old BF561EZKIT with ADV7183

Vladimir Fusek (CZECH REPUBLIC)

Message: 101250   

 

I tried it again:

 

root:/> modprobe blackfin-cam

adv7183b_power: Failed to request GPIO 13

can't get i2c adapter 0

ADV7183B: could not add i2c driver: -19

modprobe: failed to load module blackfin-cam (kernel/drivers/media/video/blackfin/blackfin_cam.ko): No such device

 

root:/> lsmod

Module                  Size  Used by

videodev               31183  0

v4l1_compat            10481  1 videodev

adv7183b                1187  0

i2c_core               12392  2 videodev,adv7183b

 

After reboot tried another way:

 

root:/> modprobe i2c-gpio

i2c-gpio i2c-gpio.0: using pins 1 (SDA) and 0 (SCL)

root:/> modprobe blackfin-cam

Linux video capture interface: v2.00

driver for ADV7183B init

ADV7183B: detected client on address 0x20

ADV7183B: V4L driver Blackfin CMOS Camera now ready

 

lsmod

Module                  Size  Used by

blackfin_cam            6701  0

videodev               31183  1 blackfin_cam

v4l1_compat            10481  1 videodev

adv7183b                1187  1 blackfin_cam

i2c_gpio                1453  0

i2c_algo_bit            4307  1 i2c_gpio

i2c_core               12392  5 blackfin_cam,videodev,adv7183b,i2c_gpio,i2c_algo

_bit

 

But I have not /dev/video0 I can create it only with mknod /dev/video0 c 81 0

 

v4l_test:

 

usage: video_cap [-r <frame_rate>] [-o <output file>]using default setting capture rate: 30, height: 288, widht: 352 open /dev/video0

found Blackfin CMOS Camera device. (maxsize=720x576)

default picture properties: brightness=10240,hue=630,colour=192,contrast=0,depth =16, palette=9.

could not set picture properties: Invalid argument unsupported video pixel format.

 

I'm not sure if this is a good way, think video0 is not correct. Any idea what is wrong?

QuoteReplyEditDelete

 

 

2011-06-15 04:15:39     Re: Old BF561EZKIT with ADV7183

Sonic Zhang (CHINA)

Message: 101279   

 

When you insert blackfin-cam module, you should set the default palette to YUV422 used in v4l_test. Otherwise, the VIDIOSCPICT ioctl system call fails.

 

root:/> modprobe blackfin-cam force_palette=2

QuoteReplyEditDelete

Attachments

Outcomes