Go to advanced search

by 6by9
Tue Aug 03, 2021 8:25 am
Forum: Compute Module
Topic: Camera preview not working
Replies: 1
Views: 19

Re: Camera preview not working

There isn't a 13MPix camera module that is compatible with the firmware camera stack. The HQ camera is 12MPix (imx477), v2 is 8MPix (imx219), and v1 is 5MPix (ov5647). I'm assuming that's a typo for 12MPix (ie HQ camera). raspistill/vid will only put the preview up on the HDMI output, not on any rem...
by 6by9
Tue Aug 03, 2021 6:18 am
Forum: Compute Module
Topic: CM4 very slow from power-on to kernel start time
Replies: 20
Views: 379

Re: CM4 very slow from power-on to kernel start time

one thing ive thought about uboot could configure the mailbox framebuffer, for its own logs/splash but then pass the address of that framebuffer to linux as a simple framebuffer that is tied to the (f)kms nodes in DT linux will use the simple-framebuffer initially, until it finds the kms modules on...
by 6by9
Tue Aug 03, 2021 6:13 am
Forum: General discussion
Topic: How to use h264_omx on rpi4 with ubuntu?
Replies: 2
Views: 79

Re: How to use h264_omx on rpi4 with ubuntu?

Ubuntu is a 64bit distribution, and OpenMax IL is not supported on 64bit.
You should be able to use h264_v4l2m2m instead.
by 6by9
Tue Aug 03, 2021 6:12 am
Forum: General discussion
Topic: OMX Player different video in each corner of screen
Replies: 4
Views: 123

Re: OMX Player different video in each corner of screen

Add an & to the end of each command to tell the system to run them in the background.

Code: Select all

lxterminal -e omxplayer --win 0,0,640,480 --loop /home/pi/Desktop/SHGMono.avi &
lxterminal -e omxplayer --win 0,640,640,480 --loop /home/pi/Desktop/SOLDERING.mp4 &
by 6by9
Sun Aug 01, 2021 8:39 pm
Forum: Graphics, sound and multimedia
Topic: mmal_queue_get returns an area too small to hold YUV image
Replies: 2
Views: 76

Re: mmal_queue_get returns an area too small to hold YUV image

mmal_queue_get just retrieves a buffer from a pool. If you've created the pool with incorrect parameters then it'll be of the wrong size.

https://github.com/6by9/mmal_encode_example
by 6by9
Sun Aug 01, 2021 8:22 pm
Forum: Troubleshooting
Topic: CM3+ screen rotation for LT070ME05000 with LibreELEC
Replies: 7
Views: 423

Re: CM3+ screen rotation for LT070ME05000 with LibreELEC

OK, this way I don't think that this rotation staff will be solved in the near future. What if I use a HDMI-to-DSI bridge? e.g.: https://www.displaymodule.com/products/display-adapter-for-hdmi-to-mipi-dsi?variant=31902301421666 This way, I think HDMI can be easily rotated within config,txt, am I ri...
by 6by9
Sun Aug 01, 2021 3:54 pm
Forum: Camera board
Topic: Does the HQ Camera Need Extra Setup?
Replies: 4
Views: 115

Re: Does the HQ Camera Need Extra Setup?

HermannSW wrote:
Sat Jul 31, 2021 9:01 pm
Not sure whether enabling camera automatically enables I2C as well -- I2C needs to be enabled for camera to work.
No it doesn't when being driven from the firmware.
by 6by9
Sun Aug 01, 2021 8:38 am
Forum: Device Tree
Topic: Two ADV7280M on One I2C bus
Replies: 3
Views: 122

Re: Two ADV7280M on One I2C bus

Only video0 and video2 are assigned to ADV7280M. What are video1 and video3 for? Thank you again. CSI2 supports multiple logical data streams over a single link, identified via a virtual channel field and a data type. This is typically used by image sensors to provide the sensor configuration along...
by 6by9
Sat Jul 31, 2021 6:25 pm
Forum: Device Tree
Topic: Two ADV7280M on One I2C bus
Replies: 3
Views: 122

Re: Two ADV7280M on One I2C bus

Any use of dt-blob.bin is invalid when using the kernel drivers to control the hardware. They only apply when the firmware is trying to control an ov5647, imx219, or imx477 sensor. You're problem is that ADV7280 and family use multiple I2C addresses, as documented in the "register maps" se...
by 6by9
Sat Jul 31, 2021 7:59 am
Forum: Advanced users
Topic: What is the default pin configuration in dt-blob.bin for pins 2 and 3, i2c1?
Replies: 3
Views: 164

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

LTolledo wrote:
Fri Jul 30, 2021 9:13 pm
pin 2 is 5v
pin 3 is GPIO2/SDA1 (I2C1)

maybe you mean pin 3 and pin 5?
In the dt-blob gpios are referred to as pins.
by 6by9
Fri Jul 30, 2021 1:21 pm
Forum: Camera board
Topic: libcamera vs raspiraw performance
Replies: 6
Views: 179

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

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: 6
Views: 179

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

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

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: 3
Views: 164

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

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

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

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

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: 23
Views: 1167

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: 3
Views: 192

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: 23
Views: 1167

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

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: 23
Views: 1167

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

Go to advanced search