Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: 9acca9 on May 28, 2022, 07:24:16 AM

Title: Run a python script at boot and other questions
Post by: 9acca9 on May 28, 2022, 07: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.

Title: Re: Run a python script at boot and other questions
Post by: Paul_123 on May 28, 2022, 08: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.
Title: Re: Run a python script at boot and other questions
Post by: Juanito on May 28, 2022, 09:17:30 AM
Also, dont need any gui. I download this rpi version or microCore?

The piCore image does not include a gui.
Title: Re: Run a python script at boot and other questions
Post by: 9acca9 on May 28, 2022, 10:39:01 AM
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.
Title: Re: Run a python script at boot and other questions
Post by: Paul_123 on May 29, 2022, 04: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.