Go to advanced search

by 6by9
Mon Sep 25, 2017 8:53 am
Forum: Device Tree
Topic: How do I modify the dts file on raspbeery pi 3 B?
Replies: 33
Views: 984

Re: How do I modify the dts file on raspbeery pi 3 B?

You said that they're part of the base SoC, hence being in the main DT files instead of an overlay. You mean I'm going to do my device tree information in main DT files ,not overlay.Specifically, which DTS file should I change in this case?What should I do?Can you be more specific? In this link htt...
by 6by9
Sat Sep 23, 2017 9:19 am
Forum: Compute Module
Topic: CM3 and vc4 driver
Replies: 3
Views: 131

Re: CM3 and vc4 driver

I claim no real expertise on the state of the VC4 and kms drivers, but it'd be worth trying fkms with hdmi to see what the refresh rate is there. Mainly to confirm if it is the display or drivers at fault.
It doesn't need to be on a cm, a normal Pi3 should be close enough.
by 6by9
Sat Sep 23, 2017 8:17 am
Forum: C/C++
Topic: Accelerated H.264 using ffmpeg
Replies: 5
Views: 221

Re: Accelerated H.264 using ffmpeg

Good news. I'm glad the comments helped point you in the right direction. The thing with decoder flags being needed sounds odd, but may be ffmpeg incorrectly implementing IL. If the encoder needs to produce a frame that is bigger than the defined buffer size then it will create multiple buffers and ...
by 6by9
Sat Sep 23, 2017 7:30 am
Forum: Compute Module
Topic: CM3 and vc4 driver
Replies: 3
Views: 131

Re: CM3 and vc4 driver

I don't recall the vc4-kms-v3d driver having any support for dpi, and DSI is only partial.
If you use the vc4-fkms-v3d (fake kms) driver instead then the displays are still driven by the firmware (which does support dpi and DSI) with the VC4 driver feeding it.
by 6by9
Fri Sep 22, 2017 10:54 am
Forum: Device Tree
Topic: How do I modify the dts file on raspbeery pi 3 B?
Replies: 33
Views: 984

Re: How do I modify the dts file on raspbeery pi 3 B?

Can I point you back to the https://github.com/6by9/linux/tree/ev76c50 branch that I'd linked to before? OK that only has the V2 driver, but it has all the base DT changes for the csi1 and csi0 nodes done. They're part of the base SoC, hence being in the main DT files instead of an overlay, and you'...
by 6by9
Thu Sep 21, 2017 3:09 pm
Forum: Compute Module
Topic: SD Card on computer module V3
Replies: 1
Views: 79

Re: SD Card on computer module V3

The same hardware block connects to either the eMMC on a CM3, or to the SD card connections on the CM3L. You're better off looking at the schematic page 4. On the CM3 U7 (eMMC) and R25 are fitted, and R12,17,18,19,16, 24 are NOT fitted which would take those signals down to the SODIMM connector. On ...
by 6by9
Thu Sep 21, 2017 3:00 pm
Forum: General discussion
Topic: Camera LED is controlled by BCM GPIO #32 - what other internal pins are there?
Replies: 4
Views: 153

Re: Camera LED is controlled by BCM GPIO #32 - what other internal pins are there?

Combine the peripheral datasheet page 102 with the dt-blob.dts file that the firmware uses, and you've got a pretty good list. Some devices that only the Linux kernel touches will only be configured in the kernel device tree files, but those are the exception. The basic rule of thumb is that all of ...
by 6by9
Thu Sep 21, 2017 12:00 pm
Forum: Compute Module
Topic: Flickering HDMI on custom CM3 board
Replies: 21
Views: 474

Re: Flickering HDMI on custom CM3 board

I believe the hotplug signal is actually only read once and it's value is remembered. For my own knowledge I've checked this. Without hdmi_force_hotplug=1 the HPD line is polled (didn't notice the rate) and tvservice will respond to HPD events. You can monitor that with tvservice -M. With hdmi_forc...
by 6by9
Thu Sep 21, 2017 10:25 am
Forum: Device Tree
Topic: How do I modify the dts file on raspbeery pi 3 B?
Replies: 33
Views: 984

Re: How do I modify the dts file on raspbeery pi 3 B?

According to what you said in the post above,am I the first to transplant the The Unicam driver into my kernel? Because it is the CSI2 recevier.This unicam driver should support the MIPI CSI receiver? I have it running here with 3 different sources (TC358743 HDMI to CSI2 bridge, ADV7282M analogue v...
by 6by9
Thu Sep 21, 2017 9:19 am
Forum: C/C++
Topic: Accelerated H.264 using ffmpeg
Replies: 5
Views: 221

Re: Accelerated H.264 using ffmpeg

Not just bitrate. It sets the limits on bitrate, pixels (luma samples) per frame (ie resolution), macroblocks per frame (again linked to resolution as a macroblock is 16x16), pixels per second (combined resolution and framerate), and macroblocks per second (linked to resolution and framerate). It al...
by 6by9
Wed Sep 20, 2017 9:19 pm
Forum: General discussion
Topic: RASPBIAN STRETCH I2C interface broken
Replies: 13
Views: 617

Re: RASPBIAN STRETCH I2C interface broken

I was not aware of the I2C clock-stretching bug ( http://www.advamation.com/knowhow/raspberrypi/rpi-i2c-bug.html ), the bug looks to be 4 years old so it may be fixed on the RPi3 I am using, however if not this may be the problem and I was just lucky on the previous driver. I have a few other jobs ...
by 6by9
Wed Sep 20, 2017 10:38 am
Forum: Compute Module
Topic: Flickering HDMI on custom CM3 board
Replies: 21
Views: 474

Re: Flickering HDMI on custom CM3 board

Hang on, AP2331W isn't the switch itself, it's the current limiter for the HDMI 5V rail (H5V). The connector/cable connects that (via HDMI pin 18) to the HDMI_HPD line (pin 19). I guess that leaves HDMI_HPD pulled down via the 100k resistor inside the ESD5384 which should be safe but not the cleanes...
by 6by9
Wed Sep 20, 2017 10:00 am
Forum: General discussion
Topic: Dual camera in CM3
Replies: 6
Views: 228

Re: Dual camera in CM3

When I downloaded the dualcam.dts file it got saved as an audio file and when I compiled it using the next command it said no such file or directory. DTS can be used for Digital Theatre Sound, a competitor to Dolby Digital. This is where your operating system is trying to be clever in identifying t...
by 6by9
Wed Sep 20, 2017 6:29 am
Forum: General discussion
Topic: RASPBIAN STRETCH I2C interface broken
Replies: 13
Views: 617

Re: RASPBIAN STRETCH I2C interface broken

wiringPi is also abusing the SMBus calls for I2C as the implementation of wiringPiI2CRead is int wiringPiI2CRead (int fd) { union i2c_smbus_data data ; if (i2c_smbus_access (fd, I2C_SMBUS_READ, 0, I2C_SMBUS_BYTE, &data)) return -1 ; else return data.byte & 0xFF ; } You want the I2C_SLAVE ioctl, and ...
by 6by9
Tue Sep 19, 2017 8:10 pm
Forum: C/C++
Topic: Accelerated H.264 using ffmpeg
Replies: 5
Views: 221

Re: Accelerated H.264 using ffmpeg

Level 5.2 sounds rather ambitious, and is certainly above the capabilities of the hardware. And no way is it needed for VGA unless you're at a stupidly fast framerate.
Sorry, I haven't got any insights into h264_omx otherwise.
by 6by9
Tue Sep 19, 2017 8:05 pm
Forum: OpenMAX
Topic: Reading an image using OMX.broadcom.image_read
Replies: 3
Views: 1316

Re: Reading an image using OMX.broadcom.image_read

image_read isn't going to work, and I'm surprised if it is actually in the build. (I'll look at removing it tomorrow if it is). When the chip was used as a co-processor there was a mode where it could also act as the main processor too, and that is the mode that image_read (and image_write) were int...
by 6by9
Tue Sep 19, 2017 6:42 pm
Forum: Compute Module
Topic: Flickering HDMI on custom CM3 board
Replies: 21
Views: 474

Re: Flickering HDMI on custom CM3 board

Have you enabled the OpenGL driver or similar? That could account for two things trying to set up the HVS and pixelvalves driving the HDMI. That doesn't explain why it would work in a CMIO though. Which state have you left the hotplug line in? Pulled high or low? If the CM is thinking it's got a dis...
by 6by9
Tue Sep 19, 2017 6:33 pm
Forum: General discussion
Topic: Dual camera in CM3
Replies: 6
Views: 228

Re: Dual camera in CM3

Then I was asked to do the following: First download the dt-blob-dualcam.dts file. Next compile it with : dtc -I dts -O dtb -o dt-blob-dualcam.dtb dt-blob-dualcam.dts Copy th generated dt-blob-dualcam.dtb file in the /boot/overlays folder: cp dt-blob-dualcam.dtb /boot/overlays Last step tell the sy...
by 6by9
Tue Sep 19, 2017 3:18 pm
Forum: Advanced users
Topic: Which kernel?
Replies: 16
Views: 544

Re: Which kernel?

A-ha! dmesg actually shows the brcmfmac croaks. Too bad I don't know how to fix it :-\ [ 2.772358] systemd[1]: Starting Remote File Systems (Pre). [ 2.975170] fuse init (API version 7.26) [ 3.006400] i2c /dev entries driver [ 3.252127] systemd-udevd[121]: starting version 215 [ 4.100458] EXT4-fs (m...
by 6by9
Tue Sep 19, 2017 3:17 pm
Forum: Advanced users
Topic: Which kernel?
Replies: 16
Views: 544

Re: Which kernel?

I wonder if make bcm2709_defconfig actually does create valid "default config" for >4.9.y kernels. Also I wonder if I'm not supposed to patch in the couple of thousands of patches 4.9.y has that the newer kernel versions do not. bcm2709_defconfig does create a valid build, so I suspect that it is p...
by 6by9
Tue Sep 19, 2017 2:12 pm
Forum: Device Tree
Topic: How do I modify the dts file on raspbeery pi 3 B?
Replies: 33
Views: 984

Re: How do I modify the dts file on raspbeery pi 3 B?

Literally last week I sent the relevant kernel driver to the kernel mailing list to be reviewed such that the camera driver and receiver peripheral move to the ARM. All of that code is on the branch that I pointed you at, You mean the link? http://www.spinics.net/lists/linux-media/msg116984.html Cl...
by 6by9
Tue Sep 19, 2017 1:48 pm
Forum: Advanced users
Topic: Which kernel?
Replies: 16
Views: 544

Re: Which kernel?

Yes, that's the instructions I followed except I of course add -b <branchname> to get rpi-4.12.y or rpi-4.13.y branch instead of the rpi-4.9.y branch. It does look like that it's not working with 4.9.y kernel patched with BFQ and writeback throttling either. So perhaps the BFQ is killing wifi for s...
by 6by9
Tue Sep 19, 2017 1:24 pm
Forum: Camera board
Topic: Building my own Camera Module
Replies: 3
Views: 164

Re: Building my own Camera Module

Both the above posts are correct - Raspberry Pi Trading are not set up for adding random camera drivers to the firmware. I am in the process of pushing a V4L2 driver for the CSI2 receiver to the mainline kernel, and that could receive the data from your IMX258 happily. The ISP isn't open though, and...
by 6by9
Tue Sep 19, 2017 12:43 pm
Forum: Advanced users
Topic: Which kernel?
Replies: 16
Views: 544

Re: Which kernel?

Looks like the kernels above 4.9.y are not really fully functional.. I had 4.12.y compiled and booting ok but I noticed bluetooth and wifi do not work, also the desktop menubar would freeze after a bit. Curious as jamesh has 4.13.0 running here and quite happily connecting to wifi. IIRC Either Open...
by 6by9
Tue Sep 19, 2017 11:11 am
Forum: Camera board
Topic: Pi Zero W Camera Issues
Replies: 6
Views: 295

Re: Pi Zero W Camera Issues

Ideally test against another Pi, but that sounds like a hardware problem in the sensor itself.
The comms link to the Pi has CRCs and the like on the data, so generally if that is corrupted then you get nothing through at all.

Go to advanced search