Build configuration for the pico (and other arms) #10920
-
Hello there. I was configuring a virtual machine to build micropython and I had some issues. I have already had the same issues when configuring two Linux installations and I solved them with some help of the Internet. I am posting this in the hope of it to be helpful to others. I am using Ubuntu Mate 22.04 LTS in VirtualBox VM. I assume the sequence below will work with other Ubuntu versions and perhaps Debian. YMMV. TL;DRThe directions for stm32 in the Getting Started page fail. The name of the packages of the arm gcc cross compiler changed at some point. Also cmake needed to be installed (I made the "minimum" install - between quotes because it already install a ton of things).
After that, Micropython for the Pico is successfully built. Longer versionI followed the directions for stm32 in the Getting Started page. Some packages such as build-essential were already installed, so I just added git (and git-gui and gitk for that matter) and successfully compiled mpy-cross. But trying to install the arm gcc cross compiler resulted in
There are some pages in the Internet that point to a ppa repository, but I got some warnings or errors after trying this path. It turns out Ubuntu 22.04 already has equivalent packages with different names.
Finally, when trying to compile MP for the Pico, cmake was not found, so...
After that, the build was successful, taking less than one minute
and the final result:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I would like to suggest adding the instructions to the README.md of the rp2 port (though it might be useful to other ports... or not):
Anyway, I will close this thread. |
Beta Was this translation helpful? Give feedback.
I would like to suggest adding the instructions to the README.md of the rp2 port (though it might be useful to other ports... or not):