Dear all,
I have a two question on DM385 EVM.
Question 1) When I use i2c on dm385, does not working.
Please refer to below booting log.
Channel of I2C: 2
Device ID: 0x3C (OmniVision OV5640)
[Booting Log]
--------------------------------------------------------------------------------
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org dm814x-evm ttyO0
Arago 2011.09 dm814x-evm ttyO0
dm814x-evm login: root (automatic login)
root@dm814x-evm:~# mkdosfs 3.0.12 (29 Oct 2011)
unable to get drive geometry, using default 255/63
/dev/sbulla has 255 heads and 63 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 1024 sectors;
file system has 2 12-bit FATs and 4 sectors per cluster.
FAT size is 1 sector, and provides 247 clusters.
There is 1 reserved sector.
Root directory contains 512 slots and uses 32 sectors.
Volume ID is 2891a25b, no volume label.
g_file_storage gadget: No serial-number string provided!
g_file_storage gadget: File-backed Storage Gadget, version: 1 September 2010
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, nofua=0, file: /dev/sbulla
Simple mixer control 'PGA',0
Capabilities: cvolume cswitch penum
Capture channels: Front Left - Front Right
Limits: Capture 0 - 119
Front Left: Capture 80 [67%] [40.00dB] [on]
Front Right: Capture 80 [67%] [40.00dB] [on]
[m3vpss ] I2C: timed out in wait_for_bb: I2C_IRQSTATUS=1000 !!!
[m3vpss ] I2C2: DEV 0x3c: WR 0x3008 = 0x82 ... ERROR !!!
queue id:0
ApproDrvInit: 3
Creat queue id:131076
queue id:131076
queue id:0
ApproDrvInit: 7
queue id:131076
[m3vpss ] I2C: timed out in wait_for_bb: I2C_IRQSTATUS=1000 !!!
[m3vpss ] I2C2: DEV 0x3c: WR 0x3008 = 0x42 ... ERROR !!!
[m3vpss ] I2C: timed out in wait_for_bb: I2C_IRQSTATUS=1000 !!!
[m3vpss ] I2C2: DEV 0x3c: WR 0x3103 = 0x03 ... ERROR !!!
[m3vpss ] I2C: timed out in wait_for_bb: I2C_IRQSTATUS=1000 !!!
[m3vpss ] I2C2: DEV 0x3c: WR 0x3017 = 0x00 ... ERROR !!!
[m3vpss ] I2C: timed out in wait_for_bb: I2C_IRQSTATUS=1000 !!!
[m3vpss ] I2C2: DEV 0x3c: WR 0x3018 = 0x00 ... ERROR !!!
--------------------------------------------------------------------------------
What can I do for i2c on dm385?
Please let me know.
Question 2) As I know, The DM385 EVM has two I2C devices.
Channel of I2C: 0
Device ID: 0x18, 0x2D
root@DM385_IPNC:/opt/ipnc# ./i2cdump 1 0x18
No size specified (using byte-data access)
Error: Could not set address to 0x18: Device or resource busy
root@DM385_IPNC:/opt/ipnc# ./i2cdump 1 0x2d
No size specified (using byte-data access)
Error: Could not set address to 0x2d: Device or resource busy
root@DM385_IPNC:/opt/ipnc# ./i2cdump 3 0x3C <- OV5640
No size specified (using byte-data access)
Error: Could not set address to 0x3c: Device or resource busy
root@DM385_IPNC:/opt/ipnc#
I don't know why device or resource busy.
Please let me know about this problem.
Thanks and Regards,
Minsu Kim