-
Notifications
You must be signed in to change notification settings - Fork 0
Firmware Setup for Fedora 31 (Morepork Toolchain)
sudo dnf upgrade- Reboot your machine
sudo dnf install make automake libtool cmake-gui gcc gcc-c++ git git-lfs svn boost-devel glibc-devel.i686 libusbx-devel openssl-devel yajl-devel python2 fuse-sshfs fakeroot perl-devel ncurses-devel screen patch
sudo systemctl start sshd
sudo systemctl enable sshd
git config --global user.name '<Your Name for GitHub Pushes>'
git config --global user.email '<Your GitHub Email>'
The following instructions were taken from here.
- Generate an SSH Key pair
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Hit Enter for all prompts.
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
sudo dnf install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub - Copy the public key to GitHub Go to github.com -> Settings -> SSH and GPG Keys -> New SSH Key. Detailed instructions here.
genext2fs is not really maintained anymore and is not included in the Fedora repos. The easiest thing to do in Fedora 31 is install it from compiled source. The maintainers have not included README and ChangeLog files, which are now required by automake.
git clone https://github.com/bestouff/genext2fs.git
cd genext2fs
ln -s README.md README
touch ChangeLog
./autogen.sh
./configure
make
sudo make install
- Install prerequisites packages
sudo dnf install mesa-libGL-devel
Go to https://www.qt.io/download-qt-installer-oss, click on 'Download Qt Online Installer for Linux', download it, and install the desired Qt5 (v5.12.7). Ideally we would want to install the same version defined here. Note: You can install the latest LTS version, but it is probably greater than what's being used on the printer itself and will have features not available on the printer's Qt version.
wget https://bootstrap.pypa.io/get-pip.py
sudo python2 get-pip.py
sudo pip2 install artifactory
sudo pip3 install protobuf
git clone git@github.com:makerbot/Toolchain-Release.git
cd Toolchain-Release
python2 update-repos.py -t morepork
python2 build-repos -j9
This is required to SSH install to a printer.
- Download the CESKey to your machine.
- Copy it to
~/.ssh/ - Set the correct file permissions
chmod 400 ~/.ssh/CESkey
The repositories containing STM32 MCU firmware are managed by STM32CubeMX. If you want to change MCU settings you need to install STM32CubeMX. You can get the download here.
- The following prerequisites are needed to run the installer.
sudo dnf install java-1.8.0-openjdk glibc.i686 - Create a desktop icon
Download the icon image and copy it to
/home/<username>/.local/share/applications/icons/stm32cubemx_icon.png. Copy this desktop file to~/.local/share/applications/stm32cubemx.desktop. Make sure to edit the paths (specifically, updating the username field).
- Go to Settings -> Devices -> Keyboard Shortcuts.
- Scroll to the bottom and click the + button.
- For the 'Name' enter 'Launch Terminal' and for 'Command' enter 'gnome-terminal'.
- Click the 'Set Shortcut...' button and then hit the keyboard button combo you want. Crtl+Alt+t is a common one.