Go to advanced search

by fd_
Tue Mar 16, 2021 6:43 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 733
Views: 318324

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

I updated my previous post above with more information on my setup. Basically, the kernel oops occurs a few minutes (sometimes after just 5 minutes, sometimes a little more) after starting yavta (I'm using a very slightly modified version of yavta with modifications to two lines of code (see above))...
by fd_
Tue Mar 16, 2021 5:28 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 733
Views: 318324

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

Is it possible the problem is related to the recent changes to bcm2835-codec (https://github.com/raspberrypi/linux/pull/4113) that were also merged in in 5.10.23? I'm ready to try and backport the unicam fix (https://github.com/raspberrypi/linux/pull/4189) to an older kernel version if it helps dia...
by fd_
Tue Mar 16, 2021 3:58 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 733
Views: 318324

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

Is it possible the problem is related to the recent changes to bcm2835-codec (https://github.com/raspberrypi/linux/pull/4113) that were also merged in in 5.10.23? I'm ready to try and backport the unicam fix (https://github.com/raspberrypi/linux/pull/4189) to an older kernel version if it helps diag...
by fd_
Mon Mar 15, 2021 8:29 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 733
Views: 318324

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

Update your kernel. You appear to be running 5.4.83 when all development effort is now on 5.10 (5.10.23 is now the latest on our tree). You may well be hitting https://github.com/raspberrypi/linux/issues/4128 with the fix merged via https://github.com/raspberrypi/linux/pull/4189. Thanks, I had miss...
by fd_
Mon Mar 15, 2021 6:30 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 733
Views: 318324

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

1) The kernel warnings are known about. The driver hasn't released all the buffers it had been passed, but the framework cleans up anyway. It'll get fixed at some point. 2) This is probably the TC358743 FIFO under/over flowing. You've got video coming in at one rate over HDMI, and being read out at...
by fd_
Sat Mar 13, 2021 1:11 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 733
Views: 318324

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

Rather than using mmal_queue_get , you have an index within the V4L2 buffer, and an array of buffers within the MMAL_POOL_T. . Combine one with the other. I think code in isp_ip_cb which releases the buffers and returns them to V4L2 is safe in that regard anyway. TBH it should really do that anyway...
by fd_
Fri Mar 12, 2021 5:44 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 733
Views: 318324

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

Well, won't I get a problem because I have two MMAL buffers (one for render, one for encode) linked to the same V4L2 buffer? Or can I just keep reference to both MMAL buffers from the V4L2 buffer and pray they'll have the same fill cycles? They should, although there may be some oddness if the disp...
by fd_
Thu Mar 11, 2021 6:20 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 733
Views: 318324

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

Yes, just that. You need two pools of buffer headers and just populate them in the same way. You can't use the mmal_buffer_header_replicate that isp_output_callback uses as those link the replicas to the original buffer header, and you don't have an original buffer header. Well, won't I get a probl...
by fd_
Thu Mar 11, 2021 6:00 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 733
Views: 318324

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

Fantastic! What do you mean by a bit of fiddling? Can't I essentially do what's currently done to feed the buffers to the ISP, except I'd do it twice, once for the render component and once for the encoder? Yes, just that. You need two pools of buffer headers and just populate them in the same way....
by fd_
Thu Mar 11, 2021 5:30 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 733
Views: 318324

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

The VPU itself shouldn't be doing a lot as it's almost all handed off to hardware blocks. The hardware blocks are obviously going to be working fairly hard though, particularly the ISP as it is used once for the conversion, and a second time as part of video_encode. Using RGB24 from the Toshiba sho...
by fd_
Thu Mar 11, 2021 5:15 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 733
Views: 318324

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

The video_encoder will take the UYVY format that is produced directly. The HVS (display engine) won't, which is why there is an ISP component in the processing pipeline. Whilst video_encode could have been fed the source V4L2 buffer in parallel to the ISP being used for the display, it was easier t...
by fd_
Thu Mar 11, 2021 11:10 am
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 733
Views: 318324

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

Hi, I'm trying to build a custom application for a Pi Zero that streams the HDMI input of the TC358743 to a tablet as a H264 stream, while simultaneously displaying it on the Pi's HDMI output. The goal is to be able to use the tablet as the display for yet another Raspberry Pi without requiring any ...
by fd_
Fri Feb 19, 2021 10:05 am
Forum: Graphics, sound and multimedia
Topic: V4L2 output device for Raspberry Pi
Replies: 1
Views: 193

V4L2 output device for Raspberry Pi

Hi, Are there any plans for implementing a V4L2 output device with the same capabilities as the MMAL/OpenMAX render component? I'm trying to build a gstreamer pipeline for encoding and displaying the camera input at the same time. Unfortunately though, I cannot seem to find a sink component suitable...
by fd_
Tue Feb 16, 2021 5:13 pm
Forum: Troubleshooting
Topic: Pi Zero OTG Ethernet adapter startup
Replies: 18
Views: 459

Re: Pi Zero OTG Ethernet adapter startup

Please run

Code: Select all

dmesg
when the boot fails, not lsusb.

And BTW, the adapter showing in lsusb in the failing scenario would speak against my theory of this being the bug I reported before.
by fd_
Tue Feb 16, 2021 5:07 pm
Forum: Troubleshooting
Topic: Pi Zero OTG Ethernet adapter startup
Replies: 18
Views: 459

Re: Pi Zero OTG Ethernet adapter startup

I agree that the output of dmesg on a boot where the adapter is not recognised will help shed some light into the issue. It could also confirm my theory of this being the bug I mentioned earlier.
by fd_
Tue Feb 16, 2021 5:03 pm
Forum: Troubleshooting
Topic: Pi Zero OTG Ethernet adapter startup
Replies: 18
Views: 459

Re: Pi Zero OTG Ethernet adapter startup

As I suspected, this sounds very much like an issue I reported in 2019 with the RTL8152b chipset: https://github.com/raspberrypi/linux/issues/3310
by fd_
Tue Feb 16, 2021 3:34 pm
Forum: Troubleshooting
Topic: Pi Zero OTG Ethernet adapter startup
Replies: 18
Views: 459

Re: Pi Zero OTG Ethernet adapter startup

What does

Code: Select all

lsusb
display when the adapter actually works vs when it doesn't?
by fd_
Mon Feb 15, 2021 9:38 am
Forum: Camera board
Topic: libcamera version of raspistill etc. available
Replies: 35
Views: 2891

Re: libcamera version of raspistill etc. available

Do these also work with the kernel driver for the TC358743 HDMI to CSI-2 bridge? Also, how is performance compared to the original raspivid version? Does it still run reasonably well on the Pi Zero? TC358743 doesn't have libcamera support, so no. Use GStreamer, as detailed in the install instructio...
by fd_
Sun Feb 14, 2021 10:05 pm
Forum: Troubleshooting
Topic: Pi Zero OTG Ethernet adapter startup
Replies: 18
Views: 459

Re: Pi Zero OTG Ethernet adapter startup

Please let us know what specific USB ethernet adapter you used. What make / model? Include pictures of the PCB if possible. What does lsusb display when the adapter actually works?
by fd_
Sun Feb 14, 2021 6:48 pm
Forum: Camera board
Topic: libcamera version of raspistill etc. available
Replies: 35
Views: 2891

Re: libcamera version of raspistill etc. available

Do these also work with the kernel driver for the TC358743 HDMI to CSI-2 bridge? Also, how is performance compared to the original raspivid version? Does it still run reasonably well on the Pi Zero?
by fd_
Sun Feb 14, 2021 12:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [UPDATED, SOLVED] Why "cheap" Chinese HDMI-to-CSI2 adapters (e.g.18810-1 C779) don't provide I2S sound
Replies: 35
Views: 4283

Re: [UPDATED, SOLVED] Why "cheap" Chinese HDMI-to-CSI2 adapters (e.g.18810-1 C779) don't provide I2S sound

Hi idcidc,
Would you be willing to publish the full schematic and PCB files for the daughter board? Also, can it be implemented with a simple perfboard and through-hole components?
by fd_
Thu Dec 10, 2020 3:07 pm
Forum: General discussion
Topic: How to label those tiny micro sd cards?
Replies: 46
Views: 26779

Re: How to label those tiny micro sd cards?

Thought I'd share my idea as well: I've built a simple device from an Arduino Nano, a microSD interface and a small display as a solution to this problem. It loads the label from a text file named label.txt on the boot partition. The Arduino library I use can only read FAT32 partitions, but luckily...
by fd_
Thu Dec 10, 2020 1:21 pm
Forum: General discussion
Topic: How to label those tiny micro sd cards?
Replies: 46
Views: 26779

Re: How to label those tiny micro sd cards?

Thought I'd share my idea as well: I've built a simple device from an Arduino Nano, a microSD interface and a small display as a solution to this problem. It loads the label from a text file named label.txt on the boot partition. The Arduino library I use can only read FAT32 partitions, but luckily ...
by fd_
Sun Oct 04, 2020 7:40 pm
Forum: Beginners
Topic: Unable to get USB to Ethernet adapter to work on pi
Replies: 14
Views: 553

Re: Unable to get USB to Ethernet adapter to work on pi

AFAICT, there isn‘t any trace of an attached Ethernet adapter in any of your listings at all. It would be very helpful to mention what Ethernet adapter you‘re trying to use (maybe pictures of it), and what chipset it uses (can be found e.g. with lsusb on a computer that does recognize the adapter).
by fd_
Tue Jul 21, 2020 8:56 pm
Forum: Compute Module
Topic: Rare comms failure with enc28j60 and compute module "netdev watchdog: eth0 ("enc28j60"): transmit queue 0 timed out"
Replies: 29
Views: 5824

Re: Rare comms failure with enc28j60 and compute module "netdev watchdog: eth0 ("enc28j60"): transmit queue 0 timed out"

5.4 kernels seem to be affected as well: https://github.com/raspberrypi/linux/issues/3702
Haven’t tried it with a 5.4 kernel myself because my image is highly customized. Will upgrade eventually, though that doesn’t fix this particular problem as proven by the issue report on GitHub.

Go to advanced search