Answers.Body: <p>Using <a href="https://github.com/dhylands/rshell" rel="nofollow noreferrer">rshell</a> I've managed to dump the micropython filesystem of my hub after updating it to <code>v1.0.03.0034-c3879ab</code>.</p>
  <pre><code>rshell
  connect serial /dev/ttyACM0 115200
  rsync -a /pyboard ~/spikefw
  </code></pre>
  <p><em>Note: These commands are for Linux.</em></p>
  <p>(I also managed to partially dump the initial version on the hub <code>v0.5.01.0000-42a938e</code>, but ran into issues with binary files as I was using <a href="https://github.com/insighio/ampy" rel="nofollow noreferrer">ampy</a> at the time.)</p>
  <p>I've not found any online resources for the micropython filesystem or the firmware of the SPIKE Prime hub.</p>
  <p>Interestingly it seems that the initial version I have <code>v0.5.01.0000-42a938e</code> is comprised of the micropython source code (*.py files) whereas the updated version <code>v1.0.03.0034-c3879ab</code> only contains pre-compiled micropython bytecode (*.mpy)</p>
  <p>The license file included with the micropython code, and the headers in the files, state that the code is licensed under the MIT license, so I've uploaded it to my <a href="https://github.com/gpdaniels/spike-prime" rel="nofollow noreferrer">github</a>; please feel free to PR more versions.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-03T20:52:08.260Z
Answers.Text: This is great! Thanks for sharing. It's nice that the firmware is MIT licensed.
Answers.UserDisplayName: jncraton
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-03T20:53:32.723Z
Answers.Text: No problem! Like I say if anyone else manages to dump their SPIKE Prime filesystem I'm happy to accept PRs into the project to compile more comprehensive history.
Answers.UserDisplayName: gpdaniels
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-03T16:23:54.647Z
Answers.LastActivityDate: 2024-10-02T12:44:51.490Z
Answers.LastEditDate: 2024-10-02T12:44:51.490Z
Answers.UserDisplayName: gpdaniels
Body: <p>I'm interested in tinkering with the micropython filesystem and/or firmware in the SPIKE Prime hub and was wondering:</p>
  <ol>
  <li>How to dump the micropython filesystem from the SPIKE Prime hub?</li>
  <li>Is there an online resource somewhere to download old micropython filesystems for the SPIKE Prime hub?</li>
  </ol>
  
Tags: <powered-up><spike-prime><micropython><robot-inventor>
Title: How to dump the micropython filesystem from the SPIKE Prime (and Mindstorms v4)?
UserDisplayName: gpdaniels
ThreadText: # How to dump the micropython filesystem from the SPIKE Prime (and Mindstorms v4)?
  
  (Asked by: username_0 on 2020-07-03)
  
  I'm interested in tinkering with the micropython filesystem and/or firmware in the SPIKE Prime hub and was wondering:
  
  1. How to dump the micropython filesystem from the SPIKE Prime hub?
  2. Is there an online resource somewhere to download old micropython filesystems for the SPIKE Prime hub?
  
  **Tags:** powered-up, spike-prime, micropython, robot-inventor
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2020-07-03. Score: 9 | Accepted answer
  
  Using [rshell](https://github.com/dhylands/rshell) I've managed to dump the micropython filesystem of my hub after updating it to `v1.0.03.0034-c3879ab`.
  
  ```
  rshell
  connect serial /dev/ttyACM0 115200
  rsync -a /pyboard ~/spikefw
  
  ```
  
  *Note: These commands are for Linux.*
  
  (I also managed to partially dump the initial version on the hub `v0.5.01.0000-42a938e`, but ran into issues with binary files as I was using [ampy](https://github.com/insighio/ampy) at the time.)
  
  I've not found any online resources for the micropython filesystem or the firmware of the SPIKE Prime hub.
  
  Interestingly it seems that the initial version I have `v0.5.01.0000-42a938e` is comprised of the micropython source code (\*.py files) whereas the updated version `v1.0.03.0034-c3879ab` only contains pre-compiled micropython bytecode (\*.mpy)
  
  The license file included with the micropython code, and the headers in the files, state that the code is licensed under the MIT license, so I've uploaded it to my [github](https://github.com/username_0/spike-prime); please feel free to PR more versions.
  
  > **Comments:**
  > **username_1**: This is great! Thanks for sharing. It's nice that the firmware is MIT licensed.  
  > **username_0**: No problem! Like I say if anyone else manages to dump their SPIKE Prime filesystem I'm happy to accept PRs into the project to compile more comprehensive history.  
  
  ---
  
  