Skip to content

Instantly share code, notes, and snippets.

@lp6m
Created October 15, 2018 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lp6m/7addae393394583902b2da19ee18ae5e to your computer and use it in GitHub Desktop.
Save lp6m/7addae393394583902b2da19ee18ae5e to your computer and use it in GitHub Desktop.
root@arm:/home/ubuntu# echo 959 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio959/direction
echo 1 > /sys/class/gpio/gpio959/value
echo 0 > /sys/class/gpio/gpio959/value
root@arm:/home/ubuntu# sh cam.sh
waiting in xioctl()
bus_info : platform:video_cap:0
card : video_cap output 0
driver : xilinx-vipp
version : 264448
waiting in xioctl()
waiting in xioctl()
reqbuf.count : 3
waiting in xioctl()
buf.length : 1
buf.m.offset : 3195409312
buf.m.planes[j].length : 4147200
buffers[i].start[j] : 0xb687e000
waiting in xioctl()
buf.length : 1
buf.m.offset : 3195409312
buf.m.planes[j].length : 4147200
buffers[i].start[j] : 0xb6489000
waiting in xioctl()
buf.length : 1
buf.m.offset : 3195409312
buf.m.planes[j].length : 4147200
buffers[i].start[j] : 0xb6094000
waiting in xioctl()
waiting in xioctl()
r : 0
waiting in xioctl()
store image in array....
write data...
waiting in xioctl()
root@arm:/home/ubuntu# media-ctl /dev/video0 -p
Media controller API version 4.9.0
Media device information
------------------------
driver xilinx-video
model Xilinx Video Composite Device
serial
bus info
hw revision 0x0
driver version 4.9.0
Device topology
- entity 1: video_cap output 0 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "43c60000.mipi_csi2_rx_subsystem":0 [ENABLED]
- entity 5: ov5640 2-003c (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev0
pad0: Source
[fmt:UYVY/1920x1080 field:none]
-> "43c60000.mipi_csi2_rx_subsystem":1 [ENABLED]
- entity 7: 43c60000.mipi_csi2_rx_subsystem (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Source
[fmt:UYVY/1920x1080 field:none]
-> "video_cap output 0":0 [ENABLED]
pad1: Sink
[fmt:UYVY/1920x1080 field:none]
<- "ov5640 2-003c":0 [ENABLED]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment