forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

usb_mass problem

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
radad



Joined: 19 May 2004
Posts: 246
Location: Melbourne, Australia

PostPosted: Thu Jul 28, 2005 10:19 am    Post subject: usb_mass problem Reply with quote

I was having a problem with my usb drive in that there were lots of directories with no name. I tracked it down to the fat_getDirentry function in fat_driver.c. It was regarding the line which determines the last entry:

Code:
   //detect last entry - all zeros
   if (dsfn->name[0] == 0 && dsfn->name[1] == 0) {
      return 0;
   }


The comment suggest that the name should have all zeros, the code only checks the first two. On my my usb drive the first entry was zero but the second entry was FF. Is it the file system on my drive that is corrupt? Or is this assumption in usb_mass incorrect?
Back to top
View user's profile Send private message
EEUG



Joined: 13 May 2005
Posts: 136
Location: The Netherlands

PostPosted: Thu Jul 28, 2005 4:30 pm    Post subject: Reply with quote

...could you try usb_mass from SMS project? There's a modified binary (in SMS_Data.c), so you can try 'SifExecModuleBuffer' on it to see if you'll get any further (or just launch SMS to check if it will hang with your USB device).
Best regards
Eugene
Back to top
View user's profile Send private message
ole



Joined: 08 May 2004
Posts: 92
Location: Czech Republic

PostPosted: Thu Jul 28, 2005 5:15 pm    Post subject: Reply with quote

It's most likely a bug - I will fix it later. Thanks for reporting.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group