Giter VIP home page Giter VIP logo

Comments (7)

theofficialgman avatar theofficialgman commented on July 21, 2024 1

@smartavionics tested it and it works well. thank you!

from pi-apps.

Botspot avatar Botspot commented on July 21, 2024

Interesting. I was under the impression that the cura build for 4k would work on 16k.
Was this incorrect, @smartavionics?

If so, I can update our script to select the right build based on the kernel version.

Potential complication:
I have actually been using the 4k kernel to get more apps to work. If somebody starts off with the 16k kernel, installs Cura, and then switches to 4k, then cura would probably fail to launch. I will need to decide if we need a system in place to detect this edge-case and warn the user.

from pi-apps.

mikepaxton avatar mikepaxton commented on July 21, 2024

I believe the default RPiOS for Pi5 is a 16k kernel so i'm not sure it's an edge case, maybe i'm wrong though.

from pi-apps.

smartavionics avatar smartavionics commented on July 21, 2024

The 16k Cura build is built on a Pi5 running the default kernel. The other 64 bit Cura build is built on a Pi4 running buster (i.e. quite an old release). I haven't tried building on a Pi5 running the 4k kernel. I guess it is possible that such a build would also run when using the 16k kernel but then it wouldn't be usable on Pi4s running earlier systems which would be very confusing.

from pi-apps.

theofficialgman avatar theofficialgman commented on July 21, 2024

The other 64 bit Cura build is built on a Pi4 running buster (i.e. quite an old release)

@smartavionics that will have issues on 16k pagesize kernels due to a bug in patchelf which was fixed in 0.12. buster has 0.9. Build it and install yourself or grab the packages from the ppa here https://launchpad.net/~theofficialgman/+archive/ubuntu/patchelf/+packages , these particular bionic packages will work fine on buster.
see musescore/MuseScore#20356 for more info.

CC @Botspot ^

from pi-apps.

theofficialgman avatar theofficialgman commented on July 21, 2024

marking as upstream bug. if @smartavionics builds on buster with patchelf 0.12+ then that build should be compatible with 4k, 16k, and 64k pagesize kernel systems

I can confirm that the cura binary has an incorrect 4K alignment load address that prevents it from running 16/64K pagesize kernels

readelf -l usr/bin/cura

Elf file type is DYN (Position-Independent Executable file)
Entry point 0x68834
There are 10 program headers, starting at offset 64
...
  LOAD           0x0000000000343000 0x0000000000375000 0x0000000000375000
                 0x000000000000a958 0x000000000000a958  RW     0x1000

from pi-apps.

smartavionics avatar smartavionics commented on July 21, 2024

I have now done as suggested and https://github.com/smartavionics/Cura/releases/download/4.20.17/Cura-4.20.17-mb-aarch64.AppImage should now be compatible with systems using either 4k or 16k pages.

from pi-apps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.