Skip to content

Instantly share code, notes, and snippets.

View RobGries's full-sized avatar

Rob Gries RobGries

View GitHub Profile
@RobGries
RobGries / odd-camss-issue
Created May 5, 2020 15:04
camss...problems...
Normal Boot:
Jan 01 00:00:03 dragonboard-410c kernel: qcom-camss 1b0ac00.camss: Linked as a consumer to 1ef0000.iommu
Jan 01 00:00:03 dragonboard-410c kernel: iommu: Adding device 1b0ac00.camss to group 0
Jan 01 00:00:03 dragonboard-410c kernel: qcom-venus 1d00000.video-codec: Linked as a consumer to 1ef0000.iommu
Jan 01 00:00:03 dragonboard-410c kernel: iommu: Adding device 1d00000.video-codec to group 1
Abnormal Boot:
Jan 01 00:00:01 dragonboard-410c kernel: qcom-venus 1d00000.video-codec: Linked as a consumer to 1ef0000.iommu
Jan 01 00:00:01 dragonboard-410c kernel: iommu: Adding device 1d00000.video-codec to group 0
From fa178f12cb0a0a25914a5ff95667247396bd70fd Mon Sep 17 00:00:00 2001
From: rob gries <rob.gries@egwtech.com>
Date: Wed, 20 Nov 2019 17:58:22 -0500
Subject: [PATCH] gsth264parser.c: correct invalid idr_pic_id field >
G_MAXUINT16
---
gst-libs/gst/codecparsers/gsth264parser.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
40:46:00.016323454 3537 0x98b6d0 WARN codecparsers_h264 gsth264parser.c:2219:gst_h264_parser_parse_slice_hdr: error parsing "Slice header"
40:46:02.010887795 3537 0x98b6d0 WARN codecparsers_h264 gsth264parser.c:2128:gst_h264_parser_parse_slice_hdr: value greater than max. value: 73448, max 65535
40:46:02.010996598 3537 0x98b6d0 WARN codecparsers_h264 gsth264parser.c:2219:gst_h264_parser_parse_slice_hdr: error parsing "Slice header"
40:46:04.012963275 3537 0x98b6d0 WARN codecparsers_h264 gsth264parser.c:2128:gst_h264_parser_parse_slice_hdr: value greater than max. value: 73449, max 65535
40:46:04.013077807 3537 0x98b6d0 WARN codecparsers_h264 gsth264parser.c:2219:gst_h264_parser_parse_slice_hdr: error parsing "Slice header"
40:46:06.013549233 3537 0x98b6d0 WARN codecparsers_h264 gsth264parser.c:2128:gst_h264_parser_parse_slice_hdr: value greater than max. value: 73450, max 65535
40:46:06.013657099 3537 0x98b6d0 WARN code
gst-launch-1.0 -v -e v4l2src device=/dev/video3 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! v4l2h264enc extra-controls="controls,h264_level=9,h264_profile=1" ! video/x-h264, stream-format=byte-stream, alignment=au, profile=constrained-baseline, level=9, width=1280, height=720, framerate=30/1 ! h264parse ! mp4mux ! filesink location=capsFilter.mp4
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)1:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)1:4:7:1
/GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0.GstPad:src: caps = video
@RobGries
RobGries / regulator-oops-414-qc410
Created November 13, 2018 13:38
Regulator-issue-4.14
[25309.653453] ------------[ cut here ]------------
[25309.653494] kernel BUG at /media/rob/a72581e8-3ca3-4dc1-b3b8-6db5464de098/qc_36900/build/tmp-glibc/work-shared/dragonboard-410c/kernel-source/drivers/regulator/core.c:218!
[25309.657172] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[25309.672156] Modules linked in: bnep btusb btrtl btbcm btintel bluetooth ecdh_generic xt_conntrack iptable_filter ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 n
f_nat nf_conntrack libcrc32c mwifiex_usb mwifiex ip_tables cfg80211 x_tables venus_dec venus_enc ov5640 v4l2_common crc32_ce snd_soc_lpass_apq8016 snd_soc_lpass_cpu snd_soc_lpass_platform snd_soc_apq8016_sbc snd_
soc_msm8916_digital msm_rng snd_soc_msm8916_analog rng_core venus_core msm qcom_camss videobuf2_dma_sg v4l2_mem2mem v4l2_fwnode drm_kms_helper mdt_loader videobuf2_memops videobuf2_v4l2 videobuf2_core videodev dr
m i2c_qcom_cci media fuse
[25309.713121] CPU: 2 PID: 5798 Comm: kworker/2:2 Not tainted 4.14.15+
[71482.209033] qcom-venus 1d00000.video-codec: no valid instance(pkt session_id:dead, pkt:21001)
[71482.209181] qcom-venus-encoder 1d00000.video-codec:video-encoder: enc: event session error 0
[71482.216712] qcom-venus 1d00000.video-codec: SFR message from FW: QC_IMAGE_VERSION_STRING=VIDEO.VE.1.8-00109, Err_Fatal - Z:\b\venus\encoders\src\venus_venc_host_driver.c:5038:
[71482.320046] qcom-venus 1d00000.video-codec: system error has occurred, starting recovery!
@RobGries
RobGries / asound.conf
Created June 20, 2018 17:19
asound.conf with dmix and dsnoop
# Global alsa-lib configuration
pcm.speakers {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
rate 48000
}
bindings {
@RobGries
RobGries / HiFi
Created May 29, 2018 17:58
ALSA UCM changes
# Use case configuration for DB410c board.
# Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
SectionVerb {
EnableSequence [
]
DisableSequence [
]
@RobGries
RobGries / 410c-scaler-pipelines.txt
Last active May 11, 2018 15:46
scaler pipelines
Pipeline configuration:
media-ctl -d /dev/media0 -l '"msm_csiphy0":1->"msm_csid0":0[1],"msm_csid0":1->"msm_ispif0":0[1],"msm_ispif0":1->"msm_vfe0_pix":0[1]'
**SCALING** This will do 480p
media-ctl -d /dev/media0 -V '"ov5640 2-003b":0[fmt:UYVY2X8/1920x1080 field:none],"msm_csiphy0":0[fmt:UYVY2X8/1920x1080 field:none],"msm_csid0":0[fmt:UYVY2X8/1920x1080 field:none],"msm_ispif0":0[fmt:UYVY2X8/1920x1080 field:none],"msm_vfe0_pix":0[fmt:UYVY2X8/1920x1080 field:none compose:(0,0)/640x480],"msm_vfe0_pix":1[fmt:UYVY1_5X8/640x480 field:none]'
**SCALING** This will do 720p
media-ctl -d /dev/media0 -V '"ov5640 2-003b":0[fmt:UYVY2X8/1920x1080 field:none],"msm_csiphy0":0[fmt:UYVY2X8/1920x1080 field:none],"msm_csid0":0[fmt:UYVY2X8/1920x1080 field:none],"msm_ispif0":0[fmt:UYVY2X8/1920x1080 field:none],"msm_vfe0_pix":0[fmt:UYVY2X8/1920x1080 field:none compose:(0,0)/1280x720],"msm_vfe0_pix":1[fmt:UYVY1_5X8/1280x720 field:none]'
**SCALING** This will do 960p
@RobGries
RobGries / yavta-i2c-errors.txt
Created May 9, 2018 19:33
yavta errors seen when using the latest ov5640 driver.
root@miku-2e0c4b:~# yavta --list-controls /dev/v4l-subdev10
Device /dev/v4l-subdev10 opened.
--- User Controls (class 0x00980001) ---
control 0x00980901 `Contrast' min 0 max 255 step 1 default 0 current[ 158.597630] i2c-qcom-cci 1b0c000.cci: Master 0 error 0x08000000
0.
control 0x00980902 `Saturation' min 0 max 255 step 1 default 64 current 64.
control 0x00980903 `Hue' min 0 max 359 step 1 default 0 current 0.
control 0x0098090c `White Balance, Automatic' min 0 max 1 step 1 default 1 current 1.
control 0x0098090e `Red Balance' min 0 max 4095 step 1 default 0 curren[ 158.616084] i2c-qcom-cci 1b0c000.cci: Master 0 error 0x08000000
t 0.