Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MichaelZhuxx opened this issue Apr 21, 2021 · 10 comments
Open

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

MichaelZhuxx opened this issue Apr 21, 2021 · 10 comments
Assignees
Labels
enhancement New feature or request kernel

Comments

@MichaelZhuxx
Copy link
Collaborator

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
Copy link

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

@kbingham
Copy link

kbingham commented Apr 26, 2021

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

@pdp7
Copy link
Collaborator

pdp7 commented Apr 26, 2021

@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
Copy link
Collaborator Author

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
Copy link

bith3ad commented Apr 30, 2021

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

@pdp7 pdp7 added kernel enhancement New feature or request labels May 18, 2021
@pdp7
Copy link
Collaborator

pdp7 commented Jul 7, 2021

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

@MichaelZhuxx
Copy link
Collaborator Author

@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
Copy link
Collaborator Author

MichaelZhuxx commented Sep 27, 2021

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

  • add starfive private packages:

    • v4l2_test: used to test v4l2 device
    • pp_test: used to switch format and resolution for framebuffer framework
    • sf-gst-omx: from gst-omx and compatible with the omx-il library
    • sf-omx-il: starfive openmax il library for VPU hardware decode
    • stfisp_setfile: this is the host build package, used to generate the isp register setting binary for v4l2 framework
    • wave511: this is chip&media decode hardware wave511 vendor code building
  • add the following gstreamer patch:

    • support gstreamer plugin fbdevsink NV12 format
    • support gst-play take priority to decode h264/h265 with gst-omx plugin

@archanox
Copy link

archanox commented Sep 28, 2021

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

@MichaelZhuxx
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kernel
Projects
None yet
Development

No branches or pull requests

6 participants