Hi all,
I am trying to stream video from mipi camera to a host pc through usb streaming, for that i have to enable g_webcam in menuconfig can someone explain the steps to follow and what are the things i should enable and how to configure that and any information regarding this will be helpfull.
thank you
Here is an application note explain how to capture and send camera images.
RZ/G2L Group and RZ/V2L Group Linux Interface Specification GStreamer User's Manual
https://www.renesas.com/en/document/mas/rzg2l-group-and-rzv2l-group-linux-interface-specification-gstreamer-users-manual-software?utm_nooverride=1
hii chris,
thank you for your reply
we are working on rzv2l in which to do usb streaming we have to enable the g_webcam in menuconfig, usb support, usb gadgets. after enabling that the module was not getting copied to rzv2l now it has been installed in rzv2l we are working on application or command to try streaming but still we are not confirmed that its been installed or not properly.
if you know the proper procedure please help
in usb gadgets we did the same with usb serial port
root@smarc-rzv2l:~# dmesg | grep -i usb[ 0.100970] usbcore: registered new interface driver usbfs[ 0.101024] usbcore: registered new interface driver hub[ 0.101063] usbcore: registered new device driver usb[ 0.184756] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver[ 0.185539] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver[ 0.186855] usbcore: registered new interface driver usb-storage[ 0.187339] renesas_usbhs 11c60000.usb: host probed[ 0.187362] renesas_usbhs 11c60000.usb: no transceiver found[ 0.187509] renesas_usbhs 11c60000.usb: gadget probed[ 0.187625] renesas_usbhs 11c60000.usb: platform init failed.[ 0.187756] renesas_usbhs 11c60000.usb: probe failed (-517)[ 0.188713] usbcore: registered new interface driver usbtouchscreen[ 0.202924] usbcore: registered new interface driver usbhid[ 0.202946] usbhid: USB HID core driver[ 1.484425] ehci-platform 11c50100.usb: EHCI Host Controller[ 1.490151] ehci-platform 11c50100.usb: new USB bus registered, assigned bus number 1[ 1.498119] ehci-platform 11c50100.usb: irq 148, io mem 0x11c50100[ 1.516376] ehci-platform 11c50100.usb: USB 2.0 started, EHCI 1.10[ 1.523260] hub 1-0:1.0: USB hub found[ 1.532016] ehci-platform 11c70100.usb: EHCI Host Controller[ 1.537725] ehci-platform 11c70100.usb: new USB bus registered, assigned bus number 2[ 1.545663] ehci-platform 11c70100.usb: irq 149, io mem 0x11c70100[ 1.564377] ehci-platform 11c70100.usb: USB 2.0 started, EHCI 1.10[ 1.571206] hub 2-0:1.0: USB hub found[ 1.579869] ohci-platform 11c50000.usb: Generic Platform OHCI controller[ 1.586633] ohci-platform 11c50000.usb: new USB bus registered, assigned bus number 3[ 1.594596] ohci-platform 11c50000.usb: irq 146, io mem 0x11c50000[ 1.691018] hub 3-0:1.0: USB hub found[ 1.699686] ohci-platform 11c70000.usb: Generic Platform OHCI controller[ 1.706448] ohci-platform 11c70000.usb: new USB bus registered, assigned bus number 4[ 1.714423] ohci-platform 11c70000.usb: irq 147, io mem 0x11c70000[ 1.811033] hub 4-0:1.0: USB hub found[ 1.819689] renesas_usbhs 11c60000.usb: host probed[ 1.824622] renesas_usbhs 11c60000.usb: no transceiver found[ 1.830395] renesas_usbhs 11c60000.usb: gadget probed[ 1.835720] renesas_usbhs 11c60000.usb: probed
here you can see that usb ohci-platform 11c70000. but the usb probed is at 11c60000 and the port is not detected by the connected host after getting installed.
if you have anything about working on usb serial port through otg please share.
don't make it a module. make it a static driver in the kernel (=y not =m).
In an embedded system, there is no need to have all those modules unless you have a really good reason. just make all your drivers static.
In the Renesas default build, we have many modules because we support multiple EVK with 1 build. But, that is not a real product. In a real product, you would have 1 build for 1 product. So, make a custom defconfig just for your product.
i changed that into =y now 2 video device are present /dev/video0 and /dev/video1 but rzv2l device not been shown in the host pc as another camera source
gst-launch-1.0 -e v4l2src device=/dev/video1 ! 'video/x-raw,format=UYVY,width=1280,height=960' ! vspmfilter dmabuf-use=true ! video/x-raw,format=BGRA,width=1280, height=720 ! v4l2sink device=/dev/video0
i played this pipeline after getting it configured but i got this error
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.