Karl here. This was article originally going to be how to setup Octoprint 3D printer server on an Orange Pi Lite. But after looking and running through the instructions it seemed like it would be too much so I created an img to simplify things. I also explored running Octoprint on an Amlogic S905x or S912 device and it turned out to be an even better solution. You get a case, power supply, and eMMC flash storage.
What is Octoprint?
I use Octoprint mainly for its ability to start and stop prints without having to use an sd card. Time lapse is also a nice feature. And one last thing is that I setup a pushbullet notification when it is complete. For a full list of features check out http://octoprint.org/.
What is needed?
- Orange Pi Lite board provided by GearBest for the article, or an Amlogic S905X or S912 Android box.
- At least a 4GB micro SD card or good Samsung for Orange Pi Lite
- A good power supply if you choose Orange Pi Lite
- Download Orange Pi Lite img from here and Amlogic img from here.
- Burn to your micro SD card with Win32DiskImager, dd, or Etcher..
Login: root password: octoprint
Login: cnx password: cnx
Orange Pi Lite: orangeocto.local
- Boot and find the update app
- Click Select
- Choose the aml_autoscript.zip
- Click Update
- Then Update again
- Once it boots log in with root and run “sudo /root/install.sh”
- Now we need to see if WiFi is working. Run “nmtui”. This should be self explanatory, and if you see your access point stop. Don’t bother to connect. Exit run “shutdown” wait for it shutdown, remove the SD card, and pull the power and power back on. You can skip the next few steps in this section.
- If you did not see your access point exit out of “nmtui” and run the command “sudo modprobe wifi_dummy” repeat looking for access point in step 7.
- If you still don’t see your access point run the command “sudo modprobe dhd” repeat looking for the access point in step 7.
- If you have to modprobe either to get wifi working once you boot from the internal storage log in with root and run the command “sudo nano /etc/rc.local” and add your “sudo modprobe xxxxxx“ command before exit 0. Cntrl X then y then enter to exit nano and save. Reboot and continue.
Orange Pi Lite Instructions
- Connect a keyboard and connect to a monitor or tv
- Login with root
- Run the command “sudo cfdisk /dev/mmcblk0”
- Delete /dev/mmcblk0p1 with the arrow keys
- Make a new one and it should fill in the full size of your sd card.
- Then finally write. It will prompt you are you sure and type out yes.
- Arrow over to quit and enter.
- Reboot with the command “sudo reboot” and wait for the Orange Pi to reboot.
- Log back in with root and run the command “sudo resize2fs /dev/mmcblk0p1”
- Reboot again with the command “sudo reboot” and wait for the Orange Pi to reboot.
Remaining Octoprint detup instructions common to all devices
- Log back in and run the command “nmtui” to connect to your network. This should be self explanatory. After connecting to wifi if you choose to set a static IP address quit and go back in to nmtui and edit the connection to set the IP address. When setting the IP address suffix the IP address with a /24 to denote a 255.255.255.0 subnet mask
- Finally quit and run the command “shutdown” and wait for it to turn off.
- Move the Octoprint server and connect to your printer.
- To log in open your browser and navigate to http://x.x.x.x:5000 or orangeocto.local:5000 or amlogicocto.local:5000.
- Run through the setup it is self explanatory and in settings add /home/pi/OctoPrint/ as your git update path.
I really recommend setting static IP addresses through your router if it has the ability. Or you can use the .local address above if you have zeroconf/avahi on your machines .
I also recommend the Amlogic server. You get a board, enclosure, power supply, and eMMC flash to run off of. You still need an SD card to get started, but it is not permanent. I ran into trouble on Orange Pi Lite, but it does work. I think the Orange Pi Lite board I received is flakey.
You have a lot of headroom on these to provide other services, e.g.. home automation, media server with no transcoding, NAS, Minecraft server, or anything else that runs on Linux.
Big thanks to balbes for making Linux work, Jean-Luc, and Armbian forum members who tested Orange Pi Lite version.
- X96 1/8 S905X with wifi dummy
- X96 2/16 S905X with wifi dummy
- Tanix TX 5 Pro S905X with dhd
- Yoka KB2 S912 with wifi dummy
It looks like Realtek (RTLxxxx) WiFi chips need the wifi dummy, and Ampak (apxxxx) chips need the dhd.
Cura 2.6 came out just just recently with the ability to connect directly to Octoprint. It is really cool feature.
To setup login to octoprint and grab API key.
Then open Cura 2.6 and go to manage printers. Highlight printer and press Connect Octoprint.
Add an Octoprint instance, set preferences, and input API key.
Now you can start prints directly from Cura and monitor prints.
I would really like to thank Gearbest for sending the Orange Pi Lite board, power supply, and SD card, as well as Amlogic boxes and 3D printers from previous reviews. If you decide to do this project yourself, please think about ordering from Gearbest through our links. It helps us out to continue to experiment with different hardware and provide these articles.
Karl is a technology enthusiast that contributes reviews of TV boxes, 3D printers, and other gadgets for makers.
20 Replies to “How to Use Octoprint on Orange Pi Lite Board, Amlogic S905X and S912 TV Boxes”
Hi Karl, what is the base of the S905x image?
By the way: The new Slic3r release can be connected to OctoPrint, too. Whith this you can only upload the gcode but it is a handy feature.
Just like the Orange Pi Lite image it’s also based on Armbian (balbes150’s Amlogic TV box flavours). And the installation seems to be somewhat crippled at least I don’t understand the weird instructions to resize the rootfs.
And I totally fail to understand why someone uploads crippled images somewhere instead of providing an octoprint installation script routine Armbian devs could include into all images accessible through ‘armbian-config’ tool that will work on every of the 50 boards Armbian currently supports. I really don’t understand this ‘Let’s make a new image for XY’ mindset 🙁
I asked Karl about the resize thing since it’s supposed to work automatically at first boot, but he told me something like he already did the first boot, and could not find a way to start that process on next boot.
The installation instructions were apparently complex, so he did not provide them, and that’s probably why the script option was not considered either, or he may have not have known about this option. Maybe that’s something that could be worked on if time permits.
He must be sleeping right now, but I’m sure he will answer later on.
It’s possible to ask questions in Armbian forum (same with the ‘WiFi problems’). I will stop here since providing OS images in 2017 with pre-defined logon credentials without forcing the users to assign new passwords is already so insane…
How do I go about getting the ball rolling to get a script on all the boards. I would like to pursue that.
does it also work with the s905 or does it need to be a s905x?
It is supposed to but I could never get it to boot on an s905. I spent a lot of time trying.
orange pi 试过了 更不就行不通，浪费了我两个小时 so sad
I’m successfully using an orange pi following this instructions, thank you! I have two question: Is it possible to update hte octopi version that comes with your image? My usb logitech webcam is not working, is there some extra setup to do?
fixed, Stream URL must be updated according to my ip into octoprint setup. now webcam works.
Sorry i didnt get notified. You can update if you set /home/pi/OctoPrint/ when you initially installed as your path.
Hello, my pi can”t recognize:
sudo cfdisk /dev/mmcblk0”
Try cd \dev and do an ls you should see mmc….
Sory 🙁 command not found!
hello… trying to install… on chapter octoprint setup, item “3. Move the Octoprint server and connect to your printer.” what do you mean? Now the system doesn’t load anything. It’s on idle # after login.
Hello, don’t you have any newer image for X96 2/16 S905X? I have tried a lot of new armbian images but I couldn’t get wifi to work in any of them.
The login screen appears and then disappears. I can’t do anything else. What should I do?
What board are you using ?
Hello, I bought an Android TV box with an S905X and managed to install octoprint and get the wifi going, the problem is it really is an old version of octoprint and octopi, and I don’t know how to upgrade to the latest version, as it uses phyton 3. Has anyone been successful updating to the latest Octos? Thank you