kendryte / k230_sdk

Kendryte K230 SDK
BSD 2-Clause "Simplified" License
175 stars 39 forks source link

[other]: Fastboot app failed due to wrong camera config for 01Studio board #81

Open thehien377 opened 2 weeks ago

thehien377 commented 2 weeks ago

Other

Hello,

It seems that the config for 01Studio board which use camera GC2093 is not supported yet. The image created by config k230_canmv_01studio_defconfig refer to OV5647 instead. Do we have plan to create new or update config? Or any patching to work with GC2093?

I found the code for selecting camera in sample_vivcap_init() of /src/big/mpp/userapps/sample/fastboot_app/main.cc But I'm not sure whether any additional change needed or not.

Startup log:

OpenSBI v0.9 vicap_mcm_initRT-SMART Hello RISC-V. msh />mirror mirror is 0 , senspress 'q' to exit application!! or tpye is 39 ov5647_power_rest OV5647_CAM_PIN_CSI2 is 62 [D/lt9611] vtotal 1125 vactive 208 htotal_sys 400

<0>[6] [vi] wait stop timeout [tuning] dev: 0 acq_win.width: 1920 acq_win.height: 1080 pipe_ctrl: 4294967289 sensor_fd: 11 sensor_name: ov5647_csi2 database_name: ov5647-1920x1080 buffer_num: 0 buffer_size: 0 [tuning] chn: 0 out_win.width: 1920 out_win.height: 1080 bit_width: 0 pix_format: 5 buffer_num: 10 buffer_size: 3110912 yraw_size: 0 uv_size: 0 v_size: 0 block_type: 1 wait_time: 500 chn_enable: 1 VsiCamDeviceCreate hw:0-vt:0 created! ov5647_power_rest OV5647_CAM_PIN_CSI2 is 62 ov5647_sensor_power_on, iic read chip id err kd_mpi_sensor_power_set, error(-1) kd_mpi_sensor_init, error(1) kd_mpi_isp_sensor_init, sensor open failed(1) kd_mpi_isp_sensor_set_test_pattern failed(12)! kd_mpi_isp_connect, vsi connect failed(13)! kd_mpi_isp_init, isp connect failed. kd_mpi_vicap_init, isp init failed. sample_vicap, kd_mpi_vicap_init failed. <3>[4] [Func]:vb_is_blk_valid [Line]:1133 [Info]:id 0, phys_addr = 0, pool_phys_addr = 100ec000, pool_size = 15554560 phys 0x180000, size 0x79000
zhaoshuaiadada commented 1 week ago

image 替换成GC2093_MIPI_CSI2_1920X1080_30FPS_10BIT_LINEAR