Notifications
Clear all

I can't compile MK4 firmware  

Page 2 / 2
  RSS
Smutje
(@smutje)
Estimable Member
RE: I can't compile MK4 firmware

I started another try after months and I ran into the issues, that actually nothing happened after "switching to virtual enviroment". I tested it on my business notebook, so probably some safety feature in the background blocks something. Or am I supposed to wait or type anything?

 

 

 

Posted : 27/03/2025 6:42 pm
Juan Puchol
(@juan-puchol)
Eminent Member
Topic starter answered:
RE: I can't compile MK4 firmware

Hello,

mk4s does not exist as compile option, must be mk4.

 

Posted : 27/03/2025 7:23 pm
Juan Puchol
(@juan-puchol)
Eminent Member
Topic starter answered:
RE: I can't compile MK4 firmware

Posted : 27/03/2025 7:25 pm
Smutje
(@smutje)
Estimable Member
RE:

Thank you, but the problem was related to my business laptop.

Nevertheless, I also have issues on my private Mac. I am running from one python issue to another.
When I solved one, I get another error. I never worked with python at all, that makes is a bit difficult to understand the issues.

I downloaded the 6.2.3 source and get this error:

prusa python3 utils/build.py
Switching to Buddy's virtual environment.
You can disable this by setting the BUDDY_NO_VIRTUALENV=1 env. variable.
Downloading gcc-arm-none-eabi-13.2.1 done
Extracting arm-gnu-toolchain-13.2.rel1-darwin-x86_64-arm-none-eabi.tar.xzg Traceback (most recent call last):
  File "/Users/Sebastian/prusa/utils/build.py", line 828, in 
    main()
  File "/Users/Sebastian/prusa/utils/build.py", line 789, in main
    bootstrap.bootstrap()
  File "/Users/Sebastian/prusa/utils/bootstrap.py", line 329, in bootstrap
    install_dependency(dependency)
  File "/Users/Sebastian/prusa/utils/bootstrap.py", line 236, in install_dependency
    download_and_unzip(url=url, directory=installation_directory)
  File "/Users/Sebastian/prusa/utils/bootstrap.py", line 177, in download_and_unzip
    with zipfile.ZipFile(filename, 'r') as obj:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/zipfile.py", line 1302, in __init__
    self._RealGetContents()
  File "/opt/homebrew/Cellar/[email protected]/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/zipfile.py", line 1369, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
➜  prusa 
This post was modified 1 month ago 3 times by Smutje
Posted : 28/03/2025 1:12 am
miroslav.h4
(@miroslav-h4)
Honorable Member
RE:

 

Posted by: @miroslav-h4

When we talk about building and compiling FW for MK4. I only tried to translate the FW downloaded from Github without any modifications. The build failed. I used the command to build:  python

utils/build.py --preset MK4 2> errors.txt 1> out.txt. How it turned out is captured in the attached file. There are two files in the zip: Out.txt is stdout from the command, and the errors.txt file captures the error output of the command. Can someone more professionally knowledgeable take a look at it and tell me where I'm making a mistake?

So I finally managed to break the curse that prevented me from successfully porting the Buddy firmware to W11. If there is interest, I will post here the procedure that (maybe 😀 😀 ) worked for me.

This post was modified 1 month ago by miroslav.h4
Posted : 31/03/2025 8:04 pm
Page 2 / 2
Share: