-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Major rewrite of pico_setup.sh #20
base: master
Are you sure you want to change the base?
Changes from all commits
54bbdf8
1858d33
2d1dafe
9fbed81
049289a
1ff656c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Copyright 2020 (c) 2020 Raspberry Pi (Trading) Ltd. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the | ||
following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following | ||
disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following | ||
disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products | ||
derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, | ||
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Raspberry Pi Pico Setup | ||
|
||
Raspberry Pi Pico Setup provides a script for installing the Pico SDK and toolchain. | ||
|
||
## How-To | ||
|
||
Download and run `pico_setup.sh`: | ||
|
||
```shell | ||
wget https://raw.githubusercontent.com/raspberrypi/pico-setup/master/pico_setup.sh | ||
chmod +x pico_setup.sh | ||
./pico_setup.sh | ||
``` | ||
|
||
The script uses sudo, so you may need to enter your password. | ||
|
||
After the script is complete, reboot to ensure that all changes take effect, such as the UART settings and environment variables. | ||
|
||
If you want the testing script and documentation, you can clone the git repo too. | ||
|
||
## Support | ||
|
||
This script works on most Debian-derived Linux distros and macOS, running on common Raspberry Pi, PC, and Mac hardware. This ***DOESN'T*** mean that all of the pico tools work properly on these platforms. It just means that this script runs and passes its own tests. | ||
|
||
Operating systems: | ||
|
||
* Raspberry Pi OS (32-bit) | ||
* Debian 10 (Buster) | ||
* Ubuntu 20.04 or later | ||
* macOS 11 (Big Sur) | ||
* Windows Subsystem for Linux | ||
|
||
Hardware: | ||
|
||
* Any model of Raspberry Pi | ||
* PC (x86_64) | ||
* Mac (both Intel and Apple Silicon) | ||
|
||
Visual Studio Code may not run well on Raspberry Pi 1 and Zero because of their smaller RAM capacity, but the rest of the toolkit works fine. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd be surprised if VSCode ran (well?) on anything except the Raspberry Pi 4? I certainly don't have any experience on running it on anything else. Anyone? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I get a chance I'll test later today, but IIRC with VSCode being based on Electron, that probably means it only runs on ARMv7 and above which rules out the RPi 1 and Zero (which are ARMv6). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I certainly don't find GUI fun on any of the Raspberry Pis. My 8 GB Raspberry Pi 4 has a chance but it seems to be more interested in making a tiny sad little ticking sound than booting. |
||
|
||
Other OSes and hardware _may_ work, but haven't been tested. Use at your own risk. | ||
|
||
## Testing | ||
|
||
See [test/README.md](test/README.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI I did test the "previous" pico_setup.sh on Raspberry Pi OS (64-bit) too, so it would be nice if that still worked (I'll do some testing myself later).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It really should work. I think the only explicit consideration to 32-bit vs 64-bit was part of the old VSCode installation. That's been refactored to rely on APT to get the right build.
I'm leaving this conversation open pending confirmation.