Giter VIP home page Giter VIP logo

Comments (12)

DarkMatterCore avatar DarkMatterCore commented on June 2, 2024 1

@ginkuji Hi there, mate. Nice to meet you, and thanks for opening this issue.

This sounds like a BOT driver failure. I'll need you to provide a logfile so I can further analyze the issue and fix it. Please run the attached application, connect your USB HDD for ~20 seconds, disconnect it and exit by pressing the + button.

libusbhsfs-example.zip

The logfile will be saved to sdmc:/libusbhsfs.log. Please attach it here.

from libusbhsfs.

ginkuji avatar ginkuji commented on June 2, 2024 1

Here are the log files. I tried twice to make sure. It hanged even though I present the + button so I pressed home. Thank you very much for considering my concern.
https://filebin.net/l2vb65fu0jtgq6h0

from libusbhsfs.

DarkMatterCore avatar DarkMatterCore commented on June 2, 2024 1

@ginkuji Please test the attached build. Let me know how it goes.

libusbhsfs-example.zip

The real issue here is that LUN #1 from your USB HDD actually represents an Enclosure Services (SES) device, not a block device.

from libusbhsfs.

DarkMatterCore avatar DarkMatterCore commented on June 2, 2024 1

@ginkuji It's all looking good now. It didn't get stuck this time around, though - FatFs just started reading free cluster info to determine the free space in the FAT volume.

This is usually a fast operation (<= 10 seconds), but since you're currently using a debug build of the library that logs every single read/written logical block, your time expectation is exceeded.

I'll create a normal build and send it to you so you can compare. The problem should be fixed now.

from libusbhsfs.

ginkuji avatar ginkuji commented on June 2, 2024 1

Thank you! I will wait for the latest build. Glad I was able to contribute by reporting a bug.

from libusbhsfs.

DarkMatterCore avatar DarkMatterCore commented on June 2, 2024 1

@ginkuji And I'm glad you reported it. :)

Here's the normal build. It should be much faster.

libusbhsfs-example.zip

from libusbhsfs.

ginkuji avatar ginkuji commented on June 2, 2024 1

Thank you. It now works.
I also noticed that the file copy sdmc -> ums0 failed (5)
Other than that + now works.

from libusbhsfs.

DarkMatterCore avatar DarkMatterCore commented on June 2, 2024

@ginkuji Thanks, that helps a lot.

This is indeed an issue with the BOT driver. Your USB HDD reports two logical units - the first one is properly initialized, and its FAT volume is properly mounted, but the second one fails to be initialized.

Even though a possible STALL status is cleared from both endpoints when this occurs, it seems it's not enough. That's why the application hangs as soon as the library attempts to send the next command to your USB HDD.

I'll look into it.

from libusbhsfs.

ginkuji avatar ginkuji commented on June 2, 2024

Here is the latest log. The hardrive is now blinking indicating that it is reading. The exit button however is not working. I pressed home again after 20 seconds.
https://filebin.net/3jjsrtmzz88zxwdu

from libusbhsfs.

DarkMatterCore avatar DarkMatterCore commented on June 2, 2024

@ginkuji Excellent. Thanks a lot for helping test the changes. :)

from libusbhsfs.

DarkMatterCore avatar DarkMatterCore commented on June 2, 2024

That error at the end is expected behaviour - it tries to perform a r/w benchmark by copying a test.file file from the SD card to the USB drive.

from libusbhsfs.

DarkMatterCore avatar DarkMatterCore commented on June 2, 2024

Fixed in 404545e.

This will be part of the next public release.

from libusbhsfs.

Related Issues (16)

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.