管理员大神指教:ubuntu 映像ov5640无法使用


#1

你好:
我在使用ov5640的时候,无法识别芯片,但是我看官方HDF5640是可以用的。

ubuntu 映像版本:2018-08-16-ubuntu-16.04-mate-desktop-preview-bpi-m2z-p2z-sd-emmc.img

kernel 的dmesg 如下:
[ 23.211474] dhd_module_init: Exit err=0
[ 23.761744] [rfkill]: rfkill set power 0
[ 51.508046] UMP: UMP device driver loaded
[ 51.542307] mali clk: 252 MHz
[ 51.542637] mali clk: 252 MHz
[ 51.548661] Mali: Mali device driver loaded
[ 51.586161] [drm] Initialized drm 1.1.0 20060810
[ 51.591260] Mali DRM initialize, driver name: mali_drm, version 2.1
[ 51.592069] [drm] Initialized mali_drm 2.1.1 20101111 on minor 0
[ 51.592163] Mali DRM initialize, driver name: mali_drm, version 2.1
[ 51.592575] [drm] Initialized mali_drm 2.1.1 20101111 on minor 1
[ 51.760191] [[email protected]]init_sensor - frame_rate: 0, max_win_size: 11
[ 51.840148] [ISP] isp platform_id = 5!
[ 51.862287] [[email protected]]CSI_SUBDEV_PWR_ON!
[ 51.931250] [[email protected]]sensor_init 0x0
[ 51.932106] [[email protected]]sensor read retry=2
[ 51.932119] [[email protected]]error at sensor_detect
[ 51.932129] [[email protected]]chip found is not an target chip.
[ 51.932141] [[email protected]]CSI_SUBDEV_PWR_OFF!
[ 52.163500] Bluetooth: Core ver 2.16
[ 52.163638] NET: Registered protocol family 31
[ 52.163652] Bluetooth: HCI device and connection manager initialized
[ 52.163669] Bluetooth: HCI socket layer initialized
[ 52.163679] Bluetooth: L2CAP socket layer initialized
[ 52.163708] Bluetooth: SCO socket layer initialized
[ 52.301761] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x48)
[ 52.302199] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 52.302371] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x48)
[ 52.302584] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x48)
[ 52.302989] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 52.303158] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x48)
[ 52.303326] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x48)
[ 52.303698] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 52.303868] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x48)
[ 52.304036] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x48)
[ 54.485137] Adding 262140k swap on /var/swap. Priority:-1 extents:4 across:335868k SS
[ 56.391908] [DISP] disp_ioctl,line:1584:para err in disp_ioctl, cmd = 0x0,screen id = 65536

OV5640 引脚资料如下:

下图为bpi m2 zero 的引脚定义:

引脚定义看起来这个芯片没有问题。

请管理员大神指教。


#2

没人回复吗,感觉这个论坛没什么用啊