Go to advanced search

by grimepoch
Tue Apr 30, 2019 8:16 pm
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

Follow up question. Sometimes I notice when I connect to the adv7282 chip, the timing is jittery vertically. If I restart my program which goes through the connection process again, it's fine. It happens VERY rarely, but still happens. Reconnecting a device connected to CVBS does not change it. It's...
by grimepoch
Wed Mar 27, 2019 2:45 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

I got it working, but let me tell you, it was a bizarre path. I have your August 6th clone from last year. If I build it with: make -j4 zImage modules dtbs And install it, video does not work. I verified this 3 times by cloning an old card, building it, then installing, always failed. However, if I ...
by grimepoch
Mon Mar 25, 2019 12:57 pm
Forum: Compute Module
Topic: Complete Lockup/Crash with CM3 Running Stretch and USB Camera
Replies: 12
Views: 2100

Re: Complete Lockup/Crash with CM3 Running Stretch and USB Camera

What I have observed is it isn't only the WiFi adapter, if I have a MIDI device attached and connected, and I have it open, if I remove the device, with 4.14.20, it will lock the whole system as well (completely unresponsive pi). If I use a small hub like what is listed below, the WiFi remove will a...
by grimepoch
Sun Mar 24, 2019 7:09 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

So I was able to restore a version of your code I had on another card, 4.14.59 that you had told me to clone earlier and that appeared to work, but then I moved it over to Ubuntu to write out to other cards and it stopped working. There is something really weird going on with Ubuntu builds. All I ca...
by grimepoch
Sun Mar 24, 2019 5:11 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

Looking at the gdb output, this is where it is stopping. Not sure why this worked for me before but not now. (And it's worked for like a year). Clearly my builds before were not correct, not sure what I was fully grabbing at this point. #0 0x76f68a40 in do_futex_wait ([email protected]=0x76bd5a8c <bul...
by grimepoch
Sat Mar 23, 2019 11:53 pm
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

Follow up question Everything has been running great until I needed to fix the USB driver as it is broken in > 4.14.18 I have found. So I recompiled everything and installed. Crazy thing is if I use Yavta it can talk with the video chip. However, if I use 'mmap' to and then pass the pointer to the G...
by grimepoch
Sat Mar 23, 2019 9:35 pm
Forum: Compute Module
Topic: Complete Lockup/Crash with CM3 Running Stretch and USB Camera
Replies: 12
Views: 2100

Re: Complete Lockup/Crash with CM3 Running Stretch and USB Camera

Okay, took these two files: drivers/usb/host/dwc_otg/dwc_otg_hcd.c drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c And moved them back into 4.14.20 and rebuild and installed the kernel & associated files and the USB lockups went away. So took the same two files and replaced them in my 4.14.59 kernel I'...
by grimepoch
Thu Mar 21, 2019 5:31 am
Forum: Linux Kernel
Topic: How to get full kernel source for 4.14.18
Replies: 1
Views: 3062

Re: How to get full kernel source for 4.14.18

I discovered if I used rpi-source, I could both download the source AND get the commit it was built against.

Would still be nice if there was an easier way.
by grimepoch
Thu Mar 21, 2019 4:10 am
Forum: Linux Kernel
Topic: How to get full kernel source for 4.14.18
Replies: 1
Views: 3062

How to get full kernel source for 4.14.18

I need this specific source (and .20) to test a problem that I see between them to try and determine what changed. I tested the two kernels by using the binary installation script from the precompiled versions. The problem, I cannot find any reference to what commit from the official repo those are ...
by grimepoch
Thu Mar 21, 2019 12:57 am
Forum: Compute Module
Topic: Complete Lockup/Crash with CM3 Running Stretch and USB Camera
Replies: 12
Views: 2100

Re: Complete Lockup/Crash with CM3 Running Stretch and USB Camera

I've run with quite a large range of kernels now, 4.19 fails as well. I tracked down the spot where the driver performance breaks, it happens between: 4.14.18 4.14.20 When I look in 4.14.20 notes, I see: kernel: dwc_otg: Fix a regression when dequeueing isochronous transfers See: raspberrypi/linux#2...
by grimepoch
Wed Mar 20, 2019 2:42 pm
Forum: Compute Module
Topic: Complete Lockup/Crash with CM3 Running Stretch and USB Camera
Replies: 12
Views: 2100

Re: Complete Lockup/Crash with CM3 Running Stretch and USB Camera

Did you ever figure this out? I too have a CM3 module and notice lots of lockup problems with 4.14 and removing/adding devices. If I load a 4.9 image, I haven’t reproduced the same problem.

I’ve not tried updating to a newer 4.14 build or 4.19 yet.
by grimepoch
Wed Aug 29, 2018 5:36 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

Thanks for being the voice of reason on the code, haha, so after MANY hours tonight, we found a progressive scan video recorder, so we KNEW that the output was exactly progressive stuffed in interlace. Works perfect. Went back to the video we were using, I think the 24fps to NTSC transfer causes cer...
by grimepoch
Tue Aug 28, 2018 12:01 pm
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

I think what you've said makes sense, especially the fact it feels like we are not getting consistent frame numbers with regards to field order. The forums are supposed to be open today, so I'll get that question out there and see what possibly could be going on. Maybe there is something with the CS...
by grimepoch
Tue Aug 28, 2018 4:59 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

I'm getting one more problem as well and for the life of me, cannot figure out what could cause it. I used a DVD player with a progressive source movie stuffed into a 480i frame, so that I know both even/odd fields match temporary in content. In fact, I hooked up the DVD directly to a video capture ...
by grimepoch
Sun Aug 26, 2018 11:51 pm
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

I should also add that the documentation makes you believe that the the frame # should work, as there are settings as to which gets output depending on even/odd fields. I'm just not sure how to determine why they are getting reversed. To me that would imply the ADV7182 is doing it because it stays c...
by grimepoch
Sun Aug 26, 2018 10:23 pm
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

Digging into this a little deeper, I am seeing the order of top/bottom field isn't staying consistent with the frame number when hooking up a source to the ADV7182. In that, I know my code is grabbing the fields relative to the TOP/BOTTOM tag and always placing them in the exact same textures, which...
by grimepoch
Sat Aug 25, 2018 6:36 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

Alright, much better. I found this de-interlacer which basically just blends the adjacent even/odd field and writes into both. Basically it is a Y blur, but, you are retaining both fields information in the blur, which the I2P processor does not do, it interpolates a new line between. This is the al...
by grimepoch
Sat Aug 25, 2018 5:39 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

So my code was just resending the same buffer each pass if it didn't change into the gl texture, which seemed to cause a bit of an artifact, not really sure why. Now, I detect if I already sent that buffer to the texture, do not resend. So that solved the juddering. Now I am just left with interlace...
by grimepoch
Sat Aug 25, 2018 3:26 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

Okay, got a chance to run everything. 1) After some initial dropped frames as the system begins to run, no frames are dropped from the driver. I monitored the output of the unicam driver with dmesg as I left the system running. 2) yavta shows a consistent frame rate when using that printf to monitor...
by grimepoch
Fri Aug 24, 2018 7:36 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

Are you cross-compiling or compiling on the Pi? I'm a little confused as you have CROSS_COMPILE variables in there, but "sudo make modules_install" will fail badly if you really are cross-compiling. I had just copied this from other code, that I saw online, specifically from here: https://www.raspb...
by grimepoch
Thu Aug 23, 2018 12:33 pm
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

Haha, okay, I'll try that. First question, is there a faster way to put these changes in? When I update the unicam source code, I run the following steps: KERNEL=kernel7 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j3 zImage mod...
by grimepoch
Thu Aug 23, 2018 6:58 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

Updated the unicam driver with your changes, something with the sequence for some reason isn't coming out right. This is a print function where I have 16 buffers, and I and just dequeuing them. I is the buffer index, F is the frame type (top,bottom), S is the sequence # returned. This was for NTSC. ...
by grimepoch
Mon Aug 20, 2018 11:01 pm
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

V4L2 does have custom controls for some drivers. Look in include/uapi/linux/v4l2-controls.h and there is actually a reserved block of controls for ADV7180 (V4L2_CID_USER_ADV7180_BASE for 16 controls). It's currently only used for controlling fast switching. If you look at tc358743.c then that adds ...
by grimepoch
Sun Aug 19, 2018 1:05 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

I totally understand about the low-level functionality, to be honest, I am not sure really how one would handle this through a driver. Reason being, there are tons of options for things like noise reduction, or turning off AGC, or setting the no-signal image, that are really not a one size fits all....
by grimepoch
Wed Aug 15, 2018 8:07 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 9995

Re: ADV7282 Analogue video to CSI chip with interlaced modes

Excellent, thanks. For reference, what I am trying to deal with is I want the output to be ITU-R BT.656-4, not 3 that it is defaulting. 3 is creating a blank set of lines at the beginning. I also want to set to NTSC with pedestal. I've tested with MANY different sources and this seems to be the corr...

Go to advanced search