Go to advanced search

by aroman_ro
Tue Jun 04, 2019 1:18 pm
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

The panel is on DSI1.

The sda 1 and scl 1 are connected as they should, on gpio0 and 1.
There is also a reset line that is connected to gpio2.

The touch also has connected gpio6 and gpio7 for irq and reset.
by aroman_ro
Mon Jun 03, 2019 3:42 pm
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

I wish I would have more info on that panel, but I don't have it :( The 'tears' do not occur with the same frequency, they seem to be cpu%-related. I managed to put a huge back porch (220 or so), with that setting the tearing occurs seldom and it's not so big, so I guess until I'll figure it out it ...
by aroman_ro
Tue May 21, 2019 2:40 pm
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

My guess for this is that the horizontal (from the behaviour) timings are off. I tried to change them a lot (as in a LOT, hsync reduced 10x, for example), which I not tried before, and I managed to get better results. It's quite cumbersome, trial and error :( Now I have another problem: how to calcu...
by aroman_ro
Mon May 20, 2019 1:56 pm
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

With kms, I still have some issues, I don't know if it's from what I implemented, or from some other plece: some tearing effect occurs from time to time. I played a little with timing and flags, but although some settings seem to be better than others, I cannot get rid of that annoying effect (the i...
by aroman_ro
Thu May 16, 2019 7:39 pm
Forum: Other programming languages
Topic: Run Matlab Code on Raspberry Pi
Replies: 3
Views: 834

Re: Run Matlab Code on Raspberry Pi

On linux, free alternatives are Octave https://www.gnu.org/software/octave/ and Scilab https://www.scilab.org/.
by aroman_ro
Thu May 16, 2019 2:48 pm
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

I looked some more into it, seems to 'probe' the module all right, but then it does not prepare it. Where I would expect a 'Preparing!' there is this line: [ 4.974773] [drm] kms: can't enable cloning when we probably wanted to. This is what dmesg looks like with kms (where it works): [ 5.059818] vc4...
by aroman_ro
Thu May 16, 2019 1:31 pm
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

Thank you a lot! I'll give up fkms for now.
by aroman_ro
Thu May 16, 2019 12:49 pm
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

I don't know... just to have it working with both, I suppose. I also expected more performance from the 'firmware' one, for some reason.
by aroman_ro
Thu May 16, 2019 11:37 am
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

It works perfectly with the kms driver but not with fkms :(

@6by9, you seem to know a lot in this area, could you please offer some hints about why would that happen?
by aroman_ro
Wed May 15, 2019 6:26 pm
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

I added here a couple of comments:

https://github.com/raspberrypi/linux/issues/2855

There is a good chance that the code will go open source.
by aroman_ro
Wed May 15, 2019 11:29 am
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

I have it working! Only the display (that is, no touch for now) but a single line in the overlay did the trick:

Code: Select all

power-domains = <&power 18>;
by aroman_ro
Mon May 13, 2019 6:17 pm
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

I don't exactly know what I'm doing there... with the old kernel it appeared to 'work', that is, I got also probing, an attempt to reset the panel and the failed attempt to send the dsi commands. WIth the new kernel that didn't work anymore. I changed the dts with this: /dts-v1/; /plugin/; / { compa...
by aroman_ro
Mon May 13, 2019 4:07 pm
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

And you were right about probing, I modified vc4_dsi.c and indeed if fails where you assumed. Now I'll have to find why, my driver at least enters the probing function and I think it completes ok, but probably something there is not right for vc4.
by aroman_ro
Mon May 13, 2019 2:44 pm
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

Yes, you are right. I did so many things in such a short time that I didn't recall correctly. Checked again and indeed that error does not appear if I don't load the driver. Thank you for the info, I think it will prove valuable! As for GPL, indeed there would be a lot of workarounds to keep the dri...
by aroman_ro
Mon May 13, 2019 1:12 pm
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with custom display problems

At that point the overlay for my driver or the panel driver do not matter, I get that error even if I don't load the panel driver. Kernel info: Linux raspberrypi 4.19.40-v7+ #2 SMP Mon May 13 15:33:26 EEST 2019 armv7l GNU/Linux I've got it from this repository: https://github.com/raspberrypi/linux T...
by aroman_ro
Mon May 13, 2019 1:01 pm
Forum: Compute Module
Topic: CM3 Plus Minimum Linux Kernel version requirement
Replies: 5
Views: 644

Re: CM3 Plus Minimum Linux Kernel version requirement

I think you can get them also from here:

https://github.com/raspberrypi/firmware

You might want the 'stable' branch?
by aroman_ro
Mon May 13, 2019 10:18 am
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with 7" display on DSI0

Switched to 4.19 and it's worse:

Code: Select all

[    4.705536] vc4-drm soc:gpu: failed to bind 3f700000.dsi (ops vc4_dsi_ops [vc4]): -517
[    4.708654] vc4-drm soc:gpu: master bind failed: -517
by aroman_ro
Mon May 13, 2019 9:18 am
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

Re: CM3+ with 7" display on DSI0

Thank you! I didn't even know which branch is the best for using that driver... I'll switch to 4.19 right away.
by aroman_ro
Mon May 13, 2019 9:05 am
Forum: Compute Module
Topic: CM3+ with custom display problems
Replies: 25
Views: 2937

CM3+ with custom display problems

Hi, (MOD. .Split off and renamed thread) I have a somehow similar problem, I thought that I should post it here instead of opening a new topic. I have a 7'' panel connected to CM3 on a dev IO board, on dsi1. It's not the official one, but a 4 lanes dsi display. I wrote a device driver for it, guided...
by aroman_ro
Mon May 06, 2019 2:08 pm
Forum: Compute Module
Topic: Cannot flash eMMC anymore...
Replies: 0
Views: 214

Cannot flash eMMC anymore...

I'm using CM3 the dev board. I tried to make it boot from the network (I already did that with a pi 3) and I think I managed to brick the device. It was booting from the flash nicely, but after a software update, it refused to boot. Of course, I tried to access the eMMC to flash a new image, but I c...

Go to advanced search