пятница, 31 мая 2013 г., 17:21:17 UTC+3 пользователь behrou...@gmail.com написал: > On Thursday, May 30, 2013 11:44:39 PM UTC+4:30, npeacock wrote: > > > On 05/30/2013 11:48 AM, mahdi Chi > > > wrote: > > > > > > > > > > > > > > > > > > > > > i have same problem > > > > > > > > > > > > > > > I completed a merge of the latest allwinner code for the CSI system > > > and I thought I submitted the patches. I think they are just > > > waiting on someone to test them and acknowledge they worked for them > > > as well. > > > > > > > > > > > > You can see the latest changes on it here > > > https://github.com/npeacock/linux-sunxi/commit/5c7c6f8b0728b6d4b54513675daa921f91f20a71 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > root@cubieboard:~# modprobe sun4i_csi1 > > > > > > <6>[CSI]Welcome to CSI driver > > > > > > <6>[CSI]csi_init > > > > > > <6>[CSI]registered sub device,input_num = 0 > > > > > > <6>[CSI]power on and power off camera! > > > > > > <6>[CSI]V4L2 device registered as video1 > > > > > > root@cubieboard:~# <6>[CSI]sensor initial success > > > when csi open! > > > > > > > > > > > > > > > > > > but when i try grab a frame > > > > > > goot@cubieboard:~# vgrabbj -l 500 -i svga -o jpg -d > > > /dev/video1 -D 7 -f teste.jp > > > > > > Could not open configfile /usr/etc/vgrabbj.conf, ignoring > > > > > > Set option OutputFile to value "teste.jpg" > > > > > > Updated pointers to new allocated memory. > > > > > > Done parsing commandline > > > > > > Setting tmpout file to teste.jpg.tmp > > > > > > <6>[CSI]sensor initial success when csi open! > > > > > > <6>[CSI_ERR]v4l2 sub device queryctrl error! > > > > > > Floating point exception > > > > > > > > > > > > > > > > > > i try this too but it doesn't work too > > > > > > > > > > > > > > > > > > root@cubieboard:~# luvcview -s 320x240 -d /dev/video1 > > > > > > luvcview 0.2.6 > > > > > > > > > > > > > > > > > > SDL information: > > > > > > Video driver: fbcon > > > > > > Hardware surfaces are available (7200k video memory) > > > > > > Device information: > > > > > > Device path: /dev/video1 > > > > > > <6>[CSI]sensor initial success when csi open! > > > > > > <6>[CSI_ERR]v4l2 sub device queryctrl error! > > > > > > Stream settings: > > > > > > Frame format: 422P (MJPG is not supported by device) > > > > > > Frame size: 320x240 > > > > > > Frame rate: 30 fps > > > > > > <6>[CSI]buffer_setup, buffer count=4, size=153600 > > > > > > Unable to map buffer: Invalid argument > > > > > > root@cubieboard:~# > > > > > > > > > > > > > > > > > > > > > i try > > > > > > > > > > > > > > > > > > root@cubieboard:/home/linaro# fswebcam -d /dev/video1 > > > > > > > > > > > > > > > > > > too but it make that board hang and need a reboot > > > > > > > > > > > > > > > > > > > > > > > > my script.bin file is : > > > > > > > > > > > > > > > > > > [csi1_para] > > > > > > > > > > > > > > > > > > csi_used = 1 > > > > > > csi_mode = 0 > > > > > > csi_dev_qty = 1 > > > > > > csi_stby_mode = 0 > > > > > > csi_mname = "ov7670" > > > > > > csi_twi_id = 1 > > > > > > csi_twi_addr = 0x42 > > > > > > ... > > > > > > csi_pck = > > > port:PG00<3><default><default><default> > > > > > > csi_ck = port:PG01<3><default><default><default> > > > > > > csi_hsync = > > > port:PG02<3><default><default><default> > > > > > > csi_vsync = > > > port:PG03<3><default><default><default> > > > > > > csi_field = > > > > > > csi_d0 = port:PG04<3><default><default><default> > > > > > > csi_d1 = port:PG05<3><default><default><default> > > > > > > csi_d2 = port:PG06<3><default><default><default> > > > > > > csi_d3 = port:PG07<3><default><default><default> > > > > > > csi_d4 = port:PG08<3><default><default><default> > > > > > > csi_d5 = port:PG09<3><default><default><default> > > > > > > csi_d6 = port:PG10<3><default><default><default> > > > > > > csi_d7 = port:PG11<3><default><default><default> > > > > > > ... > > > > > > csi_reset = > > > port:PH14<1><default><default><0> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > does somebody have idea about this? > > > > > > > > > > > > > > > > > > On Wednesday, March 20, 2013 3:50:40 PM UTC+4:30, gzamboni wrote: > > > Hi, > > > > > > > > > > > > Does anyone know the status of the CSI driver ?? > > > > > > > > > > > > I saw those patches to adapt the android's version to the linux > > > one but i cant make my camera to work. > > > > > > > > > > > > Did anyone manage to make a csi camera to work on a sunxi > > > plataform ?? > > > > > > > > > > > > I'm trying to make an OV5640 to work here using an A10 from a > > > cubieboard's CSI1 port but i cant get it to work. > > > > > > I already applied the patch but it still doesn't work. > > > > > > > > > > > > The TWI communication and the camera initialization seems to be > > > working: > > > > > > > > > > > > root@debian:~# modprobe sun4i-csi1 > > > > > > <6>[CSI]Welcome to CSI driver > > > > > > [ 44.410000] [CSI]Welcome to CSI driver > > > > > > <6>[CSI]csi_init > > > > > > [ 44.410000] [CSI]csi_init > > > > > > <6>[CSI]registered sub device,input_num = 0 > > > > > > [ 44.630000] [CSI]registered sub device,input_num = 0 > > > > > > <6>[CSI]power on and power off camera! > > > > > > [ 44.650000] [CSI]power on and power off camera! > > > > > > <6>[CSI]V4L2 device registered as video1 > > > > > > [ 44.990000] [CSI]V4L2 device registered as video1 > > > > > > root@debian:~# <6>[CSI][OV5640]disalbe oe! > > > > > > [ 45.480000] [CSI][OV5640]disalbe oe! > > > > > > <6>[CSI]sensor initial success when csi open! > > > > > > [ 46.160000] [CSI]sensor initial success when csi open! > > > > > > > > > > > > > > > > > > But when i try to use the camera eighter i get an error or a > > > kernel panic (it depends on whitch program im using): > > > > > > > > > > > > root@debian:~# vgrabbj -l 500 -i svga -o jpg -d /dev/video1 -D 7 > > > -f teste.jpg > > > > > > Could not open configfile /usr/etc/vgrabbj.conf, ignoring > > > > > > Set option OutputFile to value "teste.jpg" > > > > > > Updated pointers to new allocated memory. > > > > > > Done parsing commandline > > > > > > Setting tmpout file to teste.jpg.tmp > > > > > > <6>[CSI][OV5640]disalbe oe! > > > > > > [ 77.300000] [CSI][OV5640]disalbe oe! > > > > > > <6>[CSI]sensor initial success when csi open! > > > > > > [ 77.980000] [CSI]sensor initial success when csi open! > > > > > > <6>[CSI_ERR]v4l2 sub device queryctrl error! > > > > > > [ 78.210000] [CSI_ERR]v4l2 sub device queryctrl error! > > > > > > Floating point exception > > > > > > > > > > > > Does anyone have any idea of what it can be ? > > > > > > > > > > > > I think my fex and my schematics (hardware connections) are ok. > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Gustavo Zamboni > > > > > > > > > > > > > > > On Thu, Feb 28, 2013 at 1:20 AM, <kuliman...@gmail.com> > > > wrote: > > > > > > > > > From: Neal <ne...@nic-stix.com> > > > > > > > > > > > > --- > > > > > > drivers/media/video/sun4i_csi/csi1/sun4i_drv_csi.c | > > > 1 + > > > > > > 1 file changed, 1 insertion(+) > > > > > > > > > > > > diff --git a/drivers/media/video/sun4i_csi/csi1/sun4i_drv_csi.c > > > b/drivers/media/video/sun4i_csi/csi1/sun4i_drv_csi.c > > > > > > index d82a5eb..89399ff 100755 > > > > > > --- a/drivers/media/video/sun4i_csi/csi1/sun4i_drv_csi.c > > > > > > +++ b/drivers/media/video/sun4i_csi/csi1/sun4i_drv_csi.c > > > > > > @@ -842,6 +842,7 @@ static int vidioc_try_fmt_vid_cap(struct > > > file *file, void *priv, > > > > > > f->fmt.pix.height = ccm_fmt.height;//linux-3.0 > > > > > > // f->fmt.pix.bytesperline = > > > ccm_fmt.fmt.pix.bytesperline;//linux-3.0 > > > > > > // f->fmt.pix.sizeimage = > > > ccm_fmt.fmt.pix.sizeimage;//linux-3.0 > > > > > > + f->fmt.pix.field = ccm_fmt.field; /* Needed even > > > if none */ > > > > > > > > > > > > csi_dbg(0,"pix->width=%d\n",f->fmt.pix.width); > > > > > > csi_dbg(0,"pix->height=%d\n",f->fmt.pix.height); > > > > > > -- > > > > > > 1.7.9.5 > > > > > > > > > > > > -- > > > > > > 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. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > 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. > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Neal Peacock > > > PengPod > > > > Can you explain more about this path? > > i have the same problem and every time i try i have this error > > > > root@linaro-alip:~# <6>[CSI]sensor initial success when csi open! > > <6>[CSI_ERR]v4l2 sub device queryctrl error!
Hi, could you please post screenshot how you connect camera to cubieboard CSI port? -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.