1. blawar

    blawar Developer
    Developer

    Joined:
    Nov 21, 2016
    Messages:
    1,667
    Country:
    United States
    Tinfoil and Lithium do not use this library, they use my own UMS implementation which I have to update to support NTFS. I will get to it eventually, but it is not a priority atm.

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

    Don't thank me, all I did was recompile. Any idiot can do that. This is DMC's work.
     
    Last edited by blawar, Dec 18, 2020
  2. NickyRay

    NickyRay Newbie
    Newcomer

    Joined:
    Dec 11, 2020
    Messages:
    8
    Country:
    India
    Huge thanks to DMC for this work. Keep up the good work
     
    DarkMatterCore likes this.
  3. minomore

    minomore Advanced Member
    Newcomer

    Joined:
    Dec 25, 2015
    Messages:
    97
    Country:
    thanks to all who worked on this amazing development, any chance of getting this on the key switch apps.... ie retroarch, pplay etc??
     
  4. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,238
    Country:
    Venezuela
    Next to no chance for RetroArch. Probably doable for pplay.
     
    Ghost92 likes this.
  5. lordelan

    lordelan GBAtemp Psycho!
    Member

    Joined:
    Jan 4, 2015
    Messages:
    4,838
    Country:
    Germany
    Why? RetroArch for Wii U can load content from USB as well.

    Edit: Amazing work btw. Just discovered this thread yet.
     
    peteruk likes this.
  6. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,238
    Country:
    Venezuela
    m4xw is against adding UMS device support because it may further encourage piracy in RetroArch.
     
  7. UnT7oh

    UnT7oh Advanced Member
    Newcomer

    Joined:
    Mar 18, 2017
    Messages:
    59
    Country:
    United States
    pPlay would be great but the developer seems completely inactive on Switch projects.

    Uh what? First of all that makes no sense at all, secondly USB support gives a huge boost in flexibilty, sharing your setup between different devices and so on.
     
  8. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,238
    Country:
    Venezuela
    Nonetheless, that's his personal view on this matter, which I decided to respect. In the end, he's totally free to decide what to implement into RA.

    In all fairness, he did say that even though he despises a feature like this, he might accept a PR if libusbhsfs becomes a devkitPro portlib, which is totally impossible because of fincs' stance on this matter.
     
    Last edited by DarkMatterCore, Dec 18, 2020
  9. blawar

    blawar Developer
    Developer

    Joined:
    Nov 21, 2016
    Messages:
    1,667
    Country:
    United States
    pPlay requires a PHD in the dark arts and a blood sacrifice to compile. While technically it is possible, functionally I do not think anyone but the author who appears to have abandoned the project would try to compile that.

    Retroarch is begging to be forked if they won't add it:
    [​IMG]
     
  10. ShroomKing

    ShroomKing Somebody
    Member

    Joined:
    Mar 3, 2017
    Messages:
    462
    Country:
    United States
    @DarkMatterCore can you provide an aarch64 build of ntfs-3g please? i can't compile it due to some mac dependency checking problem. I have all dependencies but makepkg doesn't find them and i don't have a linux machine atm.
    ntfs-3g.png
     
  11. blawar

    blawar Developer
    Developer

    Joined:
    Nov 21, 2016
    Messages:
    1,667
    Country:
    United States
    If you want the entire libusbhsfs lib file, here it is:

    unzip and place the .a file in /opt/devkitpro/portlibs/switch/lib/ I believe. Copy the h file from his repo to /opt/devkitpro/portlibs/switch/include/

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

    Here is the ntfs package though (unzip it, gbatemp wont let me upload xz files)
     

    Attached Files:

  12. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,238
    Country:
    Venezuela
    ShroomKing likes this.
  13. ShroomKing

    ShroomKing Somebody
    Member

    Joined:
    Mar 3, 2017
    Messages:
    462
    Country:
    United States
    Thanks, libntfs-3g.a is what i was looking for.

    Yes but those only have libusbhsfs.a.
    If i understood correctly i also need to link the libntfs-3g if i want to use ntfs
     
    DarkMatterCore likes this.
  14. Ghost92

    Ghost92 GBAtemp Advanced Fan
    Member

    Joined:
    Jun 29, 2017
    Messages:
    937
    Country:
    Colombia
    I will never understand m4xw, it makes incredible port of emulators, but to say that the USB support is piracy, when the ports of the emulators are already it. Anyway, I hope someone else is encouraged to make their own port with this great addition to USB drives, which apparently works more and more wonderfully and that eventually is the solution to the bottlenecks suffered by some emulators to load ROMs from MicroSD .

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

    I think it's the only thing I can ask of you. Fork the code and create your own implementation. Sure, if you've worked with emulators before. Don't forget about PPSSPP
     
    TheGodMauro and ber71 like this.
  15. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,238
    Country:
    Venezuela
    Working on EXT2/3/4 support.
     
  16. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,238
    Country:
    Venezuela
    Code:
    2020-12-20 08:29:16 -> usbHsFsMountParseMasterBootRecordPartitionEntry: Found Linux partition entry with type 0x83 at LBA 0x800 (interface 1347682304, LUN 0).
    2020-12-20 08:29:16 -> usbHsFsScsiReadLogicalUnitBlocks: Reading 0x2 block(s) from LBA 0x802 (0x400 byte[s]) (interface 1347682304, LUN 0).
    2020-12-20 08:29:16 -> usbHsFsScsiSendRead10Command: Sending command (interface 1347682304, LUN 0).
    2020-12-20 08:29:16 -> usbHsFsScsiSendCommandBlockWrapper: Data from CBW to send (interface 1347682304, LUN 0):
    55534243630c316c0004000080000a28000000080200000200000000000000
    2020-12-20 08:29:16 -> usbHsFsScsiReceiveCommandStatusWrapper: Data from received CSW (interface 1347682304, LUN 0):
    55534253630c316c0000000000
    2020-12-20 08:29:16 -> usbHsFsMountInspectExtSuperBlock: Found EXT superblock at LBA 0x802 (interface 1347682304, LUN 0).
    2020-12-20 08:29:16 -> usbHsFsMountRegisterDevoptabDevice: Available device ID: 0 (interface 1347682304, LUN 0, FS 0).
    2020-12-20 08:29:16 -> usbHsFsMountRegisterDevoptabDevice: Failed to get pointer to devoptab interface! (interface 1347682304, LUN 0, FS 0).
    Only the EXT devoptab interface is missing now.
     
  17. TotalJustice

    TotalJustice GBAtemp Fan
    Member

    Joined:
    Jan 28, 2017
    Messages:
    374
    Country:
    United Kingdom
    nice work as always mate
     
    DarkMatterCore and peteruk like this.
  18. Ghost92

    Ghost92 GBAtemp Advanced Fan
    Member

    Joined:
    Jun 29, 2017
    Messages:
    937
    Country:
    Colombia
    Which of all the partition types has the best speed?
     
  19. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,238
    Country:
    Venezuela
    It's probably between any supported FAT filesystem and any supported EXT filesystem, but I haven't done any proper benchmarks. Both FatFs and lwext4 offer very little I/O overhead, since they were both designed with microcontrollers in mind. Furthermore, lwext4 offers a built-in block cache system that may help speed up certain operations - this feature isn't available in FatFs.

    NTFS-3G, on the other hand, is a full fledged driver designed with PC operating systems in mind, making it more complex to work with than both FatFs and lwext4. Considering the amount of data it processes from NTFS volumes, I'd say it's the supported library with the most overhead. It offers a way to define user-provided functions to handle block cache, which may help speed up write operations a bit, but I haven't looked too much into it.
     
    Last edited by DarkMatterCore, Dec 20, 2020
  20. DarkMatterCore

    OP DarkMatterCore I like turtles.
    Developer

    Joined:
    May 30, 2009
    Messages:
    1,238
    Country:
    Venezuela
Draft saved Draft deleted
Loading...

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