1. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,240
    Country:
    Venezuela
    The Wii being able to pull this off like it's nothing it's exactly what motivated me to do this. I still have mine and I love it - the sentimental value it has to me can't be measured.
     
    I pwned U!, peteruk, ploggy and 2 others like this.
  2. kickmeh

    kickmeh Advanced Member
    Newcomer

    Joined:
    Jun 16, 2020
    Messages:
    53
    Country:
    Switzerland
    well done, finally UMS come in

    just try an example build, seems need to declare of usbHsFsInitialize()

    [​IMG]
     
    Last edited by kickmeh, Nov 24, 2020
  3. cucholix

    cucholix Banners guy
    Member

    Joined:
    Jan 17, 2017
    Messages:
    2,571
    Country:
    Chile
    This will off-load some files from my SD :) Great
     
    ploggy likes this.
  4. ploggy

    ploggy WAKA! WAKA!
    Member

    Joined:
    Aug 29, 2007
    Messages:
    3,694
    Country:
    United Kingdom
    My SD card thanks you sincerely.. poor little guy. :)
     
    peteruk and cucholix like this.
  5. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,240
    Country:
    Venezuela
    It actually means usbHsFsInitialize() ran, but couldn't finish all of its startup steps. 0x19C8C seems to be a USB error code.

    Are you running any background sysmodules with USB access?

    You can alternatively edit the Makefile from the example test app to link it against the debug version of the library (e.g. -lusbhsfsd instead of -lusbhsfs). That will generate a logfile in your SD card root directory with information about the function call that triggered the error code.
     
  6. kickmeh

    kickmeh Advanced Member
    Newcomer

    Joined:
    Jun 16, 2020
    Messages:
    53
    Country:
    Switzerland
    yeah i use ams_mitm.kip from xortroll over my hekate_ipl, so i think it ran background, ok i will edit my atmosphere configuration, also Makefile for logfile, thanks for advice and quick reply
     
    Last edited by kickmeh, Nov 24, 2020
    DarkMatterCore likes this.
  7. ber71

    ber71 GBAtemp Regular
    Member

    Joined:
    Apr 24, 2019
    Messages:
    103
    Country:
    Spain
    Does this support GPT partitions? Or only MBR
     
  8. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,240
    Country:
    Venezuela
    Currently both. FatFs implements partition table parsing on its own, and supports both MBR and GPT.

    We'll be working on adding support for more filesystems soon. If their libraries don't provide partition table parsing capabilities on their own, it will be added to libusbhsfs.
     
    Last edited by DarkMatterCore, Nov 24, 2020
    I pwned U! and ber71 like this.
  9. kickmeh

    kickmeh Advanced Member
    Newcomer

    Joined:
    Jun 16, 2020
    Messages:
    53
    Country:
    Switzerland
    ok seems listed everything on my card reader, also i do several test, i open on hbmenu i use full ram access mode
    with usb 2.0 flashdrive on third time i launch .nro it wont listed anymore (no matter is exfat,fat32,ntfs,etc), idk maybe alot sysmodule i ran on my background procces
    with usb 3.0 flashdrive is listed everytime (exfat)
    with usb 3.0 external hdd is listed everytime (ntfs)
    with usb 3.0 card read is listed everytime (fat32)
    xxxxx.jpg

    after this just adapted on file manager homebrew application (eg; nx-shell) then use borealis ui it will be great
    thanks for ur work
     
    DarkMatterCore likes this.
  10. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,240
    Country:
    Venezuela
    Check the logfile, maybe there's something wrong going on with the USB 2.0 flash drive you're using. If it's related to the BOT driver, I can fix it.
     
    peteruk likes this.
  11. duckbill007

    duckbill007 GBAtemp Regular
    Member

    Joined:
    May 5, 2011
    Messages:
    256
    Country:
    Russia
    If run example with inserted usb drive it hangs until I unplug and reinsert usb drive.
     
    Skonikol and DarkMatterCore like this.
  12. blawar

    blawar Developer
    Developer

    Joined:
    Nov 21, 2016
    Messages:
    1,664
    Country:
    United States
    Tinfoil has its own usb hard drive implementation that was released about a month ago (it does not use this library).

    — Posts automatically merged - Please don't double post! —

    I benchmarked Tinfoil's implementation earlier this year using a fast SSD, and achieved speeds between 30-35MB depending on file system and cluster size. 35MB was not stable, and used exfat with obscenely high cluster size of 16MB IIRC.
     
    Dark Ronin and DarkMatterCore like this.
  13. Ghost92

    Ghost92 GBAtemp Advanced Fan
    Member

    Joined:
    Jun 29, 2017
    Messages:
    937
    Country:
    Colombia
    let me guess. ams_mitm.kip from Xolltrol?

    upload_2020-11-24_12-37-20.png
    And please don't come ruin this thread.
     
    mathew77 likes this.
  14. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,240
    Country:
    Venezuela
    @Ghost92 Please stop. I just don't want the thread to be derailed.

    Each developer is free to implement stuff like this in whichever way they want. This is just another option.

    If they can do it better than us, then so be it. This is not a competition.
     
    Dark Ronin, I pwned U!, Henx and 7 others like this.
  15. Ghost92

    Ghost92 GBAtemp Advanced Fan
    Member

    Joined:
    Jun 29, 2017
    Messages:
    937
    Country:
    Colombia
    How likely is the partition to get corrupted with the first versions? I say this because early versions of the most popular Wii browser used to corrupt partitions and freeze.

    How much does the symbols or special letters affect folders and files?
     
  16. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,240
    Country:
    Venezuela
    Not very likely, as long as the developer using this library makes sure to close all open file/dir handles, and the user removes the USB Mass Storage device at a point where no I/O operations are being done (plug 'n play is supported). All FatFs writes are flushed directly to the USB Mass Storage devices.

    UTF-8 path encoding is used for both input and output operations. It doesn't suffer from the same limitations as the fsp-srv service.
     
    I pwned U!, ber71 and Ghost92 like this.
  17. Ghost92

    Ghost92 GBAtemp Advanced Fan
    Member

    Joined:
    Jun 29, 2017
    Messages:
    937
    Country:
    Colombia
    Good. I hope to see browsers like Apollo and players like TriPlayer. Although the latter uses Sys-Module to keep the playback in the background and even resume it upon waking from deep sleep and I don't know how well libusbhsfs would get along in sys-module implementations.
     
  18. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,240
    Country:
    Venezuela
    Yeah, I don't think it would get along very well. It's definitely not suitable for anything running in the background. A dedicated buffer per drive helps achieve better speeds and simplifies concurrency (e.g. reading data from more than one drive at the same time).

    Doesn't mean a fork of this library can't be created to cater such needs. It should be possible.
     
    Last edited by DarkMatterCore, Nov 24, 2020
  19. blawar

    blawar Developer
    Developer

    Joined:
    Nov 21, 2016
    Messages:
    1,664
    Country:
    United States
    That ams_mitm.kip is no longer used, and it contains no USBHDD code. Many people will likely remember it as the kip that disabled BIS write protections in AMS for incognito. You can verify this by trying to install the kip--atmosphere will not boot as it was compiled from an old version of AMS.

    Tinfoil's USBHDD driver is not a kip or service, but is a homebrew library similar to libusbhsfs and was written over a year ago but never released. And there were many people who helped me debug my implementation over the past year.

    @DarkMatterCore You are right, FatFs is lacking when it comes GPR/MBR management. I ended up writing my own GPT/MBR parser and handling that manually to support multiple partitions per volume. Which other file systems are you looking to support? NTFS is the only other fs that is common on external hard drives, and ntfs-3g is a monolithic mess.
     
    DarkMatterCore likes this.
  20. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,240
    Country:
    Venezuela
    Yeah. It's the same reason why more than one FAT volume isn't being mounted right now - the way it handles multiple partitions expects you to know how many partitions there are for each available drive beforehand.

    EXT support is also in my plans.
     
    ber71 likes this.
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - libusbhsfs, Filesystem, Storage