-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with new-pxi branch with sdcard write support #63
Comments
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 |
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. |
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. |
issue still persists after enabling "Disable I-Cache (I-bit)" |
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 |
@spike11302000 I just pushed a new driver in the branch that uses DMA, can you test again? |
it seems to work but im unable to write it just reports as a read only filesystem |
hmmm 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
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 |
I have a regular sd card and I can try it in a few hours |
Yeah |
Sorry for the slight delay but I just pushed a fix that should fix this: 1053381 Can anyone try it? Works for me |
im currently having a issue with the branch that enables read/write support for sd cards.
when ever i try executing something on the sd card it will randomly segfault or illegal instruction. but when the binary is built in the initrd it works just fine.
i checked the checksum of the files to see if the file got changed some how
i do noticed after i executed the file and try again it will sometimes executes but most of the time it causes a soft kernel panic
i have tried multiple different filesystems and formatting without change.
i switched back to the master branch of the linux and arm9linuxfw and i had no issues executing the file but didnt have write support
there is a current workaround that uses loopback devices to get around this issue
The text was updated successfully, but these errors were encountered: