This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TUSB9261DEMO: TUSB9261 Read only /Write Protected setting

Part Number: TUSB9261DEMO
Other Parts Discussed in Thread: TUSB9261

Hello Sir,

I have question, Does TUSB9261 have Write-protection mechanisme ?

Example :Write protection register, Write protection status in ATA Inquiry Table, etc 

So windows recognize the attached TUSB9261 as Read Only.

  • Hi Vicky,

    I am looking into this, and will try to give you an answer by EOD tomorrow, 5/17. Sorry about the wait.

    Thanks,

    Ryan

  • no problem, any idea ?

  • Hi Vicky,

    After doing some research, I don't believe this is a function we currently have for this device. We offer the source code of the firmware to customers, so it's possible that you may be able to add this feature yourself, but I can't say that for certain.

    Currently, we provide the firmware and source code as-is due to limited support for the software aspect of this device, that way users can look through this and determine how they can edit the code as needed for their application. Sorry about that.

    Thanks,

    Ryan

  • Thank you for your support sir.

    Well, I am not asking ready to use firmware , but just idea behing this Write Protection :

    - is there require to change HAL or Device layer : so, I give up

    - or is there require to change at AHCI , or higher USB-HID or SCSI layer:

    example : return INQUIRY table as , set WP bit=1 from Mode Sense, Set peripheral as CD/DVD with CDFS file system

    Then I can research on my own. 

    What I have already done :

    - todo write protection / write-blocking , in scsi.c file , when TSUB9261 receive SCSI_WRITE, I return status = CMD_FAIL

    switch(cmdblk[0]) :

    SCSI_WRITE10:

    SCSI_WRITE12:

    SCSI_WRITE16:

              //status = scsi_handle_rw_command()

               scsi_set_sense_data(DATA_PROTECT, WRITE_PROTECTED, NO_ASCQ);

               break; 

    but it cause Windows explorer return error I/O Failure, instead of "write protected" error message. I need to set windows registry WriteProtection = 1 first.

    But not all investigator understand this simply.

    So I thought, there're some in INQUIRY TABLE or MODE SENSE to "fake" Windows that this TUSB9261 is Read Only device.

  • Hi Vicky,

    Just to clarify, are you trying to make the TUSB9261 read only, or the SATA drive connected read only?

    From my knowledge with this, I am not aware of any means of setting it to where the SATA drive is read only, however, I believe the registers can be set to read only via reg_io.c.

    Thanks,

    Ryan

  • I want to make TUSB9261 read only

  • Thanks for replying Mr Ryan,

    I want  to make TUSB9261 become read only.

    if somewhere in reg_io.c , it means on low level /low layer/hardware layer, correct ?

    Manipulate return data on INQUIRY table or MODE SENSE , is that possible ?  

  • Hi Vicky,

    Looking through the firmware and other information, I believe there is no option currently available to turn the TUSB9261 into a read-only device. The firmware may be edited to help allow this, possibly by removing any write functions or by some other means, but it is not an option currently as far as I know.

    As for manipulating an ATA inquiry table or MODE SENSE, I am unsure of how these function, so I cannot speak to the plausibility of controlling it by that means. Sorry about that.

    Thanks,

    Ryan

  • Hi Vicky

    I will go ahead and close this E2E thread for no activity, you can either respond back to this thread or create a new thread if you need any additional support.

    Thanks

    David