-
Notifications
You must be signed in to change notification settings - Fork 52
Major rewrite of pico_setup.sh #20
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
base: master
Are you sure you want to change the base?
Changes from 4 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,42 @@ | ||
| # 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 | ||
| ./pico_setup | ||
| ``` | ||
| 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) | ||
|
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. 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 commentThe 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. |
||
| * Debian 10 (Buster) | ||
| * Ubuntu 20.10 (Groovy) | ||
| * macOS 11 (Big Sur) | ||
| * Ubuntu 20.04 on Windows Subsystem for Linux on Windows Server 2019 Base | ||
michaelstoops marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * Debian GNU/Linux 1.3.0.0 on Windows Subsystem for Linux on Windows Server 2019 Base | ||
michaelstoops marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| This script does not support Windows natively, only Windows Subsystem for Linux. | ||
|
|
||
| Hardware: | ||
| * Raspberry Pi 2/3/4/400/CM3/CM4 | ||
michaelstoops marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * PC (x86_64) | ||
| * Mac (both Intel and Apple Silicon) | ||
|
|
||
| Other OSes and hardware may work, but haven't been tested. Use at your own risk. | ||
michaelstoops marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # Testing | ||
|
|
||
| See [test/README.md](test/README.md). | ||
Uh oh!
There was an error while loading. Please reload this page.