v4l2


yavta cause kernel panic (ov5640 with DM3730)


I am debuging(using media-ctl & yavta) a Sensor driver(ov5640) on my OMAP3 platform(DM3730), here is my command detail:
/ # media-ctl -p
Media controller API version 0.1.0
Media device information
------------------------
driver omap3isp
model TI OMAP3 ISP
serial
bus info
hw revision 0xf0
driver version 0.0.0
Device topology
- entity 1: OMAP3 ISP CCP2 (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
[fmt:SGRBG10/4096x4096]
<- "OMAP3 ISP CCP2 input":0 []
pad1: Source
[fmt:SGRBG10/4096x4096]
-> "OMAP3 ISP CCDC":0 []
- entity 2: OMAP3 ISP CCP2 input (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Source
-> "OMAP3 ISP CCP2":0 []
- entity 3: OMAP3 ISP CSI2a (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
[fmt:SGRBG10/4096x4096]
pad1: Source
[fmt:SGRBG10/4096x4096]
-> "OMAP3 ISP CSI2a output":0 []
-> "OMAP3 ISP CCDC":0 []
- entity 4: OMAP3 ISP CSI2a output (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video1
pad0: Sink
<- "OMAP3 ISP CSI2a":1 []
- entity 5: OMAP3 ISP CCDC (3 pads, 9 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev2
pad0: Sink
[fmt:SGRBG10/4096x4096]
<- "OMAP3 ISP CCP2":1 []
<- "OMAP3 ISP CSI2a":1 []
<- "ov5640 2-003c":0 []
pad1: Source
[fmt:SGRBG10/4096x4096]
-> "OMAP3 ISP CCDC output":0 []
-> "OMAP3 ISP resizer":0 []
pad2: Source
[fmt:SGRBG10/4096x4095]
-> "OMAP3 ISP preview":0 []
-> "OMAP3 ISP AEWB":0 [ENABLED,IMMUTABLE]
-> "OMAP3 ISP AF":0 [ENABLED,IMMUTABLE]
-> "OMAP3 ISP histogram":0 [ENABLED,IMMUTABLE]
- entity 6: OMAP3 ISP CCDC output (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video2
pad0: Sink
<- "OMAP3 ISP CCDC":1 []
- entity 7: OMAP3 ISP preview (2 pads, 4 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev3
pad0: Sink
[fmt:SGRBG10/4096x4096]
<- "OMAP3 ISP CCDC":2 []
<- "OMAP3 ISP preview input":0 []
pad1: Source
[fmt:YUYV/4082x4088]
-> "OMAP3 ISP preview output":0 []
-> "OMAP3 ISP resizer":0 []
- entity 8: OMAP3 ISP preview input (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video3
pad0: Source
-> "OMAP3 ISP preview":0 []
- entity 9: OMAP3 ISP preview output (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video4
pad0: Sink
<- "OMAP3 ISP preview":1 []
- entity 10: OMAP3 ISP resizer (2 pads, 4 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev4
pad0: Sink
[fmt:YUYV/4095x4095]
<- "OMAP3 ISP CCDC":1 []
<- "OMAP3 ISP preview":1 []
<- "OMAP3 ISP resizer input":0 []
pad1: Source
[fmt:YUYV/4096x4095]
-> "OMAP3 ISP resizer output":0 []
- entity 11: OMAP3 ISP resizer input (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video5
pad0: Source
-> "OMAP3 ISP resizer":0 []
- entity 12: OMAP3 ISP resizer output (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video6
pad0: Sink
<- "OMAP3 ISP resizer":1 []
- entity 13: OMAP3 ISP AEWB (1 pad, 1 link)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev5
pad0: Sink
<- "OMAP3 ISP CCDC":2 [ENABLED,IMMUTABLE]
- entity 14: OMAP3 ISP AF (1 pad, 1 link)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev6
pad0: Sink
<- "OMAP3 ISP CCDC":2 [ENABLED,IMMUTABLE]
- entity 15: OMAP3 ISP histogram (1 pad, 1 link)
type V4L2 subdev subtype Unkno[ 114.543634] ov5640 2-003c: ov5640_open
wn flags 0
device node name /dev/v4l-subdev7
pad0: Sink
<- "OMAP3 ISP CCDC":2 [ENABLED,IMMUTABLE]
- entity 16: ov5640 2-003c (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev8
pad0: Source
[fmt:YUYV2X8/640x480]
-> "OMAP3 ISP CCDC":0 []
config the pad link:
media-ctl -v -r -l '"ov5640 2-003c":0->"OMAP3 ISP CCDC":0[1], "OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]'
Opening media device /dev/media0
Enumerating entities
Found 16 entities
Enumerating pads and links
Resetting all links to inactive
Opening media device /dev/media0
Opening media device /dev/media0
Opening media device /dev/media0
Opening media device /dev/media0
Opening media device /dev/media0
Opening media device /dev/media0
Opening media device /dev/media0
Opening media device /dev/media0
Opening media device /dev/media0
Opening media device /dev/media0
Opening media device /dev/media0
Opening media device /dev/media0
Opening media device /dev/media0
Setting up link 16:0 -> 5:0 [1]
Opening media device /dev/media0
Setting up link 5:1 -> 6:0 [1]
Opening media device /dev/media0
config the resolution:
/ # media-ctl -v -V '"ov5640 2-003c":0[YUYV2X8/640x480], "OMAP3 ISP CCDC":1[SGRBG10/640x480]'
Opening media device /dev/media0
Enumerating entities
Found 16 entities
Enumerating pads and links
Setting up format YUYV2X8 640x480 on pad ov5640 2-003c/0
Format set: YUYV2X8 640x480
Setting up format YUYV2X8 640x480 on pad OMAP3 ISP CCDC/0
Format set: SGRBG10 640x480
Setting up format SGRBG10 640x480 on pad OMAP3 ISP CCDC/1
Format set: SGRBG10 640x480
capture Image:
/# yavta -f SGRBG10 -s 640x480 -n 4 --capture=5 --file=image /dev/video2
when capture image, kernel panic, why? Is there something wrong with my commands?
Device /dev/video2 opened.
Device `OMAP3 ISP CCDC output' on `media' is a video capture (without mplanes) device.
Video format set: SGRBG10 (30314142) 640x480 (stride 1280) field any buffer size 614400
Video format: SGRBG10 (30314142) 640x480 (stride 1280) field any buffer size 614400
[ 295.498119] Unable to handle kernel NULL pointer dereference at virtual address 0000000c
4 buffers requ[ 295.514122] pgd = de0c0000
ested.
length: [ 295.521448] [0000000c] *pgd=9e0d4831614400 offset: 0, *pte=00000000 timestamp type/, *ppte=00000000source: unk/EoF
Buffer 0/0 mapp[ 295.536818] Internal error: Oops: 17 [#1]
[ 295.545492] Modules linked in:
[ 295.551784] CPU: 0 Not tainted (3.2.8 #117)
[ 295.559672] PC is at isp_video_validate_pipeline+0x210/0x2d8
[ 295.568728] LR is at 0x300e
[ 295.574623] pc : [<c03f3cb4>] lr : [<0000300e>] psr: 60000013
[ 295.574630] sp : de0f1c30 ip : 00000108 fp : c0812358
[ 295.592833] r10: de005f9c r9 : fffffdfd r8 : c0812358
[ 295.601354] r7 : de000000 r6 : 00000000 r5 : deb9dc00 r4 : 00000000
[ 295.611207] r3 : c0812448 r2 : 00000120 r1 : 0000001e r0 : 0000300a
[ 295.621063] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 295.631646] Control: 10c5387d Table: 9e0c0019 DAC: 00000015
[ 295.640774] Process yavta (pid: 745, stack limit = 0xde0f02f0)
[ 295.650048] Stack: (0xde0f1c30 to 0xde0f2000)
[ 295.657740] 1c20: 003c6007 00000001 00000000 00000280
[ 295.672444] 1c40: 000001e0 00002008 00000001 00000007 00000000 00000000 00000000 00000000
[ 295.687523] 1c60: 00000000 00000000 00000000 00000000 deb9d000 00000000 c07d5a30 de0f0000
[ 295.702837] 1c80: 00000000 00000000 c0c49f0c 00000001 00000000 00000280 000001e0 0000300a
[ 295.718141] 1ca0: 00000001 00000008 00000000 00000000 00000000 00000000 00000000 00000000
[ 295.733716] 1cc0: 00000000 de0eb560 00000001 de005fe4 40045612 00000022 deb9d000 c007f598
[ 295.749519] 1ce0: de0f0030 055d4a80 c07d5a20 de005c10 de005f9c c07d42a8 deb9d000 de005fe4
[ 295.765639] 1d00: 40045612 00000022 deb9d000 c03f3e64 c03f3d7c c0596764 00000000 de005c10
[ 295.782013] 1d20: de84ec80 00000001 deb9d000 c03de630 00000002 00000080 00000000 de0f0000
[ 295.798671] 1d40: 00000014 00000000 00000001 00000014 00000470 c0040e48 00000003 de980600
[ 295.815665] 1d60: 60000193 c02f13e4 000005d0 60000193 00000018 de0eb9d0 00000000 00000002
[ 295.832818] 1d80: c082037c de0eb560 c07da450 00000010 c07fa448 c007cec0 c07da450 00000010
[ 295.850144] 1da0: c07fa448 c007cec0 c082037c de0f0000 00000018 de0eb9b8 00000000 00000001
[ 295.867675] 1dc0: c082037c de0eb560 c07da450 00000010 c07fa448 c007cec0 1438c0f4 00000007
[ 295.885283] 1de0: 00000001 de0eb9a0 00000000 00000000 c082037c de0eb560 c07da450 00000010
[ 295.902891] 1e00: c07fa448 c007cec0 00000000 00000000 c082037c 40045612 bed4925c 00000000
[ 295.920494] 1e20: 00000004 00000000 00000000 de0f1e48 00000000 c03dc8b0 00000000 00000001
[ 295.938100] 1e40: de84ec80 c03dce5c 00000001 0000000c 00000440 00000000 00000000 00000000
[ 295.955703] 1e60: 00000000 00000000 c07d98e4 de0f0000 00000000 00000000 00000001 00000002
[ 295.973301] 1e80: 00000000 c007ebec 00000001 00000000 00000000 c0555d78 00000000 00000000
[ 295.990898] 1ea0: 00000000 c007ebec 60000013 00000080 00000000 00000001 c07d98e4 00000000
[ 296.008491] 1ec0: de88e000 de0f0000 c004236c de005c10 c03dcce4 40045612 00000003 bed4925c
[ 296.026076] 1ee0: de0f0000 00000000 00000004 c03dbc0c debacba8 bed4925c de84ec80 00000003
[ 296.043664] 1f00: 00000000 c00fc18c 00000000 de88aa20 de0f1fac c0551328 de50576c de84ebc8
[ 296.061245] 1f20: 00000000 00000001 cb006ff0 00000044 00000000 00000000 c00139cc de0f0000
[ 296.078836] 1f40: 00000029 00000000 de505730 00000002 de0f0000 00000000 bed4924c de0f0000
[ 296.096427] 1f60: c0013a80 de84ec80 bed4925c 40045612 00000003 00000000 de0f0000 00000000
[ 296.114017] 1f80: 00000004 c00fc6b8 00000001 00000000 00000001 00000001 00000000 00000036
[ 296.131607] 1fa0: c0013b28 c0013960 00000001 00000001 00000003 40045612 bed4925c 40045612
[ 296.149197] 1fc0: 00000001 00000001 00000000 00000036 0000003c 30314142 00000000 00000004
[ 296.166785] 1fe0: 0001713c bed49254 0000bb48 40284bdc 20000010 00000003 cfdfd97f fabd49ed
[ 296.184388] [<c03f3cb4>] (isp_video_validate_pipeline+0x210/0x2d8) from [<c03f3e64>] (isp_video_streamon+0xe8/0x238)
[ 296.204540] [<c03f3e64>] (isp_video_streamon+0xe8/0x238) from [<c03de630>] (__video_do_ioctl+0x17d4/0x5478)
[ 296.223858] [<c03de630>] (__video_do_ioctl+0x17d4/0x5478) from [<c03dc8b0>] (video_usercopy+0x94/0x4c8)
[ 296.242818] [<c03dc8b0>] (video_usercopy+0x94/0x4c8) from [<c03dbc0c>] (v4l2_ioctl+0x98/0x13c)
[ 296.260950] [<c03dbc0c>] (v4l2_ioctl+0x98/0x13c) from [<c00fc18c>] (do_vfs_ioctl+0x7c/0x538)
[ 296.278908] [<c00fc18c>] (do_vfs_ioctl+0x7c/0x538) from [<c00fc6b8>] (sys_ioctl+0x70/0x78)
[ 296.296694] [<c00fc6b8>] (sys_ioctl+0x70/0x78) from [<c0013960>] (ret_fast_syscall+0x0/0x3c)
[ 296.314670] Code: e2833001 e3530012 1afffff3 e3a03000 (e594200c)
ed at address 0x[ 296.325745] ---[ end trace 693348e65d376b69 ]---
402fe000.
length: 614400 offset: 614400 timestamp type/source: unk/EoF
Buffer 1/0 mapped at address 0x40469000.
length: 614400 offset: 1228800 timestamp type/source: unk/EoF
Buffer 2/0 mapped at address 0x4055a000.
length: 614400 offset: 1843200 timestamp type/source: unk/EoF
Buffer 3/0 mapped at address 0x40672000.

Related Links

V4L2 frame rate maxes out at ~10FPS… why?
Any known-to-work example in C using VIDIOC_S_CROP in V4L2?
Getting framesize in V4L2 with VIDIOC_ENUM_FRAMESIZES
A4Tech webcam and avconv (ffmpeg) captures same frame all the time
yavta cause kernel panic (ov5640 with DM3730)
V4L2 preview with callback instead of polling-loop
Function call ioctl with VIDIOC_QUERYCAP request doesn't return
V4L2 difference between JPEG and MJPEG pixel formats
v4l2-ctl not changing from default webcam
Where I can find example in using v4l2 codec driver
Timestamp for v4l2 image capture
Where does v4l2_buffer->timestamp value starts counting?

Categories

HOME
pact
model-view-controller
google-cloud-pubsub
locale
dronekit
window.open
readdir
crm
redhawksdr
crash
ms-application-insights
localhost
mediarecorder
jshell
uml-designer
autocad
jquery-select2
sahi
decoding
oxid
comma
logstash-configuration
smooth-scrolling
web-parts
cucumberjs
autologin
django-rest-auth
serenity-js
apdu
knapsack-problem
drombler-fx
meteor-accounts
selenium3
login-required
ports
jsonapi-resources
azure-storage-files
realloc
matrix-multiplication
redhat-brms
lex
aura-framework
definition
vpython
paperclip
taiga
niagara-ax
jks
rivets.js
flask-socketio
dcom
printer-control-language
wicketstuff
apache-commons-cli
google-scholar
blackberry-webworks
papyrus
visual-web-developer
x12
settext
class-design
db2-zos
supervised-learning
user-profile
phpdesigner
jmap
mojolicious
gulp-cdnizer
libgcrypt
jain-sip
esb-toolkit-2.1
gcc-warning
bungeecord
attiny
backtrace
api-eveonline
redmine-plugins
powershell-v1.0
disparity-mapping
nest-initiative
visual-c#-express-2010
banana-pi
farpoint-spread
facebook-java-api
node-amqp
mysql-error-1146
static-class
android-library
backbone-views
reference-manual
invalidoperationexception
mail-gem
m3u
openafs
netbiscuits
databus
certificate-revocation
animationdrawable
helicontech
windows-xp-embedded
symfony-1.2
netduino
chars
database-agnostic
onresize
managed-code
high-load

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile