Jump to content
  • 0

How do I fix this?


TitusADuxass

Question

@Dirk I've started a new thread.

It's a v0.1/2 Manta M5P and EBB36 setup.

It was working but now I get the mcu is unable to connect.

The last klipper log entry is:

=======================
Extruder max_extrude_ratio=0.266081
mcu 'mcu': Starting CAN connect
Created a socket
mcu 'mcu': Unable to open CAN port: [Errno 19] No such device
webhooks client 281473280765616: New connection
webhooks client 281473280765616: Client info {'program': 'Moonraker', 'version': 'v0.8.0-331-gc857e1a'}

The hosts window gives me:

Host(aarch64, 64bit)

OS: BTT-CB1 2.3.4 Bullseye
Load: 0, Mem: 986.9 MB, Temp: 45°C
wlan0 (192.168.2.230) : Bandwidth: 2.4 kB/s , Received: 6.5 MB , Transmitted: 1.1 MB

 

That looks like the CB1 is working

The machine interface tells me that Klipper is dirty, KlipperScreen is dirty and Moonraker is corrupt.

I've tried repairing the 3 above but have met with no success.

I suspect that I will have to a complete reinstall of the board firmware, katapult and klipper. I am fairly sure that the EBB36 is okay, but I'll worry about that when I get the board sorted.

Link to comment
Share on other sites

Recommended Posts

  • 0

Upload your klippy.log and run this command: wget -qO - debug.esoterical.online | sh

 

Give me the link it returns so we can take a look.

If you see the option to hard repair moonraker, click on that to give that a go.

Edited by Dirk
Link to comment
Share on other sites

  • 0

Thanks @TitusADuxass 

Your CAN network is set up in a strange way.

The problem with moonraker is that it can not connect.

So I am going to recommend you to do a backup of your printer_data directory on your pi / cb1.

If you do not have kiuah, install it on your cb1. 

Then you will have to follow esotericals canbus setup guide. You need it, because some things are missing.

Trust me, it is not that hard.

I think after you reinstall klipper / moonraker with KIUAH, you will have a functioning system again. If that is the case, I am going to still advise you to go through esotericals guide. Once you have done that, you can get my script and run it.

But let me know how things go in between. If you need more instant help, consider contacting me here.

 

 

  • Like 1
Link to comment
Share on other sites

  • 0

First problem

I installed Kiuah and tried to update everything because it's nearly all out of date.

###### Installing packages...
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-arm64_Packages
E: The package lists or status file could not be parsed or opened.
>>>>>> Installing Klipper packages failed!
 

Link to comment
Share on other sites

  • 0
3 minutes ago, Dirk said:

if that doesn't work, I am afraid you will even have to start with a new CB1 image. Don't you have another RPi? Even a RPi zero will work on your V0

No I don't have another RPi, this board uses the CB1 - Pi free.

I'll start from scratch with a new CB1 image and I'll use my own guide.

Link to comment
Share on other sites

  • 0

no it's not. You can see that indeed in the log, but also in the esoterical canbus log. It is also set up in a weird way.

his pi image is corrupted. With moonraker dysfunctioning.

So he went away to set it up with his own guide. and never returned.

 

  • Like 1
Link to comment
Share on other sites

  • 0
8 hours ago, Dirk said:

So he went away to set it up with his own guide. and never returned.

I'm back!

You can't get rid of me that easily.

I got distracted with my day job. I do HomeOffice 2-3 days a week and that means my work laptop is on my multiscreen set up so the v0.1 will have to wait.

  • Like 2
Link to comment
Share on other sites

  • 0

So I thought I'd give the esoteric canbus setup a try.

A fresh card and CB1 image was used.

I consistently get the same failure/problem.

At the beginning flash katapult wtih this:

 

cd ~/katapult

make

sudo dfu-util -R -a 0 -s 0x08000000:leave -D ~/katapult/out/katapult.bin -d 0483:df11

and ls /dev/serail/by-id should return with a line that starts with usb-katapult - mine always returns usb-klipper

 

 

Link to comment
Share on other sites

  • 0

Hey @TitusADuxass, good you had some time again.

I can help you if I can follow you step by step. I have no idea why you want to start flashing something with katapult. I think you should try to follow a more structured approach. 

 

In the Esoterical guide, step 1 is to set up a CAN BUS on Linux (on your RPi / Cb1 in your case). 

Did you set up your canbus like it is said here: https://canbus.esoterical.online/Getting_Started.html

Because your can bus was not set up correctly.

 

If you have set up your canbus, then the next step -step 2- is to set up a CAN Adapter (like U2C or a USB Can bridge). 

 

Once you have done that, you will have to connect your can toolhead to the network and you will be done - step 3

 

So please let me know what you did and what you try to do and where you are at. 

Link to comment
Share on other sites

  • 0

did you look here? https://canbus.esoterical.online/troubleshooting/no_can0.html

 

The first step of that guide, simply sets up a network, named CAN0.

so it is strange that you can not set it up. I know the CB1 is a bit strange, but it is able to run mainsailOS. And I have seen many other people run CAN on it. 

 

Please run this command again: wget -qO - debug.esoterical.online | sh

And I will look at the result.

 

Link to comment
Share on other sites

  • 0

@Dirk

Sorry for the late response - life got in the way.

I ran the wget and here is the link - https://termbin.com/u1wf

The problem is can0 is missing.

I think the problem is this - 

biqu@Voron01:~/klipper$ ls /dev/serial/by-id/
usb-Klipper_stm32f042x6_10001D000743564E32313720-if00 - the id says that its a stm32f042, it should be a stm32g0b1

I have yet to find a solution.

Link to comment
Share on other sites

  • 0

Hey @TitusADuxass. Life has that habit 🙂 Priorities!

Now, I looked at your system setup. As you also say and we have found: your CAN network is not up. For being it up / functional, all its need, is two text files on the sd card of your system.

I asked you to do that and you say it is repeatedly not possible. Well... if you can not write on the sd card of the CB1, then you can not set up your system.

You can not do anything with your printer. So I am surprised.

You are so worried about flashing your M8P and your EBB36. You can not even start to do that, before you have a can network set up.

You do not even have to have anything linked to your printer. Take out the cb1, connect to a 5v source (I use a 5v phone charger with usbc port) and it should connect to your wifi network where you can ssh in.

All you need is 3 text files. In Esotericals guide you see what is supposed to be in them. And here are the commands to create/open them.

sudo nano /etc/network/interfaces.d/can0
sudo nano /etc/systemd/network/10-can.link
sudo nano /etc/systemd/network/25-can.network
 

Without these files, you can do anything you want, but it will not have much effect...

By the way, you have your Manta connected over USB, and it is not set up as a bridge device yet. that is why it is showing up as a usb device. You have the EBB36 already in DFU mode.... 

 

Bus 002 Device 004: ID 1d50:614e OpenMoko, Inc. stm32f042x6
Bus 002 Device 003: ID 0483:df11 STMicroelectronics STM Device in DFU Mode

but.. euh... try to create those can files in your linux system first. then we can go further.

if you can not, try using another sd card.

 

 

Link to comment
Share on other sites

  • 0
14 minutes ago, Dirk said:

sudo nano /etc/network/interfaces.d/can0
sudo nano /etc/systemd/network/10-can.link
sudo nano /etc/systemd/network/25-can.network

I have those files in the system already. I have previously set up an M8P, an M4P and this M5P. The 10-can and the 25-can were not necessary and the can0 is written like this:

allow-hotplug can0
   iface can0 can static
   bitrate 1000000
   up ifconfig $IFACE txqueuelen 1024

I suppose things could have been updated that now requires these changes.

14 minutes ago, Dirk said:

By the way, you have your Manta connected over USB, and it is not set up as a bridge device yet. that is why it is showing up as a usb device. You have the EBB36 already in DFU mode.... 

That's not the EBB36, that is the M5P. I have disconnected the EBB36 because that's not the problem. I do not have the Manta connect via USB, the connect is via wifi.

 

14 minutes ago, Dirk said:

You are so worried about flashing your M8P and your EBB36. You can not even start to do that, before you have a can network set up.

No, I am trying to set up the M5P, the EBB36 is okay and I do not have any worries.

 

14 minutes ago, Dirk said:

You do not even have to have anything linked to your printer. Take out the cb1, connect to a 5v source (I use a 5v phone charger with usbc port) and it should connect to your wifi network where you can ssh in.

I can SSH in to the CB1 so this is not necessary.

 

14 minutes ago, Dirk said:

if you can not, try using another sd card.

It is a brand new card.

 

I still think the problem is down to the incorrect type of STM in the by-id, it should be a STM g0b1

In the make menuconfigs (katapult & klipper) it is ticked for g0b1

Edited by TitusADuxass
Link to comment
Share on other sites

  • 0

Just read the thread and did a bit of searching. May be worth while looking at this thread - seems you are not alone in this. I don't have a Mant 5P, so cannot trouble shoot or give any other advise. Sorry, but maybe this will shed some light on your problems.

Also came across this You tube video.

It may be wise to exclude the EBB36 for the time being, flash canboot and klipper to the Manta and CB1, get that up and running, then add the canbus functionality and install the EBB36. I may be way of tract, but that makes sense to me. Following guides is all good and well, if everything goes to plan. But as humans, we err - not intentionally and this creates havoc in our lives. . When all else fails - start a fresh.

  • Like 1
Link to comment
Share on other sites

  • 0
2 hours ago, TitusADuxass said:

down to the incorrect type of STM in the by-id, it should be a STM g0b1

Have you tried the command 

make clean

before and after

make menuconfig

 

Link to comment
Share on other sites

  • 0

I see there is an update for the CB1 firmware - may be worth wile looking at this as well.

image.thumb.png.f40f35cca5edcd1b2e7a18938d5bd8b2.png

Seems your Manta/CB1 has lost the canbus interface for some reason. Not seeing the Manta may well be the cause of all your hassles.

Link to comment
Share on other sites

  • 0
1 hour ago, mvdveer said:

Just read the thread and did a bit of searching. May be worth while looking at this thread - seems you are not alone in this. I don't have a Mant 5P, so cannot trouble shoot or give any other advise. Sorry, but maybe this will shed some light on your problems.

That thread nearly describes my standard approach to flashing.

  • Like 1
Link to comment
Share on other sites

  • 0
16 minutes ago, mvdveer said:

I see there is an update for the CB1 firmware - may be worth wile looking at this as well.

image.thumb.png.f40f35cca5edcd1b2e7a18938d5bd8b2.png

Seems your Manta/CB1 has lost the canbus interface for some reason. Not seeing the Manta may well be the cause of all your hassles.

That's the image that I am using, it's the only thing that has changed - hmmm, maybe time to try using the original image.

  • Like 1
Link to comment
Share on other sites

  • 0

Not necessary is what your problem is I think.

"Baadt het niet, schaadt het niet" we say.

If you have the files I mentioned they are empty or not functional. 

You can try flashing all boards, but it's not going to work as long as your can network is not set up.

I would blindly follow the guide.

And as I said before... If it's not functioning, then your cb1 SSD card is dysfunctional.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...