Go to advanced search

by 6by9
Wed Jul 28, 2021 8:48 am
Forum: Official Foundation Display
Topic: Dual Raspberry Pi Official Displays
Replies: 5
Views: 141

Re: Dual Raspberry Pi Official Displays

Gavinmc42 wrote:
Wed Jul 28, 2021 1:53 am
CM4 has two DSI, will it work on that one?
Not with the firmware drivers (it only supports one DSI instance at a time), but in theory with KMS - I'm working on it.
by 6by9
Wed Jul 28, 2021 8:42 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CM4 concurrent access to multiple I2C busses
Replies: 6
Views: 125

Re: CM4 concurrent access to multiple I2C busses

Are you reading, writing, or both?

All the I2C controllers share one common interrupt on the ARM, but that should be level triggered so multiple devices interrupting should all be serviced in turn.
by 6by9
Tue Jul 27, 2021 2:42 pm
Forum: Device Tree
Topic: Problems with overlay for TI TLC59116
Replies: 19
Views: 396

Re: Problems with overlay for TI TLC59116

so, big question is which code leads the driver to discard/hide address 0x68! https://www.ti.com/lit/ds/symlink/tlc59116.pdf 9.5.1ModeRegister1 (MODE1) Bit 0 ALLCALL R/W 0 Device does not respond to LED All Call I2C bus address. 1 Device responds to LED All Call I2C bus address. https://elixir.boot...
by 6by9
Tue Jul 27, 2021 2:20 pm
Forum: OpenMAX
Topic: mmal callback what happends on overflow?
Replies: 2
Views: 60

Re: mmal callback what happends on overflow?

H264 encode via a connection from the camera component? video_encode will not drop frames. It'll fill internal FIFOs, and eventually get to a point where it refuses to accept input (all input buffers are in use typically). If the camera component is starved of buffers to store the sensor's data in b...
by 6by9
Tue Jul 27, 2021 1:14 pm
Forum: Device Tree
Topic: Problems with overlay for TI TLC59116
Replies: 19
Views: 396

Re: Problems with overlay for TI TLC59116

I've just tried your overlay with the address amended to 0x60 and CONFIG_LEDS_TLC591XX=m

Code: Select all

[    7.215077] tlc591xx: probe of 10-0060 failed with error -121
which is expected as I don't have the module connected. lsmod also lists leds_tlc591xx as being loaded.
So all looks fine from that perspective.
by 6by9
Tue Jul 27, 2021 8:13 am
Forum: Ubuntu
Topic: HQ Cam on ubuntu 20.04
Replies: 7
Views: 246

Re: HQ Cam on ubuntu 20.04

If you insert dtoverlay=imx477 then you will almost certainly need to use libcamera to get usable images. The imx477 overlay delivers raw Bayer images only. If you remove that, then check you have "start_x=1" in config.txt. My memory says that the 2nd stage bootloader does not support incl...
by 6by9
Tue Jul 27, 2021 8:09 am
Forum: Device Tree
Topic: Problems with overlay for TI TLC59116
Replies: 19
Views: 396

Re: Problems with overlay for TI TLC59116

pi@raspberrypi:~ $ sudo vcdbg log msg Failed to allocate -201253077 bytes for message buffer You've got FKMS or KMS loaded. There is 16MB of RAM that the ARM can't get to but the VPU can. There's a custom ioctl in bcm2708_fb to allow a DMA memcpy of that region for reading logs and other data. so w...
by 6by9
Tue Jul 27, 2021 7:22 am
Forum: Device Tree
Topic: Problems with overlay for TI TLC59116
Replies: 19
Views: 396

Re: Problems with overlay for TI TLC59116

Code: Select all

pi@raspberrypi:~ $ sudo vcdbg log msg
Failed to allocate -201253077 bytes for message buffer
You've got FKMS or KMS loaded. There is 16MB of RAM that the ARM can't get to but the VPU can. There's a custom ioctl in bcm2708_fb to allow a DMA memcpy of that region for reading logs and other data.
by 6by9
Tue Jul 27, 2021 7:20 am
Forum: Device Tree
Topic: Problems with overlay for TI TLC59116
Replies: 19
Views: 396

Re: Problems with overlay for TI TLC59116

Have you got proper pull-ups/downs on the A3-A0 address lines of the chip? How are they pulled? Reading the datasheet 0x68 appears to be the default all call address, and 0x6b the s/w reset address. At power-up, LED All Call I2C bus address is enabled. TLC59116 sends an ACK when D0h (R/W = 0) or D1h...
by 6by9
Mon Jul 26, 2021 8:26 pm
Forum: Compute Module
Topic: CM4, custom MIPI TFT display connected to DISP1 DSI interface
Replies: 14
Views: 336

Re: CM4, custom MIPI TFT display connected to DISP1 DSI interface

My working life seems to be swearing at DSI panels at present.
I'm working my way through various DSI quirks at present with the help of the new analyser, but it's not helping that DSI support in the Linux kernel is patchy and undefined in places :-(
by 6by9
Mon Jul 26, 2021 8:11 pm
Forum: Compute Module
Topic: CM4, custom MIPI TFT display connected to DISP1 DSI interface
Replies: 14
Views: 336

Re: CM4, custom MIPI TFT display connected to DISP1 DSI interface

My first problem is that i do not really understand how the DSI interface is "activated" and the panel-sitronix-st7701.c driver will/is do/ing something (probing etc.), i can not see something related to DSI in the logs... So current status so far: 0. Display wired to DISP1 1. I have this...
by 6by9
Mon Jul 26, 2021 7:59 pm
Forum: General discussion
Topic: Why does RpiOS use Ubuntu's kernel? [IT DOESN'T]
Replies: 29
Views: 814

Re: Why does RpiOS use Ubuntu's kernel? [IT DOESN'T]

The instructions for local building are only for 32bit kernels only. 64bit Raspberry Pi OS is still beta. The cross compile instructions do differentiate between 32 and 64bit builds https://www.raspberrypi.org/documentation/linux/kernel/building.md For all 32-bit builds make ARCH=arm CROSS_COMPILE=a...
by 6by9
Mon Jul 26, 2021 7:31 am
Forum: Compute Module
Topic: CM4 TWO Ethernet Port
Replies: 9
Views: 394

Re: CM4 TWO Ethernet Port

Devices tested on a CM4 - https://pipci.jeffgeerling.com/#network ... i-adapters

Intel I340-T4 PCIe x4 4-port Gigabit Network Adapter has been shown to work. As above, whether you can buy the raw chips is a different question.
by 6by9
Mon Jul 26, 2021 7:26 am
Forum: General discussion
Topic: What is the exact architecture of my raspberry pi?
Replies: 1
Views: 176

Re: What is the exact architecture of my raspberry pi?

1-4x Symmetrical Multiprocessing (SMP) within a single processor cluster, and multiple coherent SMP processor clusters through AMBA 4 technology ISA Support AArch32 for full backward compatibility with Armv7 AArch64 for 64-bit support and new architectural features For simplicity in maintaining a s...
by 6by9
Sun Jul 25, 2021 7:53 pm
Forum: Graphics programming
Topic: pi4 tvout with real kms
Replies: 7
Views: 212

Re: pi4 tvout with real kms

HDMI will be disabled currently by adding composite=1 due to the list of fragments it disables - https://github.com/raspberrypi/linux/blob/rpi-5.10.y/arch/arm/boot/dts/overlays/vc4-kms-v3d-pi4-overlay.dts#L180 I think you can drop it to composite = <0>, "!16", <0>, "=21", <0>, &q...
by 6by9
Sun Jul 25, 2021 6:19 pm
Forum: Graphics programming
Topic: pi4 tvout with real kms
Replies: 7
Views: 212

Re: pi4 tvout with real kms

VEC support was merged via https://github.com/raspberrypi/linux/pull/4240 (April 20th) and https://github.com/raspberrypi/linux/pull/4241 (15th July), so anything below 5.10.50 won't have those fixes.
by 6by9
Sun Jul 25, 2021 3:40 pm
Forum: Graphics programming
Topic: pi4 tvout with real kms
Replies: 7
Views: 212

Re: pi4 tvout with real kms

Composite is currently disabled by default with vc4-kms-v3d on Pi4. Name: vc4-kms-v3d-pi4 Info: Enable Eric Anholt's DRM VC4 HDMI/HVS/V3D driver for Pi4. Usage: dtoverlay=vc4-kms-v3d-pi4,<param> Params: cma-512 CMA is 512MB cma-448 CMA is 448MB cma-384 CMA is 384MB cma-320 CMA is 320MB cma-256 CMA i...
by 6by9
Sun Jul 25, 2021 3:31 pm
Forum: Troubleshooting
Topic: CM3+ screen rotation for LT070ME05000 with LibreELEC
Replies: 5
Views: 221

Re: CM3+ screen rotation for LT070ME05000 with LibreELEC

yes, noted that you've rotated the screen to landscape already. You should get rid of the composite as you can't use it (due to max desktop of 2048x2048). You could go for composite above/below DSI and remain under the 2048x2048 limit, but it's probably not wanted. All kodi screens (or skins) are p...
by 6by9
Sun Jul 25, 2021 9:03 am
Forum: Camera board
Topic: Extending HQ Pi Cam
Replies: 5
Views: 205

Re: Extending HQ Pi Cam

CSI2 is designed for up to about 30cm. Anything more is chance as to whether it works. Some people have had it working at a couple of metres when using high quality HDMI leads and adapters (HDMI happens to have the right number of screened differential pairs), but nowhere near 100'. IP is your best ...
by 6by9
Sun Jul 25, 2021 7:40 am
Forum: Troubleshooting
Topic: Pi 4 cannot support a 4094x2400@30Hz display well
Replies: 4
Views: 183

Re: Pi 4 cannot support a 4094x2400@30Hz display well

Please provide the raw EDID for the display.
4094x2400@30 should be below the maximum supported pixel rate of 594MHz, but there are no guarantees over that. The firmware won't support it without a custom timing mode, but vc4-kms-v3d and vc4-fkms-v3d both should give it a good go.
by 6by9
Sat Jul 24, 2021 9:25 pm
Forum: Troubleshooting
Topic: CM3+ screen rotation for LT070ME05000 with LibreELEC
Replies: 5
Views: 221

Re: CM3+ screen rotation for LT070ME05000 with LibreELEC

Support for any DSI display other than the Pi 7" one is a Linux kernel issue, not firmware. LT070ME05000 is supported in our standard kernels by adding "dtoverlay=vc4-kms-v3d" and "dtoverlay=vc4-kms-dsi-lt070me05000", and works fine (I have one). Check the overlay for detail...
by 6by9
Sat Jul 24, 2021 8:51 pm
Forum: Camera board
Topic: Bit depth of JPEG and PNG Images From PiCam v2.1?
Replies: 6
Views: 222

Re: Bit depth of JPEG and PNG Images From PiCam v2.1?

That formula gives you the uncompressed size for the image. width * height * bpp / 8 (bits per byte), and optionally convert to kB or MB. There are some theoretical images that will result in no compression through any codec, but reality is that they are fairly artificial. Assuming no compression wo...
by 6by9
Sat Jul 24, 2021 8:32 pm
Forum: Device Tree
Topic: Problems with overlay for TI TLC59116
Replies: 19
Views: 396

Re: Problems with overlay for TI TLC59116

Let's start with a few simple questions: 1. Which GPIO pins is the device connected to? GPIO28 and GPIO29; i'm loading the disp1-cam1 dt-blob to https://datasheets.raspberrypi.org/cmio/dt-blob-disp1-cam1.dts to configure GPIO for I2C0. Need that device on the same bus as DSI interface is configured...
by 6by9
Sat Jul 24, 2021 7:55 pm
Forum: General discussion
Topic: Raspberry Pi 64 missing EGL_DISPMANX_WINDOW_T
Replies: 4
Views: 350

Re: Raspberry Pi 64 missing EGL_DISPMANX_WINDOW_T

EGL_DISPMANX_WINDOW_T only applies to the old GLES driver found on Pi0-3. It does not apply to Pi4, nor 64bit systems which will be running the ARM side GL stack (part of vc4-kms-v3d / vc4-fkms-v3d).

You can bind GL to DRM rather than X - have a look at kms_cube or similar.
by 6by9
Sat Jul 24, 2021 10:32 am
Forum: Graphics, sound and multimedia
Topic: Is hardware accelerated playback possible with v4l2m2m and ffmpeg/ffplay?
Replies: 2
Views: 191

Re: Is hardware accelerated playback possible with v4l2m2m and ffmpeg/ffplay?

The decoder currently only supports producing YU12, YV12, NV12, NV12, and RGB565. H264 (and H263, MPEG4, MPEG2, VC-1, and MJPEG) all encode YUV format data, so any conversion to RGB is a secondary step. RGB565 will look quite blocky, so is best avoided. The hardware on the Pi4 will quite happily ren...

Go to advanced search