Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # work in a dedicated folder ( here in /tmp/, which is deleted when the operating system resets )
- mkdir -p /tmp/smoothie/
- # go there
- cd /tmp/smoothie/
- # retreive the source code from github ( see http://smoothieware.org/getting-smoothie ), in the current folder ( here /tmp/smoothie )
- git clone git://github.com/Smoothieware/Smoothie.git
- # move to the local copy of the repository
- cd /tmp/smoothie/Smoothie/
- # install the toolchain. Note you *must* us this specific toolchain, installed by this specific command. All alternatives are likely to cause issues.
- ./linux_install
- # finally compile the firmware
- make clean all
- # we now have a firmware file
- ls -lh LPC1768/main.bin
- file LPC1768/main.bin
- # copy that firmware file to the Smoothieboard's SD card via the mounted USB/Mass storage interface ( here we use a dummy folder in /tmp/ )
- # the "mount" command can help you figure out where the smoothieboard is mounted
- cp LPC1768/main.bin /tmp/mounted-media-storage-smoothieboard/firmware.bin
- # now if we properly "eject" the Smoothieboard from the filesystem, and reset the smoothieboard, the new firmware will be flashed to ROM
- umount /tmp/mounted-media-storage-smoothieboard/
- # we get that error because we use a dummy folder for demonstration, but if you use the right path for your case, it will unmount the board
- # you might need to run this with sudo
- # the default firmware is for 3D printers. If you have a laser cutter or a CNC mill, you want the CNC build. It's easy, instead of doing «make clean all», you do:
- make clean
- make CNC=1
- # and Voilà!
- # Now *you* try it
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement