starfive-tech / Fedora_on_StarFive

62 stars 12 forks source link

[CSI] Camera CSI function is not supported yet #9

Open MichaelZhuxx opened 3 years ago

MichaelZhuxx commented 3 years ago

Based on fedora image: Fedora-riscv64-vic7100-dev-raw-image-Rawhide-20210419121453.n.0-sda.raw

The function of Camera CSI is not supported yet since it will cause system instability(kernel panic) after integrated with VIN/CSI model

@tekkamanninja please upload some panic log in here, maybe the community developer could help on this

kbingham commented 3 years ago

Is the CSI pinout compatible with the RPi cameras? Or will I need to source specific cameras / cables to hook up to this.

kbingham commented 3 years ago

Links to any CSI/VIN/ISP datasheets and documentation would be useful here too ;-)

pdp7 commented 3 years ago

@MichaelZhuxx @tekkamanninja Kieran (@kbingham) is involved in libcamera and has large amount of experience with linux development. He should be able to assist if given access to the necessary information.

MichaelZhuxx commented 3 years ago

Is the CSI pinout compatible with the RPi cameras? Or will I need to source specific cameras / cables to hook up to this.

yes, compatible with Rasp Pi camera interface

bith3ad commented 3 years ago

Datasheets for these IP-Cores would be really nice :)

pdp7 commented 3 years ago

@MichaelZhuxx @tekkamanninja do we need to update instructions on how to use the CSI camera?

MichaelZhuxx commented 3 years ago

@pdp7 for new fedora image (https://beagleboard.org/~pdp7/Fedora-riscv64-vic7100-xfce-dev-Rawhide-20210707.n.0-sda.raw.zst), the booting log for vin still have a isssue as below:

[    1.141591] stf-vin 19800000.vin_sysctl: vin probe enter!
[    1.147134] stf-vin 19800000.vin_sysctl: can't request region for resource [mem 0x11800000-0x1180ffff]
[    1.156363] stf-vin 19800000.vin_sysctl: Could not map registers
[    1.162424] stf-vin: probe of 19800000.vin_sysctl failed with error -16

however, Even if the VIN module does not report an error, the current configuration is still troublesome, and u-boot and kernel need to be recompiled. so I recommand we could retest after V4L2 is done

MichaelZhuxx commented 3 years ago

This is a pre-release multimedia subsystem for JH7100, including ALSA, V4L2, Gstreamer, VPU decoding. please refer to freelight-u-sdk and follow the instructions readme to fetch, build and test it.

Here is the branches:

[opensbi] https://github.com/starfive-tech/opensbi/tree/master

[u-boot] https://github.com/starfive-tech/u-boot/tree/Fedora_JH7100_upstream_devel Apply alsa, v4l2 etc. to dts

[kernel] https://github.com/starfive-tech/linux/tree/beaglev-5.13.y_multimedia Add v4l2 for video capture, alsa for audio, drm for display

[buildroot] https://github.com/starfive-tech/sft-riscv-buildroot/tree/starlight_multimedia

archanox commented 3 years ago

@MichaelZhuxx is it possible to obtain the prebuilt images for testing?

MichaelZhuxx commented 3 years ago

@archanox sure, please download it https://drive.google.com/drive/folders/1CmNifCa9HZQmKnmPLpTso4TLkE3u7jnZ?usp=sharing