How to Use Octoprint on Orange Pi Lite Board, Amlogic S905X and S912 TV Boxes

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 Kit – Click to Enlarge

Octoprint Setup

Common Instructions

  • Download Orange Pi Lite img from here and Amlogic img from here.
  • Burn to your micro SD card with Win32DiskImager, dd, or Etcher..

Credentials

Login: root password: octoprint
Login: cnx password: cnx

Hostname

Orange Pi Lite: orangeocto.local
Amlogic: amlogicocto.local

Amlogic Instructions

  1. Boot and find the update app
  2. Click Select
  3. Choose the aml_autoscript.zip
  4. Click Update
  5. Then Update again
  6. Once it boots log in with root and run “sudo /root/install.sh”
  7. 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.
  8. 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.
  9. If you still don’t see your access point run the command “sudo modprobe dhd” repeat looking for the access point in step 7.
  10. 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

  1. Connect a keyboard and connect to a monitor or tv
  2. Login with root
  3. Run the command “sudo cfdisk /dev/mmcblk0”
  4. Delete /dev/mmcblk0p1 with the arrow keys
  5. Make a new one and it should fill in the full size of your sd card.
  6. Then finally write. It will prompt you are you sure and type out yes.
  7. Arrow over to quit and enter.
  8. Reboot with the command “sudo reboot” and wait for the Orange Pi to reboot.
  9. Log back in with root and run the command “sudo resize2fs /dev/mmcblk0p1
  10. Reboot again with the command “sudo reboot” and wait for the Orange Pi to reboot.

Remaining Octoprint detup instructions common to all devices

  1. 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
  2. Finally quit and run the command “shutdown” and wait for it to turn off.
  3. Move the Octoprint server and connect to your printer.
  4. To log in open your browser and navigate to http://x.x.x.x:5000 or orangeocto.local:5000 or amlogicocto.local:5000.
  5. Run through the setup it is self explanatory and in settings add /home/pi/OctoPrint/ as your git update path.

Notes

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.

Tested on

  • 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

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.

Click to Enlarge

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.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

Radxa Orion O6 Armv9 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
20 Comments
oldest
newest
doubleK
doubleK
7 years ago

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.

tkaiser
tkaiser
7 years ago

doubleK : what is the base of the S905x image? 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… Read more »

cnxsoft
Admin
7 years ago

@tkaiser
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.

tkaiser
tkaiser
7 years ago

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…

Karl Johnson
Karl Johnson
7 years ago

tkaiser

@tkaiser

How do I go about getting the ball rolling to get a script on all the boards. I would like to pursue that.

Sven
Sven
7 years ago

does it also work with the s905 or does it need to be a s905x?

Karl Johnson
Karl Johnson
7 years ago

It is supposed to but I could never get it to boot on an s905. I spent a lot of time trying.

diaodiao
diaodiao
7 years ago

试了半天没有成功,不开心

钓钓
钓钓
7 years ago

orange pi 试过了 更不就行不通,浪费了我两个小时 so sad

Ale
Ale
7 years ago

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?

Ale
Ale
7 years ago

@Ale
fixed, Stream URL must be updated according to my ip into octoprint setup. now webcam works.

Karl Johnson
Karl Johnson
7 years ago

@Ale
Sorry i didnt get notified. You can update if you set /home/pi/OctoPrint/ when you initially installed as your path.

Mario Rogina
Mario Rogina
7 years ago

Hello, my pi can”t recognize:
sudo cfdisk /dev/mmcblk0”
Delete /dev/mmcblk0p1
Please help…

Karl Johnson
Karl Johnson
7 years ago

Try cd \dev and do an ls you should see mmc….

Mario Rogina
Mario Rogina
7 years ago

Sory 🙁 command not found!

Hugo Nascimento
4 years ago

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.

jiri
jiri
4 years ago

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.

Cleiton
Cleiton
3 years ago

The login screen appears and then disappears. I can’t do anything else. What should I do?

Nig
Nig
3 years ago

What board are you using ?

dario
dario
2 years ago

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

Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...