i2c 在tv in小板上的问题 及 系统启动时

本文记录了I2C设备驱动的调试过程,包括ch7013和TVP5150设备的驱动加载及I2C通信测试情况。调试过程中遇到了mxc_i2c_writebytes写操作失败的问题,并记录了详细的错误信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


i2c的问题


insmod /drivers/ch7013.ko
MX27 CH7013 tvout driver.
/dev/tvout major device number is: 251
ch7013_i2c_attach begin!
ch7013_i2c_init over!
ch7013_save_lcdc over!
LHCR: 0x34001962
LHCR = 0x34001962
LVCR: 0x8002b2b
ch7013_set_lcdc over!
Chip version ID(0x22)= 0x22
mxc_i2c_writebytes: fail.
ch7013_i2c_program over!


mx27# insmod tvp5150_cam.ko
tvp5150 driver version 0.0
/dev/tvin device number is: 252
i2c_tvin_attach_adapter start
i2c_tvin_attach_adapter end
I2C addr driver successful
TVP5150 I2C Test...
MSB of device ID (0x51): 0xBF
LSB of device ID (0x50): 0xBF

mx27# insmod tvp5150_cam.ko
tvp5150 driver version 0.0
/dev/tvin device number is: 251
i2c_tvin_attach_adapter start
i2c_tvin_attach_adapter end
I2C addr driver successful
TVP5150 I2C Test...
mxc_i2c_readbytes: fail.
MSB of device ID (0x51): 0xBF
LSB of device ID (0x50): 0x50


ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
Time: mx27_hrt clocksource has been installed.
Empty flash at 0x00853268 ends at 0x00853400
Empty flash at 0x020d24d4 ends at 0x020d2600
Empty flash at 0x02136820 ends at 0x02136a00
Empty flash at 0x037e3870 ends at 0x037e3a00
Empty flash at 0x039e1830 ends at 0x039e1a00
Empty flash at 0x03a7bd8c ends at 0x03a7be00
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 184K
Setting the hostname to freescale


eth0: link down
Unbalanced enable for IRQ 103
BUG: warning at kernel/irq/manage.c:118/enable_irq()
mx27# JFFS2 notice: (1578) check_node_data: wrong data CRC in data node at 0x020d2000: read 0xe0bba0da, calculated 0xd7dfe923.
JFFS2 notice: (1578) check_node_data: wrong data CRC in data node at 0x039e1200: read 0xc918dac1, calculated 0x75ed3b8c.
JFFS2 notice: (1578) read_dnode: node CRC failed on dnode at 0x37e37ec: read 0xffffffff, calculated 0x2ffae99e
JFFS2 notice: (1578) read_dnode: node CRC failed on dnode at 0x8531f0: read 0xffffffff, calculated 0xa08a851a

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值