Re: Using OMAP3 ISP live display and snapshot sample applications

2012-01-11 Thread Laurent Pinchart
Hi James,

On Wednesday 11 January 2012 05:24:35 James wrote:
 On Sun, Jan 8, 2012 at 7:30 PM, Laurent Pinchart wrote:
  On Sunday 08 January 2012 02:14:55 James wrote:
  
  [snip]
  
  BTW, can you send me the defconfig file you used for testing on overo as
  I couldn‘t compile your branch with mine.
  
  Attached.
  
  I forgot to mentioned that I'm trying out the application with the
  MT9V032 camera first on both Tobi  Chestnut board. Not with the new
  monochrome sensor yet.
  
  --
  Regards,
  
  Laurent Pinchart
 
 Thanks for the defconfig.
 
 I'll proceed to try to build a fresh kernel based on your branch
 omap3isp-sensors-board.
 
 I guess this is a better branch or should I try the YUV branch or others?

That's the right branch. The YUV branch is just work in progress.

 Test1 with MT9V032 and Test2 with monochrome sensor Y12.

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Using OMAP3 ISP live display and snapshot sample applications

2012-01-06 Thread Laurent Pinchart
Hi James,

On Wednesday 04 January 2012 08:07:23 James wrote:
 On Tue, Jan 3, 2012 at 7:17 PM, Laurent Pinchart wrote:
  On Tuesday 03 January 2012 10:40:10 James wrote:
  Hi Laurent,
  
  Happy New Year!!
  
  Thank you. Happy New Year to you as well. May 2012 bring you a workable
  OMAP3 ISP solution ;-)
 
 Yeah! that's on #1 of my 2012 wishlist!! (^^)
 
 But, it start off with a disappointment on the quest to get
 gst-launch v4l2src to work..
 http://patches.openembedded.org/patch/8895/
 
 Saw reported success in get v4l2src to work with MT9V032 by applying
 the hack but no luck with my Y12 monochrome sensor. (-.-)
 
  I saw that there is a simple viewfinder in your repo for OMAP3 and
  wish to know more about it.
  
  http://git.ideasonboard.org/?p=omap3-isp-live.git;a=summary
  
  I intend to test it with my 12-bit (Y12) monochrome camera sensor
  driver, running on top of Gumstix's (Steve v3.0) kernel.
  
  Is it workable at the moment?
  
  The application is usable but supports raw Bayer sensors only at the
  moment. It requires a frame buffer and an omap_vout device (both should
  be located automatically) and configures the OMAP3 ISP pipeline
  automatically to produce the display resolution.
 
 Will there be a need to patch for Y12 support or workable out-of-the-box?

It will work out of the box when someone implements support for Y12 :-)

 Likely your previous notes, I know that 12-bit Y12 to the screen is an
 overkill but will it be able to capture Y12 from CCDC output and then
 output to the screen?
 
 Y12 sensor- CCDC - CCDC output - screen

The omap_vout driver supports V4L2_PIX_FMT_RGB565, V4L2_PIX_FMT_RGB32, 
V4L2_PIX_FMT_RGB24, V4L2_PIX_FMT_YUYV and V4L2_PIX_FMT_UYVY only. To display 
Y12 data you will need to convert them to 10 bits in the CCDC (that's already 
implemented) and then to YUYV in the preview engine (that's not implemented 
yet).

 I've one board connected to a LCD monitor via a DVI chip using GS's
 Tobi board as reference and another via 4.3 LG LCD Touchscreen using
 GS's Chestnut board as reference.
 
 Many thanks in adv

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Using OMAP3 ISP live display and snapshot sample applications

2012-01-06 Thread Laurent Pinchart
Hi James,

On Friday 06 January 2012 07:24:54 James wrote:

[snip]

 After googling for the warning, I proceed with the following steps to
 make the application on Steve's GNOME-R13 image from this site as it
 has all the tools for native-compilation on the Tobi board.
 
 1) Inside /usr/src/linux, run make headers_install ARCH=arm and my
 /usr/include is now populated with lots of files.

omap3-isp-live requires recent kernel headers that are not shipped by 
distributions yet, so you need to install them to some location first. make 
headers_install ARCH=arm should install them to /usr/src/linux/usr/include, 
not /usr/include.

 2) Inside omap3-isp-live, I ran make KDIR=/usr/src/linux
 CROSS_COMPILE=arm-angstrom-linux-gnueabi-.
 
 This gave me an error about not finding linux/omap3isp.h file.
 Thus, I modified the 2 Makefile and replaced -I$(KDIR)/usr/include
 with -I$(KDIR)/include

That's weird. The make headers_install step above should have installed the 
headers in /usr/src/linux/usr/include, so the makefile should be correct.

 Ran make KDIR=/usr/src/linux
 CROSS_COMPILE=arm-angstrom-linux-gnueabi- again and it compiled
 nicely without warnings about using kernel headers from user space.
 
 Only 3 warnings about
 
 a) omap3isp.c:271:13: warning: 'omap3_isp_pool_free_buffers' defined
 but not used

Fixed in the latest version.

 b) omap3isp.c:329:15: warning: 'nbufs' may be used uninitialized in
 this function

Fixed in the latest version as well.

 c) subdev.c:49:20: warning: 'pixelcode_to_string' defined but not used

I'll fix that, but it's harmless.

 Hope I got it right compiling it this time!! (^^)
 
 3) Copied isp/libomap3isp.so to /usr/lib/ directory when this message
 appeared when I ran ./live -h
 
 ./live: error while loading shared libraries: libomap3isp.so: cannot
 open shared object file: No such file or directory
 
 4) Ran ./live again and got this error message unable to find video
 output device

That should be fixed in the latest version. Could you please upgrade ?

 overo: setting xclk to 2500 hz
 Device /dev/videovero: setting xclk to 0 hz
 o6 opened: OMAP3 ISP resizer output (media).
 viewfinder configured for 2011 1024x768
 error: unable to find video output device
 
 The output of the DVI goes 'blue' and nothing shown.
 What is missing?
 
 lsmod shows the list of modules loaded.
 
 Module  Size  Used by
 fuse   59943  3
 bufferclass_ti  4976  0
 omaplfb 8025  0
 pvrsrvkm  146868  2 bufferclass_ti,omaplfb
 mt9v032 5958  1
 omap3_isp 104303  0
 v4l2_common 8543  2 mt9v032,omap3_isp
 videodev   78271  3 mt9v032,omap3_isp,v4l2_common
 libertas_sdio  14871  0
 media  11885  3 mt9v032,omap3_isp,videodev
 libertas   92472  1 libertas_sdio
 cfg80211  157222  1 libertas
 lib802115291  1 libertas
 firmware_class  6269  2 libertas_sdio,libertas
 ads784610331  0
 ipv6  226224  18
 
 5) Ran ./snapshot and it continues till Ctrl+C.
 Does it has any output others then those messages?
 
 Many thanks in adv.

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Using OMAP3 ISP live display and snapshot sample applications

2012-01-05 Thread James
Hi Laurent,

On Wed, Jan 4, 2012 at 3:07 PM, James angweiy...@gmail.com wrote:
 Hi Laurent,

 On Tue, Jan 3, 2012 at 7:17 PM, Laurent Pinchart
 laurent.pinch...@ideasonboard.com wrote:
 Hi James,

 On Tuesday 03 January 2012 10:40:10 James wrote:
 Hi Laurent,

 Happy New Year!!

 Thank you. Happy New Year to you as well. May 2012 bring you a workable OMAP3
 ISP solution ;-)


 Yeah! that's on #1 of my 2012 wishlist!! (^^)

 But, it start off with a disappointment on the quest to get
 gst-launch v4l2src to work..
 http://patches.openembedded.org/patch/8895/

 Saw reported success in get v4l2src to work with MT9V032 by applying
 the hack but no luck with my Y12 monochrome sensor. (-.-)

 I saw that there is a simple viewfinder in your repo for OMAP3 and
 wish to know more about it.

 http://git.ideasonboard.org/?p=omap3-isp-live.git;a=summary

 I intend to test it with my 12-bit (Y12) monochrome camera sensor
 driver, running on top of Gumstix's (Steve v3.0) kernel.

 Is it workable at the moment?

 The application is usable but supports raw Bayer sensors only at the moment.
 It requires a frame buffer and an omap_vout device (both should be located
 automatically) and configures the OMAP3 ISP pipeline automatically to produce
 the display resolution.


 Will there be a need to patch for Y12 support or workable out-of-the-box?

 Likely your previous notes, I know that 12-bit Y12 to the screen is an
 overkill but will it be able to capture Y12 from CCDC output and then
 output to the screen?

 Y12 sensor- CCDC - CCDC output - screen

 I've one board connected to a LCD monitor via a DVI chip using GS's
 Tobi board as reference and another via 4.3 LG LCD Touchscreen using
 GS's Chestnut board as reference.

 Many thanks in adv

 --
 Regards,
 James

I did a native compilation on my overo and the result is as below.

root@omap3-multi:~/omap3-isp-live# ln -s
/usr/src/linux-sakoman-pm-3.0-r102/include/ /usr/src/linux/usr/include
root@omap3-multi:~/omap3-isp-live# make KDIR=/usr/src/linux
CROSS_COMPILE=arm-angstrom-linux-gnueabi-
make -C isp CROSS_COMPILE=arm-angstrom-linux-gnueabi- KDIR=/usr/src/linux
make[1]: Entering directory `/home/root/omap3-isp-live/isp'
arm-angstrom-linux-gnueabi-gcc -O2 -W -Wall
-I/usr/src/linux/usr/include -fPIC -c -o controls.o controls.c
In file included from /usr/src/linux/usr/include/linux/omap3isp.h:30:0,
 from controls.c:25:
/usr/src/linux/usr/include/linux/types.h:13:2: warning: #warning
Attempt to use kernel headers from user space, see
http://kernelnewbies.org/KernelHeaders;
arm-angstrom-linux-gnueabi-gcc -O2 -W -Wall
-I/usr/src/linux/usr/include -fPIC -c -o media.o media.c
In file included from /usr/src/linux/usr/include/linux/videodev2.h:66:0,
 from media.c:34:
/usr/src/linux/usr/include/linux/types.h:13:2: warning: #warning
Attempt to use kernel headers from user space, see
http://kernelnewbies.org/KernelHeaders;
arm-angstrom-linux-gnueabi-gcc -O2 -W -Wall
-I/usr/src/linux/usr/include -fPIC -c -o omap3isp.o omap3isp.c
In file included from /usr/src/linux/usr/include/linux/v4l2-mediabus.h:14:0,
 from omap3isp-priv.h:26,
 from omap3isp.c:31:
/usr/src/linux/usr/include/linux/types.h:13:2: warning: #warning
Attempt to use kernel headers from user space, see
http://kernelnewbies.org/KernelHeaders;
omap3isp.c:271:13: warning: 'omap3_isp_pool_free_buffers' defined but not used
omap3isp.c: In function 'omap3_isp_pipeline_build':
omap3isp.c:329:15: warning: 'nbufs' may be used uninitialized in this function
arm-angstrom-linux-gnueabi-gcc -O2 -W -Wall
-I/usr/src/linux/usr/include -fPIC -c -o subdev.o subdev.c
In file included from /usr/src/linux/usr/include/linux/v4l2-subdev.h:27:0,
 from subdev.c:33:
/usr/src/linux/usr/include/linux/types.h:13:2: warning: #warning
Attempt to use kernel headers from user space, see
http://kernelnewbies.org/KernelHeaders;
subdev.c:49:20: warning: 'pixelcode_to_string' defined but not used
arm-angstrom-linux-gnueabi-gcc -O2 -W -Wall
-I/usr/src/linux/usr/include -fPIC -c -o v4l2.o v4l2.c
In file included from /usr/src/linux/usr/include/linux/videodev2.h:66:0,
 from v4l2.c:36:
/usr/src/linux/usr/include/linux/types.h:13:2: warning: #warning
Attempt to use kernel headers from user space, see
http://kernelnewbies.org/KernelHeaders;
arm-angstrom-linux-gnueabi-gcc -O2 -W -Wall
-I/usr/src/linux/usr/include -fPIC -c -o v4l2-pool.o v4l2-pool.c
In file included from /usr/src/linux/usr/include/linux/videodev2.h:66:0,
 from v4l2-pool.h:25,
 from v4l2-pool.c:26:
/usr/src/linux/usr/include/linux/types.h:13:2: warning: #warning
Attempt to use kernel headers from user space, see
http://kernelnewbies.org/KernelHeaders;
arm-angstrom-linux-gnueabi-gcc -o libomap3isp.so -shared controls.o
media.o omap3isp.o subdev.o v4l2.o v4l2-pool.o
make[1]: Leaving directory `/home/root/omap3-isp-live/isp'
arm-angstrom-linux-gnueabi-gcc -O2 -W -Wall

Re: Using OMAP3 ISP live display and snapshot sample applications

2012-01-05 Thread James
Hi Laurent,

On Thu, Jan 5, 2012 at 5:55 PM, James angweiy...@gmail.com wrote:
 Hi Laurent,

 On Wed, Jan 4, 2012 at 3:07 PM, James angweiy...@gmail.com wrote:
 Hi Laurent,

 On Tue, Jan 3, 2012 at 7:17 PM, Laurent Pinchart
 laurent.pinch...@ideasonboard.com wrote:
 Hi James,

 On Tuesday 03 January 2012 10:40:10 James wrote:
 Hi Laurent,

 Happy New Year!!

 Thank you. Happy New Year to you as well. May 2012 bring you a workable 
 OMAP3
 ISP solution ;-)


 Yeah! that's on #1 of my 2012 wishlist!! (^^)

 But, it start off with a disappointment on the quest to get
 gst-launch v4l2src to work..
 http://patches.openembedded.org/patch/8895/

 Saw reported success in get v4l2src to work with MT9V032 by applying
 the hack but no luck with my Y12 monochrome sensor. (-.-)

 I saw that there is a simple viewfinder in your repo for OMAP3 and
 wish to know more about it.

 http://git.ideasonboard.org/?p=omap3-isp-live.git;a=summary

 I intend to test it with my 12-bit (Y12) monochrome camera sensor
 driver, running on top of Gumstix's (Steve v3.0) kernel.

 Is it workable at the moment?

 The application is usable but supports raw Bayer sensors only at the moment.
 It requires a frame buffer and an omap_vout device (both should be located
 automatically) and configures the OMAP3 ISP pipeline automatically to 
 produce
 the display resolution.


 Will there be a need to patch for Y12 support or workable out-of-the-box?

 Likely your previous notes, I know that 12-bit Y12 to the screen is an
 overkill but will it be able to capture Y12 from CCDC output and then
 output to the screen?

 Y12 sensor- CCDC - CCDC output - screen

 I've one board connected to a LCD monitor via a DVI chip using GS's
 Tobi board as reference and another via 4.3 LG LCD Touchscreen using
 GS's Chestnut board as reference.

 Many thanks in adv

 --
 Regards,
 James

 I did a native compilation on my overo and the result is as below.

 root@omap3-multi:~/omap3-isp-live# ln -s
 /usr/src/linux-sakoman-pm-3.0-r102/include/ /usr/src/linux/usr/include
 root@omap3-multi:~/omap3-isp-live# make KDIR=/usr/src/linux
 CROSS_COMPILE=arm-angstrom-linux-gnueabi-
 make -C isp CROSS_COMPILE=arm-angstrom-linux-gnueabi- KDIR=/usr/src/linux
 make[1]: Entering directory `/home/root/omap3-isp-live/isp'
 arm-angstrom-linux-gnueabi-gcc -O2 -W -Wall
 -I/usr/src/linux/usr/include -fPIC -c -o controls.o controls.c
 In file included from /usr/src/linux/usr/include/linux/omap3isp.h:30:0,
                 from controls.c:25:
 /usr/src/linux/usr/include/linux/types.h:13:2: warning: #warning
 Attempt to use kernel headers from user space, see
 http://kernelnewbies.org/KernelHeaders;
 arm-angstrom-linux-gnueabi-gcc -O2 -W -Wall
 -I/usr/src/linux/usr/include -fPIC -c -o media.o media.c
 In file included from /usr/src/linux/usr/include/linux/videodev2.h:66:0,
                 from media.c:34:
 /usr/src/linux/usr/include/linux/types.h:13:2: warning: #warning
 Attempt to use kernel headers from user space, see
 http://kernelnewbies.org/KernelHeaders;
 arm-angstrom-linux-gnueabi-gcc -O2 -W -Wall
 -I/usr/src/linux/usr/include -fPIC -c -o omap3isp.o omap3isp.c
 In file included from /usr/src/linux/usr/include/linux/v4l2-mediabus.h:14:0,
                 from omap3isp-priv.h:26,
                 from omap3isp.c:31:
 /usr/src/linux/usr/include/linux/types.h:13:2: warning: #warning
 Attempt to use kernel headers from user space, see
 http://kernelnewbies.org/KernelHeaders;
 omap3isp.c:271:13: warning: 'omap3_isp_pool_free_buffers' defined but not used
 omap3isp.c: In function 'omap3_isp_pipeline_build':
 omap3isp.c:329:15: warning: 'nbufs' may be used uninitialized in this function
 arm-angstrom-linux-gnueabi-gcc -O2 -W -Wall
 -I/usr/src/linux/usr/include -fPIC -c -o subdev.o subdev.c
 In file included from /usr/src/linux/usr/include/linux/v4l2-subdev.h:27:0,
                 from subdev.c:33:
 /usr/src/linux/usr/include/linux/types.h:13:2: warning: #warning
 Attempt to use kernel headers from user space, see
 http://kernelnewbies.org/KernelHeaders;
 subdev.c:49:20: warning: 'pixelcode_to_string' defined but not used
 arm-angstrom-linux-gnueabi-gcc -O2 -W -Wall
 -I/usr/src/linux/usr/include -fPIC -c -o v4l2.o v4l2.c
 In file included from /usr/src/linux/usr/include/linux/videodev2.h:66:0,
                 from v4l2.c:36:
 /usr/src/linux/usr/include/linux/types.h:13:2: warning: #warning
 Attempt to use kernel headers from user space, see
 http://kernelnewbies.org/KernelHeaders;
 arm-angstrom-linux-gnueabi-gcc -O2 -W -Wall
 -I/usr/src/linux/usr/include -fPIC -c -o v4l2-pool.o v4l2-pool.c
 In file included from /usr/src/linux/usr/include/linux/videodev2.h:66:0,
                 from v4l2-pool.h:25,
                 from v4l2-pool.c:26:
 /usr/src/linux/usr/include/linux/types.h:13:2: warning: #warning
 Attempt to use kernel headers from user space, see
 http://kernelnewbies.org/KernelHeaders;
 arm-angstrom-linux-gnueabi-gcc -o libomap3isp.so -shared controls.o
 media.o omap3isp.o subdev.o 

Using OMAP3 ISP live display and snapshot sample applications

2012-01-03 Thread James
Hi Laurent,

Happy New Year!!

I saw that there is a simple viewfinder in your repo for OMAP3 and
wish to know more about it.

http://git.ideasonboard.org/?p=omap3-isp-live.git;a=summary

I intend to test it with my 12-bit (Y12) monochrome camera sensor
driver, running on top of Gumstix's (Steve v3.0) kernel.

Is it workable at the moment?

-- 
Regards,
James
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Using OMAP3 ISP live display and snapshot sample applications

2012-01-03 Thread Laurent Pinchart
Hi James,

On Tuesday 03 January 2012 10:40:10 James wrote:
 Hi Laurent,
 
 Happy New Year!!

Thank you. Happy New Year to you as well. May 2012 bring you a workable OMAP3 
ISP solution ;-)

 I saw that there is a simple viewfinder in your repo for OMAP3 and
 wish to know more about it.
 
 http://git.ideasonboard.org/?p=omap3-isp-live.git;a=summary
 
 I intend to test it with my 12-bit (Y12) monochrome camera sensor
 driver, running on top of Gumstix's (Steve v3.0) kernel.
 
 Is it workable at the moment?

The application is usable but supports raw Bayer sensors only at the moment. 
It requires a frame buffer and an omap_vout device (both should be located 
automatically) and configures the OMAP3 ISP pipeline automatically to produce 
the display resolution.

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Using OMAP3 ISP live display and snapshot sample applications

2012-01-03 Thread James
Hi Laurent,

On Tue, Jan 3, 2012 at 7:17 PM, Laurent Pinchart
laurent.pinch...@ideasonboard.com wrote:
 Hi James,

 On Tuesday 03 January 2012 10:40:10 James wrote:
 Hi Laurent,

 Happy New Year!!

 Thank you. Happy New Year to you as well. May 2012 bring you a workable OMAP3
 ISP solution ;-)


Yeah! that's on #1 of my 2012 wishlist!! (^^)

But, it start off with a disappointment on the quest to get
gst-launch v4l2src to work..
http://patches.openembedded.org/patch/8895/

Saw reported success in get v4l2src to work with MT9V032 by applying
the hack but no luck with my Y12 monochrome sensor. (-.-)

 I saw that there is a simple viewfinder in your repo for OMAP3 and
 wish to know more about it.

 http://git.ideasonboard.org/?p=omap3-isp-live.git;a=summary

 I intend to test it with my 12-bit (Y12) monochrome camera sensor
 driver, running on top of Gumstix's (Steve v3.0) kernel.

 Is it workable at the moment?

 The application is usable but supports raw Bayer sensors only at the moment.
 It requires a frame buffer and an omap_vout device (both should be located
 automatically) and configures the OMAP3 ISP pipeline automatically to produce
 the display resolution.


Will there be a need to patch for Y12 support or workable out-of-the-box?

Likely your previous notes, I know that 12-bit Y12 to the screen is an
overkill but will it be able to capture Y12 from CCDC output and then
output to the screen?

Y12 sensor- CCDC - CCDC output - screen

I've one board connected to a LCD monitor via a DVI chip using GS's
Tobi board as reference and another via 4.3 LG LCD Touchscreen using
GS's Chestnut board as reference.

Many thanks in adv

-- 
Regards,
James
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html