g992 / flashforge-ad5m-5mpro-research

Hardware and software researches and upgrades for Flashforge adventurer M5/M5 PRO
59 stars 5 forks source link

Mainsail and Moonraker for Flashforge AD5M #6

Closed xblax closed 5 months ago

xblax commented 6 months ago

Let's talk a bit about the options to get Mainsail and Moonraker working with the Flashforge 5M (Pro). I think we could consider the following options:

a) Install Mainsail+Moonraker on the Flashforge 5M after rooted into the existing image. As I understand the 128MB ram of the integrated ARM board are a bit limited to run Mainsail+Moonraker but maybe that's still worth trying out. Looks like some initial work to install missing components was already done here https://github.com/Stone-Time/Flashforge-Adventure-5M-Pro-Klipper-SSH

Either use the existing Klipper or install a clean rebuild. It looks like the printer comes with a more ore less stock Klipper 0.11, see https://github.com/FlashforgeOfficial/AD5M_Series_Klipper

b) Try to reverse engineer boot loader, run a different Linux image with Klipper etc. that is loaded from the USB Stick. I think that option takes too much effort.

c) Run Mainsail+Moonraker on a separate device, keep (stock) Klipper as is on the Flashforge. Moonraker connects to Klipper via a Unix Domain Socket that is forwarded via Openssh to another host.

d) Only have the Klipper MCU part running on the integrated controller, Run Clipper (Python part), Moonraker, Mainsail externally.

I would probably prefer a solution that is non-invasive and does not break the built-in printer interface. Not sure about Klippers capabilities, but maybe multiple clients can connect to Klippers API server in parallel: https://www.klipper3d.org/API_Server.html

DougJoseph commented 5 months ago

If someone else want's to try this out already, maybe leave a comment here.

Please would you add me as well? I'd love to help test. I have an AD5M and I have root access using the thing from Stone-Time.

DomanRulez commented 5 months ago

Could you add me too? I have 5M with few cameras (so far in OctoPrint)

Tiwatz commented 5 months ago

Please add me if you want more testers. Got the 5M Pro.

nayoshi commented 5 months ago

I would love to participate in testing the firmware, if yall still need more hands on deck :D

xblax commented 5 months ago

@DougJoseph @DomanRulez @Tiwatz @nayoshi Thanks for your interest in the mod. We a currently working on the final tasks to make the repository open for public beta. If no more show-stoppers are found it should be ready in a couple of days. Then you are all welcome to all participate in the testing and discussions.

I will announce it here when it's ready.

DougJoseph commented 5 months ago

@xblax awesome. Thanks!

skylatian commented 5 months ago

Any updates here would be appreciated! I have a 5M Pro and would be more than happy to test :)

KaruroChori commented 5 months ago

@consp & @xblax are completing the documentation for the first public beta release, but all the relevant functionality has been already implemented and tested (up to a certain extent; it is beta for good reasons). @consp is also working on a pre-alpha branch to fully support klipperscreen. So far it has been reported to work, but there are still some rough edges and the long term stability has not been fully assessed; that feature will not reach a beta status before the initial release.

xblax will just release it once it is ready :).

consp commented 5 months ago

still some rough edges and the long term stability has not been fully assessed; ... beta status before the initial release.

On the mark, but need more testers to get those rough edges out :) Won't be long, patience is a virtue! (and makes us not screw up :roll_eyes: ) Already for everyone to prepare themselves: Make sure your slicer is set up correctly, the default start/stop orcaslicer settings from FlashForge will NOT work.

mBlinkii commented 5 months ago

Hello, I am looking forward to your work. How well do Mainsail and KlipperScreen run on the original board? I'm thinking of replacing the whole board and using an RPI Klipper and Mainsail.

glizzyglizz69 commented 5 months ago

I would like to become a tester - Will the documentation provide instructions on how to install the firmware on the printer's mainboard? Also, when said documentation is released, will we be updated here in this forum? I'm subscribed and receive updates here, just want to make sure I'm able to get everything. Thanks!

xblax commented 5 months ago

The waiting has come to an end, finally :tada:

I have set the repository https://github.com/xblax/flashforge_adm5_klipper_mod to public and everybody who's interested can now have a look and help testing. Please note that it's still beta.

That also means that we no longer have to hold this issue hostage for public discussions of the mod. I will close it and invite everyone continue the discussion in the Adventurer 5M Klipper Mod v00.03-beta Release Announcement or the other open topics in the mod repository.