Go to advanced search

by 6by9
Fri Jul 30, 2021 1:21 pm
Forum: Camera board
Topic: libcamera vs raspiraw performance
Replies: 5
Views: 116

Re: libcamera vs raspiraw performance

Raw images would normally be Bayer. Do you really mean Bayer when you say you want raw images? If so then white balance is not applicable as that is part of the processing to produce YUV/RGB images. Manual exposure and gain are available through /dev/video0 when accessing the sensors directly. Add &...
by 6by9
Fri Jul 30, 2021 1:11 pm
Forum: General discussion
Topic: Compute Module 4, IO Board, SenseHat and Camera - SenseHat does not work when camera enabled
Replies: 10
Views: 354

Re: Compute Module 4, IO Board, SenseHat and Camera - SenseHat does not work when camera enabled

Hi and thank you for your detailed reply. I'm interested to know more about this so that I can understand in a bit more detail what the changes mean and why this works. Are you able to give a bit of a further explanation? For example, how does the reading of the hat EEPROMs work, and what changes d...
by 6by9
Fri Jul 30, 2021 11:13 am
Forum: Camera board
Topic: libcamera vs raspiraw performance
Replies: 5
Views: 116

Re: libcamera vs raspiraw performance

Raspiraw doesn't control the ISP in any meaningful sense. It configures a very basic pipeline so that we can see some form of picture, but there's no AGC/AE/AWB, lens shading, or other control algorithms running. It was a test app written for those who wanted to get the raw frames from a sensor for ...
by 6by9
Fri Jul 30, 2021 10:19 am
Forum: General discussion
Topic: Compute Module 4, IO Board, SenseHat and Camera - SenseHat does not work when camera enabled
Replies: 10
Views: 354

Re: Compute Module 4, IO Board, SenseHat and Camera - SenseHat does not work when camera enabled

The base dt-blob has changed to enable reading HAT EEPROMs on CM4, but the camera variants haven't. pin_define@ID_SDA { type = "internal"; number = <0>; }; pin_define@ID_SCL { type = "internal"; number = <1>; }; wget https://datasheets.raspberrypi.org/cmio/dt-blob-cam1.dts Open t...
by 6by9
Thu Jul 29, 2021 3:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ILI9486 8bit parallel display
Replies: 2
Views: 239

Re: ILI9486 8bit parallel display

fbtft_device name=ili9486 appears to have been for an SPI connected version of that display, not parallel.
I don't see a driver for that display connected via the parallel interface.
by 6by9
Thu Jul 29, 2021 3:17 pm
Forum: Advanced users
Topic: What is the default pin configuration in dt-blob.bin for pins 2 and 3, i2c1?
Replies: 2
Views: 92

Re: What is the default pin configuration in dt-blob.bin for pins 2 and 3, i2c1?

dt-blob.bin configures hardware that the firmware needs to use, eg the camera and DSI display. i2c1 is generally used by the Linux kernel, and the kernel device tree (generally configured via dtoverlay= or dtparam= lines in config.txt) will handle the pin muxing for those resources. "dtparam=i2...
by 6by9
Thu Jul 29, 2021 6:20 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CM4 concurrent access to multiple I2C busses
Replies: 12
Views: 353

Re: CM4 concurrent access to multiple I2C busses

Does anyone know how to change i2c4 thru i2c6 over to the BCM2708 driver? You look at what the i2c-bcm2708 overlay does (https://github.com/raspberrypi/linux/blob/rpi-5.10.y/arch/arm/boot/dts/overlays/i2c-bcm2708-overlay.dts) and duplicate it for the other ports. The "combine" parameter o...
by 6by9
Wed Jul 28, 2021 8:12 pm
Forum: Graphics, sound and multimedia
Topic: Toslink input to iqaudio DAC
Replies: 2
Views: 77

Re: Toslink input to iqaudio DAC

DAC = Digital to Analogue Converter, so is inherently output and analogue.

There are a couple of sound HATs that have TOSlink input, eg https://www.hifiberry.com/shop/boards/h ... y-digi-io/
by 6by9
Wed Jul 28, 2021 8:48 am
Forum: Official Foundation Display
Topic: Dual Raspberry Pi Official Displays
Replies: 7
Views: 313

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: 12
Views: 353

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: 978

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: 117

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: 978

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: 286

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: 978

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: 978

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: 978

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: 409

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: 409

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: 32
Views: 1019

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: 443

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: 178

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: 254

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: 254

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: 254

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...

Go to advanced search