intelligent-agent / Refactor

Linux distro for 3D-printers
https://wiki.iagent.no/wiki/Refactor
GNU Affero General Public License v3.0
28 stars 19 forks source link

Rename folder and add the new one to the system path #372

Closed goeland86 closed 1 year ago

goeland86 commented 1 year ago

This is supposed to address the issues raised in #371

goeland86 commented 1 year ago

As discussed on the #development channel on the Thing-Printer Discord with @eliasbakken we're moving the or1k toolchain to /usr/local. However I feel strongly about advising users via the Refactor wiki that the toolchain files should not break moving forward, lest Klipper updates fail to properly install in the future. To that end, here's what I propose we add as a section (or sub-section) to the Refactor wiki page:

` ====Compiling the ar100 binary==== To configure klipper for AR100 and build the binary:

export PATH=$PATH:/opt/output/bin
cd /home/debian/klipper/
cp test/configs/ar100.config .config
make olddefconfig
make

This will produce a bin file located in out/ar100.bin, so it should be moved to /opt/firmware

mv out/ar100.bin /opt/firmware/

Once the AR100 binary has been updated, klipper.service can be restarted which then loads the new AR100 binary.

systemctl restart klipper

===== IMPORTANT Note for system customizers ===== The AR100 firmware needs a specific toolchain to compile, it's been installed in

/usr/local

For most users this will be a non-issue. However, be aware that if you intend to customize and install homegrown software in that folder, you need to pay attention so as to not overwrite the toolchain files. Specifically in the lib folder, the libcc.so series of files needs to stay intact.

If you accidentally overwrote them, you can download the original toolchain again from [http://feeds.iagent.no/toolchains/or1k-linux-musl.tar.xz] `