#Failed SD Image
313 messages Β· Page 1 of 1 (latest)
Are you using Balena Etcher? How does it fail? What device are you using to write the sd card? Is it a usb sd card reader? if so try another usb port.
Hello @brittle sparrow
I'm using Balena Etcher.
It fails at the end of verification.
Using my desktop windows PC.
I have a USB SD card Adapter.
I've tried 2 different ports.
Download the image again, it might be corrupted.
Okay will do.
Thanks
Tried it but failed again
Works fine for me (and nobody else reported this issue), so i'm thinking it's your card reader
Are you doing something to the .xz file before flashing?
Download from github then open Balena and select
@brittle sparrow if you're in the states I'll pay for an SD card with the flashed image on it.
Then i can't think of anything other than the card reader.
I'm in Denmark, Europe so it's gonna be some tough shipping
You can try and ignore the warning and use it anyway, but i'm guessing it's probably right when it says it didn't verify
(that's why Balena is recommended, to avoid odd issues down the line because of bad flashing)
Ah and yeah
I'll grab another card reader
What's strange is all the files and folders on the card.
Yeah everything is written, but when it's read back it doesn't correspond to the contents of the image. Ie. something went wrong during flashing, that's why balena is complaining. You can try and use it, but it's prolly right that something is broken π
Yeah I had tried in the past. Didn't get anything from the pi for a hot sport or even via Ethernet.
Also using a CM4
Trying a different computer with built in SD card reader
@brittle sparrow flash complete and successful. Switch from my PC to Laptop with a built in SD card reader.
@brittle sparrow
Is there anything special needed to flash the CM4101032 Raspberry Pi 4 Compute Module CM4 1GB RAM 32GB eMMC
Success and thanks for all the help π
Yeah that doesnβt work with SD cards, you need to flash the eMMC itself
Oh nice π
@thick seal Continue here instead of DMs. I think the compile_firmware button is hidden on your screen size, click the cogs in the upper right corner and navigate to "Dashboard"
There you can configure whats visible on "Desktop"
Enable the "scripts" panel
Normally it's below the console
@brittle sparrow okay
And will do I hit the V3 button and couldn't figure out how to get it back so in the middle of flashing the image again
Love the printer cfg setup though.
@brittle sparrow that did the trick π
@brittle sparrow got the firmware flashed on the octopus pro F446 board but I'm having some issues even after going through the Printer CFG.
Getting a MCU unable to connect
This means that it didn't flash correctly / it's not booting because of a short, etc. Check: https://discord.com/channels/582187371529764864/1046952693480038500
@brittle sparrow that's what I thought but I have everything disconnected
And you selected the right board in printer.cfg?
Yes
Try flashing this one
Okay I'll try it tonight have to drop the kids off.
That's the CFG
In short running the Pro F446, BLtouch, rapido, orbiter and it's a 400 V3 might be forgetting a few things
yep pretty much
Thanks again for the help, the ratrig community was a big part of me deciding to go ratrig.
Glad to hear it! Let me know if you continue to have problems π
@brittle sparrow
Will do. I'm going to have to figure out how to change info for the cfg as I had to move things around for the motor drives. Mine don't correlate to the ratos diagram anymore and I noticed the cfg isn't like the one I have for my other printer setup on klipper.
You can override the driver and stepper pins in the bottom user overrides section
Awesome and I thought so but didn't look into it that much yet. As I need to get the mcu issue fixed first.
I'm thinking i have a bad Octopus Pro as MCU fails to connect and ive flashed firmware a few times with no change.
Tested with known working Octopus pro 446 from my other printer and still MCU unable to connect.
could this be an issue with the Pi CM4?
Going to try Flashing the RatOS again on it
Reflashed the CM4 and still no luck.
did you work through all the common issues listed in https://discord.com/channels/582187371529764864/1046952693480038500 ?
yes
I have 2 of the same Pro 446 boards both with just 24v hooked up and both have been flashed a few times via the sd card. the .bin changes to cursor as it should
run dmesg -w and while it is running, plug your octopus board into your PI
so what's the output of this?
That is the only part that im at a lose with as i have a Cm4 and not sure how get the IP and know if SSH is activated
if you have mainsail interface accessible, it lists ip address on the machine tab
are you plugged into ethernet and connected to wifi?
since they are eth0 and wlan0
that doesn't make sense, but ok.
username: pi
password: raspberry
unless you changed it
then plug in your usb that connects to octopus
okay let me retry i had it plugged beforhand
okay im going to plug it in what should i see
or what am i looking for
post the output
okay plugged it in and i didnt see anything
ideally you see it trying to connect the usb
just double checking, you are connecting to usb A port on the pi to usb C port on octopus board?
what's that other usb that is plugged in?
the USB C at the Pi is power
The USB A on the Pi is going to the USB C on the Octopus Pro
the other USB A not plugged into anything is just going to a USB outlet on the side of the machine
looks like the octopus cord is unplugged, and something else is plugged into usb A port
next to the ethernet cord
So use the USB A port on the Octopus and not the USB C
The pi is USB C to power supply and USB A to Octopus USB C
purple line to octopus looks unplugged. what does red line go to?
try plugging something else into the usb port on the pi while running dmesg -w
Okay how about a flash drive?
if nothing still shows up in output something is up with your pi ports
idk, try it
just to be sure I would try some other usb items, but it is looking that way
it has power but nothing else
tried my phone with a couple of usb cables
looks like ill need to find an actual Pi and not this POS CM4
not sure if its the cm4 or the board its attached to
yeah im not either but not sure if its worth spending another 30 on a board that might be faulty or just spend the money an a pi
it also bothers me that it shows the WIFI but Mainsail wont connect without the ethernet
I would contact whoever you bought it from and ask for refund
yeah
ill see if they will exchange it and ill order an actual pi
Wondering if i could run the ratrig off the sonic pad temporarily lol
not officially, but I could send you my notes on how to do it based off my cb1 experience. but def advanced work and you would be on your own for support
Yeah I've built a few off the pad but the CFG would be my question
All for me have been bed slingers on the pad.
Not sure how it would have to be for the bed leveling to work properly
Yes. You need to explicitly enable USB OTG via a jumper on the host board you're using.
Ohh do you know what jumper it is?
Mini Base Board (A) Designed For Raspberry Pi Compute Module 4 | CM4-IO-BASE-A
This is the base board I have
I don't, but it might not be necessary on this one.
That jumper is mostly present on controller boards made for CM4's like the BTT Manta boards.
Oh wait @thick seal are you running 1.2.4?
1.2.4 doesn't support CM4, v2.0.0 does
You can fix it though, you need this in /boot/config.txt
[cm4]
Enable DWC2 for usb on CM4
dtoverlay=dwc2,dr_mode=host
yes
I didn't see a different version
That's because 2.0.0 is in beta currently
Ahh
Well I'm currently on my way to get a pi 4 8gb
I'll install the beta and try it out
Will 2.0 fix the wifi issue too?
what wifi issue?
You can just do this and save yourself some money: #1076758202881945680 message
Or go for 2.0
You don't have to buy a pi 4 π
haha fair enough
I'll try and get the cm4 to work as well.
Don't know, i've only tested it on a CM4 without wifi, but i don't see why it wouldn't work.
Yeah I'm not sure and for me rather not have to reinvent the wheel on this.
So I was looking through the cfg and saw the override area on the bottom.
I take it use that area to make the driver output changes.
If so do you have a link or photo of an example? I've never did changes as override.
You shouldn't need to do that with Rat-OS. Are you using some completely different hardware than what the ratrig kit comes with?
I got my v3 used and it was a mess so I drew up and made a new panel for all the electronics.
Correct.
There's no difference to regular configuration
You just write your driver settings tehre
eg:
[tmc2209 stepper_x]
uart_pin: whatever
[stepper_x]
dir_pin: whatever
step_pin: whatever
enable_pin: whatever
Then just look up the pins you need in the pinout for your board
quite an improvement lol
Awesome so it's just use the normal klipper call outs
basically because of wire lengths i assume he had to switch the bottom 3 with the top 3 steppers.
Yes it was a wreck before
yep!
ahhh
what do you mean by that? You can't access ratos.local? Or even using IP address for the pi you can't access it?
does your router list it as connected?
Haven't gotten that far but i did notice it still shows the Ratos hotspot
then it isn't connected to the wifi
I do have good news, the Pi can see the Octopus board now
I thought the same but when i went to redo the wifi it comes up bad gateway
Does your wifi SSID or password have spaces or special characters?
no just numbers
did you connect to the hotspot first?
so after connecting to ratos hotspot you navigate to 192.168.50.1?
That means connection to nginx on the pi is working but the configurator is dead
Can you ssh into your pi and download ~/printer_data/logs/ratos-configurator.log and post it here?
yes
pi@ratos:~ $ /printer_data/logs/ratos-configurator.log
-bash: /printer_data/logs/ratos-configurator.log: No such file or directory
pi@ratos:~ $ ~/printer_data/log/ratos-configurator.log
-bash: /home/pi/printer_data/log/ratos-configurator.log: No such file or directory
pi@ratos:~ $
Okay I got WiFi working
I reimagined the SD card and started over. Now wifi works and I can see the board
I'm still seeing the about photo with everything saying invalid
It's /home/pi/printer_data/logs/ratos-configurator.log
Okay this is good.
That's just because it hasn't been able to query github for the information yet
Hit the refresh button in the title of that panel, that should fix it. If it doesn't you have network issues.
Okay check it out in a bit
@brittle sparrow I thought the wifi was working but my PC just auto reconnected to the ratos hotspot π
pi@ratos:~ $ /home/pi/printer_data/logs/ratos-configurator.log
-bash: /home/pi/printer_data/logs/ratos-configurator.log: No such file or directory
pi@ratos:~ $ /home/pi/printer_data/logs/ratos-configurator.log
-bash: /home/pi/printer_data/logs/ratos-configurator.log: No such file or directory
pi@ratos:~ $
Hmm.. How did you flash the sd card? Did you use the Raspberry Pi imager? Because that might break the wpa_supplicant functionality.
That's really strange
Can you try manually editing /boot/ratos-wpa-supplicant.txt ?
If that still doesn't work, i'm gonna have to blame your router. I'm having no trouble connecting to wifi on Pi4, 3 or zero two with the latest beta.
will try now
pi@ratos:~ $ /boot/ratos-wpa-supplicant.txt
/boot/ratos-wpa-supplicant.txt: line 54: syntax error near unexpected token }' /boot/ratos-wpa-supplicant.txt: line 54: }'
pi@ratos:~ $
You need to edit it, so run:
nano /boot/ratos-wpa-supplicant.txt
then change the
network={
...
}
section to match your wifi settings.
okay
ah ha
that did it
not sure why it didn't work the normal way but now it works
I'm currently going through making the needed changed in my CFG in the overrides. Once I'm done mind just giving it a glance as i need to make changes to more then just the drivers as i want to add all the fans to the board plus run both parts cooling fans on there own pin. Also I'm planning to swap to the APUS extruder at home point so i will need to be able to edit the current and rotation distance.
I have a theory. Needs changes to the configurator, will see if i can get to it tomorrow.
sure
awesome as I'm getting errors with the overrides
getting a parse option 'fan_speed' error also run_current error
Line 342 - that needs to go under a header, but currently is just "floating" there under controller fan header which is wrong
And for the controller fan definitions you have 1,2,3 just dangling off the name. Either connect it with something or just leave it off.
i.e. controller_fan_1 or just leave as controller_fan
The fan speed error might be because you started with a dot (i.e. .75) but you need a leading zero, i.e. 0.75
Not sure why it is complaining about the run current
Maybe it needs a space after the :?
You have run_current:0.707 but you need run_current: 0.707
Thanks Ill make the changes.
i # out the extruder run current as i plan to use that for when i switch to the APUS
Okay i updated everything and now i get pin fan_controller_board_pin is an alias for PD12
I think its because am trying to run both parts cooling fans in parallel but off there own pins
pin fan_toolhead_cooling_pin is an alias for PE5
Line 309, you are trying to use pd12 for a fan, but ratos is already defining that pin for a controller fan. You can have the same pin for fan and controller fan. So redefine the fan_controller_board_pin to something you aren't using, and then you should be fine. needs to be done before you use pd12
You might be better off copying the board import (line 22 shows where it lives) to the same folder your printer.cfg is, then change the pin definitions there, then importing that instead of line 22.
That way you don't have to keep fighting the already defined pin names
But up to you
So change the config.cfg for the board
Have you ever used
[multi_pin my_fan]
pins: PC7, PC6
[fan]
pin: multi_pin:my_fan
ahh okay i was trying to get that to work for my parts cooling fans
is it possible to do that in the board cfg?
Also how do i make the config file not read only? i tried downloading and editing it but i can't upload it from there
Those files are just for logical separation. You could copy them all to printer.cfg and it would still work.
Just follow the correct convention, don't directly edit those ratos files. If you need to override them, create new files copy the ratos one, and then override the new one however you want
You don't, they are read only for a reason
okay
Just copy it to a new file like I outlined earlier
Yeah, now just redefine the pins to the aliases so they are correct. Then ratos should just work
You have one too many config in the path
π€¦ββοΈ
[include config466dualPF.cfg]
Ah hA
Sorry, I should have spotted that earlier
that worked
no worries this is new to me I'm used to having everything laid out the old way and filling it all in
how would i call out the multi fan in the board CFG for the dual parts cooling fan setup?
Same as before I would imagine
And then just override it in the USER OVERRIDES section like I did in my config
okay
[multi_pin my_fan]
pins: PE5, PD12
[fan]
pin: multi_pin:my_fan
Unknown pin chip name 'multi_pin'
Never mind
all fixed
deleted this and it worked
[fan]
pin: multi_pin:my_fan
Thanks again for all the help and hopefully this helps someone else along the way.
Good luck
Thanks again for all the help I couldn't have done it without the amazing RatRig community
Any chance you might know why the X would show trigger on the limit switch even if its not hooked up and no matter what pin you put it on? Could it be a driver issue?
I've nailed it down to something in the CFG. List Below is what I've tested and found.
Moving limit switch pin in Config = no change
Unplugged limit switch = no change
Swapped drivers around = no change
Moved X Driver from 5 to 4 & re did the pin call outs = no change
swapped the X & Y in the config = Moved the issue from X to Y
Not Sure what it could be causing the issue.
Check that you don't have the DIAG jumpers inserted
I take it this is what you are talking about.
I'm wondering if I need to add ^ for that one for some reason
So it's not that at least.
Oh your endstops are miswired
You're shorting your pins
White and red should be swapped.
Hopefully you didn't fry your mcu.. yet
(this is why there are warnings about this everywhere in the docs)
That's super strange as thats how it was when i got it and thats the only one that works the one with the white connector dosnt work
I think I know what happened
then it's miswired in the other end as well
This is the one that actually works
So follow this one?
I also had this issue with the wiring that was on the machine
This is the one that is giving me problems and I just swapped the wires
That's did the trick
Ugh I had trusted what the PO had done was correct
yes
good π
I went back and looked at the last owners cfg and he used sensorless homing. I guess this is why
Hehe he probably couldn't figure out why his endstops didn't work π