111 lines
2.4 KiB
Markdown
111 lines
2.4 KiB
Markdown
# Before starting.
|
|
|
|
Go read the [System.md](System.md) file before.
|
|
|
|
# Create user bin directories
|
|
|
|
```
|
|
mkdir -p $HOME/.local/bin
|
|
echo "export PATH=$HOME/.local/bin:\$PATH" >> ~/.bashrc
|
|
```
|
|
|
|
# Install the pico-sdk and picotool
|
|
|
|
See more on [Poivron-Robotique](https://poivron-robotique.fr/Rpi-Pico-Installer-l-environnement-de-developpement-sur-Debian-11.html).
|
|
|
|
Install dependencies.
|
|
```
|
|
sudo apt install git make cmake gcc-arm-none-eabi gcc g++ cutecom libusb-1.0-0-dev
|
|
```
|
|
|
|
Create and go into pico-sdk directory.
|
|
```
|
|
mkdir -p $HOME/.local/share/pico-sdk
|
|
cd $HOME/.local/share/pico-sdk
|
|
```
|
|
|
|
Clone pico-sdk.
|
|
```
|
|
git clone -b master --depth 1 https://github.com/raspberrypi/pico-sdk.git --shallow-submodules .
|
|
git submodule update --init
|
|
```
|
|
|
|
Add env var.
|
|
```
|
|
echo "export PICO_SDK_PATH=$(pwd)" >> ~/.bashrc
|
|
source ~/.bashrc
|
|
```
|
|
|
|
Create and go into picotool directory.
|
|
```
|
|
mkdir -p $HOME/.local/share/picotool
|
|
cd $HOME/.local/share/picotool
|
|
```
|
|
|
|
Clone picotool.
|
|
```
|
|
git clone -b master --depth 1 https://github.com/raspberrypi/picotool.git .
|
|
```
|
|
|
|
Build picotool.
|
|
```
|
|
mkdir build
|
|
cd build
|
|
cmake ..
|
|
make
|
|
```
|
|
|
|
And install it.
|
|
```
|
|
sudo cp picotool $HOME/.local/bin/
|
|
```
|
|
|
|
Add env var.
|
|
```
|
|
echo "export PICOTOOL_FETCH_FROM_GIT_PATH=$(pwd)" >> ~/.bashrc
|
|
source ~/.bashrc
|
|
```
|
|
|
|
# Install the fxSDK
|
|
|
|
See more on [Planet-Casio](https://www.planet-casio.com/Fr/forums/topic16614-16-giteapc-installer-et-mettre-a-jour-automatiquement-des-projets-gitea.html).
|
|
|
|
Install dependencies.
|
|
```
|
|
sudo apt install curl git python3 build-essential cmake pkg-config python3-pil libusb-1.0-0-dev libudev-dev libsdl2-dev libpng-dev libncurses-dev libudisks2-dev libglib2.0-dev
|
|
```
|
|
|
|
Download GiteaPC.
|
|
```
|
|
curl "https://git.planet-casio.com/Lephenixnoir/GiteaPC/raw/branch/master/install.sh" -o /tmp/giteapc-install.sh && bash /tmp/giteapc-install.sh
|
|
```
|
|
|
|
Then install all packages.
|
|
```
|
|
giteapc install Lephenixnoir/fxsdk Lephenixnoir/sh-elf-binutils Lephenixnoir/sh-elf-gcc
|
|
giteapc install Lephenixnoir/sh-elf-gdb
|
|
giteapc install Lephenixnoir/OpenLibm Vhex-Kernel-Core/fxlibc
|
|
giteapc install Lephenixnoir/sh-elf-gcc
|
|
giteapc install Lephenixnoir/gint
|
|
```
|
|
|
|
# To update
|
|
|
|
Apt.
|
|
```
|
|
sudo apt update
|
|
sudo apt upgrade
|
|
sudo apt autoremove --purge
|
|
sudo apt autoclean
|
|
```
|
|
|
|
Flatpak.
|
|
```
|
|
sudo flatpak update
|
|
```
|
|
|
|
FxSDK.
|
|
```
|
|
giteapc install -u
|
|
```
|