Skip to content

Instantly share code, notes, and snippets.

@hyphop
Created January 19, 2019 07:07
Show Gist options
  • Save hyphop/8e6651cb6e7e87049d3c235a55e5c469 to your computer and use it in GitHub Desktop.
Save hyphop/8e6651cb6e7e87049d3c235a55e5c469 to your computer and use it in GitHub Desktop.
Sunxi-cedrus test cedrus/4.18/requests-api-v18-merge
diff -pruN linux-ro/drivers/soc/sunxi/sunxi_sram.c linux-cedrus/drivers/soc/sunxi/sunxi_sram.c
--- linux-ro/drivers/soc/sunxi/sunxi_sram.c 2019-01-18 09:45:41.000000000 +0700
+++ linux-cedrus/drivers/soc/sunxi/sunxi_sram.c 2019-01-13 15:24:10.000000000 +0700
@@ -370,6 +370,18 @@ static const struct of_device_id sunxi_s
.data = &sun4i_a10_sramc_variant,
},
{
+ .compatible = "allwinner,sun5i-a13-system-control",
+ .data = &sun4i_a10_sramc_variant,
+ },
+ {
+ .compatible = "allwinner,sun8i-a23-system-control",
+ .data = &sun4i_a10_sramc_variant,
+ },
+ {
+ .compatible = "allwinner,sun8i-h3-system-control",
+ .data = &sun4i_a10_sramc_variant,
+ },
+ {
.compatible = "allwinner,sun50i-a64-sram-controller",
.data = &sun50i_a64_sramc_variant,
},

OK i have try to test again this kernel cedrus/4.18/requests-api-v18-merge and v4l2-request-test

manual source https://linux-sunxi.org/Sunxi-cedrus

i have make some small patch for my Orange pi Zero plus2 device kernel started and video/media node created!

but still NOT WORK !!!!

check details bellow in attachments too

uname -a
Linux orangepizeroplus2 4.18.0 #1 SMP Fri Jan 18 20:15:11 +07 2019 armv7l GNU/Linux
./linux_cedrus_test 
CONFIG_MEDIA_SUPPORT=y
CONFIG_MEDIA_CONTROLLER=y
# CONFIG_MEDIA_CONTROLLER_DVB is not set
CONFIG_V4L_MEM2MEM_DRIVERS=y
CONFIG_VIDEO_SUNXI_CEDRUS=y
v4l2-ctl --all
Driver Info (not using libv4l2):
Driver name : cedrus
Card type : cedrus
Bus info : platform:cedrus
Driver version: 4.18.0
Capabilities : 0x84204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Priority: 2
Format Video Capture Multiplanar:
Width/Height : 0/0
Pixel Format : ''
Field : Any
Number of planes : 0
Flags :
Colorspace : Default
Transfer Function : Default
YCbCr Encoding : Default
Quantization : Default
Format Video Output Multiplanar:
Width/Height : 0/0
Pixel Format : ''
Field : Any
Number of planes : 0
Flags :
Colorspace : Default
Transfer Function : Default
YCbCr Encoding : Default
Quantization : Default
mpeg_2_slice_parameters (unknown): type=103 flags=has-payload
mpeg_2_quantization_matrices (unknown): type=104 flags=has-payload
h264_sps (unknown): type=105 flags=has-payload
h264_pps (unknown): type=106 flags=has-payload
h264_scaling_matrix (unknown): type=107 flags=has-payload
h264_slice_parameters (unknown): type=108 flags=has-payload
h264_decode_parameters (unknown): type=109 flags=has-payload
hevc_sequence_parameter_set (unknown): type=110 flags=has-payload
hevc_picture_parameter_set (unknown): type=111 flags=has-payload
hevc_slice_parameters (unknown): type=112 flags=has-payload
./v4l2-request-test
Config:
Video path: /dev/video0
Media path: /dev/media0
DRM path: /dev/dri/card0
DRM driver: sun4i-drm
Slices path: data/bbb-mpeg2
Slices filename format: slice-%d.dump
FPS: 0
Preset:
Name: bbb-mpeg2
Description: big_buck_bunny_480p_MPEG2_MP2_25fps_1800K.MPG
License: Creative Commons Attribution 3.0
Attribution: Blender Foundation | www.blender.org
Width: 854
Height: 480
Frames count: 25
Format: MPEG2
Media device driver: cedrus
Unable to try format for type 1: Invalid argument
Unable to try format for type 1: Invalid argument
Unable to find any supported destination format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment