steinerlein
Posts: 18
Joined: Thu Mar 21, 2013 4:59 pm

What is the earliest point during boot to use i2c?

Wed Aug 15, 2018 10:56 am

Question is pretty much in the title. I would like to issue a small set of commands during boot and would like to find out the earliest moment I can issue those. If there is a way to do so before the system is fully booted, that would be awesome.

Thanks!

klricks
Posts: 6609
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: What is the earliest point during boot to use i2c?

Wed Aug 15, 2018 1:18 pm

steinerlein wrote:
Wed Aug 15, 2018 10:56 am
Question is pretty much in the title. I would like to issue a small set of commands during boot and would like to find out the earliest moment I can issue those. If there is a way to do so before the system is fully booted, that would be awesome.

Thanks!
The user has very little if any control over the boot process.
How are you starting your script? rc.local?
The problem some have is the script runs too soon in the boot process and fails.
In that case you can add sleep x command to start your script later in the boot process
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

Return to “Interfacing (DSI, CSI, I2C, etc.)”