kaikeraut
Posts: 30
Joined: Tue Apr 29, 2014 8:18 am

Raspberry pi raspbian no camera preview

Wed May 07, 2014 5:47 am

Hi,
After successful boot, when i launching camera app i am just seeing white screen, no camera preview is coming.

I tried to find out the problem, i noticed there is no video nodes in /dev/.
So i guess camera module is not enabled.

How to enable camera module in gingerbread for rpi.
Or some else problem.

Thanks

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: Raspberry pi Gingerbread no camera preview

Wed May 07, 2014 7:46 am

http://www.raspberrypi.org/forums/viewt ... ]Currently there is no useable working version of Android for Pi[/quote]
Richard S.

kaikeraut
Posts: 30
Joined: Tue Apr 29, 2014 8:18 am

Re: Raspberry pi Gingerbread no camera preview

Thu May 08, 2014 3:16 am

Thanks Richard S for your reply.
I want to work with camera and GPU, so will you suggest me any alternate solution of Android.

Vineet

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24152
Joined: Sat Jul 30, 2011 7:41 pm

Re: Raspberry pi Gingerbread no camera preview

Thu May 08, 2014 8:26 am

Raspbian Linux. That's what everyone else uses.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

User avatar
DougieLawson
Posts: 36570
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Raspberry pi Gingerbread no camera preview

Thu May 08, 2014 10:12 am

jamesh wrote:Raspbian Linux. That's what everyone else uses.
For some values of "everyone".
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24152
Joined: Sat Jul 30, 2011 7:41 pm

Re: Raspberry pi Gingerbread no camera preview

Thu May 08, 2014 12:21 pm

DougieLawson wrote:
jamesh wrote:Raspbian Linux. That's what everyone else uses.
For some values of "everyone".
Value=most.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

kaikeraut
Posts: 30
Joined: Tue Apr 29, 2014 8:18 am

Re: Raspberry pi Gingerbread no camera preview

Mon May 12, 2014 9:01 am

If i want to explicitly enable the camera module in raspian linux, how can i do it..
Form the kernel point of view which version of kernel should i use and how i can enable camera by "menuconfig"

I don't want to do sudo apt-get update and raspi-config.

How manually i can achieve it.

User avatar
DougieLawson
Posts: 36570
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Raspberry pi Gingerbread no camera preview

Mon May 12, 2014 9:13 am

There's an option in sudo raspi-config to set all the parms you need to enable the camera.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24152
Joined: Sat Jul 30, 2011 7:41 pm

Re: Raspberry pi Gingerbread no camera preview

Mon May 12, 2014 9:30 am

kaikeraut wrote:If i want to explicitly enable the camera module in raspian linux, how can i do it..
Form the kernel point of view which version of kernel should i use and how i can enable camera by "menuconfig"

I don't want to do sudo apt-get update and raspi-config.

How manually i can achieve it.
sudo apt-get update will get the latest version of the camera firmware and raspistill/vid.

sudo raspi-config will be a quick way of enabling the camera.

They are the best options. Is there any reason why you cannot do those?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

kaikeraut
Posts: 30
Joined: Tue Apr 29, 2014 8:18 am

Re: Raspberry pi Gingerbread no camera preview

Mon May 12, 2014 10:07 am

Yes the reason behind is, if i want to know, what changes these commands are doing to get the camera running.

so i can do the same thing in android kernel to make camera run.
Last edited by kaikeraut on Mon May 12, 2014 10:12 am, edited 1 time in total.

kaikeraut
Posts: 30
Joined: Tue Apr 29, 2014 8:18 am

Re: Raspberry pi Gingerbread no camera preview

Mon May 12, 2014 10:11 am

jamesh wrote:
kaikeraut wrote:If i want to explicitly enable the camera module in raspian linux, how can i do it..
Form the kernel point of view which version of kernel should i use and how i can enable camera by "menuconfig"

I don't want to do sudo apt-get update and raspi-config.

How manually i can achieve it.
sudo apt-get update will get the latest version of the camera firmware and raspistill/vid.

sudo raspi-config will be a quick way of enabling the camera.

They are the best options. Is there any reason why you cannot do those?
hi jamesh,
Manually i can check the camera working, because i guess the raspistill/vid are internally using v4l2 api to test camera,
and i am little familiar with v4l2 api. so i just what to know what are the things i have to do to make camera work without using those commands, hope i am clear.

kaikeraut
Posts: 30
Joined: Tue Apr 29, 2014 8:18 am

Re: Raspberry pi Gingerbread no camera preview

Mon May 12, 2014 10:16 am

DougieLawson wrote:There's an option in sudo raspi-config to set all the parms you need to enable the camera.
Hi DougieLawson,
Thanks for your reply.

I read out some posts which says raspi-config checks the config.txt file and set the start_x=1 to enable camera.
But what i need to know is, how can i enable camera at kernel compilation while doing "make menuconfig".

thanks
kaikeraut

ghans
Posts: 7878
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Raspberry pi Gingerbread no camera preview

Mon May 12, 2014 10:21 am

The Raspberry Pi camera uses the MMAL API , which in turn uses a special interface developed at Broadcom to
communicate with Broadcoms secret GPU firmware. The only documentation is the source code itself (AFAIK) , so good luck :

https://github.com/raspberrypi/linux
https://github.com/raspberrypi/userland

There is some inoffical documentation for MMAL here :
http://www.jvcref.com/files/PI/documentation/html/

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
DougieLawson
Posts: 36570
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Raspberry pi Gingerbread no camera preview

Mon May 12, 2014 10:32 am

kaikeraut wrote: But what i need to know is, how can i enable camera at kernel compilation while doing "make menuconfig".
It's not done in the Linux kernel (with anything in cmdline.txt or any specially loaded modules). All the stuff that goes in /boot/config.txt are the parameters for the Broadcom GPU firmware.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 12411
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Raspberry pi raspbian no camera preview

Mon May 12, 2014 7:19 pm

change subject name, not about android!

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24152
Joined: Sat Jul 30, 2011 7:41 pm

Re: Raspberry pi Gingerbread no camera preview

Mon May 12, 2014 9:18 pm

kaikeraut wrote:
jamesh wrote:
kaikeraut wrote:If i want to explicitly enable the camera module in raspian linux, how can i do it..
Form the kernel point of view which version of kernel should i use and how i can enable camera by "menuconfig"

I don't want to do sudo apt-get update and raspi-config.

How manually i can achieve it.
sudo apt-get update will get the latest version of the camera firmware and raspistill/vid.

sudo raspi-config will be a quick way of enabling the camera.

They are the best options. Is there any reason why you cannot do those?
hi jamesh,
Manually i can check the camera working, because i guess the raspistill/vid are internally using v4l2 api to test camera,
and i am little familiar with v4l2 api. so i just what to know what are the things i have to do to make camera work without using those commands, hope i am clear.
In case its not clear from the posts above, the raspistill and vid apps do NOT use v4l2 API. They use MMAL, as described above. The camera apps and interface are not part of the Linux kernel, and therefor menuconfig is not applicable.

You can either use the MMAL API as used by raspistill, or you can use the V4L2 driver which is also available. MMAL has more features than V4L2, but is specific to the Raspi. The V4L2 API is an open API so is used b y many more Linux apps.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

Return to “Beginners”