Giter Club home page Giter Club logo

Comments (11)

Wolfvak avatar Wolfvak commented on August 16, 2024 1

well that rules out cache inconsistencies.

I'll keep investigating, if you find other ways to workaround the bug, post them here, it might be a clue about what's going wrong

from linux.

Wolfvak avatar Wolfvak commented on August 16, 2024

tagging @iAmInActions because he's worked on this issue with us recently.

apparently buildroot needs a specific patch to enable multilib - exactly why I'm not sure yet, but it seems to fix this issue when executing programs off the SD card.

can you confirm this didn't happen with the old virtio-based driver? there might be some caching issue, but none of the other SD drivers have provisions for invalidation or SMP management, so idk

from linux.

spike11302000 avatar spike11302000 commented on August 16, 2024

ya the old virtio based driver had no issues. i dont think its a multilib issue either as i didnt need to enable it to fix the issues. it does sound like a caching issue because after reading the executable with sha256sum or something else and try to execute it will run just fine. it seems to only cause issues on the first execution of the file.

from linux.

Wolfvak avatar Wolfvak commented on August 16, 2024

thinking about it again it might be the driver behaving incoherently within the instruction cache.

could you try building a version with disabled icache (check "System Type -> Disable I-Cache (I-bit)") and see if you can still trigger the bug? seems like a surefire way to determine this.

from linux.

spike11302000 avatar spike11302000 commented on August 16, 2024

issue still persists after enabling "Disable I-Cache (I-bit)"

from linux.

Wolfvak avatar Wolfvak commented on August 16, 2024

@spike11302000 I just pushed a new driver in the branch that uses DMA, can you test again?

from linux.

spike11302000 avatar spike11302000 commented on August 16, 2024

it seems to work but im unable to write it just reports as a read only filesystem

from linux.

spike11302000 avatar spike11302000 commented on August 16, 2024

hmmm
theres something weird going on

first i had to lock on the micro sd adapter but when i switch it to unlock the system will hang when mount and the last message i see is

3ds-sdhc 10100000.sdhc-controller: buffer error: 80000000

i have tried different microsd adapters but same thing. i dont have time to test other sd cards at the moment but i will try to do that tomorrow

from linux.

shokifrend007 avatar shokifrend007 commented on August 16, 2024

I have a regular sd card and I can try it in a few hours

from linux.

Wolfvak avatar Wolfvak commented on August 16, 2024

Yeah buffer error 0x80000000 basically means there's another transfer going on (ILA bit)... It's probably a bug regarding writes and the DMA engine system, I might be signaling end-of-request while it's still active and causing this bug. I'll just clean up that logic so that end of writes are signaled by DATAEND and end of reads are signaled by the DMA transfer finishing.

from linux.

Wolfvak avatar Wolfvak commented on August 16, 2024

Sorry for the slight delay but I just pushed a fix that should fix this: 1053381

Can anyone try it? Works for me

from linux.

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.