WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Run a python script at boot and other questions  (Read 1851 times)

Offline 9acca9

  • Newbie
  • *
  • Posts: 5
Run a python script at boot and other questions
« on: May 28, 2022, 10:24:16 AM »
Hi.
im trying to get better boot time with TinyCore that with raspbian.
What is the average boot time in a rpi zero w?
I can run a python script at boot?
I can "enable" this at config.txt or will get troubles?
Code: [Select]
dtoverlay=i2c-mux,pca9548
Also, dont need any gui. I download this rpi version or microCore?

Thanks.

« Last Edit: May 28, 2022, 10:27:39 AM by 9acca9 »

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1264
Re: Run a python script at boot and other questions
« Reply #1 on: May 28, 2022, 11:39:23 AM »
Boot time is dependent on what you load at boot time.  Micropython is included in piCore, but it is limited, as there are only minimal libraries included.

Perhaps you should explain what all you need to do.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14847
Re: Run a python script at boot and other questions
« Reply #2 on: May 28, 2022, 12:17:30 PM »
Also, dont need any gui. I download this rpi version or microCore?

The piCore image does not include a gui.

Offline 9acca9

  • Newbie
  • *
  • Posts: 5
Re: Run a python script at boot and other questions
« Reply #3 on: May 28, 2022, 01:39:01 PM »
Perhaps you should explain what all you need to do.

I have a  python files I need to run at the boot on a RPI zero W when there is internet. That file call i2c components. A multiplexor, 4 mcp, 1 htk1633 for LEDs and a LCD display. (And I need wifi) It is for a physical chess board to play online.

Because i have attached all the i2c components to the multiplexor i use "dtoverlay=i2c-mux,pca9548". If not my program "collapse". Because i can talk just to a device at a time. With the overlay i dont need to recode nothing.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1264
Re: Run a python script at boot and other questions
« Reply #4 on: May 29, 2022, 07:12:35 AM »
You probably need the full version of python then.  Do you have the system working with piCore?

If not, just try it out.