hm1375_sc3817r_sina33_rtl8188eu服务器验证通过20170621_1021没有外层目录.7z
使用sina33的SDK在SC3817R上点亮HM1375 大文实验室/大文哥 壹捌陆捌零陆捌捌陆捌贰 wb4916 AT qq.com 完成时间:2017/6/21 10:07 版本:V1.0 1、配置全志平台的android所能感知的摄像头的分辨率(预览/拍照): Q:\a33\hm1375_sc3817r_sina33_rtl8188eu\android\device\softwinner\astar-y3\configs\camera.cfg used_preview_size = 1 key_support_preview_size = 1280x1024, 1280x720, 640x480 key_default_preview_size = 640x480 used_picture_size = 1 key_support_picture_size = 1280x1024, 1280x720, 640x480 key_default_picture_size = 640x480 2、在系统启动的时候自动加载himax1375的驱动模块:hm1375.ko: Q:\a33\hm1375_sc3817r_sina33_rt l8188eu\android\device\softwinner\astar-y3\init.sun8i.rc #csi module insmod /system/vendor/modules/videobuf-core.ko insmod /system/vendor/modules/videobuf-dma-contig.ko insmod /system/vendor/modules/cam_detect.ko #insmod /system/vendor/modules/actuator.ko #insmod /system/vendor/modules/ad5820_act.ko insmod /system/vendor/modules/cci.ko insmod /system/vendor/modules/vfe_os.ko insmod /system/vendor/modules/vfe_subdev.ko #insmod /system/vendor/modules/gc0307.ko #insmod /system/vendor/modules/ov2035.ko #insmod /system/vendor/modules/ov2640.ko #insmod /system/vendor/modules/ov5640.ko insmod /system/vendor/modules/hm1375.ko insmod /system/vendor/modules/vfe_v4l2.ko 3、(可选操作) Q:\a33\hm1375_sc3817r_sina33_rtl8188eu\android\device\softwinner\astar-y3\ueventd.sun8i.rc /dev/video0 0660 media media #/dev/video1 0660 media media 4、驱动相关: Q:\a33\hm1375_sc3817r_sina33_rtl8188eu\lichee\linux-3.4\drivers\media\video\sunxi-vfe\device\hm1375.c Q:\a33\hm1375_sc3817r_sina33_rtl8188eu\lichee\linux-3.4\drivers\media\video\sunxi-vfe\device\Makefile obj-m += hm1375.o (不加这里会运行出错:) Q:\a33\hm1375_sc3817r_sina33_rtl8188eu\lichee\linux-3.4\drivers\media\video\sunxi-vfe\sensor_info.c struct sensor_item sensor_list_t[] = { // name i2c_addr sensor type sensor size sensor max pclk { "hm1375" , 0x48, SENSOR_YUV , PIXEL_NUM_2M , CORE_CLK_RATE_FOR_2M}, { "hm5065" , 0x3e, SENSOR_YUV , PIXEL_NUM_5M , CORE_CLK_RATE_FOR_5M}, { "ov2640" , 0x60, SENSOR_YUV , PIXEL_NUM_2M , CORE_CLK_RATE_FOR_2M}, { "ov5640" , 0x78, SENSOR_YUV , PIXEL_NUM_5M , CORE_CLK_RATE_FOR_5M}, …… { "ov7736" , 0x42, SENSOR_YUV , PIXEL_NUM_0_3M , CORE_CLK_RATE_FOR_2M}, }; 5、 Q:\a33\hm1375_sc3817r_sina33_rtl8188eu\lichee\tools\pack\chips\sun8iw5p1\configs\y3\sys_config.fex [power_sply] dcdc1_vol = 3000 dcdc2_vol = 1100 dcdc3_vol = 1200 dcdc4_vol = 0 dcdc5_vol = 1500 aldo2_vol = 2500 aldo3_vol = 3000 dldo3_vol = 2800 ;gpio0_vol = 2800 ldoio0_vol = 2800 [twi2] twi_used = 1 twi_scl = port:PE12
twi_sda = port:PE13
[csi0] vip_used = 1 vip_mode = 0 vip_dev_qty = 1 vip_define_sensor_list = 0 vip_csi_pck = port:PE00
vip_csi_mck = port:PE01
vip_csi_hsync = port:PE02
vip_csi_vsync = port:PE03
vip_csi_d0 = port:PE04
vip_csi_d1 = port:PE05
vip_csi_d2 = port:PE06
vip_csi_d3 = port:PE07
vip_csi_d4 = port:PE08
vip_csi_d5 = port:PE09
vip_csi_d6 = port:PE10
vip_csi_d7 = port:PE11
;vip_dev0_mname = "gc0308" ;vip_dev0_mname = "ov5640" vip_dev0_mname = "hm1375" ;vip_dev0_mname = "hm5065" vip_dev0_pos = "rear" vip_dev0_lane = 1 vip_dev0_twi_id = 2 ;vip_dev0_twi_addr = 0x78 ;vip_dev0_twi_addr = 0x42 vip_dev0_twi_addr = 0x48 ;vip_dev0_twi_addr = 0x3e vip_dev0_isp_used = 0 vip_dev0_fmt = 0 vip_dev0_stby_mode = 0 vip_dev0_vflip = 0 vip_dev0_hflip = 0 vip_dev0_iovdd = "axp22_dldo3" vip_dev0_iovdd_vol = 2800000 vip_dev0_avdd = "axp22_ldoio0" vip_dev0_avdd_vol = 2800000 vip_dev0_dvdd = "axp22_eldo2" vip_dev0_dvdd_vol = 1800000 vip_dev0_afvdd = "axp22_dldo3" vip_dev0_afvdd_vol = 2800000 vip_dev0_power_en = vip_dev0_reset = port:PE14
vip_dev0_pwdn = port:PE15
vip_dev0_flash_en = vip_dev0_flash_mode = vip_dev0_af_pwdn =
用户评论