A20 + OV5640 (parallel) issues

2,320 views
Skip to first unread message

Ivan Kozic

unread,
Feb 10, 2014, 9:05:26 AM2/10/14
to linux...@googlegroups.com
Hi all,

I am trying to use a CMOS image sensor from OmniVision (OV5640) with Allwinner A20 (on Olimex Olinuxino-A20-Micro).

Basically, it almost works out-of-the-box, but I have some issues with color conversion and the image on the screen has completely wrong colors (LSD situation :) - YUV is somehow badly converted to RGB).

I am also using A10-TS touchscreen from Olimex (just a normal 10" panel - parallel RGB, 18bit). I am using the OV5640 driver from sun4i (found in linux/drivers/media/video/sun4i_csi/device).
On the top (in userspace), I am using a sample test application found with the sun4i driver itself (/linux/drivers/media/video/sun4i_csi/test/app_test_ok.c).

I have also found several other versions of the same application on the web (source is only called differently - test_camera.c, but written by the same guy - Rockie Cheng).

The colors are behaving best (for now) when I set csi_format to:

csi_format = V4L2_PIX_FMT_YUV422P

and display format to:

disp_format = DISP_FORMAT_YUV422;

but they are still quite wrong. However, if I'm using V4L2_PIX_FMT_YUYV as csi_format (this is how OV5640 actually sends the picture to the A20), I get a lot of ghosting, which implies that the CSC is not working and 16-bit data is somewhere interpreted as 24-bit data. Almost the same thing happens when I set the display format to RGB (and the display is in fact RGB not YUV). The strange thing is that this "best" situation has no ghosting, so it's probably the matter of mixing Y and U or V channels somewhere. In fact image details are there, so Y is probably functional - from theoretical side the likeliest is that U and V are mixed somewhere.

So maybe someone has done something similar and can shed some light here - since A20 user manual and datasheet contain only basic info about CSI and image pipeline. Any kind of guidance is welcome - documents, snippets... Of course, the hard way would be to go through register settings and check for everything, but as I would need a lot of kernel recompilations for it, I thought first to see if someone has done something similar.

There's also some things which are not crystal clear with the Fex file, so my culprit might lie there as well. Although I don't think so, but it could happen that I've made a mistake there (for instance I've configured framebuffer to be RGB888, and LCD to 18-bit - this could easily be a mistake if display driver is trying to use RGB8888 as framebuffer).

All in all - any help greatly appreciated :)

Best regards,

Ivan

Ivan Kozic

unread,
Feb 13, 2014, 9:04:04 AM2/13/14
to linux...@googlegroups.com
Hi all,

Ok, I'll bump the post with my own findings, as I see several views but no replies.
So, basically, there's something wrong going on in DEFE/DEBE - there is a bit of mess in the drivers (drivers/video/sunxi/disp), so I cannot really say what is causing the issue, but the culprit is that IN_FMT and OUT_FMT registers of DEFE are always initialized to RGB888, instead of YUV. I'm yet to find how to configure the display driver in order for these settings to be in effect, but the abstraction is very high (too many things going on from sunxi display driver up to the V4L structure) and I cannot really find out where exactly DEFE is configured (if at all configured), hence I'll need some time.

I'll post back when I find something, but in the meantime all help is welcome.

BR,

Ivan

Ivan Kozic

unread,
Feb 17, 2014, 11:00:01 AM2/17/14
to linux...@googlegroups.com
Hi all,

One more bump, as I got into it much deeper. It seems that V4L2 is basically more-less functional - the sensor works, albeit with only one set of settings (ov5640.c is quite badly written). Either way, V4L should be good enough with some light code modifications to the OV5640 driver.

Display however is another topic. The driver's code is fairly similar to the V4L concept, but with a bit more loose ends - I could not find any documents on how this API is specifically used, so I cannot verify whether the application that I am using (test app for camera) is using display driver in the correct manner. It basically revolves around V4L - when a buffer is dequeued, it's address is forwarded to display driver which initializes the framebuffer and refreshes the display with new content. But there are many ioctl's for display and I am unsure of how to use them properly. Since the color channels are wrong for this default configuration coming from the driver, I am starting to doubt whether it is the proper way to initialize the display. But, as the display API is not documented, I am left with either digging deep in kernel or just plain trial-and-error principle.

Basically, as I have figured out V4L almost completely, I would need someone with more knowledge about this Sunxi display driver to continue.
Of course, I will continue to dig and tryout different approaches, but it would mean a lot if someone could help.

BR,

Ivan

jons...@gmail.com

unread,
Feb 17, 2014, 11:33:01 AM2/17/14
to linux...@googlegroups.com
I've been playing with this sensor under Android using the Cubieboard
A20 build. Hardware is an EU3000.

Using the Android camera app it works fairly well in 640x480 mode. But
when I push the resolution up to 720P it doesn't work and generates
lots of error. The video stream is jerky images. Any ideas on what is
wrong with 720P?

My idea was to get it working right under Android first, and then port
to Linux.
> --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to linux-sunxi...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Jon Smirl
jons...@gmail.com

Ivan Kozic

unread,
Feb 18, 2014, 5:47:58 AM2/18/14
to linux...@googlegroups.com
Hi Jon,

Good to have someone to talk to :) I've already previously found your posts about EU3000 - I even downloaded the Fex file to check mine some time ago, so I'm a bit into the subject.

I don't have any Android experience except for my phone, so I can't help you much there, but I can tell you what's currently wrong with the sunxi linux driver for ov5640.

For me, anything less than 720p is unacceptable. My first problem was that I get like 7fps in 720p (kernel 3.4.75+ from linux-sunxi) - this was driver issue, as the ov5640 driver (part of sun4i_csix driver) is badly written - there is only a tryout of the format, the sensor actually defaults always to sensor_default_regs[], instead of using regs for, let's say, 720p. So it isn't at all configured correctly. This is only the first problem.

The second problem is that register settings included in the kernel driver are mostly useless - almost all of them are either 3.75, 7.5 or 15fps, while I need at least 30. So, since I did some development on Freescale's i.MX6, I used some settings from there - I've got 720p @30fps running like this. It works ok, maybe a bit noisey (although this could easily come from my interface board), but my colors are still bad and as you can see I'm currently debugging this (almost certain that it's the display driver issue).

Anyway, I'm debugging the display driver - it seems that some things are wrong there, or at least I'm not really configuring it right.

What kernel do you have - in which mode are you using 720p (15fps, 30fps?) and what are the errors you see?

BR,

Ivan

jons...@gmail.com

unread,
Feb 18, 2014, 3:54:33 PM2/18/14
to linux...@googlegroups.com
There is an OV5642 driver in the mainline kernel. It should be very
similar to the OV5640.

These errors...

W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again
D/V4L2CameraDevice( 1266): preview_num: 6, picture_num: 0
W/V4L2CameraDevice( 1266): GetPreviewFrame: VIDIOC_DQBUF Failed, Try again



Example of a fault....

D/PreviewWindow( 6057): onNextFrameAvailable: Adjusting preview
windows 0x41260d50 geometry to 640x480
I/SurfaceFlinger( 1263): GraphicBufferAlloc::createGraphicBuffer
I/SurfaceFlinger( 1263): GraphicBufferAlloc::createGraphicBuffer
I/SurfaceFlinger( 1263): GraphicBufferAlloc::createGraphicBuffer
I/ActivityManager( 2114): Displayed
com.android.gallery3d/com.android.camera.CameraLauncher: +1s264ms
I/SurfaceFlinger( 1263): GraphicBufferAlloc::createGraphicBuffer
V/GLRootView( 7525): width 1280, height 720
V/GLRootView( 7525): width 1280, height 720
I/SurfaceFlinger( 1263): GraphicBufferAlloc::createGraphicBuffer
I/SurfaceFlinger( 1263): GraphicBufferAlloc::createGraphicBuffer
I/SurfaceFlinger( 1263): GraphicBufferAlloc::createGraphicBuffer
I/SurfaceFlinger( 1263): GraphicBufferAlloc::createGraphicBuffer
D/dalvikvm( 7525): GC_FOR_ALLOC freed 76K, 16% free 6712K/7916K,
paused 36ms, total 36ms
V/audio_hw_primary( 6057): start_output_stream, line: 1345
V/audio_hw_primary( 6057): select_output_device, devices: 80000006, mode: 0
V/audio_hw_primary( 6057): ****LINE:1311,FUNC:select_output_device
V/audio_hw_primary( 6057): use AUDIO_HDMI to playback audio
V/alsa_pcm( 6057): pcm_open_req, playback card: 1, device: 0, req_rate: 44100
V/alsa_pcm( 6057): size rate is 9
V/alsa_pcm( 6057): pcm_open_req try channels: 2, rate: 44100
V/alsa_pcm( 6057): pcm_open_req OK config->rate: 44100
V/audio_hw_primary( 6057): do not use out resampler
V/CAM_PhotoModule( 7525): stopPreview
D/V4L2CameraDevice( 6057): V4L2CameraDevice::stopDevice
W/V4L2CameraDevice( 6057): wait until capture thread pause or exit
W/V4L2CameraDevice( 6057): should stop capture now
D/LocationManager( 7525): stopReceivingLocationUpdates
D/HALCameraFactory( 6057): Calling process is: com.android.gallery3d
V/CAM_VideoModule( 7525): mDesiredPreviewWidth=1920. mDesiredPreviewHeight=1080
V/CAM_VideoModule( 7525): startPreview
D/HALCameraFactory( 6057): Calling process is: com.android.gallery3d
D/CAM_VideoModule( 7525): [star] set video size
V/CAM_VideoModule( 7525): Video snapshot size is 1280x720
D/CameraHardware( 6057): setVideoCaptureSize next version to do ......
I/CAM_ScreenNail( 7525): aspect ratio clamping disabled
I/CAM_ScreenNail( 7525): aspect ratio clamping enabled, surfaceTexture
scale: 1.0, 1.0
D/CameraHardware( 6057): Starting camera: 1920x1080 -> NV12(yuv420sp)
D/V4L2CameraDevice( 6057): startDevice, wxh: 1920x1080, fmt: 842094158
D/LocationManager( 7525): startReceivingLocationUpdates
I/GLRootView( 7525): layout content pane 1280x720 (compensation 0)
D/PhotoView( 7525): compensation = 0, CameraRelativeFrame = Rect(0, 0
- 0, 0), mCameraRect = Rect(0, 0 - 0, 0)
I/CAM_ScreenNail( 7525): preview layout size: 1280/720
I/CAM_ScreenNail( 7525): aspect ratio clamping enabled, surfaceTexture
scale: 1.0, 1.0
D/PreviewWindow( 6057): onNextFrameAvailable: Adjusting preview
windows 0x41260d50 geometry to 1920x1080
I/SurfaceFlinger( 1263): GraphicBufferAlloc::createGraphicBuffer
F/libc ( 6057): Fatal signal 11 (SIGSEGV) at 0x44a0d000 (code=1),
thread 6066 (CameraPreviewTh)
I/DEBUG ( 1261): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG ( 1261): Build fingerprint:
'softwinners/sugar_cubietruck/sugar-cubietruck:4.2.2/JDQ39/20140213:eng/test-keys'
I/DEBUG ( 1261): Revision: '0'
I/DEBUG ( 1261): pid: 6057, tid: 6066, name: CameraPreviewTh >>>
/system/bin/mediaserver <<<
I/DEBUG ( 1261): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault
addr 44a0d000
I/DEBUG ( 1261): r0 44a0d000 r1 43430440 r2 00000180 r3 00000000
I/DEBUG ( 1261): r4 412893a0 r5 00000780 r6 41289a48 r7 001fa400
I/DEBUG ( 1261): r8 00000780 r9 00000438 sl 43139000 fp 3231564e
I/DEBUG ( 1261): ip 40ebbdfc sp 410ece10 lr 40eb05e9 pc
400ee688 cpsr 20000010
I/DEBUG ( 1261): d0 7f807f817f807e80 d1 7f80808080807f80
I/DEBUG ( 1261): d2 7f8080807f807e80 d3 807f7f807e807f80
I/DEBUG ( 1261): d4 7f807f808080807f d5 7f80807f80817f81
I/DEBUG ( 1261): d6 807f80807e817e80 d7 807f807f7f808080
I/DEBUG ( 1261): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 1261): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 1261): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 1261): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 1261): d16 0000000000000000 d17 0000000000000000
I/DEBUG ( 1261): d18 0000000000000000 d19 0000000000000000
I/DEBUG ( 1261): d20 0000000000000000 d21 0000000000000000
I/DEBUG ( 1261): d22 0000000000000000 d23 0000000000000000
I/DEBUG ( 1261): d24 0000000000000000 d25 0000000000000000
I/DEBUG ( 1261): d26 0000000000000000 d27 0000000000000000
I/DEBUG ( 1261): d28 0000000000000000 d29 0000000000000000
I/DEBUG ( 1261): d30 0000000000000000 d31 0000000000000000
I/DEBUG ( 1261): scr 00000010
I/DEBUG ( 1261):
I/DEBUG ( 1261): backtrace:
I/DEBUG ( 1261): #00 pc 00018688 /system/lib/libc.so (memcpy+136)
I/DEBUG ( 1261): #01 pc 0000a5e5
/system/lib/hw/camera.exDroid.so
(android::PreviewWindow::onNextFrameAvailable(void const*)+684)
I/DEBUG ( 1261): #02 pc 000102ad
/system/lib/hw/camera.exDroid.so
(android::V4L2CameraDevice::previewThread()+80)
I/DEBUG ( 1261): #03 pc 00011253 /system/lib/libutils.so
(android::Thread::_threadLoop(void*)+94)
I/DEBUG ( 1261): #04 pc 00010dcd /system/lib/libutils.so
I/DEBUG ( 1261): #05 pc 0000e3d8 /system/lib/libc.so (__thread_entry+72)
I/DEBUG ( 1261): #06 pc 0000dac4 /system/lib/libc.so
(pthread_create+160)
I/DEBUG ( 1261):
I/DEBUG ( 1261): stack:
I/DEBUG ( 1261): 410ecdd0 00000780
I/DEBUG ( 1261): 410ecdd4 41289a48 [heap]
I/DEBUG ( 1261): 410ecdd8 40544e1b /system/lib/libcameraservice.so
I/DEBUG ( 1261): 410ecddc 4042e893 /system/lib/libgui.so
(android::SurfaceTextureClient::dispatchSetCrop(std::__va_list)+10)
I/DEBUG ( 1261): 410ecde0 00000003
I/DEBUG ( 1261): 410ecde4 4042e17b /system/lib/libgui.so
(android::SurfaceTextureClient::hook_perform(ANativeWindow*, int,
...)+24)
I/DEBUG ( 1261): 410ecde8 412893a0 [heap]
I/DEBUG ( 1261): 410ecdec 40544e1b /system/lib/libcameraservice.so
I/DEBUG ( 1261): 410ecdf0 0000001c
I/DEBUG ( 1261): 410ecdf4 410ece04
I/DEBUG ( 1261): 410ecdf8 407cabaf
/system/lib/libsunxi_alloc.so (sunxi_flush_cache+26)
I/DEBUG ( 1261): 410ecdfc 00000005
I/DEBUG ( 1261): 410ece00 410ece08
I/DEBUG ( 1261): 410ece04 41260c48
I/DEBUG ( 1261): 410ece08 df0027ad
I/DEBUG ( 1261): 410ece0c 00000000
I/DEBUG ( 1261): #00 410ece10 44910000 /dev/ump
I/DEBUG ( 1261): 410ece14 40eb05e9
/system/lib/hw/camera.exDroid.so
(android::PreviewWindow::onNextFrameAvailable(void const*)+688)
I/DEBUG ( 1261): #01 410ece18 00000438
I/DEBUG ( 1261): 410ece1c 00000780
I/DEBUG ( 1261): 410ece20 00000438
I/DEBUG ( 1261): 410ece24 c044560f
I/DEBUG ( 1261): 410ece28 00000001
I/DEBUG ( 1261): 410ece2c 4126d898
I/DEBUG ( 1261): 410ece30 00000000
I/DEBUG ( 1261): 410ece34 40eb0c19
/system/lib/hw/camera.exDroid.so
(android::CallbackNotifier::onNextFrameSW(void const*)+64)
I/DEBUG ( 1261): 410ece38 412727a0
I/DEBUG ( 1261): 410ece3c 00000780
I/DEBUG ( 1261): 410ece40 00000001
I/DEBUG ( 1261): 410ece44 44715000 /dev/ump
I/DEBUG ( 1261): 410ece48 00000000
I/DEBUG ( 1261): 410ece4c 00000000
I/DEBUG ( 1261): 410ece50 00000780
I/DEBUG ( 1261): 410ece54 00000438
I/DEBUG ( 1261): ........ ........
I/DEBUG ( 1261): #02 410ece90 00000000
I/DEBUG ( 1261): 410ece94 41289f28 [heap]
I/DEBUG ( 1261): 410ece98 410ecea0
I/DEBUG ( 1261): 410ece9c 401ac255
/system/lib/libutils.so (android::Thread::_threadLoop(void*)+96)
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near r0:
I/DEBUG ( 1261): 44a0cfe0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0cff0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d000 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d010 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d020 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d030 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d040 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d050 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d060 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d070 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d080 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d090 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d0a0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d0b0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d0c0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 44a0d0d0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near r1:
I/DEBUG ( 1261): 43430420 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43430430 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43430440 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43430450 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43430460 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43430470 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43430480 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43430490 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 434304a0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 434304b0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 434304c0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 434304d0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 434304e0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 434304f0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43430500 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43430510 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near r4:
I/DEBUG ( 1261): 41289380 41289338 00000000 40403900 4126de18
I/DEBUG ( 1261): 41289390 00000036 00000000 00000008 41281030
I/DEBUG ( 1261): 412893a0 00000001 41260d50 00000780 00000438
I/DEBUG ( 1261): 412893b0 002f7600 3231564e 00000001 00000000
I/DEBUG ( 1261): 412893c0 00000000 40544da1 40545cc1 40545c45
I/DEBUG ( 1261): 412893d0 40545e69 41260d40 00000c0d 00000000
I/DEBUG ( 1261): 412893e0 4126e3b8 00000000 00000000 00000000
I/DEBUG ( 1261): 412893f0 00000000 2e6d6f63 72646e61 2e64696f
I/DEBUG ( 1261): 41289400 6c6c6167 33797265 00000064 00000000
I/DEBUG ( 1261): 41289410 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 41289420 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 41289430 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 41289440 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 41289450 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 41289460 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 41289470 00000000 0000005a 00000000 00000280
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near r6:
I/DEBUG ( 1261): 41289a28 00000001 41289dd8 00000007 41289e58
I/DEBUG ( 1261): 41289a38 41289e58 00000000 41289e48 00000002
I/DEBUG ( 1261): 41289a48 05710000 00000000 43139000 00000000
I/DEBUG ( 1261): 41289a58 00000780 00000438 00000000 00000000
I/DEBUG ( 1261): 41289a68 413a2ddd 00035d25 00000000 00000000
I/DEBUG ( 1261): 41289a78 00000780 00000438 3231564e 00000000
I/DEBUG ( 1261): 41289a88 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 41289a98 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 41289aa8 00000000 00000000 00000001 00000006
I/DEBUG ( 1261): 41289ab8 05a10000 00000000 43545000 00000000
I/DEBUG ( 1261): 41289ac8 00000780 00000438 00000001 00000000
I/DEBUG ( 1261): 41289ad8 413b322f 00035d25 00000000 00000000
I/DEBUG ( 1261): 41289ae8 00000780 00000438 3231564e 00000000
I/DEBUG ( 1261): 41289af8 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 41289b08 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 41289b18 00000000 00000000 00000001 00000006
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near r7:
I/DEBUG ( 1261): 001fa3e0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa3f0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa400 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa410 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa420 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa430 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa440 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa450 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa460 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa470 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa480 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa490 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa4a0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa4b0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa4c0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 001fa4d0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near sl:
I/DEBUG ( 1261): 43138fe0 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 43138ff0 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 43139000 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43139010 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43139020 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43139030 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43139040 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43139050 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43139060 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43139070 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43139080 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 43139090 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 431390a0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 431390b0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 431390c0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 431390d0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near fp:
I/DEBUG ( 1261): 3231562c ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 3231563c ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 3231564c ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 3231565c ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 3231566c ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 3231567c ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 3231568c ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 3231569c ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 323156ac ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 323156bc ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 323156cc ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 323156dc ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 323156ec ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 323156fc ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 3231570c ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261): 3231571c ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near ip:
I/DEBUG ( 1261): 40ebbddc 400ee8ac 400ee9a4 400ed558 4014b561
I/DEBUG ( 1261): 40ebbdec 400f794d 4010ed78 400f2e21 4010e971
I/DEBUG ( 1261): 40ebbdfc 400ee600 400e3524 400e3fe8 400e3738
I/DEBUG ( 1261): 40ebbe0c 400eeca9 400e3c68 40266469 4026655d
I/DEBUG ( 1261): 40ebbe1c 407cab95 402665d5 401ac0eb 401a9ea9
I/DEBUG ( 1261): 40ebbe2c 4010ec9c 401a9fb9 400e43e4 400e449c
I/DEBUG ( 1261): 40ebbe3c 400fb41d 400f35b5 400f40f1 400f3111
I/DEBUG ( 1261): 40ebbe4c 400f2f35 400e4ee9 400ef560 400f2d47
I/DEBUG ( 1261): 40ebbe5c 400fddd1 400f4ad9 40eea325 401a9f07
I/DEBUG ( 1261): 40ebbe6c 401aa0e5 401abecd 400e4068 400e4494
I/DEBUG ( 1261): 40ebbe7c 400e40a4 401ac135 401abbe9 401a7ead
I/DEBUG ( 1261): 40ebbe8c 401a8cbb 401a8cbb 401a9ea3 401a8cbb
I/DEBUG ( 1261): 40ebbe9c 401ac091 401ac0d9 4012b901 401ac085
I/DEBUG ( 1261): 40ebbeac 401ac0cd 400e2f09 400fb2ad 400fb121
I/DEBUG ( 1261): 40ebbebc 400f3d89 400fb4b1 4010ebb3 400f32ad
I/DEBUG ( 1261): 40ebbecc 400e2ef5 4014af17 4014af2b 4014af1d
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near sp:
I/DEBUG ( 1261): 410ecdf0 0000001c 410ece04 407cabaf 00000005
I/DEBUG ( 1261): 410ece00 410ece08 41260c48 df0027ad 00000000
I/DEBUG ( 1261): 410ece10 44910000 40eb05e9 00000438 00000780
I/DEBUG ( 1261): 410ece20 00000438 c044560f 00000001 4126d898
I/DEBUG ( 1261): 410ece30 00000000 40eb0c19 412727a0 00000780
I/DEBUG ( 1261): 410ece40 00000001 44715000 00000000 00000000
I/DEBUG ( 1261): 410ece50 00000780 00000438 00000000 00000000
I/DEBUG ( 1261): 410ece60 00000780 00000438 41289a20 412898a0
I/DEBUG ( 1261): 410ece70 41289a48 41289f28 41289f34 401abd35
I/DEBUG ( 1261): 410ece80 00100000 41289f78 00000000 40eb62b1
I/DEBUG ( 1261): 410ece90 00000000 41289f28 410ecea0 401ac255
I/DEBUG ( 1261): 410ecea0 41289f28 41289f28 41289f28 41289f60
I/DEBUG ( 1261): 410eceb0 41289f28 41289f90 401ac1f5 41289f28
I/DEBUG ( 1261): 410ecec0 00000000 401abdcf 00000000 41289fa8
I/DEBUG ( 1261): 410eced0 410ecffc 410ecf00 41289fa8 401abd35
I/DEBUG ( 1261): 410ecee0 41289f78 400e43dc 41289f78 410ecf00
I/DEBUG ( 1261):
I/DEBUG ( 1261): code around pc:
I/DEBUG ( 1261): 400ee668 3a000009 f5d1f080 f5d1f0c0 f5d1f100
I/DEBUG ( 1261): 400ee678 f421020d f421420d f5d1f100 e2522040
I/DEBUG ( 1261): 400ee688 f400022d f400422d 2afffff8 e2822040
I/DEBUG ( 1261): 400ee698 e2522020 3a000003 f421020d e2522020
I/DEBUG ( 1261): 400ee6a8 f400022d 2afffffb e2822020 e3120010
I/DEBUG ( 1261): 400ee6b8 0a000001 f4210a0d f4000a2d e1b0ce82
I/DEBUG ( 1261): 400ee6c8 3a000001 f421070d f400070d aa000001
I/DEBUG ( 1261): 400ee6d8 f4a1030d f480030d e1b0cf82 44d13001
I/DEBUG ( 1261): 400ee6e8 24d1c001 24d1e001 44c03001 24c0c001
I/DEBUG ( 1261): 400ee6f8 24c0e001 e8bd4001 e12fff1e e1a02001
I/DEBUG ( 1261): 400ee708 e3a01000 e92d40f1 e2603000 e2133003
I/DEBUG ( 1261): 400ee718 e1530002 81a03002 e1a01c01 e1811421
I/DEBUG ( 1261): 400ee728 e1811821 e1b0cf83 24c01001 24c01001
I/DEBUG ( 1261): 400ee738 44c01001 e0522003 98bd40f1 912fff1e
I/DEBUG ( 1261): 400ee748 e1a0c001 e1a0e001 e1a04001 e1a05001
I/DEBUG ( 1261): 400ee758 e1a06001 e1a07001 e2603000 e213301c
I/DEBUG ( 1261):
I/DEBUG ( 1261): code around lr:
I/DEBUG ( 1261): 40eb05c8 eeb0f7fe 617ef507 980b311f 627ef421
I/DEBUG ( 1261): 40eb05d8 010aeb07 0c1ff022 4460107a eea2f7fe
I/DEBUG ( 1261): 40eb05e8 b91b9b04 2b009b06 80c8f000 43572203
I/DEBUG ( 1261): 40eb05f8 90011078 462a980b f8cd464b f8cd8000
I/DEBUG ( 1261): 40eb0608 4601b008 fd82f7ff 490be0b8 f0404588
I/DEBUG ( 1261): 40eb0618 f1058082 f8cd070f f027a018 9407080f
I/DEBUG ( 1261): 40eb0628 071ff105 f8dd46b2 462eb02c 46154664
I/DEBUG ( 1261): 40eb0638 bf00e042 3231564e 32315559 32315659
I/DEBUG ( 1261): 40eb0648 56595559 3132564e 00007c57 00007cb3
I/DEBUG ( 1261): 40eb0658 000093af 00007c11 00007ca2 00007be5
I/DEBUG ( 1261): 40eb0668 00007c99 00009341 00007bbd 00007c92
I/DEBUG ( 1261): 40eb0678 00007ca9 00007b71 00007c90 000092c3
I/DEBUG ( 1261): 40eb0688 00007ca4 00007b23 00007c95 0000927f
I/DEBUG ( 1261): 40eb0698 0000b730 0000b71c 00007aa9 00007c4e
I/DEBUG ( 1261): 40eb06a8 00009205 46214658 44444632 ee3af7fe
I/DEBUG ( 1261): 40eb06b8 031ff027 3501449b dbf3454d f10e46b6
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory map around fault addr 44a0d000:
I/DEBUG ( 1261): 44715000-44a0d000 /dev/ump
I/DEBUG ( 1261): (no map for address)
I/DEBUG ( 1261): bed28000-bed49000 [stack]
E/audio_hw_primary( 6057): ##############out_write() Warning:write
fail#######################
E/audio_hw_primary( 6057): ##############out_write() Warning:write
fail#######################
I/BootReceiver( 2114): Copying /data/tombstones/tombstone_04 to
DropBox (SYSTEM_TOMBSTONE)
I/ServiceManager( 1257): service 'media.audio_policy' died
I/ServiceManager( 1257): service 'media.audio_flinger' died
I/ServiceManager( 1257): service 'media.player' died
I/ServiceManager( 1257): service 'media.camera' died
W/AudioSystem( 2683): AudioFlinger server died!
W/AudioSystem( 2114): AudioPolicyService server died!
W/Camera ( 7525): Camera server died!
W/Camera ( 7525): ICamera died
W/AudioSystem( 2114): AudioFlinger server died!
D/dalvikvm( 2114): GC_FOR_ALLOC freed 1584K, 29% free 7424K/10360K,
paused 80ms, total 82ms
E/Camera ( 7525): Error 100
E/CameraErrorCallback( 7525): Got camera error callback. error=100
D/AndroidRuntime( 7525): Shutting down VM
W/dalvikvm( 7525): threadid=1: thread exiting with uncaught exception
(group=0x41670930)
E/AndroidRuntime( 7525): FATAL EXCEPTION: main
E/AndroidRuntime( 7525): java.lang.RuntimeException: Media server died.
E/AndroidRuntime( 7525): at
com.android.camera.CameraErrorCallback.onError(CameraErrorCallback.java:32)
E/AndroidRuntime( 7525): at
android.hardware.Camera$EventHandler.handleMessage(Camera.java:822)
E/AndroidRuntime( 7525): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 7525): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 7525): at
android.app.ActivityThread.main(ActivityThread.java:5041)
E/AndroidRuntime( 7525): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 7525): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 7525): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:815)
E/AndroidRuntime( 7525): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:582)
E/AndroidRuntime( 7525): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 2114): Force finishing activity
com.android.gallery3d/com.android.camera.CameraLauncher
D/dalvikvm( 7525): GC_CONCURRENT freed 510K, 14% free 8130K/9428K,
paused 4ms+13ms, total 113ms
D/dalvikvm( 2114): GC_FOR_ALLOC freed 968K, 29% free 7365K/10360K,
paused 72ms, total 72ms
I/mediaserver( 8012): ServiceManager: 0x4184de88
I/AudioFlinger( 8012): Using default 3000 mSec as standby time.
I/CameraService( 8012): CameraService started (pid=8012)
D/HALCameraFactory( 8012): camera hal version: 3000130327_V1.0
I/Process ( 7525): Sending signal. PID: 7525 SIG: 9
D/HALCameraFactory( 8012): There is 1 attached cameras and 0 removable cameras
I/AudioPolicyManagerBase( 8012): loadAudioPolicyConfig() loaded
/system/etc/audio_policy.conf
V/audio_hw_primary( 8012): init_audio_devices, line: 607
D/audio_hw_primary( 8012): read card /sys/class/sound/card0/id
D/audio_hw_primary( 8012): /sys/class/sound/card0/id, audiocodec, len: 11
D/audio_hw_primary( 8012): find name map
D/audio_hw_primary( 8012): linux name = audiocodec, android name = AUDIO_CODEC
V/audio_hw_primary( 8012): card: 0, name: AUDIO_CODEC, capture: 1, playback: 1
D/audio_hw_primary( 8012): read card /sys/class/sound/card1/id
D/audio_hw_primary( 8012): /sys/class/sound/card1/id, sndhdmi, len: 8
D/audio_hw_primary( 8012): find name map
D/audio_hw_primary( 8012): linux name = sndhdmi, android name = AUDIO_HDMI
V/audio_hw_primary( 8012): card: 1, name: AUDIO_HDMI, capture: 0, playback: 1
V/audio_hw_primary( 8012): init_audio_devices_active, line: 631
V/audio_hw_primary( 8012): init_audio_devices_active: get property
audio.input.active: AUDIO_CODEC
V/audio_hw_primary( 8012): set property audio.input.active: AUDIO_CODEC ok
V/audio_hw_primary( 8012): AUDIO_CODEC input device will be active
V/audio_hw_primary( 8012): init_audio_devices_active: get property
audio.output.active: AUDIO_HDMI
V/audio_hw_primary( 8012): set property audio.output.active: AUDIO_HDMI ok
V/audio_hw_primary( 8012): AUDIO_HDMI output device will be active
V/audio_hw_primary( 8012): OK, default adev->devices: 80000404
V/audio_hw_primary( 8012): use AUDIO_CODEC mixer control
V/audio_hw_primary( 8012): get property ro.audio.multi.output: true
V/audio_hw_primary( 8012): select_output_device, devices: 80000006, mode: 0
V/audio_hw_primary( 8012): ****LINE:1311,FUNC:select_output_device
V/audio_hw_primary( 8012): adev_get_master_volume, line: 3014

Another one....

I/Monkey ( 1260): Start to trigger some missing uevent
I/Monkey ( 1260): wrote add to /sys/block/nandk/uevent
W/Vold ( 1258): Duplicate state (1)
D/AndroidRuntime( 4688):
D/AndroidRuntime( 4688): >>>>>> AndroidRuntime START
com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 4688): CheckJNI is OFF
D/dalvikvm( 4688): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 4688): Added shared lib libjavacore.so 0x0
D/dalvikvm( 4688): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 4688): Added shared lib libnativehelper.so 0x0
I/SamplingProfilerIntegration( 4688): Profiling disabled.
D/dalvikvm( 4688): GC_EXPLICIT freed 27K, 8% free 408K/440K, paused
1ms+0ms, total 3ms
I/Zygote ( 4688): Preloading classes...
I/Zygote ( 4688): Preloading resources...
D/dalvikvm( 4688): GC_EXPLICIT freed 11K, 3% free 439K/452K, paused
0ms+0ms, total 4ms
D/dalvikvm( 4688): GC_EXPLICIT freed <1K, 3% free 463K/476K, paused
0ms+1ms, total 3ms
D/dalvikvm( 4688): GC_EXPLICIT freed 6K, 3% free 563K/576K, paused
1ms+0ms, total 4ms
D/dalvikvm( 4688): WAIT_FOR_CONCURRENT_GC blocked 4ms
D/dalvikvm( 4688): GC_EXPLICIT freed 5K, 2% free 566K/576K, paused
0ms+1ms, total 5ms
D/dalvikvm( 4688): Note: class Landroid/app/ActivityManagerNative; has
157 unimplemented (abstract) methods
D/dalvikvm( 4688): GC_EXPLICIT freed 10K, 3% free 611K/624K, paused
1ms+1ms, total 4ms
D/dalvikvm( 4688): WAIT_FOR_CONCURRENT_GC blocked 3ms
D/dalvikvm( 4688): GC_EXPLICIT freed 1K, 2% free 620K/632K, paused
1ms+1ms, total 4ms
D/dalvikvm( 4688): GC_EXPLICIT freed 23K, 4% free 684K/712K, paused
2ms+1ms, total 5ms
D/dalvikvm( 4688): WAIT_FOR_CONCURRENT_GC blocked 3ms
D/dalvikvm( 4688): GC_EXPLICIT freed 2K, 3% free 692K/712K, paused
1ms+2ms, total 6ms
D/dalvikvm( 4688): GC_EXPLICIT freed 12K, 3% free 736K/756K, paused
0ms+1ms, total 5ms
D/dalvikvm( 4688): WAIT_FOR_CONCURRENT_GC blocked 4ms
D/dalvikvm( 4688): GC_EXPLICIT freed 5K, 2% free 741K/756K, paused
1ms+2ms, total 6ms
W/Zygote ( 4688): Class not found for preloading:
android.bluetooth.BluetoothAudioGateway
W/Zygote ( 4688): Class not found for preloading: android.bluetooth.HeadsetBase
W/Zygote ( 4688): Class not found for preloading:
undroid.content.AbstractThreadedSyncAdapter$SyncThread
D/dalvikvm( 4688): GC_EXPLICIT freed 17K, 3% free 781K/804K, paused
1ms+0ms, total 8ms
D/dalvikvm( 4688): WAIT_FOR_CONCURRENT_GC blocked 5ms
D/dalvikvm( 4688): GC_EXPLICIT freed 5K, 3% free 785K/804K, paused
0ms+1ms, total 5ms
D/dalvikvm( 4688): GC_EXPLICIT freed 4K, 1% free 837K/844K, paused
0ms+0ms, total 5ms
D/dalvikvm( 4688): WAIT_FOR_CONCURRENT_GC blocked 4ms
D/dalvikvm( 4688): GC_EXPLICIT freed 5K, 1% free 845K/852K, paused
0ms+2ms, total 6ms
D/dalvikvm( 4688): GC_EXPLICIT freed 15K, 2% free 883K/900K, paused
1ms+0ms, total 5ms
D/dalvikvm( 4688): WAIT_FOR_CONCURRENT_GC blocked 4ms
D/dalvikvm( 4688): GC_EXPLICIT freed 7K, 2% free 887K/900K, paused
1ms+2ms, total 6ms
D/dalvikvm( 4688): GC_EXPLICIT freed 16K, 2% free 1019K/1036K, paused
1ms+2ms, total 7ms
D/dalvikvm( 4688): GC_EXPLICIT freed 52K, 6% free 1031K/1088K, paused
0ms+1ms, total 5ms
D/dalvikvm( 4688): WAIT_FOR_CONCURRENT_GC blocked 4ms
D/dalvikvm( 4688): GC_EXPLICIT freed 5K, 5% free 1036K/1088K, paused
0ms+1ms, total 6ms
D/dalvikvm( 4688): GC_EXPLICIT freed 10K, 2% free 1091K/1104K, paused
4ms+1ms, total 9ms
D/dalvikvm( 4688): WAIT_FOR_CONCURRENT_GC blocked 5ms
D/dalvikvm( 4688): GC_EXPLICIT freed 3K, 1% free 1101K/1112K, paused
1ms+2ms, total 8ms
D/dalvikvm( 4688): GC_EXPLICIT freed 16K, 2% free 1141K/1160K, paused
1ms+1ms, total 11ms
D/dalvikvm( 4688): GC_EXPLICIT freed 7K, 1% free 1186K/1196K, paused
2ms+1ms, total 8ms
D/dalvikvm( 4688): WAIT_FOR_CONCURRENT_GC blocked 6ms
D/dalvikvm( 4688): GC_EXPLICIT freed 9K, 2% free 1190K/1204K, paused
0ms+2ms, total 8ms
D/TextLayoutCache( 4688): Using debug level = 0 - Debug Enabled = 0
D/dalvikvm( 4688): GC_EXPLICIT freed 15K, 2% free 1295K/1312K, paused
1ms+1ms, total 7ms
D/dalvikvm( 4688): WAIT_FOR_CONCURRENT_GC blocked 3ms
D/dalvikvm( 4688): GC_EXPLICIT freed 7K, 1% free 1304K/1316K, paused
0ms+3ms, total 9ms
D/dalvikvm( 4688): GC_EXPLICIT freed 6K, 1% free 1350K/1360K, paused
1ms+1ms, total 8ms
D/dalvikvm( 4688): GC_EXPLICIT freed 6K, 1% free 1398K/1412K, paused
1ms+1ms, total 8ms
I/dalvikvm( 4688): threadid=5: recursive native library load attempt
(/system/lib/libmedia_jni.so)
D/MtpDeviceJNI( 4688): register_android_mtp_MtpDevice
D/dalvikvm( 4688): GC_EXPLICIT freed 6K, 2% free 1447K/1464K, paused
1ms+1ms, total 7ms
I/dalvikvm( 4688): threadid=5: recursive native library load attempt
(/system/lib/libmedia_jni.so)
I/dalvikvm( 4688): threadid=5: recursive native library load attempt
(/system/lib/libmedia_jni.so)
F/MediaProfiles( 4688):
frameworks/av/media/libmedia/MediaProfiles.cpp:320 CHECK(quality !=
-1) failed.
F/libc ( 4688): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1),
thread 4700 (Thread-5)
D/dalvikvm( 4688): GC_EXPLICIT freed 3K, 1% free 1723K/1740K, paused
1ms+1ms, total 7ms
D/dalvikvm( 4688): GC_EXPLICIT freed 2K, 1% free 1791K/1800K, paused
1ms+2ms, total 9ms
D/dalvikvm( 4688): GC_EXPLICIT freed 5K, 1% free 2113K/2132K, paused
1ms+1ms, total 8ms
D/dalvikvm( 4688): GC_EXPLICIT freed 13K, 1% free 2163K/2180K, paused
1ms+1ms, total 8ms
I/DEBUG ( 1261): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG ( 1261): Build fingerprint:
'softwinners/sugar_cubietruck/sugar-cubietruck:4.2.2/JDQ39/20140213:eng/test-keys'
I/DEBUG ( 1261): Revision: '0'
I/DEBUG ( 1261): pid: 4688, tid: 4700, name: Thread-5 >>> zygote <<<
I/DEBUG ( 1261): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault
addr deadbaad
I/DEBUG ( 1261): r0 00000027 r1 deadbaad r2 400fe258 r3 00000000
I/DEBUG ( 1261): r4 00000000 r5 59e734dc r6 59f79d18 r7 ffffffff
I/DEBUG ( 1261): r8 5ae40855 r9 5ae40855 sl 5a5858d8 fp 5ae4069f
I/DEBUG ( 1261): ip 400b1fa8 sp 59e734d8 lr 400d10d9 pc
400cd772 cpsr 60000030
I/DEBUG ( 1261): d0 6c6961662029312d d1 2f616964656d2f76
I/DEBUG ( 1261): d2 616964656d62696c d3 7250616964654d2f
I/DEBUG ( 1261): d4 632e73656c69666f d5 43203032333a7070
I/DEBUG ( 1261): d6 617571284b434548 d7 203d21207974696c
I/DEBUG ( 1261): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 1261): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 1261): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 1261): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 1261): d16 000000000af02203 d17 000000000aebb5b0
I/DEBUG ( 1261): d18 0033003200310030 d19 0000000000000006
I/DEBUG ( 1261): d20 0000000000000000 d21 0000000000000000
I/DEBUG ( 1261): d22 0000000000000000 d23 0000000000000000
I/DEBUG ( 1261): d24 0000000000000000 d25 0000000000000000
I/DEBUG ( 1261): d26 0000000000000000 d27 0000000000000000
I/DEBUG ( 1261): d28 0000000000000005 d29 0000000000000000
I/DEBUG ( 1261): d30 0000000000000000 d31 0000000000000000
I/DEBUG ( 1261): scr 60000010
I/DEBUG ( 1261):
I/DEBUG ( 1261): backtrace:
I/DEBUG ( 1261): #00 pc 0001a772 /system/lib/libc.so
I/DEBUG ( 1261): #01 pc 00018070 /system/lib/libc.so (abort+4)
I/DEBUG ( 1261): #02 pc 00001425 /system/lib/liblog.so
(__android_log_assert+88)
I/DEBUG ( 1261): #03 pc 00059b49 /system/lib/libmedia.so
(android::MediaProfiles::createCamcorderProfile(int, char const**,
android::Vector<int>&)+84)
I/DEBUG ( 1261): #04 pc 00059fe9 /system/lib/libmedia.so
(android::MediaProfiles::startElementHandler(void*, char const*, char
const**)+304)
I/DEBUG ( 1261): #05 pc 0000638b /system/lib/libexpat.so
I/DEBUG ( 1261): #06 pc 000068b1 /system/lib/libexpat.so
I/DEBUG ( 1261): #07 pc 0000773f /system/lib/libexpat.so
(XML_ParseBuffer+142)
I/DEBUG ( 1261): #08 pc 0005afcf /system/lib/libmedia.so
(android::MediaProfiles::createInstanceFromXmlFile(char const*)+162)
I/DEBUG ( 1261): #09 pc 0005b0d1 /system/lib/libmedia.so
(android::MediaProfiles::getInstance()+92)
I/DEBUG ( 1261): #10 pc 0001676b /system/lib/libmedia_jni.so
I/DEBUG ( 1261): #11 pc 0001e290 /system/lib/libdvm.so
(dvmPlatformInvoke+112)
I/DEBUG ( 1261): #12 pc 0004d3e1 /system/lib/libdvm.so
(dvmCallJNIMethod(unsigned int const*, JValue*, Method const*,
Thread*)+396)
I/DEBUG ( 1261): #13 pc 000276a0 /system/lib/libdvm.so
I/DEBUG ( 1261): #14 pc 0002b57c /system/lib/libdvm.so
(dvmInterpret(Thread*, Method const*, JValue*)+184)
I/DEBUG ( 1261): #15 pc 0005fc01 /system/lib/libdvm.so
(dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*,
std::__va_list)+272)
I/DEBUG ( 1261): #16 pc 0005fc2b /system/lib/libdvm.so
(dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
I/DEBUG ( 1261): #17 pc 0006ac81 /system/lib/libdvm.so
(dvmInitClass+1036)
I/DEBUG ( 1261): #18 pc 0006adf5 /system/lib/libdvm.so
(dvmFindClass(char const*, Object*)+16)
I/DEBUG ( 1261): #19 pc 000645af /system/lib/libdvm.so
(dvmFindClassByName(StringObject*, Object*, bool)+78)
I/DEBUG ( 1261): #20 pc 00066545 /system/lib/libdvm.so
I/DEBUG ( 1261): #21 pc 000276a0 /system/lib/libdvm.so
I/DEBUG ( 1261): #22 pc 0002b57c /system/lib/libdvm.so
(dvmInterpret(Thread*, Method const*, JValue*)+184)
I/DEBUG ( 1261): #23 pc 0005fc01 /system/lib/libdvm.so
(dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*,
std::__va_list)+272)
I/DEBUG ( 1261): #24 pc 0005fc2b /system/lib/libdvm.so
(dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
I/DEBUG ( 1261): #25 pc 000547a7 /system/lib/libdvm.so
I/DEBUG ( 1261): #26 pc 0000e3d8 /system/lib/libc.so (__thread_entry+72)
I/DEBUG ( 1261): #27 pc 0000dac4 /system/lib/libc.so
(pthread_create+160)
I/DEBUG ( 1261):
I/DEBUG ( 1261): stack:
I/DEBUG ( 1261): 59e73498 00000000
I/DEBUG ( 1261): 59e7349c 00000000
I/DEBUG ( 1261): 59e734a0 00000000
I/DEBUG ( 1261): 59e734a4 00000000
I/DEBUG ( 1261): 59e734a8 00004000
I/DEBUG ( 1261): 59e734ac 59e7355b
I/DEBUG ( 1261): 59e734b0 400fb210 /system/lib/libc.so
I/DEBUG ( 1261): 59e734b4 400fe408
I/DEBUG ( 1261): 59e734b8 00000000
I/DEBUG ( 1261): 59e734bc 400d10d9 /system/lib/libc.so (_fwalk+32)
I/DEBUG ( 1261): 59e734c0 00000001
I/DEBUG ( 1261): 59e734c4 59e734dc
I/DEBUG ( 1261): 59e734c8 59f79d18
I/DEBUG ( 1261): 59e734cc ffffffff
I/DEBUG ( 1261): 59e734d0 df0027ad
I/DEBUG ( 1261): 59e734d4 00000000
I/DEBUG ( 1261): #00 59e734d8 00000000
I/DEBUG ( 1261): 59e734dc fffffbdf
I/DEBUG ( 1261): 59e734e0 59e734dc
I/DEBUG ( 1261): 59e734e4 00000001
I/DEBUG ( 1261): 59e734e8 40a5c46a /system/lib/libmedia.so
I/DEBUG ( 1261): 59e734ec 0000000e
I/DEBUG ( 1261): 59e734f0 59e7350c
I/DEBUG ( 1261): 59e734f4 40a5c46a /system/lib/libmedia.so
I/DEBUG ( 1261): 59e734f8 00000000
I/DEBUG ( 1261): 59e734fc 400cb074 /system/lib/libc.so
(__pthread_clone)
I/DEBUG ( 1261): #01 59e73500 400af089 /system/lib/liblog.so
I/DEBUG ( 1261): 59e73504 400af429 /system/lib/liblog.so
(__android_log_assert+92)
I/DEBUG ( 1261): #02 59e73508 59e7391c
I/DEBUG ( 1261): 59e7350c 6d617266
I/DEBUG ( 1261): 59e73510 726f7765
I/DEBUG ( 1261): 59e73514 612f736b
I/DEBUG ( 1261): 59e73518 656d2f76
I/DEBUG ( 1261): 59e7351c 2f616964
I/DEBUG ( 1261): 59e73520 6d62696c
I/DEBUG ( 1261): 59e73524 61696465
I/DEBUG ( 1261): 59e73528 64654d2f
I/DEBUG ( 1261): 59e7352c 72506169
I/DEBUG ( 1261): 59e73530 6c69666f
I/DEBUG ( 1261): 59e73534 632e7365
I/DEBUG ( 1261): 59e73538 333a7070
I/DEBUG ( 1261): 59e7353c 43203032
/dev/ashmem/dalvik-heap (deleted)
I/DEBUG ( 1261): 59e73540 4b434548
/dev/ashmem/dalvik-heap (deleted)
I/DEBUG ( 1261): 59e73544 61757128
I/DEBUG ( 1261): ........ ........
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near r2:
I/DEBUG ( 1261): 400fe238 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400fe248 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400fe258 00000001 00000000 00000000 00000000
I/DEBUG ( 1261): 400fe268 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400fe278 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400fe288 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400fe298 00000000 00000000 02b0145e 00000000
I/DEBUG ( 1261): 400fe2a8 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400fe2b8 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400fe2c8 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400fe2d8 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400fe2e8 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400fe2f8 00000000 00000000 00000000 00004000
I/DEBUG ( 1261): 400fe308 00000000 00000000 00000000 00004000
I/DEBUG ( 1261): 400fe318 00000000 00000000 00000000 00004000
I/DEBUG ( 1261): 400fe328 00000000 00000000 00000000 00004000
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near r5:
I/DEBUG ( 1261): 59e734bc 400d10d9 00000001 59e734dc 59f79d18
I/DEBUG ( 1261): 59e734cc ffffffff df0027ad 00000000 00000000
I/DEBUG ( 1261): 59e734dc fffffbdf 59e734dc 00000001 40a5c46a
I/DEBUG ( 1261): 59e734ec 0000000e 59e7350c 40a5c46a 00000000
I/DEBUG ( 1261): 59e734fc 400cb074 400af089 400af429 59e7391c
I/DEBUG ( 1261): 59e7350c 6d617266 726f7765 612f736b 656d2f76
I/DEBUG ( 1261): 59e7351c 2f616964 6d62696c 61696465 64654d2f
I/DEBUG ( 1261): 59e7352c 72506169 6c69666f 632e7365 333a7070
I/DEBUG ( 1261): 59e7353c 43203032 4b434548 61757128 7974696c
I/DEBUG ( 1261): 59e7354c 203d2120 2029312d 6c696166 002e6465
I/DEBUG ( 1261): 59e7355c 65766974 62696c20 79726172 616f6c20
I/DEBUG ( 1261): 59e7356c 74612064 706d6574 2f282074 74737973
I/DEBUG ( 1261): 59e7357c 6c2f6d65 6c2f6269 656d6269 5f616964
I/DEBUG ( 1261): 59e7358c 2e696e6a 00296f73 00000001 59e736cc
I/DEBUG ( 1261): 59e7359c 400982b3 00000005 5aef4aef 4009ef98
I/DEBUG ( 1261): 59e735ac 40098279 000001ff 400985ff 0000c068
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near r6:
I/DEBUG ( 1261): 59f79cf8 00000007 00000004 40a77880 5ae41f18
I/DEBUG ( 1261): 59f79d08 00000001 00000007 00000008 00000000
I/DEBUG ( 1261): 59f79d18 40a77640 59f79d58 00000001 00000007
I/DEBUG ( 1261): 59f79d28 00000004 00000000 40a778f0 00000000
I/DEBUG ( 1261): 59f79d38 00000000 00000007 00000004 0000002b
I/DEBUG ( 1261): 59f79d48 00000001 00000010 00000000 00000000
I/DEBUG ( 1261): 59f79d58 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 59f79d68 00000000 0000002b 00000001 00000010
I/DEBUG ( 1261): 59f79d78 00000000 00000000 5ae41fa0 00000000
I/DEBUG ( 1261): 59f79d88 00000000 00000000 00000028 0000004b
I/DEBUG ( 1261): 59f79d98 4023a690 00000001 403cf474 40c61988
I/DEBUG ( 1261): 59f79da8 00000000 075bcd15 00000000 403a6908
I/DEBUG ( 1261): 59f79db8 02000101 40c61988 00000300 00000000
I/DEBUG ( 1261): 59f79dc8 40b08030 00000001 24f00011 00000000
I/DEBUG ( 1261): 59f79dd8 00000000 00000013 5a5869e9 00000000
I/DEBUG ( 1261): 59f79de8 00000001 0000004b 4023a690 00000001
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near r8:
I/DEBUG ( 1261): 5ae40834 20202020 20202020 636e453c 7265646f
I/DEBUG ( 1261): 5ae40844 666f7250 20656c69 6c617571 3d797469
I/DEBUG ( 1261): 5ae40854 64726f22 72507265 6c69666f 0d3e7365
I/DEBUG ( 1261): 5ae40864 200a0d0a 20202020 3c202020 6f636e45
I/DEBUG ( 1261): 5ae40874 50726564 69666f72 7120656c 696c6175
I/DEBUG ( 1261): 5ae40884 223d7974 70303834 69662022 6f46656c
I/DEBUG ( 1261): 5ae40894 74616d72 706d223d 64202234 74617275
I/DEBUG ( 1261): 5ae408a4 3d6e6f69 22303622 200a0d3e 20202020
I/DEBUG ( 1261): 5ae408b4 20202020 3c202020 65646956 6f63206f
I/DEBUG ( 1261): 5ae408c4 3d636564 36326822 0a0d2234 20202020
I/DEBUG ( 1261): 5ae408d4 20202020 20202020 20202020 62202020
I/DEBUG ( 1261): 5ae408e4 61527469 223d6574 30303031 22303030
I/DEBUG ( 1261): 5ae408f4 20200a0d 20202020 20202020 20202020
I/DEBUG ( 1261): 5ae40904 20202020 64697720 223d6874 22303436
I/DEBUG ( 1261): 5ae40914 20200a0d 20202020 20202020 20202020
I/DEBUG ( 1261): 5ae40924 20202020 69656820 3d746867 30383422
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near r9:
I/DEBUG ( 1261): 5ae40834 20202020 20202020 636e453c 7265646f
I/DEBUG ( 1261): 5ae40844 666f7250 20656c69 6c617571 3d797469
I/DEBUG ( 1261): 5ae40854 64726f22 72507265 6c69666f 0d3e7365
I/DEBUG ( 1261): 5ae40864 200a0d0a 20202020 3c202020 6f636e45
I/DEBUG ( 1261): 5ae40874 50726564 69666f72 7120656c 696c6175
I/DEBUG ( 1261): 5ae40884 223d7974 70303834 69662022 6f46656c
I/DEBUG ( 1261): 5ae40894 74616d72 706d223d 64202234 74617275
I/DEBUG ( 1261): 5ae408a4 3d6e6f69 22303622 200a0d3e 20202020
I/DEBUG ( 1261): 5ae408b4 20202020 3c202020 65646956 6f63206f
I/DEBUG ( 1261): 5ae408c4 3d636564 36326822 0a0d2234 20202020
I/DEBUG ( 1261): 5ae408d4 20202020 20202020 20202020 62202020
I/DEBUG ( 1261): 5ae408e4 61527469 223d6574 30303031 22303030
I/DEBUG ( 1261): 5ae408f4 20200a0d 20202020 20202020 20202020
I/DEBUG ( 1261): 5ae40904 20202020 64697720 223d6874 22303436
I/DEBUG ( 1261): 5ae40914 20200a0d 20202020 20202020 20202020
I/DEBUG ( 1261): 5ae40924 20202020 69656820 3d746867 30383422
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near sl:
I/DEBUG ( 1261): 5a5858b8 40413b8d 00000000 00000027 00000000
I/DEBUG ( 1261): 5a5858c8 00000001 00000000 4041288d 00000000
I/DEBUG ( 1261): 5a5858d8 5ae40690 5ae406ce 5ae405e0 00000000
I/DEBUG ( 1261): 5a5858e8 00000000 00000001 00000003 00000000
I/DEBUG ( 1261): 5a5858f8 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 5a585908 00000000 00000000 5ae41da8 5ae41b68
I/DEBUG ( 1261): 5a585918 00000000 5a584de0 00000000 5ae41f40
I/DEBUG ( 1261): 5a585928 00000000 00000000 00000000 00000010
I/DEBUG ( 1261): 5a585938 00000006 ffffffff 5ae42f20 00000000
I/DEBUG ( 1261): 5a585948 00000000 00000000 00000058 0000000c
I/DEBUG ( 1261): 5a585958 5ae73008 00000000 5ae73410 5ae7301c
I/DEBUG ( 1261): 5a585968 5ae7301c 5a5857c4 00000000 00000000
I/DEBUG ( 1261): 5a585978 00000000 00000000 00000000 5a5857c4
I/DEBUG ( 1261): 5a585988 59f79e38 00000020 00000021 00000000
I/DEBUG ( 1261): 5a585998 00000001 00000000 00000000 00000000
I/DEBUG ( 1261): 5a5859a8 14d6b42b 0000010b 00000000 00000000
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near fp:
I/DEBUG ( 1261): 5ae4067c 20200a0d 20202020 0a0d2020 20202020
I/DEBUG ( 1261): 5ae4068c 20202020 636e453c 7265646f 666f7250
I/DEBUG ( 1261): 5ae4069c 20656c69 6c617571 3d797469 30303622
I/DEBUG ( 1261): 5ae406ac 66202270 46656c69 616d726f 6d223d74
I/DEBUG ( 1261): 5ae406bc 20223470 61727564 6e6f6974 3036223d
I/DEBUG ( 1261): 5ae406cc 0a0d3e22 20202020 20202020 20202020
I/DEBUG ( 1261): 5ae406dc 6469563c 63206f65 6365646f 3268223d
I/DEBUG ( 1261): 5ae406ec 0d223436 2020200a 20202020 20202020
I/DEBUG ( 1261): 5ae406fc 20202020 20202020 52746962 3d657461
I/DEBUG ( 1261): 5ae4070c 30303122 30303030 200a0d22 20202020
I/DEBUG ( 1261): 5ae4071c 20202020 20202020 20202020 69772020
I/DEBUG ( 1261): 5ae4072c 3d687464 30303822 200a0d22 20202020
I/DEBUG ( 1261): 5ae4073c 20202020 20202020 20202020 65682020
I/DEBUG ( 1261): 5ae4074c 74686769 3036223d 0a0d2230 20202020
I/DEBUG ( 1261): 5ae4075c 20202020 20202020 20202020 66202020
I/DEBUG ( 1261): 5ae4076c 656d6172 65746152 3033223d 3e2f2022
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near ip:
I/DEBUG ( 1261): 400b1f88 400ca558 400cb9a4 400ebbb3 400cc560
I/DEBUG ( 1261): 400b1f98 400d429d 400c5771 400d1a7d 400cb8ac
I/DEBUG ( 1261): 400b1fa8 400cb06c 400cb600 400d0635 400bff1d
I/DEBUG ( 1261): 400b1fb8 400bff09 400d8041 400d8061 400d81c7
I/DEBUG ( 1261): 400b1fc8 400d06f5 400dadd1 400dbbc1 400ebc9c
I/DEBUG ( 1261): 400b1fd8 400bfef5 400d8021 400d80f9 400c9d88
I/DEBUG ( 1261): 400b1fe8 400c9ec4 400cbca9 400c9e44 400ced53
I/DEBUG ( 1261): 400b1ff8 400d7629 400d4d77 400b2000 00000003
I/DEBUG ( 1261): 400b2008 00000004 00000005 00000006 400af089
I/DEBUG ( 1261): 400b2018 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400b2028 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400b2038 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400b2048 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400b2058 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400b2068 00000000 00000000 00000000 00000000
I/DEBUG ( 1261): 400b2078 00000000 00000000 00000000 00000000
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory near sp:
I/DEBUG ( 1261): 59e734b8 00000000 400d10d9 00000001 59e734dc
I/DEBUG ( 1261): 59e734c8 59f79d18 ffffffff df0027ad 00000000
I/DEBUG ( 1261): 59e734d8 00000000 fffffbdf 59e734dc 00000001
I/DEBUG ( 1261): 59e734e8 40a5c46a 0000000e 59e7350c 40a5c46a
I/DEBUG ( 1261): 59e734f8 00000000 400cb074 400af089 400af429
I/DEBUG ( 1261): 59e73508 59e7391c 6d617266 726f7765 612f736b
I/DEBUG ( 1261): 59e73518 656d2f76 2f616964 6d62696c 61696465
I/DEBUG ( 1261): 59e73528 64654d2f 72506169 6c69666f 632e7365
I/DEBUG ( 1261): 59e73538 333a7070 43203032 4b434548 61757128
I/DEBUG ( 1261): 59e73548 7974696c 203d2120 2029312d 6c696166
I/DEBUG ( 1261): 59e73558 002e6465 65766974 62696c20 79726172
I/DEBUG ( 1261): 59e73568 616f6c20 74612064 706d6574 2f282074
I/DEBUG ( 1261): 59e73578 74737973 6c2f6d65 6c2f6269 656d6269
I/DEBUG ( 1261): 59e73588 5f616964 2e696e6a 00296f73 00000001
I/DEBUG ( 1261): 59e73598 59e736cc 400982b3 00000005 5aef4aef
I/DEBUG ( 1261): 59e735a8 4009ef98 40098279 000001ff 400985ff
I/DEBUG ( 1261):
I/DEBUG ( 1261): code around pc:
I/DEBUG ( 1261): 400cd750 e000b164 6823461c d1fb2b00 68e3e026
I/DEBUG ( 1261): 400cd760 4a17b123 447a2401 47986014 20274911
I/DEBUG ( 1261): 400cd770 70082400 eb86f7fc f7fd2106 a902ecea
I/DEBUG ( 1261): 400cd780 f04f2006 460a5380 94029304 f7fd9403
I/DEBUG ( 1261): 400cd790 4629e8d0 20024622 e8d8f7fd eb72f7fc
I/DEBUG ( 1261): 400cd7a0 f7fd2106 2001ecd6 e892f7fc 2a006962
I/DEBUG ( 1261): 400cd7b0 e7d4d1dc deadbaad 0002d826 00030b0a
I/DEBUG ( 1261): 400cd7c0 00030aee 2400b510 aa04b088 46699002
I/DEBUG ( 1261): 400cd7d0 94014620 94039400 e830f7fd bfb842a0
I/DEBUG ( 1261): 400cd7e0 db054620 b1139b07 1c489906 98069006
I/DEBUG ( 1261): 400cd7f0 bd10b008 4604b510 e9c6f7fc d10542a0
I/DEBUG ( 1261): 400cd800 447b4b04 6018681b bd102000 30fff04f
I/DEBUG ( 1261): 400cd810 bf00bd10 0002d75a 460db538 481eb928
I/DEBUG ( 1261): 400cd820 f7fc4478 2800edc4 b9fdd130 2102481b
I/DEBUG ( 1261): 400cd830 f0014478 2800faae db274604 f7fc4629
I/DEBUG ( 1261): 400cd840 2800ec4e 2101db0b f7fc4620 2800ec48
I/DEBUG ( 1261):
I/DEBUG ( 1261): code around lr:
I/DEBUG ( 1261): 400d10b8 41f0e92d 4c0b2600 447c4680 68a56824
I/DEBUG ( 1261): 400d10c8 e0076867 300cf9b5 dd022b00 47c04628
I/DEBUG ( 1261): 400d10d8 35544306 d5f53f01 2c006824 4630d1ef
I/DEBUG ( 1261): 400d10e8 81f0e8bd 00029ec2 43f0e92d fb01461f
I/DEBUG ( 1261): 400d10f8 f8dff602 b0878058 44f8460c 8000f8d8
I/DEBUG ( 1261): 400d1108 9001a901 f8d84615 20013000 96059602
I/DEBUG ( 1261): 400d1118 90049103 4638b113 fa35f7ff a9034638
I/DEBUG ( 1261): 400d1128 fe9bf7ff 2000f8d8 b1124681 f7ff4638
I/DEBUG ( 1261): 400d1138 f1b9fa37 d0050f00 46219d05 f01a1b70
I/DEBUG ( 1261): 400d1148 4605ed46 b0074628 83f0e8bd 00029e3a
I/DEBUG ( 1261): 400d1158 1e4b6841 2b006043 f000da01 6803bbab
I/DEBUG ( 1261): 400d1168 2b01f813 46106003 00004770 4604b570
I/DEBUG ( 1261): 400d1178 447e4e0d 68336836 f7ffb10b 6861fa04
I/DEBUG ( 1261): 400d1188 60601e48 bfa22800 f8106820 60205b01
I/DEBUG ( 1261): 400d1198 4620da03 fb8ef000 68324605 4620b112
I/DEBUG ( 1261): 400d11a8 f9fef7ff bd704628 00029dc2 447b4b07
I/DEBUG ( 1261):
I/DEBUG ( 1261): memory map around fault addr deadbaad:
I/DEBUG ( 1261): bea45000-bea66000 [stack]
I/DEBUG ( 1261): (no map for address)
I/DEBUG ( 1261): ffff0000-ffff1000 [vectors]
I/ServiceManager( 1257): service 'media.camera' died
I/ServiceManager( 1257): service 'media.audio_flinger' died
I/ServiceManager( 1257): service 'media.audio_policy' died
I/ServiceManager( 1257): service 'media.player' died
I/Netd ( 4722): Netd 1.0 starting
W/InterfaceController( 4722): Warning (Cannot load library:
load_library(linker.cpp:745): library "/system/lib/libnetcmdiface.so"
not found) while opening the net interface command library
I/mediaserver( 4721): ServiceManager: 0x40d60eb8
I/AudioFlinger( 4721): Using default 3000 mSec as standby time.
I/CameraService( 4721): CameraService started (pid=4721)
D/HALCameraFactory( 4721): camera hal version: 3000130327_V1.0
D/HALCameraFactory( 4721): There is 1 attached cameras and 0 removable cameras
I/AudioPolicyManagerBase( 4721): loadAudioPolicyConfig() loaded
/system/etc/audio_policy.conf
V/audio_hw_primary( 4721): init_audio_devices, line: 607
D/audio_hw_primary( 4721): read card /sys/class/sound/card0/id
D/audio_hw_primary( 4721): /sys/class/sound/card0/id, audiocodec, len: 11
D/audio_hw_primary( 4721): find name map
D/audio_hw_primary( 4721): linux name = audiocodec, android name = AUDIO_CODEC
V/audio_hw_primary( 4721): card: 0, name: AUDIO_CODEC, capture: 1, playback: 1
D/audio_hw_primary( 4721): read card /sys/class/sound/card1/id
D/audio_hw_primary( 4721): /sys/class/sound/card1/id, sndhdmi, len: 8
D/audio_hw_primary( 4721): find name map
D/audio_hw_primary( 4721): linux name = sndhdmi, android name = AUDIO_HDMI
V/audio_hw_primary( 4721): card: 1, name: AUDIO_HDMI, capture: 0, playback: 1
V/audio_hw_primary( 4721): init_audio_devices_active, line: 631
V/audio_hw_primary( 4721): init_audio_devices_active: get property
audio.input.active: AUDIO_CODEC
V/audio_hw_primary( 4721): set property audio.input.active: AUDIO_CODEC ok
V/audio_hw_primary( 4721): AUDIO_CODEC input device will be active
V/audio_hw_primary( 4721): init_audio_devices_active: get property
audio.output.active: AUDIO_HDMI
V/audio_hw_primary( 4721): set property audio.output.active: AUDIO_HDMI ok
V/audio_hw_primary( 4721): AUDIO_HDMI output device will be active
V/audio_hw_primary( 4721): OK, default adev->devices: 80000404
V/audio_hw_primary( 4721): use AUDIO_CODEC mixer control
V/audio_hw_primary( 4721): get property ro.audio.multi.output: true
V/audio_hw_primary( 4721): select_output_device, devices: 80000006, mode: 0
V/audio_hw_primary( 4721): ****LINE:1311,FUNC:select_output_device
V/audio_hw_primary( 4721): adev_get_master_volume, line: 3014
V/audio_hw_primary( 4721): adev_set_master_volume, line: 3008
I/AudioFlinger( 4721): loadHwModule() Loaded primary audio interface
from sunxi audio HW HAL (audio) handle 1
V/audio_hw_primary( 4721): adev_open_output_stream, flags: 2
V/audio_hw_primary( 4721): +++++++++++++++ adev_open_output_stream:
req_sample_rate: 44100, fmt: 1, channel_count: 3
I/AudioFlinger( 4721): HAL output buffer size 1056 frames, normal mix
buffer size 1056 frames
I/AudioMixer( 4721): found effect "Multichannel Downmix To Stereo"
from The Android Open Source Project
I/AudioFlinger( 4721): Using module 1 has the primary audio interface

Ivan Kozic

unread,
Feb 20, 2014, 9:59:54 AM2/20/14
to linux...@googlegroups.com
Hmm, I understand the errors that you've posted, but am not really sure what I'm looking at regarding the faults, as I have no experience with Android.

Regarding errors - your buffers are not properly dequeued - maybe they are not ready and you're trying to dequeue them?

How do you use V4L? Do you set the ioctl's or is it done somehow under-the-hood in Android?

I'm asking because in Linux it's quite easy - you queue a buffer and then wait until it's ready for dequeue. Only then you can dequeue it, not before. And you do everything with V4L ioctl's and display driver ioctls.
Basically you have full control of V4L and Display - how is this done in Android - can you post some code of your app?

jons...@gmail.com

unread,
Feb 20, 2014, 11:51:05 AM2/20/14
to linux...@googlegroups.com
I'm running CubieTruck Android on the EU3000. It works without modification.
http://docs.cubieboard.org/tutorials/ct1/installation/cb3_a20-compiling_android_image_for_cubietruck#build_android_image

I attached the source files.

Also check this out. It is the source for the AML8726 kernel. There is
a much better OV5640 driver in it.
https://drive.google.com/file/d/0B-2Z6FDzyIwrc09SZkVpQmR2RFk/edit?usp=sharing
(I copied it to google, it take several hours to download from china).

--
Jon Smirl
jons...@gmail.com
V4L2CameraDevice2.cpp
V4L2CameraDevice2.h

Ivan Kozic

unread,
Feb 21, 2014, 9:51:24 AM2/21/14
to linux...@googlegroups.com
Hmm, I think what you've sent is not an app, but a support file for V4L. Either way, I can tell what the issue is:

So, V4L2CameraDevice::captureThread is probably called somehow before V4L2CameraDevice::startDevice in the main app. startDevice needs to be called first and initialize the V4L buffers - from what I see in the current A20 driver - you only need to do S_FMT followed by QUERYBUF and then QBUF ioctls. This is a bit dirty, but quick and should work.

When V4L2CameraDevice::captureThread is started it basically checks whether the buffer is ready to be dequeued with v4l2WaitCameraReady, and then tries to dequeue a buffer with getPreviewFrame, and fails.

Something in this pipeline is not correct. I cannot look more into the code now, but it's quite strange how select() in v4l2WaitCameraReady() passes and then yet DQBUF fails. This is a bit puzzling for me.

Please take a look at the following file:
https://github.com/allwinner-ics/lichee_linux-3.0/blob/master/drivers/media/video/sun4i_csi/test/app_test_ok.c

It has the correct way of how you should use the OV5640 driver - S_FMT, QUERYBUF and QBUF are done in main_test() - you also have a loop there which calls read_frame(), where DQBUF is performed.
Check the way V4L is used in this app against your app - I'm pretty sure you have an error somewhere.

Regarding the AML8726 kernel - I don't know where you've found ov5640 driver, but I cannot find it in the tar archive.

jons...@gmail.com

unread,
Feb 21, 2014, 10:05:54 AM2/21/14
to linux...@googlegroups.com
It is not in normal place.

jonsmirl@terra:~/Downloads$ find | grep ov56
./arm-src-kernel-2013-12-27-88d2145f80/drivers/amlogic/camera/ov5640.c
./arm-src-kernel-2013-12-27-88d2145f80/drivers/amlogic/camera/ov5640_firmware.h
./arm-src-kernel-2013-12-27-88d2145f80/drivers/amlogic/camera/ov5642_firmware.h
./arm-src-kernel-2013-12-27-88d2145f80/drivers/amlogic/camera/ov5642.c
jonsmirl@terra:~/Downloads$
ov5640.c
ov5640_firmware.h

jons...@gmail.com

unread,
Feb 22, 2014, 6:23:08 PM2/22/14
to linux...@googlegroups.com
On Fri, Feb 21, 2014 at 9:51 AM, Ivan Kozic <jimm...@gmail.com> wrote:
> Hmm, I think what you've sent is not an app, but a support file for V4L.
> Either way, I can tell what the issue is:

It is the camera support library that Allwinner has supplied....

jonsmirl@terra:/work/cubietruck-android$ ls
android42/device/softwinner/common/hardware/camera -1
Android.mk
BufferListManager.cpp
BufferListManager.h
CallbackNotifier.cpp
CallbackNotifier.h
CameraDebug.h
CameraHardware2.cpp
CameraHardware2.h
CameraHardware.cpp
CameraHardware.h
CCameraConfig.cpp
CCameraConfig.h
HALCameraFactory.cpp
HALCameraFactory.h
OSAL_Mutex.c
OSAL_Mutex.h
OSAL_Queue.c
OSAL_Queue.h
PreviewWindow.cpp
PreviewWindow.h
V4L2CameraDevice2.cpp
V4L2CameraDevice2.h
V4L2CameraDevice.cpp
V4L2CameraDevice.h
jonsmirl@terra:/work/cubietruck-android$

Ivan Kozic

unread,
Mar 3, 2014, 4:49:19 AM3/3/14
to linux...@googlegroups.com
I saw it - it's an interesting driver. Not sure if it's possible to use it on our boards, as it seems to be linked to V4L2 differently.

Ivan Kozic

unread,
Mar 3, 2014, 4:51:26 AM3/3/14
to linux...@googlegroups.com
Hi John,

Yeah, that's what I've figured. Are you sure you're using this support library right?
Would be much simpler with a snippet of how you use V4L2 in your user app...

rdv...@gmail.com

unread,
Mar 27, 2014, 6:54:08 PM3/27/14
to linux...@googlegroups.com
Hello guys,
I want to get camera module mt9d112 working on cubieboard a10 over CSI. I am using ubuntu linaro with kernel version 3.4.61. Test application crashes with seg fault on (regulator_enable+0x4/0x1f8) from [<bf010138>] (sensor_power+0x190/0x398 [mt9d112]). Could you please help me to figure out where the issue is? How can I debug kernel module?

Ivan Kozic

unread,
Mar 28, 2014, 5:41:49 AM3/28/14
to linux...@googlegroups.com, rdv...@gmail.com
Hi,

You haven't given much info about this - take care with Cubieboard 1 & 2 - as far as I can remember they don't have PIXCLK routed for CSI0 port, so it's completely unusable. You should use CSI1.

Regarding the seg fault - not sure how you connected the power supplies to the sensor, but these regulator_enable are for AXP IC - if you connected the sensor to the AXP, you need to use them I guess. I for instance have just connected the sensor supply to fixed LDO's coming from either 3V3 or 5V, which is always alive, so I don't really need them, but nevertheless they aren't commented out in my driver (WiP, so still dirty) and they are working, so maybe the culprit is something else.

You didn't say which test application or given any snippets, but if it's the one coming with the driver (app_test_ok or something similar), by Rockie Cheng (this name always amuses me :) ), then it's full of bugs and issues and you should carefully go through every step and clean the crap code out (a lot of it is crap). Better yet, write a much simpler V4L2 test app yourself.

Things that also pop is the old kernel (I'm using 3.4.75 and this is already like couple of months old) and this Linaro rootfs (don't know about this - is it fully supported on Cubies?). You should probably use newer kernel just to be sure that something stupid is not breaking.

Also take care with drivers - the one for OV5640 is very badly written and full of bugs and I don't think that the supplied sensor settings are usable for anyone (they are all like 3.75 and 7.5 fps, most of them just wrong). Also sun4i_csi driver is bad (you can read some of the issues on this thread, but there are other threads as well). So mostly for a functional system all this needs to be cleaned and rewritten.

rdv...@gmail.com

unread,
Mar 28, 2014, 6:47:35 PM3/28/14
to linux...@googlegroups.com, rdv...@gmail.com
пятница, 28 марта 2014 г., 11:41:49 UTC+2 пользователь Ivan Kozic написал:
You are right for testing I using app_test_ok. This test application is full of mistakes but for now I did not even successfuly initialized camera module.
I have connected VCC of camera module to CSI1_IO_2V8 pin on the board and other pins to the rest of CSI ports. The CSI1_IO_2V8 is actually LDO4 of AXP20 and I finally found in AllWinner documentation that string "axp_hdmi" should be used in script.fex instead of axp_p11 as described in tutorial. By the way the tutorial from cubieboard is full of such mistakes. So, when I change settings string to axp_hdmi I get new portion of errors:
[ 383.721765] [CSI]Welcome to CSI driver
[ 383.723657] [CSI]csi_init
[ 383.934525] [CSI]registered sub device,input_num = 0
[ 383.939747] axp20_ldo4: Failed to create debugfs directory
[ 384.003476] [CSI]V4L2 device registered as video1
[ 385.171443] incomplete xfer (0x20)
[ 385.176430] [CSI_ERR][MT9D112]Error -70 on register write
[ 385.181925] [CSI_ERR][MT9D112]sensor_read err at sensor_detect!
[ 385.194199] [CSI_ERR][MT9D112]chip found is not an target chip.
[ 385.199069] [CSI_ERR]sensor initial error when csi open!
As I understand these error means that I2C communication is failed. The I2C address might by incorrect. But what is incomplete xfer (0x20) ?

Ivan Kozic

unread,
Mar 29, 2014, 4:34:19 PM3/29/14
to linux...@googlegroups.com
Hey getting closer :) There's still an issue with the LDO (I don't like this debugfs issue) - check if you actually get sensor voltage first. If no, there's still something funny going on with AXP, so triple-check the Fex file for LDO init. Check with a multimeter whether you really get 2V8.
Ok, so the I2C stuff is located in the driver itself - just look at the functions in the mt9d112 driver file (something like sensor_read and sensor_write) - there you should see if the sensor address is correct. Also bear in mind which I2C bus is used for sensor in the fex file for your sensor - mine is twi0, but it can easily be that you've connected the sensor to something else (on Olinuxino twi2 was also close to route for instance so I made assembly options on my interface to either use TWI0 or TWI2, as I didn't really know what is implemented in the kernel and what's not at the time...).
If you're using level converters for I2C, check them as well, especially OE's.



--
You received this message because you are subscribed to a topic in the Google Groups "linux-sunxi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/linux-sunxi/ijitRnbl8c8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to linux-sunxi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jons...@gmail.com

unread,
Mar 29, 2014, 5:56:49 PM3/29/14
to linux...@googlegroups.com
On Sat, Mar 29, 2014 at 4:34 PM, Ivan Kozic <jimm...@gmail.com> wrote:
> Hey getting closer :) There's still an issue with the LDO (I don't like this
> debugfs issue) - check if you actually get sensor voltage first. If no,
> there's still something funny going on with AXP, so triple-check the Fex
> file for LDO init. Check with a multimeter whether you really get 2V8.
> Ok, so the I2C stuff is located in the driver itself - just look at the
> functions in the mt9d112 driver file (something like sensor_read and
> sensor_write) - there you should see if the sensor address is correct. Also
> bear in mind which I2C bus is used for sensor in the fex file for your
> sensor - mine is twi0, but it can easily be that you've connected the sensor
> to something else (on Olinuxino twi2 was also close to route for instance so
> I made assembly options on my interface to either use TWI0 or TWI2, as I
> didn't really know what is implemented in the kernel and what's not at the
> time...).
> If you're using level converters for I2C, check them as well, especially
> OE's.

Are you planning on feeding this into the h.264 compression engine?
That's where I got stuck with not enough compression being done -
output stream is too many MB/s.
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
--
Jon Smirl
jons...@gmail.com

Ivan Kozic

unread,
Mar 30, 2014, 11:52:55 AM3/30/14
to linux...@googlegroups.com
Luckily not yet, it goes directly to the screen - this would be the next potential project. However, when I see how many issues disp driver has (and it's somewhat "documented"), I cannot imagine the issues with the VPU that you're having, knowing that even registers are not documented... Hopefully, it'll be a bit more functional when I get the second project.

nati...@gmail.com

unread,
Jun 26, 2014, 2:18:35 AM6/26/14
to linux...@googlegroups.com
Hello everyone! I want to run on the OV5642 sensor cubieboard2 (A20). First tried to run OV7670. Works well. Ov5642 sensor used in another project, so the working registers I have. Tried to use them in the driver ov5640 and get a green screen with lower stripes, and in the background, the image movement visible. I do not know what the problem is. Maybe the wrong color conversion? Tested through gstreamer rtp on hardware encoder cedar264. Tried to jpeg-encode the same picture.

jons...@gmail.com

unread,
Jun 26, 2014, 8:29:41 AM6/26/14
to linux-sunxi
On Thu, Jun 26, 2014 at 2:18 AM, <nati...@gmail.com> wrote:
> Hello everyone! I want to run on the OV5642 sensor cubieboard2 (A20). First tried to run OV7670. Works well. Ov5642 sensor used in another project, so the working registers I have. Tried to use them in the driver ov5640 and get a green screen with lower stripes, and in the background, the image movement visible. I do not know what the problem is. Maybe the wrong color conversion? Tested through gstreamer rtp on hardware encoder cedar264. Tried to jpeg-encode the same picture.

How are you using the hardware encoder? Do you have armhf versions of
the encoder libraries?

alex simohin

unread,
Jun 27, 2014, 12:45:53 AM6/27/14
to linux...@googlegroups.com


четверг, 26 июня 2014 г., 16:29:41 UTC+4 пользователь Jon Smirl написал:
On Thu, Jun 26, 2014 at 2:18 AM,  <nati...@gmail.com> wrote:
> Hello everyone! I want to run on the OV5642 sensor cubieboard2 (A20). First tried to run OV7670. Works well. Ov5642 sensor used in another project, so the working registers I have. Tried to use them in the driver ov5640 and get a green screen with lower stripes, and in the background, the image movement visible. I do not know what the problem is. Maybe the wrong color conversion? Tested through gstreamer rtp on hardware encoder cedar264. Tried to jpeg-encode the same picture.

How are you using the hardware encoder? Do you have armhf versions of
the encoder libraries?

Hi Jon. I use the encoder cedar_h264ens. The last question, I honestly do not understand. I have a library in a format libgstcedar.so. This plugin gstreamer.
P.S. I'm sorry for my english)

zahra...@gmail.com

unread,
Jul 1, 2014, 3:40:54 AM7/1/14
to linux...@googlegroups.com
On Thursday, June 26, 2014 10:48:35 AM UTC+4:30, alex simohin wrote:
> Hello everyone! I want to run on the OV5642 sensor cubieboard2 (A20). First tried to run OV7670. Works well. Ov5642 sensor used in another project, so the working registers I have. Tried to use them in the driver ov5640 and get a green screen with lower stripes, and in the background, the image movement visible. I do not know what the problem is. Maybe the wrong color conversion? Tested through gstreamer rtp on hardware encoder cedar264. Tried to jpeg-encode the same picture.

hi alex how did you run ov7670 on A20 could you please share your fex and any other important settings?
thanks,

alex simohin

unread,
Jul 4, 2014, 7:53:17 AM7/4/14
to linux...@googlegroups.com
Hi! I've done everything according to the instructions http://docs.cubieboard.org/tutorials/dvk521/documentations/a20/driver_porting_and_configuration. fex file I changed to ov5640. Pay attention to the sections in the manual porting I2C bus driver and porting csi driver.

вторник, 1 июля 2014 г., 11:40:54 UTC+4 пользователь zahra...@gmail.com написал:
вторник, 1 июля 2014 г., 11:40:54 UTC+4 пользователь zahra...@gmail.com написал:
script.fex

dfso...@gmail.com

unread,
Jul 11, 2014, 12:09:49 PM7/11/14
to linux...@googlegroups.com
Hi, All
I am debugging ov5640 on CB2 now.
Who have enabled the ov5640 on CB1 or 2 successfully? Hope you to share the experience here.

jons...@gmail.com

unread,
Jul 11, 2014, 1:17:26 PM7/11/14
to linux-sunxi
On Fri, Jul 11, 2014 at 12:09 PM, <dfso...@gmail.com> wrote:
> Hi, All
> I am debugging ov5640 on CB2 now.
> Who have enabled the ov5640 on CB1 or 2 successfully? Hope you to share the experience here.

How did you attach the sensor to the CB2?

Danny Song

unread,
Jul 11, 2014, 1:19:51 PM7/11/14
to linux...@googlegroups.com
I attached ov5640 to CB2 CS1 bus. 
Have you enabled the ov5640 successfully ?



You received this message because you are subscribed to a topic in the Google Groups "linux-sunxi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/linux-sunxi/ijitRnbl8c8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to linux-sunxi...@googlegroups.com.

jons...@gmail.com

unread,
Jul 11, 2014, 1:22:25 PM7/11/14
to linux-sunxi
On Fri, Jul 11, 2014 at 1:19 PM, Danny Song <dfso...@gmail.com> wrote:
> I attached ov5640 to CB2 CS1 bus.
> Have you enabled the ov5640 successfully ?

Only ov5640 I have is the one in the EU3000. It works with the
standard Allwinner Android image.

So you build some kind of converter board from a FPC cable to the CB2 pins?

Adilson Oliveira

unread,
Jul 11, 2014, 1:25:00 PM7/11/14
to linux...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Em 11-07-2014 14:19, Danny Song escreveu:
> I attached ov5640 to CB2 CS1 bus. Have you enabled the ov5640
> successfully ?

I was told by the manufacturer of eu3000 board they are moving to the
s5k4ec sensor because the OV5640 is been phased out.
I'm not 100% sure if this is true because just a design engineer told
me that but, worth the heads up I guess.

[]s

Adilson.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJTwB3MAAoJENqn0z1Ab/BxT2IH/0mO0sD4Oh0P/hbIKNuR0gPp
ejMi5Vc+IE475p/jIsNfUcXGoxuTd8iXLVjEt27UKaa96y2dU16jfC4DTy/nqrqk
Vov/IfWtWlbQZOZeu/EWzF2lJIkvNxnOjWaJ491ah9i+w0c4zKSjIEkmr/9XqoAa
BjtqjSW5268fMwrH2b2Z+XMEDtV8tByiCwyHDZvanw/tp6lnBc49YHj6pEZxi6lI
k49loXlUNPz81yF3xJGpihd29iwn9Tw5d16KuA9R1/CQcLKezVyF1OoBGlV+hgAS
dhFmwaoJK/PoybfVnKjUGKz3STr6tNHVAcn0ihmtu2lygwWkoF0UvXm4K2l0emI=
=T6Rh
-----END PGP SIGNATURE-----

dfso...@gmail.com

unread,
Jul 12, 2014, 12:24:42 PM7/12/14
to linux...@googlegroups.com
Yes, ov5640 is connected with CB2 pins by fly lines.
Can you share the camera driver which enables the ov5640?
I am trying to enable ov5640 but failed now.
Thanks in advance

dfso...@gmail.com

unread,
Jul 12, 2014, 12:27:44 PM7/12/14
to linux...@googlegroups.com
EU3000 is USB camera. Have you enabled ov5640 by CSI/DVP interface?

On Saturday, July 12, 2014 1:22:25 AM UTC+8, Jon Smirl wrote:

Adilson Oliveira

unread,
Jul 12, 2014, 12:30:41 PM7/12/14
to linux...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Em 12-07-2014 13:27, dfso...@gmail.com escreveu:
> EU3000 is USB camera. Have you enabled ov5640 by CSI/DVP
> interface?

Sure it's USB? I can't see a sign of it.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJTwWKNAAoJENqn0z1Ab/BxdkYH/3Sn9h1SkWM88FVMljLCN27b
2Brc1xPVoPF49zJplDg6cIrQ+3z8XJtb6f2utj5VFgUMZLlk3l9C2sdADxeD91Rw
6NspM3WYzK/Z5UR5NIj8BdnU7hzBVKKMnAeDB/Wo9BhljnfbpPDzNMqm34F8qIYV
7Qc1Rd/77wbIoFDX6bYkaplYo2n1SjJnh75XbVvn+dzmeIDAAGoniNElvsr5n9bd
RmEU+q3JXy8opmYuXe6F2lwgoS3HfL9QgRU0QEDPug6uf4+kkYctJJIyZrduwg2i
WKb7BznFBMVc8gB3wyJrCrb1nYb1Gc8q8SVkWxeXeRSAuTym1IVR+lKCwyQrVQA=
=0zjI
-----END PGP SIGNATURE-----

jons...@gmail.com

unread,
Jul 12, 2014, 12:34:19 PM7/12/14
to linux-sunxi
OV5640 is a parallel interface camera sensor.

I believe the latest Allwinner A20 camera code is in the A20 SDK 2.0.
https://dl.linux-sunxi.org/SDK/A20-SDK-2.0/

I don't have it downloaded on this machine. Maybe someone else has it
broken out and can just sent you the relevant files. Inside that 6GB
file is the Android tree and a kernel tree.

Danny Song

unread,
Jul 29, 2014, 8:09:42 AM7/29/14
to linux...@googlegroups.com
I have enabled the ov5640 now. it works well. Thanks

Adilson Oliveira

unread,
Jul 29, 2014, 8:28:18 AM7/29/14
to linux...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Em 29-07-2014 09:09, Danny Song escreveu:
> I have enabled the ov5640 now. it works well. Thanks

That's awesome.
Is it the code already on the main kernel?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJT15NKAAoJENqn0z1Ab/Bx2TAIAKpd5BrgXpbzl4acPpGOyUSe
Zf0iPiGVOJfpqUeLsCJ2ESHplQOkbTzNyRlGXCBI0wA6uU04yQi4dFhHVWz3+qRz
G/u+feC7fC3J6XEb6+5uGEpwBjE+jaC/803JG0trHfUqSTXGyrfrnL6aKEs8YIpY
ngr34HzFIZmqsCMzOfd2h1h72Pp/gwEiYYA6dLIDFKmZ8qwRDNbmoNF6LrnDdGGC
Uv43tzzBz9bBhzddZHKWDTN/01+loa2uL8IPHU24VXLCn/zU6HlCxWF5Xxm+VPbu
oCxkv98+CrxUyapw5JJSeha4552kEqw8CKge9Wg7u56r6hAEec+bzuy/aAld72w=
=KIfl
-----END PGP SIGNATURE-----

George Ioakimedes

unread,
Sep 6, 2014, 7:12:19 PM9/6/14
to linux...@googlegroups.com, adi...@adilson.net
I thought I'd try and resurrect this thread. I've got a new Baseboard with a CSI1 header on it connected to a OV5642 camera module. For initial testing I am running a Cubian distro with a Cubieboard A20 board. I have the following environment:

cubie@Cubian:~$ zcat /proc/config.gz | grep -i ov564
CONFIG_SOC_CAMERA_OV5642=m
CONFIG_CSI_OV5640=m

cubie@Cubian:~$ zcat /proc/config.gz | grep -i v4l
CONFIG_VIDEO_V4L2_COMMON=y
CONFIG_VIDEO_V4L2=y
CONFIG_V4L_USB_DRIVERS=y
CONFIG_V4L_PLATFORM_DRIVERS=y
# CONFIG_V4L_MEM2MEM_DRIVERS is not set

cubie@Cubian:~$ uname -a
Linux Cubian 3.4.103-00029-g0c7986b #4 PREEMPT Mon Sep 1 09:30:06 PDT 2014 armv7l GNU/Linux

Before I get too involved with trial and error testing I thought I would check here for advice and see if we can get this fully working for everyone.

Thanks,
George

jons...@gmail.com

unread,
Sep 6, 2014, 8:20:35 PM9/6/14
to linux-sunxi, Adilson Oliveira
The CSI source in the sunxi kernel is a couple of years old. First
thing I would do is update to the latest source in the Allwinner SDK.

George Ioakimedes

unread,
Sep 7, 2014, 10:42:28 AM9/7/14
to linux...@googlegroups.com, adi...@adilson.net

jons...@gmail.com

unread,
Sep 7, 2014, 11:11:45 AM9/7/14
to linux-sunxi, Adilson Oliveira
On Sun, Sep 7, 2014 at 10:42 AM, George Ioakimedes <georg...@gmail.com> wrote:
> IS it this one, http://dl.linux-sunxi.org/SDK/A20/ ?

That one is fairly recent, who knows if it is their current code.

Do these instructions work?
http://linux-sunxi.org/CedarX/Encoder

I just remember when I looked at it last year the old code in sunxi
was missing a lot of stuff that was fixed in later Allwinner releases.
The old code wasn't broken, it was just missing a bunch of stuff.

hongc...@hustunique.com

unread,
Oct 23, 2014, 5:53:31 AM10/23/14
to linux...@googlegroups.com
On Thursday, June 26, 2014 2:18:35 PM UTC+8, alex simohin wrote:
> Hello everyone! I want to run on the OV5642 sensor cubieboard2 (A20). First tried to run OV7670. Works well. Ov5642 sensor used in another project, so the working registers I have. Tried to use them in the driver ov5640 and get a green screen with lower stripes, and in the background, the image movement visible. I do not know what the problem is. Maybe the wrong color conversion? Tested through gstreamer rtp on hardware encoder cedar264. Tried to jpeg-encode the same picture.

Hi:
I saw your try to get OV7670 working was great. I met some problem getting my OV7670 work on Cubieboard2, Could you please share some information for me to help me? Sorry for my poor english. :D

Reply all
Reply to author
Forward
0 new messages