Guest User

Untitled

a guest
Apr 26th, 2020
174
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # work in a dedicated folder ( here in /tmp/, which is deleted when the operating system resets )
  2.  
  3. mkdir -p /tmp/smoothie/
  4.  
  5. # go there
  6.  
  7. cd /tmp/smoothie/
  8.  
  9. # retreive the source code from github ( see http://smoothieware.org/getting-smoothie ), in the current folder ( here /tmp/smoothie )
  10.  
  11. git clone git://github.com/Smoothieware/Smoothie.git
  12.  
  13. # move to the local copy of the repository
  14.  
  15. cd /tmp/smoothie/Smoothie/
  16.  
  17. # install the toolchain. Note you *must* us this specific toolchain, installed by this specific command. All alternatives are likely to cause issues.
  18.  
  19. ./linux_install
  20.  
  21. # finally compile the firmware
  22.  
  23. make clean all
  24.  
  25. # we now have a firmware file
  26.  
  27. ls -lh LPC1768/main.bin
  28.  
  29. file LPC1768/main.bin
  30.  
  31. # 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/ )
  32. # the "mount" command can help you figure out where the smoothieboard is mounted
  33.  
  34. cp LPC1768/main.bin /tmp/mounted-media-storage-smoothieboard/firmware.bin
  35.  
  36. # now if we properly "eject" the Smoothieboard from the filesystem, and reset the smoothieboard, the new firmware will be flashed to ROM
  37.  
  38. umount /tmp/mounted-media-storage-smoothieboard/
  39.  
  40. # 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
  41. # you might need to run this with sudo
  42.  
  43. # 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:
  44.  
  45. make clean
  46. make CNC=1
  47.  
  48. # and Voilà!
  49. # Now *you* try it
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×