Page 1 of 1

Missing usbstorage_Deinitialize

Posted: Tue Dec 30, 2008 5:48 pm
by dontwantanick
I have a "little" usb problem:
I can't find the usb equivalent to the sd sdio_Shutdown and sdio_Deinitialize. Now if i call a fatUnmount("usb"), (re)load an IOS and then call fatInitDefault, i don't get access to the usb device. Of course, before the unmount i have access to it. To get my sd card working at this point i call sdio_Shutdown after unmount and everything is fine.

In usbstorage i found this method:
bool __usbstorage_Shutdown(void);
but i can't call it. Then i found out that it's part of the usb - DISC_INTERFACE and sdio_Shutdown is part of the sd - DISC_INTERFACE, but i can't see where the shutdown method of the interface is called.

Which method do i need to call to get usb storage working again after shutting it down?

PS: I searched in the source of the latest stable of libogc and libfat

Re: Missing usbstorage_Deinitialize

Posted: Mon Jan 05, 2009 3:26 pm
by dontwantanick
Short summary of my problem: If i execute IOS_ReloadIOS once i loose the access to my usb storage device.

Is nobody here able to help me, or is this the wrong place to post this?

Re: Missing usbstorage_Deinitialize

Posted: Mon Feb 23, 2009 9:43 pm
by dontwantanick
Even with the latest update usb storage is still not usable. Is there any special command to shutdown usb storage correctly or is usb storage simply broken in libogc/libfat?

Re: Missing usbstorage_Deinitialize

Posted: Tue Mar 03, 2009 6:09 pm
by THREE_Consoles
I dont know and i dono want to dis some one here becouse im happy to have devkitPro so that i could lern and understand and change some programs to do something good but it seems that new comers and non coders are not wellcome :cry: *joke*

I think we have to lern a little bit mor and than we will understand how noobish our questions are.
I for me have some problems with libfat.But i use the newesd version of devkitPro and the source will be few months old.So it must work.

But in a other way.......the time i searched for the problem i learned so much mor about Wii and here internals.For a few weeks i dont have understood nothing in PN2.Now it will be mor and mor a picture.

So good luck mate....you will made it. 8)

Re: Missing usbstorage_Deinitialize

Posted: Tue Apr 21, 2009 10:03 pm
by dontwantanick
Even if i use:

__io_usbstorage.startup();
fatMountSimple("usb", &__io_usbstorage);

to init the usb storage and:

fatUnmount("usb");
__io_usbstorage.shutdown();

to deinit it, i can't access usb storage before and after an ios reload.

Am i the only one with this problem?