The following builds RebbleOS on Debian Stretch:
apt install -y gcc-arm-none-eabi
git clone https://github.com/pebble-dev/RebbleOS.git
cd FreeRTOS-Pebble
git submodule update --init --recursive
make
The Pebble SDK is a prerequisite for portions of RebbleOS. The SDK is available here. As an example, on Debian, one may create an installation directory for the SDK using the following.
mkdir ~/pebble-dev/
cd ~/pebble-dev/
wget https://developer.rebble.io/s3.amazonaws.com/assets.getpebble.com/pebble-tool/pebble-sdk-4.5-linux64.tar.bz2
tar -jxf pebble-sdk-4.5-linux64.tar.bz2
echo 'export PATH=~/pebble-dev/pebble-sdk-4.5-linux64/bin:$PATH' >> ~/.bash_profile
. ~/.bash_profile
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get update
sudo apt-get install python-pip python2.7-dev python-gevent libsdl1.2debian libfdt1 libpixman-1-0 git gcc-arm-none-eabi npm
pip install virtualenv
pip install --upgrade pip
cd ~/pebble-dev/pebble-sdk-4.5-linux64
virtualenv --no-site-packages .env
source .env/bin/activate
sed -i 's/https:\/\/s3-us-west-2.amazonaws.com\/pebble-sdk-homebrew\/pypkjs-1.0.6.tar.gz/https:\/\/github.com\/ltpitt\/vagrant-pebble-sdk\/blob\/master\/pypkjs-1.0.6.tar.gz?raw=true/g' requirements.txt
pip install -r requirements.txt
deactivate
mkdir ~/.pebble-sdk/
touch ~/.pebble-sdk/NO_TRACKING
pebble sdk install https://github.com/aveao/PebbleArchive/raw/master/SDKCores/sdk-core-4.3.tar.bz2
pebble ping --emulator aplite
As the SDK is no longer available from an official source, this example uses an archived version from this GitHub repository. URL for the pypkjs module is also used from the backup repository.