Radu79
Posts: 57
Joined: Thu Mar 17, 2016 6:49 pm

How far in the boot process can the camera be used?

Tue Jan 16, 2018 12:45 am

I am trying to use a Zero board as a remote time lapse camera. Power is an issue (it will run on batteries), so I plan to start the Raspi either by a RTC or some Arduino, take a picture (with raspistill ), then shut down.

Any idea where in the boot process can I call raspistill?

bzt
Posts: 75
Joined: Sat Oct 14, 2017 9:57 pm

Re: How far in the boot process can the camera be used?

Tue Jan 16, 2018 12:40 pm

Hi Radu79,

If I were you, I wouldn't code it in bare metal. Instead I would use the linux kernel, and override the init process with my shell script (which would do the necessary steps to run raspistill and finally call raspistill). See raspbian for example. On the first run, it executes a root partition resizer script, specified on the command line. But this is not the right forum for discussing that solution.

Cheers,
bzt

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

Re: How far in the boot process can the camera be used?

Tue Jan 16, 2018 12:48 pm

raspistill by default will only run under Raspbian anyway, not bare metal.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

Radu79
Posts: 57
Joined: Thu Mar 17, 2016 6:49 pm

Re: How far in the boot process can the camera be used?

Tue Jan 16, 2018 3:23 pm

I didn't mean to make it really bare metal, I do plan to use the Linux kernel. My question was, after loading the kernel (perhaps a lean kernel), how far in the init scripts would be a safe place to put raspistill ?

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

Re: How far in the boot process can the camera be used?

Tue Jan 16, 2018 3:37 pm

Radu79 wrote:
Tue Jan 16, 2018 3:23 pm
I didn't mean to make it really bare metal, I do plan to use the Linux kernel. My question was, after loading the kernel (perhaps a lean kernel), how far in the init scripts would be a safe place to put raspistill ?
Probably best not in the baremetal forum then....

As for when, I doubt anyone has ever tested it - so trial an error might be the way to go. You need file system support, I think all the GPU requirements should be up and running before the kernel starts to boot.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

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

Re: How far in the boot process can the camera be used?

Tue Jan 16, 2018 3:41 pm

Moved to advanced users.

Return to “Advanced users”

Who is online

Users browsing this forum: remsbk and 11 guests