"Rebel" usb stick

The intent of this forum is to discuss my DOS TSR programs (available at http://bretjohnson.us), how they work and don't work, new/missing features, status of updates, and anything else related to them that may need to be discussed.

"Rebel" usb stick

Postby iw2evk » Sat Aug 01, 2009 12:07 am

Hi at all,
i've received like a gift a NEtac onlydisk 32 Mb usb key.
The key it's recognized and work under window$ XP and usbaspi+di1000dd ,
but i can't access via usbuhcil(usbuhci)+ usbdrive.
The file format it's fat16.
I've tried to reformattong nxp in fat16lba and fat32 without result.

The test via usbdrive /S /D /T /C /F /Q:81h it's not possible (nothing
displayed).

Any suggestions?

P.s the fat32 patch for freedos work very well, Bret !!
iw2evk
 
Posts: 33
Joined: Sat Jul 04, 2009 5:05 am

Re: "Rebel" usb stick

Postby Bret » Sat Aug 01, 2009 6:17 am

The disk is probably not making past the enumeration process in USBUHCIL, so it never makes it to the part where USBDRIVE can start working. Post the output of "USBDEVIC" or "USBUHCIL AddressData".

Also, what happens if you insert a Hub in between the disk and the computer (and install USBHUB, of course)?
Bret
 
Posts: 478
Joined: Fri Oct 10, 2008 3:43 am
Location: Rio Rancho, NM

Re: "Rebel" usb stick

Postby admin » Sun Aug 09, 2009 1:28 am

I'm posting this for iw2evk:

Hi Breth,
in attachment the scanning of usb stick..
If i insert a hub bewin port and device nothingh change..
Please post for me in forum the data (arachne problems..)
Thanks.
p.s. remember if you have some time free the usbcd drivers ; )
Roberto

Output of USBUHCIL Descr:
Code: Select all
USBUHCIL 0.08, (C) 2007-2009, Bret E. Johnson.
DOS Driver for a Universal HCI compatible USB Host Controller.
  LITE version (maximum 16 Devices, no Isochronous Transactions).

        DEVICE DESCRIPTOR
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
Descr Length:                 12h  18
Descr Type:                   01h  Device
USB Release:                0110h  1.10
Device Class:                 00h  Look at Interface
Device SubClass:              00h  None
Device Protocol:              00h  None
Max Packet Size EP0:          10h  16
Vendor ID:                  0DD8h  Netac Technology Co Ltd                 
Product ID:                 8003h  32,771
Device Release:             0104h  1.04
Manufacturer String:          01h  "Generic "
Product String:               02h  "USB Flash Disk"
Serial # String:              00h  None
# of Configs:                 01h  1

    CONFIGURATION DESCRIPTOR
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
Descr Length:                 09h  9
Descr Type:                   02h  Configuration
Descr Total Length:         0020h  32
# of Interfaces:              01h  1
Configuration Value:          01h  1
Configuration String:         00h  None
Attributes:                   80h  Valid Historical Attribute 80h
                                   Bus Powered
                                   No Remote Wakeup
                                   Not Battery Powered
Current Draw / 2:             32h  50 (100 mA)

      INTERFACE DESCRIPTOR
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
Descr Length:                 09h  9
Descr Type:                   04h  Interface
Interface Number:             00h  0
Alternate Setting:            00h  0
# of End Points:              02h  2
Interface Class:              08h  Mass Storage
Interface SubClass:           06h  SCSI Transparent
Interface Protocol:           50h  Bulk-only (Zip)
Interface String:             04h  "USB Disk        "

      END POINT DESCRIPTOR
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
Descr Length:                 07h  7
Descr Type:                   05h  EndPoint
End Point Number:             82h  EndPoint = 2  Direction = In
Attributes:                   02h  Bulk NonSynchronous Data
Max Packet Size:            0040h  64
Max Poll Interval:            00h  0

      END POINT DESCRIPTOR
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
Descr Length:                 07h  7
Descr Type:                   05h  EndPoint
End Point Number:             02h  EndPoint = 2  Direction = Out
Attributes:                   02h  Bulk NonSynchronous Data
Max Packet Size:            0040h  64
Max Poll Interval:            00h  0


Output of USBDEVIC:
Code: Select all
USBDEVIC 0.05, (C) 2008, Bret E. Johnson.
Program to display information about Devices attached to the USB Host(s).

                               DEVICE ADDRESSES
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
Host Index:  0  Host Type: UHCI  Bus Type: PCI   IRQ#:  9  Root Hub Ports: 2
Vendor: 8086h = Intel Corp                                 Product: 7112h
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
                DEVICES                                   INTERFACES           
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ  ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
                           L                C  I A                O           
ADRS                       o         P      o  n l                w           
ÍÍÍÍ   (hex)               S         o BUS  n  t t                n           
Test VEND PROD     Sub Pro p USB HUB r POWR f  f I                e     Sub Pro
RWak  ID   ID  Cls Cls col d VER ADR t (mA) g  c n  DESCRIPTION   d Cls Cls col
ÍÍÍÍ ÍÍÍÍ ÍÍÍÍ ÍÍÍ ÍÍÍ ÍÍÍ Í ÍÍÍ ÍÍÍ Í ÍÍÍÍ Í  Í Í ÍÍÍÍÍÍÍÍÍÍÍÍÍÍ Í ÍÍÍ ÍÍÍ ÍÍÍ
  1  8086 7112   9   0   0 . 1.0 ... . s  0 1  0 0*Root Hub       Y   9   0   0
     Intel Corp                             
ÄÄÄÄ ÄÄÄÄ ÄÄÄÄ ÄÄÄ ÄÄÄ ÄÄÄ Ä ÄÄÄ ÄÄÄ Ä ÄÄÄÄ Ä  Ä Ä ÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Ä ÄÄÄ ÄÄÄ ÄÄÄ
  2  0DD8 8003   0   0   0 . 1.1   1 1  100 1  0 0*SCSI Trsp Bulk .   8   6  80
     Netac Technology Co Ltd                 
admin
Site Admin
 
Posts: 10
Joined: Thu Jul 10, 2008 1:34 pm

Re: "Rebel" usb stick

Postby Bret » Sun Aug 09, 2009 1:33 am

The Device is being enumerated properly, so that's not the problem.

The test via usbdrive /S /D /T /C /F /Q:81h it's not possible (nothing displayed).


When you say "nothing displayed", what exactly do you mean? There must be SOMETHING that appears on the screen, even if it's just a DOS error message of some sort.
Bret
 
Posts: 478
Joined: Fri Oct 10, 2008 3:43 am
Location: Rio Rancho, NM

Re: "Rebel" usb stick

Postby iw2evk » Sun Aug 09, 2009 8:04 am

HI,

When i load usbuhcil (usbuhci) + usbdrive and INSERT the "rebel" stick,
i heard a beep , and if i try to access to drive E: (assigned letter),
i receive this allert

E:\
Error reading from drive E: dos area : drive not ready.

I've tried to access with usbdrive setting to X:1 , but don't work : (

Some suggestions?

Thanks

Roberto iw2evk

Milan
iw2evk
 
Posts: 33
Joined: Sat Jul 04, 2009 5:05 am

Re: "Rebel" usb stick

Postby iw2evk » Sun Aug 09, 2009 8:08 am

Hi Again,

for information : if i calling usbdrive /S ?d /I/C/F /Q:81h

with rebel stick insert, i.'ve receive for the program only the header
(no data, data field empty).

Roberto
iw2evk
 
Posts: 33
Joined: Sat Jul 04, 2009 5:05 am

Re: "Rebel" usb stick

Postby Bret » Sun Aug 09, 2009 4:16 pm

You can't use all of the options at the same time -- you need to issue them separately. In addition, some of your options are wrong. Do the following:

USBDRIVE /S
USBDRIVE /D
USBDRIVE /I
USBDRIVE /C
USBDRIVE /B
USBDRIVE /F
USBDRIVE /Q:81h

and post the results.

Incidentally, the easiest way to put the results into a file is to simply redirect the outputs. For example:

USBDRIVE /S > REBEL.OUT
USBDRIVE /D >> REBEL.OUT
USBDRIVE /I >> REBEL.OUT
...

and then upload the file REBEL.OUT (or whatever you want to call the file).
Bret
 
Posts: 478
Joined: Fri Oct 10, 2008 3:43 am
Location: Rio Rancho, NM

Re: "Rebel" usb stick

Postby admin » Mon Aug 10, 2009 2:53 am

Once again posting for iw2evk:

HI ,
this is a complete scanning of my rebel Netac onlydisk 32 MB stick.

Note the EMPTY data fieds .
I,ve used X:1 for this scan!

Ciao

Roberto

rebel.zip
(2.24 KiB) Downloaded 832 times
admin
Site Admin
 
Posts: 10
Joined: Thu Jul 10, 2008 1:34 pm

Re: "Rebel" usb stick

Postby Bret » Mon Aug 10, 2009 2:59 am

You're missing the one option I need the most: /B.
Bret
 
Posts: 478
Joined: Fri Oct 10, 2008 3:43 am
Location: Rio Rancho, NM

Re: "Rebel" usb stick

Postby admin » Mon Aug 10, 2009 5:51 am

Posting for iw2evk:

Hi Breth,

in attachment the scanning of netac onlydisk 32 mb with usbdrive /B setting x:1.

Note: i've tried many time to access to forum and upload directly the files, but don't work..
Needing javascript (arachne don't have https and js).

Roberto

Code: Select all
USBDRIVE 0.13, (C) 2007-2009, Bret E. Johnson.
DOS Driver for up to 8 SCSI-compatible USB Mass Storage Devices.

Beep for Bad Disk Drives: Yes

                       BAD (INCOMPATIBLE) DISK DRIVES
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
                                              SCSI REQUEST
HOST DVC  INTF STAGE ERROR  ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
INDX ADDR NUM   NUM  CODE   REQ STP DAT STS CSW  RESIDUE  KEY   INFO    ASC/Q
ÄÄÄÄ ÄÄÄÄ ÄÄÄÄ ÄÄÄÄÄ ÄÄÄÄÄ  ÄÄÄ ÄÄÄ ÄÄÄ ÄÄÄ ÄÄÄ ÄÄÄÄÄÄÄÄÄ ÄÄÄ ÄÄÄÄÄÄÄÄÄ ÄÄÄÄÄ
   0    2    0    30 0010h  Short Packet
admin
Site Admin
 
Posts: 10
Joined: Thu Jul 10, 2008 1:34 pm

Re: "Rebel" usb stick

Postby Bret » Mon Aug 10, 2009 7:58 am

Well, once again we have a device that does not comply with the USB specifications, which doesn't surprise me at all. This one is uncompliant in a way that I have not seen before, though.

I have just uploaded a patch to USBDRIVE to the web site, which will hopefully resolve the problem. Please try it and let me know if it works or not.
Bret
 
Posts: 478
Joined: Fri Oct 10, 2008 3:43 am
Location: Rio Rancho, NM

Re: "Rebel" usb stick

Postby iw2evk » Tue Aug 11, 2009 1:56 am

Hi Bret,

usbdrive v. 0.14 have solved the problem !!

I can acceding, format , makedir etc ALSO at x:64..

Many thanks again!!!

Roberto iw2evk

Milan
iw2evk
 
Posts: 33
Joined: Sat Jul 04, 2009 5:05 am

Re: "Rebel" usb stick

Postby sxbsy_1 » Mon Aug 31, 2009 10:02 am

I create a small utility to read device descriptor from USB stick, if I run the utility from floppy, it can read the descriptor correctly. But once it run from a bootable USB stick, it failed to read USB descriptor, does anyone know what the problem is, thank you.
sxbsy_1
 
Posts: 3
Joined: Mon Aug 31, 2009 9:58 am

Re: "Rebel" usb stick

Postby Bret » Tue Sep 01, 2009 2:21 am

You'll need to provide quite a bit more information before anybody can help you. Exactly which USB driver software are you using? How exactly does your utility work (which API does it use to access the disk)? If you booted off the USB disk, why are you trying to even read the descriptors (if you booted from the USB disk, you probably shouldn't be trying to install new software to control the disk)?
Bret
 
Posts: 478
Joined: Fri Oct 10, 2008 3:43 am
Location: Rio Rancho, NM

Re: "Rebel" usb stick

Postby sxbsy_1 » Tue Sep 01, 2009 3:02 am

My project mostly like this: I created a PC system diagnostic software running in DOS, it can boot and run from floppy or USB stick. My diagnostic software scan the whole motherboard and display the information related to hardware and peripheral devices. But one thing is strange about reading device descriptor from USB stick, when software run from floppy, it can read back the device descriptor. But if I put the software into a bootable usb stick, I cannot read the descriptor form this bootable USB stick. does someone know what the problem is.
sxbsy_1
 
Posts: 3
Joined: Mon Aug 31, 2009 9:58 am

Re: "Rebel" usb stick

Postby Bret » Tue Sep 01, 2009 4:46 am

Again I need to ask, what API are you using to access the USB disk and download the descriptors? If you booted from the same USB stick you're trying to read descriptors from, you need to use the API that is provided by the BIOS or boot manager you used to boot. As far as I know, no BIOS or boot manager even provides an API to access USB disks at the low level you're talking about.

You need to provide a lot more detailed, technical information about exactly what you're doing and how you're doing it and how you're booting from USB, and exactly how your program works.

Incidentally, you should have started a new topic for this, since it really doesn't have anything to do with the Rebel disk.
Bret
 
Posts: 478
Joined: Fri Oct 10, 2008 3:43 am
Location: Rio Rancho, NM


Return to Programs

Who is online

Users browsing this forum: No registered users and 1 guest

cron