This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Upgrade from 2.1 to 2.4.1
John Alexander (MSFT) edited this page May 3, 2021
·
8 revisions
The first 50 Moab units (SN-001 to SN-050) are version Moabian 2.1.
Follow these steps to upgrade. Steps assume you can see moab.local
ssh [email protected]
password: raspberry
sudo apt update -y
sudo apt upgrade -y
sudo reboot now
ssh [email protected]
password: raspberry
rm -rf moab moabian
git clone https://github.com/microsoft/moabian moab
cd moab
git checkout v2.4.1
sudo os/setup # 5 minutes
sudo reboot now
ssh [email protected]
password: raspberry
sudo rm /usr/local/bin/{testmoab,ufetch,motd} # only for 2.1 --> 2.4.1
./moab/sw/setup 2.4.1 # 6 minutes
up # press y when prompted to continue
All commands below assume current directory is ~/moab
To... | Type |
---|---|
Level 1 Diagnostic | diagnose |
Watch controller log | logs |
Watch all logs | dc logs -f |
Stop controller | down |
Start controller | up |
Restart controller | restart |
Lift plate half-way for level testing | level 0.5 |
Quick firmware restart | fw-restart |
Shutdown Moab | Hold down power button 3 sec or sudo shutdown now
|
New name is now moab.local
host % ssh [email protected]
cd moab/sw
sudo bin/packages # ~8m : (for compilers, etc.)
sudo bin/bcm2835 # 10s : makes /usr/local/lib/libbcm2835.a
sudo bin/pymoab # 30s : makes /usr/local/lib/libmoab.a
sudo pip3 install -r requirements.txt
# Run moab now in one of two ways:
down # ensure docker version isn't running
sudo bin/start # will auto start a brain
sudo python3 main.py # without a brain
# press Ctrl-C to quit
If you plan on developing on the Moab unit, do this section first.
cd ~/.ssh
cat <EOF >> config
Host moab
Hostname moab.local
User pi
IdentityFile ~/.ssh/moabkey
EOF
cd ~/.ssh
ssh-keygen -f moabkey -t ed25519
ssh-add moabkey
ssh-copy-id -i moabkey [email protected]