Failed SD Image
Flash to image SD card fails every time no matter what SD card I use 16GB to 128GB all SanDisk SD Cards.
181 Replies
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.
genetic-orangeOPβ’2y ago
Hello @miklschmidt
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.
genetic-orangeOPβ’2y ago
Okay will do.
Thanks
Tried it but failed again
genetic-orangeOPβ’2y ago
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?
genetic-orangeOPβ’2y ago
Download from github then open Balena and select
@miklschmidt 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)
genetic-orangeOPβ’2y ago
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 π
genetic-orangeOPβ’2y ago
Yeah I had tried in the past. Didn't get anything from the pi for a hot sport or even via Ethernet.
genetic-orangeOPβ’2y ago
Also using a CM4
genetic-orangeOPβ’2y ago
Trying a different computer with built in SD card reader
@miklschmidt flash complete and successful. Switch from my PC to Laptop with a built in SD card reader.
@miklschmidt
Is there anything special needed to flash the CM4101032 Raspberry Pi 4 Compute Module CM4 1GB RAM 32GB eMMC
genetic-orangeOPβ’2y ago
genetic-orangeOPβ’2y ago
From what I saw it looks like this is the way to do it hopefully
genetic-orangeOPβ’2y ago
Success and thanks for all the help π
Yeah that doesnβt work with SD cards, you need to flash the eMMC itself
Oh nice π
@miatamike203 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
genetic-orangeOPβ’2y ago
@miklschmidt 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.
@miklschmidt that did the trick π
@miklschmidt got the firmware flashed on the octopus pro F446 board but I'm having some issues even after going through the Printer CFG.
genetic-orangeOPβ’2y ago
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
@miklschmidt that's what I thought but I have everything disconnected
And you selected the right board in printer.cfg?
genetic-orangeOPβ’2y ago
Yes
Try flashing this one
genetic-orangeOPβ’2y ago
Okay I'll try it tonight have to drop the kids off.
genetic-orangeOPβ’2y ago
genetic-orangeOPβ’2y ago
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
It looks correct
Which means the firmware didn't flash correctly
genetic-orangeOPβ’2y ago
Ah
Makes sense and what I figured. So reflash the firmware.bin file then
yep pretty much
genetic-orangeOPβ’2y ago
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 π
genetic-orangeOPβ’2y ago
@miklschmidt
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.
genetic-orangeOPβ’2y ago
You can override the driver and stepper pins in the bottom user overrides section
genetic-orangeOPβ’2y ago
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 ?
genetic-orangeOPβ’2y ago
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 PIso what's the output of this?
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
One sec I'll look I didn't see it before
genetic-orangeOPβ’2y ago
genetic-orangeOPβ’2y ago
Ah I see it
Well I see two π
are you plugged into ethernet and connected to wifi?
since they are eth0 and wlan0
genetic-orangeOPβ’2y ago
yes for some reason doesnt work without the ethernet
what is the login info?
that doesn't make sense, but ok.
username: pi
password: raspberry
unless you changed it
genetic-orangeOPβ’2y ago
okay im in
run dmesg -w
then plug in your usb that connects to octopus
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
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?
genetic-orangeOPβ’2y ago
genetic-orangeOPβ’2y ago
what's that other usb that is plugged in?
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
purple line to octopus looks unplugged. what does red line go to?
genetic-orangeOPβ’2y ago
It's just looped behind the bar
genetic-orangeOPβ’2y ago
genetic-orangeOPβ’2y ago
Didn't want to put a tight bend on the cable
try plugging something else into the usb port on the pi while running dmesg -w
genetic-orangeOPβ’2y ago
Okay how about a flash drive?
if nothing still shows up in output something is up with your pi ports
idk, try it
genetic-orangeOPβ’2y ago
yup DOA
plugged in and nothing popped up
just to be sure I would try some other usb items, but it is looking that way
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
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.
genetic-orangeOPβ’2y ago
Ohh do you know what jumper it is?
genetic-orangeOPβ’2y ago
Mini Base Board (A) Designed For Raspberry Pi Compute Module 4 | CM...
Mini Base Board (A) Designed For Raspberry Pi Compute Module 4 | CM4-IO-BASE-A
genetic-orangeOPβ’2y ago
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 @miatamike203 are you running 1.2.4?
1.2.4 doesn't support CM4, v2.0.0 does
genetic-orangeOPβ’2y ago
1.2.4?
Rato
Ratos?
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
genetic-orangeOPβ’2y ago
I didn't see a different version
That's because 2.0.0 is in beta currently
genetic-orangeOPβ’2y ago
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: https://discord.com/channels/582187371529764864/1076758202881945680/1077215565871063110
Or go for 2.0
You don't have to buy a pi 4 π
genetic-orangeOPβ’2y ago
I could only connect to it with the Ethernet
genetic-orangeOPβ’2y ago
Too late π
haha fair enough
genetic-orangeOPβ’2y ago
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.
genetic-orangeOPβ’2y ago
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?
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
How I got it
genetic-orangeOPβ’2y ago
eg:
Then just look up the pins you need in the pinout for your board
quite an improvement lol
genetic-orangeOPβ’2y ago
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.
genetic-orangeOPβ’2y ago
Yes it was a wreck before
yep!
genetic-orangeOPβ’2y ago
That and better routing
genetic-orangeOPβ’2y ago
ahhh
genetic-orangeOPβ’2y ago
okay so i think my router is blocking the pi
i can see the new pi4 if i use ethernet
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?
genetic-orangeOPβ’2y ago
correct
I followed the Wifi setup and saved the pass code for the wifi
does your router list it as connected?
genetic-orangeOPβ’2y ago
Haven't gotten that far but i did notice it still shows the Ratos hotspot
then it isn't connected to the wifi
genetic-orangeOPβ’2y ago
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?
genetic-orangeOPβ’2y ago
no just numbers
did you connect to the hotspot first?
genetic-orangeOPβ’2y ago
yes
Its WPA2
so after connecting to ratos hotspot you navigate to 192.168.50.1?
genetic-orangeOPβ’2y ago
yes
i tried this as well http://RatOS.local/
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?
genetic-orangeOPβ’2y ago
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:~ $
also should I do the updates?
genetic-orangeOPβ’2y ago
genetic-orangeOPβ’2y ago
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.
genetic-orangeOPβ’2y ago
Okay check it out in a bit
@miklschmidt 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:~ $
i was able to run the updates using the ethernet
everything but wifi seems to work
Hmm.. How did you flash the sd card? Did you use the Raspberry Pi imager? Because that might break the wpa_supplicant functionality.
genetic-orangeOPβ’2y ago
I used balena
Followed the guide online
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.
genetic-orangeOPβ’2y ago
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:
then change the
section to match your wifi settings.
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
awesome as I'm getting errors with the overrides
genetic-orangeOPβ’2y ago
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
Thanks Ill make the changes.
i # out the extruder run current as i plan to use that for when i switch to the APUS
genetic-orangeOPβ’2y ago
Okay i updated everything and now i get pin fan_controller_board_pin is an alias for PD12
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
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
GitHub
myKlipperFiles/vcore3-printer.cfg at main Β· jscancella/myKlipperFiles
Contribute to jscancella/myKlipperFiles development by creating an account on GitHub.
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
okay
Just copy it to a new file like I outlined earlier
genetic-orangeOPβ’2y ago
Okay
genetic-orangeOPβ’2y ago
Yeah, now just redefine the pins to the aliases so they are correct. Then ratos should just work
genetic-orangeOPβ’2y ago
You have one too many config in the path
genetic-orangeOPβ’2y ago
π€¦ββοΈ
[include config466dualPF.cfg]
genetic-orangeOPβ’2y ago
Ah hA
Sorry, I should have spotted that earlier
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
genetic-orangeOPβ’2y ago
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.
genetic-orangeOPβ’2y ago
This is the config file for my Octopus pro 446
genetic-orangeOPβ’2y ago
This is my cfg
Check that you don't have the DIAG jumpers inserted
genetic-orangeOPβ’2y ago
I take it this is what you are talking about.
genetic-orangeOPβ’2y ago
genetic-orangeOPβ’2y ago
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)
genetic-orangeOPβ’2y ago
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
genetic-orangeOPβ’2y ago
then it's miswired in the other end as well
yep this is inverted too
So white is actually 5v, and red is signal
genetic-orangeOPβ’2y ago
This is the one that actually works
So follow this one?
I also had this issue with the wiring that was on the machine
genetic-orangeOPβ’2y ago
genetic-orangeOPβ’2y ago
genetic-orangeOPβ’2y ago
genetic-orangeOPβ’2y ago
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 π
genetic-orangeOPβ’2y ago
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 π
genetic-orangeOPβ’2y ago
Yup