RatOS + BigTreeTech CB1 Pi Clone

Does anyone have any experience on getting RatOS to run on a BigTreeTech CB1? I have tried following the only guide I can find on the subject several times and I still can't get it going right. I got it to the point of running Klipper and Mainsail and even having the correct macros but it does not show as RatOS in the title or under updates in the machine setting. I also receive the error "mkdir: cannot create directory ‘/home/pi/klipper_config/config’: No such file or diectory" Guide I am using: (https://3dpandme.com/2022/10/02/tutorial-btt-manta-m8p-cb1-ratos-install-guide/)
dmason
3DP and Me
Tutorial: BTT Manta M8P + CB1 RatOS install guide
Hi guys, today I’m going to take you through the process of setting up the BTT Manta M8P and CB1 board. The Manta is a hybrid board with mounting point available for a Raspberry Pi compute mo…
60 Replies
blacksmithforlife
@davefrom3dpandme see above
miklschmidt
miklschmidt2y ago
@davefrom3dpandme maybe you can help here? omg lol, didn't see you already did the exact same thing 😂
blacksmithforlife
it's like the blind leading the blind around here 😉
xenial-black
xenial-black2y ago
Ahh if you can wait until tomorrow I'll be at home (current on holiday) and can boot up the board and take a look. From memory there was a step that was needed to get the ratos theme to actually work. In terms of updating ratos does your moonraker conf include the section for it?
ambitious-aqua
ambitious-aqua2y ago
Sure thing, Enjoy your holiday. I have had difficulty getting RatOS to install at all as it says the destination folder does not exist. I did manage a workaround but run into further issues. Any help would be greatly appreciated when you have the time.
xenial-black
xenial-black2y ago
Ahh did you create the directory before running the script? Someone else had a similar problem
ambitious-aqua
ambitious-aqua2y ago
Yes, I ended up manually creating the folder it wanted to move forward but still running into errors during the RatOS portion of the install.
xenial-black
xenial-black2y ago
Did you get any further In the end?
MONSOONO
MONSOONO2y ago
Seems like I roll off the rails at the same point
MONSOONO
MONSOONO2y ago
No description
xenial-black
xenial-black2y ago
run mkdir then the path it comes up with
blacksmithforlife
mkdir will fail if you try and make multiple directories that don't exist. try mkdir -p the -p says make the missing parent directories if needed
MONSOONO
MONSOONO2y ago
Okay, I assumed that that was the default behaviour. Thank you.
blacksmithforlife
nope. When in doubt, read the manual page man mkdir
MONSOONO
MONSOONO2y ago
Alright, I'll proceed through the rest of the instructions now.
MONSOONO
MONSOONO2y ago
I anticipate OP will probably run into similar issues as I. Looks like this /home/pi/ratos-configurator/scripts/setup.sh command is not happy. I might try wiping out the folder and going through one line at a time.
No description
blacksmithforlife
You can clone that repo somewhere else and just sym link it and it should work i.e. git clone <Rat-OS-configuration> ~/ ln -s ~/<Rat-OS-configuration>/* /home/pi/klipper_config/config/ Or something like that
MONSOONO
MONSOONO2y ago
I removed the subfolder and copy pasted each command out individually and it seems that has allowed me to proceed. It might mean that prior multiple copy pastes did not work correctly, but I'll continue and see if this works.
xenial-black
xenial-black2y ago
sorry im trying to prep the house for a full rewire tomorrow will try be helpful in a few hours
MONSOONO
MONSOONO2y ago
I managed to get through and boot into Ratos, I changed the hostname through KIAUH and now I can't connect to Moonraker. Promising overall. I'll probably start again and apply the lessons learned, then image the drive before messing with anything else. No worries, your guide is very appreciated.
miklschmidt
miklschmidt2y ago
Just delete config/ then clone it to ~/klipper_config/config. The moonraker.conf goes in ~/klipper_config not ~/klipper_config/config ah good.
blacksmithforlife
Or that 😅
miklschmidt
miklschmidt2y ago
prolly the good old ipv6 issue. It's fixed in v2.x. Basically you need to remove the IPv6 listener from nginx and stop avahi from broadcasting IPv6 addresses.
MONSOONO
MONSOONO2y ago
I reinstalled and took an image before making any modifications to the hostname and after rebooting I can't access the webui. I think I might leave it there. I know its an unsupported board and I'm a lot more comfortable with MCUs than linux. I've got a basic KIAUH build working fine and I don't want to tie up anyone's time if there's a chance that a newer version might avoid this issue down the road. Perhaps @stephenson105 will have more success.
miklschmidt
miklschmidt2y ago
use the IP
MONSOONO
MONSOONO2y ago
No luck on either
blacksmithforlife
I am hoping to get it working once I get my manta m8p and CB1 delivered @monsoono which CB1 image did you use from BTT?
MONSOONO
MONSOONO2y ago
I used the minimal one for both the non-ratos and ratos installations. I may have encountered some minor issue with the one that comes with klipper baked in.
loganluckless
loganluckless2y ago
Apologies for intruding on this thread but I think I am having a similar problem. I'm a complete noob to klipper and programing so apologies is the answer is obvious.
No description
blacksmithforlife
If you are a klipper noob, I would stick with a regular raspberry pi instead
loganluckless
loganluckless2y ago
Unfortunately I underestimated the challenge when I bought the cb1
blacksmithforlife
shouldn't moonraker be /home/pi/klipper_config/moonraker.conf ? Looks like you have an extra config directory there
loganluckless
loganluckless2y ago
Not sure, just copy pasted this from the 3dpandme guide. Looks like it creates that dual config directory in the first command. I added the mkdir -p as shown in an earlier message
No description
loganluckless
loganluckless2y ago
Should I remove all references to the second config path?
blacksmithforlife
not having followed his instructions I don't know. There is where you kind of need to know what you are doing and take his instructions with a grain of salt You also had an error in your mkdir -p command. There needs to be a space between mkdir and -p
loganluckless
loganluckless2y ago
yep realized that and fixed it but same output. I'm most likely going to format the card and restart.
miklschmidt
miklschmidt2y ago
yeah that whole thing is wrong klipper_config/config is a git repository (RatOS-configuration), it should be cloned from github, and you absolutely do not want to change files in there.
loganluckless
loganluckless2y ago
Other than automatic updates am I missing a ton if I use the example configuration instead of ratos? This machine is for tinkering so I have no problem with manual configuration
miklschmidt
miklschmidt2y ago
Yes, you'll be missing all the features i added over the past 2 years. A shitload of macro's for one. Lots of tuned settings for different hardware. Stowable probe support. You'll need to manually compile and flash, set the serialpath, etc etc. Also the belt tension, shaper graph macro's etc.
loganluckless
loganluckless2y ago
I don't mean the klipper example config I mean this https://github.com/Rat-OS/RatOS-configuration/tree/master/templates. I should be able to use the macros and such as long as my directory is set up correctly right?
miklschmidt
miklschmidt2y ago
Oh gotcha! Yes if you use the configuration repository all the macro's should work except for the shell macro's. You will still have to manually compile and flash the firmware, and set the serial. Also there'll be no hand holding when moonraker/klipper/klipperscreen etc break things. unless it's a simple config change
loganluckless
loganluckless2y ago
No prob trial by fire I guess. I'm excited to try ratos on the next vcore I'm building. Honestly might eventually swap to a genuine pi
stormy-gold
stormy-gold2y ago
I got stuff working, but when I reboot the services do not start. Im guessing it's the ratos-install.sh thats messing it up. Just wanted to put it out there.
blacksmithforlife
Why do you think it's the ratos-install.sh?
stormy-gold
stormy-gold2y ago
I rebooted several times after doing a couple of steps, stopped working after running ratos-install.sh. I did run the setup.sh too though
blacksmithforlife
Ratos-install.sh doesn't touch services so that seems like a red herring Where is setup.sh from? Ratos doesn't have that in the script directory
stormy-gold
stormy-gold2y ago
/home/pi/ratos-configurator/scripts/setup.sh Says in the tutorial OP posted
blacksmithforlife
Ahh, yeah that one deals with services, so many that failed for some reason. If you look at the logs is there any error or anything?
stormy-gold
stormy-gold2y ago
I cant get the errors now, but I did manage to get through the tutorial by deleting folders and files. I didnt see many errors
blacksmithforlife
What files and folders did you need to delete?
stormy-gold
stormy-gold2y ago
From what I remember: klipper_config /printer_data/config (I think Files inside /etc/udev/rules.d There were more, but basically folders the tutorial said you had to make
xenial-black
xenial-black2y ago
@miklschmidt where are we with the OS image. I have a few hours tomorrow where I can go through the discussed points above and run through a clean install to try clean up my guide (and add a clear this is a bit of a hack until official support is available warning) @blacksmithforlife thanks for helping people, this house reno is unsurprisingly taking up my entire life hah!
miklschmidt
miklschmidt2y ago
CB1 wise, nowhere.
xenial-black
xenial-black2y ago
Okies so worth me sorting out the errors in my guide then As opposed to just archiving it away as no longer required
miklschmidt
miklschmidt2y ago
definitely
blacksmithforlife
I try. I did finally get my Manta and CB1, now just have to find the time to work through the install myself. Not sure if you are using windows, but after installing the BTT image there was no files like the ones mentioned that I could edit for WIFI. So I am hoping ethernet will work
xenial-black
xenial-black2y ago
I wonder if their image / info has changed and that's what is causing so many issue now... Anyway I'll find out tomorrow 😅
blacksmithforlife
I had a few minutes and I tested the image that comes with klipper and mainsail installed. It worked fine for me, and next step is to try to manually install ratos specific repos
xenial-black
xenial-black2y ago
Cheers bud, my time I thought I have dissappeared when a connector exploded at work Let me know how it goes!
blacksmithforlife
Well I tried to do my own install. Not really following any plans, and well as you can expect things went off the rails. Somehow I mostly got it installed but it's complaining that some of the config stuff is invalid for klipper. I plan on starting over from scratch and trying again I was hoping I could save some time and instead of using kiauh use the image that already has klipper and stuff installed and just use a couple sym links and edits to files to replace the pi user I'll try again another day, just thought I would update anyone looking at this
Want results from more Discord servers?
Add your server
More Posts