Last active
November 8, 2022 14:58
-
-
Save LiteBrick204/9788758d7607cbf38e39adfd1e459ee0 to your computer and use it in GitHub Desktop.
Cooja Installation for Ubuntu via terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt update | |
sudo apt upgrade | |
sudo apt install build-essential dkms linux-headers-$(uname -r) | |
sudo apt install openjdk-8-jdk | |
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
export PATH=${PATH}:${JAVA_HOME}/bin | |
sudo apt-get install binutils-msp430 gcc-msp430 msp430-libc msp430mcu mspdebug gcc-arm-none-eabi gdb-arm-none-eabi openjdk-8-jre ant libncurses5-dev | |
git clone https://github.com/contiki-os/contiki.git contiki | |
cd contiki/tools/ | |
ls mspsim | |
#Check if mspsim folder is empty then do the following step | |
rm -f mspsim | |
cd | |
git clone https://github.com/contiki-ng/mspsim.git mspsim | |
mv mspsim contiki/tools/mspsim | |
#If mspsim folder is not empty then proceed to cooja folder | |
cd cooja | |
#After adding mspsim, do the following | |
cd contiki/tools/cooja | |
ant run #This is common for all | |
#If error occurs run the following | |
git submodule update --init --recursive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment