Skip to content

Instantly share code, notes, and snippets.

@devarsht
devarsht / gist:bc8cfb82c55b75d85649585d3fd536a0
Created December 27, 2022 08:25
dt schema enum multiple case scenario using single line
UPD include/config/kernel.release
LINT Documentation/devicetree/bindings
./Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml:235:72: [warning] too many spaces after comma (commas)
CHKDT Documentation/devicetree/bindings/processed-schema.json
/home/devarsht/ti/linux-next/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml: properties:qcom,hs-rise-fall-time-bp: 'oneOf' conditional failed, one must be fixed:
'type' is a required property
hint: A vendor boolean property can use "type: boolean"
Additional properties are not allowed ('maximum', 'minimum' were unexpected)
hint: A vendor boolean property can use "type: boolean"
/home/devarsht/ti/linux-next/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml: properties:qcom,hs-rise-fall-time-bp: 'oneOf' conditional failed, one must be fixed:
@devarsht
devarsht / gist:1956063c8e39f1bdbad3574ea96b95a3
Created December 27, 2022 08:29
Update cluster-mode values beyond acceptable range for negative test
diff --git a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi
index ce92c645644f..49803c8d7201 100644
--- a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi
@@ -45,6 +45,7 @@
compatible = "ti,am62-r5fss";
#address-cells = <1>;
#size-cells = <1>;
+ ti,cluster-mode=<3>;
ranges = <0x78000000 0x00 0x78000000 0x8000>,
@devarsht
devarsht / gist:e85b6af89c01ddadb3a62f3e5f196af8
Last active February 6, 2023 11:12
am62ax logs enabling 4GB DDR
U-Boot SPL 2023.04-rc1-00178-g26c32ae057 (Feb 06 2023 - 14:13:24 +0530)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.3--v08.05.03 (Chill Capybar')
am62a_init: board_init_f done
SPL initial stack usage: 13568 bytes
am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
Trying to boot from MMC2
Starting ATF on ARM64 core...
NOTICE: BL31: v2.7(release):v2.7.0-359-g1309c6c805-dirty
NOTICE: BL31: Built : 15:05:28, Jan 12 2023
@devarsht
devarsht / v4_v4l2_compliance_e5010_jpeg.txt
Last active February 5, 2024 09:14
v4_v4l2_compliance_e5010_jpeg.txt
v4l2-compliance 1.27.0-5174, 64 bits, 64-bit time_t
v4l2-compliance SHA: d700deb14368 2024-01-18 12:19:05
Compliance test for e5010 device /dev/video0:
Driver Info:
Driver name : e5010
Card type : e5010
Bus info : platform:fd20000.jpeg-encoder
Driver version : 6.8.0
@devarsht
devarsht / e5010_jpeg_upstream_manualtests.txt
Last active July 27, 2023 09:33
e5010_jpeg_upstream_manualtests
Single stream with vivid test pattern generator using different compression quality
======================================================================================
root@am62axx-evm:~# ./pipe_jpegenc.sh 1920 1080 NV12 30 100 80 [98/14247]
+ gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video1 num-buffers=100 '!' video/x-raw,width=1920,height=1080,format=NV12, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,comp
ression_quality=80 '!' filesink location=/run/op_1920_1080_NV12_80_comp.mjpeg
Setting pipeline to PAUSED ...
Pipe
@devarsht
devarsht / modetest_am62x
Created August 3, 2023 10:45
Modetest_primary_and_overlay_zpos_1
Encoders:
id crtc type possible crtcs possible clones
39 38 none 0x00000001 0x00000001
Connectors:
id encoder status name size (mm) modes encoders
40 39 connected HDMI-A-1 530x300 21 39
modes:
@devarsht
devarsht / Functional tests
Last active August 16, 2023 10:02
e5010_jpeg_enc_upstream_v3_test_suite
./test_format_resolution.sh > /run/func.txt 2>&1&
cat /run/func.txt
gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=1920,height=1080,format=NV12, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,compression_quality=70 '!' filesink location=/run/op_videotestsrc_1920_1080_NV12_30_100_70_func.mjpeg
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegen
@devarsht
devarsht / v3_compression_test.txt
Last active August 16, 2023 10:11
v3: Compression quality tests
./test_compression_quality.sh > /run/compression.txt 2>&1&
wait
+ gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=1920,height=1080,format=NV12, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,compression_quality=70 '!' filesink location=/run/op_videotestsrc_1920_1080_NV12_30_100_70.mjpeg
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstP
@devarsht
devarsht / v3_Functional_test.txt
Last active August 16, 2023 14:50
v3: Functional test
./test_format_resolution.sh > /run/func.txt 2>&1&
cat /run/func.txt
gst-launch-1.0 -v videotestsrc num-buffers=100 '!' video/x-raw,width=1920,height=1080,format=NV12, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,compression_quality=70 '!' filesink location=/run/op_videotestsrc_1920_1080_NV12_30_100_70_func.mjpeg
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegen
@devarsht
devarsht / v3_performance_test.txt
Created August 16, 2023 10:06
v3: Performance tests
./pipe_v4l2src.sh 1920 1080 NV12 30 100 70
+ gst-launch-1.0 -v v4l2src io-mode=dmabuf-import device=/dev/video1 num-buffers=100 '!' video/x-raw,width=1920,height=1080,format=NV12, framerate=30/1 '!' v4l2jpegenc output-io-mode=dmabuf extra-controls=c,compression_quality=70 '!' fpsdisplaysink text-overlay=false name=fpssink video-sink=fakesink -v
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink/GstFakeSink:fakesink0: sync = true
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetr