How do I dual boot with custom main.py? #478
Unanswered
fatherchaos
asked this question in
Q&A
Replies: 1 comment 16 replies
-
This is not currently supported. Since the Prime Hub has 30Mb of storage space, our plan is to enable that instead of having to flash something every time. Though I can see that this is not too helpful in the short term. In case you have more than one set, is it an option to use the second Prime Hub to charge the battery in, and then swap them? |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to flash a dual boot firmware to the PrimeHub with a modified main.py. My goal is to load a custom main.py to use when the unit boots to pybricks and charge the unit in the regular firmware. This is intended for first lego league.
I can use the website install.pybricks.com to install the dual boot firmware, but there is no option to select my custom firmware.
When I use "py pipx run pybricksdev -flash primehub.zip" the primehub must be in dfu and does not install the dual boot firmware. I found that oybricksdev had a -dual-boot argument in January, but the command does not appear to work now.
Can someone guide me through how to install a modified dual boot firmware with custom main.py?
Beta Was this translation helpful? Give feedback.
All reactions