GithubHelp home page GithubHelp logo

Comments (3)

ccrisan avatar ccrisan commented on July 17, 2024 1

Fixed via 2059321. Thanks for investigating and reporting this one!

from thingos.

ccrisan avatar ccrisan commented on July 17, 2024

I remember seeing this issue myself a few times. So if I understood correctly, this is a kernel bug that has been fixed in 5.19, but with no perspectives for backports, right?

If that's indeed the case, what do we do about it in thingOS? Waiting for kernel 5.19+ on all supported boards is probably not a solution, is it?

from thingos.

sonicpp avatar sonicpp commented on July 17, 2024

Well maybe it is not a bug, just an "unwanted behavior". I am not 100 % sure about this, but it sounds to me that kernel sometimes returned EAGAIN for some loop operations. Kernel 5.19 changed/improved loop driver so it should (always?) succeeded in this situation. It looks like for example for 5.15.y stable branch these patched were skipped.

For userspace, busybox implementation always fails when driver returns EAGAIN (it uses two separate system calls, LOOP_SET_FD and LOOP_SET_STATUS64). Util-linux uses more modern system call (LOOP_CONFIGURE) instead of these two, if it detects newer kernel. But even for those older system calls util-linux should work since version v2.37.1- when kernel returns EAGAIN, userspace should try again.

So for now there are IMO two options:

  • upgrade to newer kernel (backports are unlikely).
  • switch to util-linux implementation of losetup

Losetup never worked for me on Pinecube with kernel < 5.19 AND busybox. Updating kernel to 5.19 OR switching to util-linux implementation always worked. I have not tested the fix on rpi 0w yet tho, since it is more random than on pinecube. But I can give it a try.

from thingos.

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.