Page 1 of 1

USB Mass Storage

Posted: Sat Mar 15, 2008 7:37 am
by TomT
ddUSB.img is a bootable application with direct hardware access which allows you to conduct usb mass storage transactions (read/write pen drive, memory stick) using a ps/2 keyboard. All coded in 32bit asm using Nasm. ddusb.tar.gz is attached. Requires the UHCI Universal Host Controller.

There are a few other bootable applications on my website.
http://ticon.net/~tatimmer/linux.html

Posted: Sat Mar 15, 2008 8:44 am
by Dex
Thanks, i will try some of your demos and let you know how i get on.

Posted: Sat Mar 15, 2008 12:29 pm
by Dex
After assembling and running ddusb, i got some pci space info, but could not get it to read, it just returned zero's.
Regards Dex.

Posted: Sun Mar 16, 2008 3:09 am
by inflater
After booting, the mouse works awkwardly (generic ps/2), it's jumping to the screen borders. It showed some info about the pci config register and the usb i/o space register. When I plugged in the USB keydisk and tried to read data from the device, all I got was zeros, just like in Dex's case.

Regards
inflater

Posted: Sun Mar 16, 2008 1:45 pm
by Dex
Yes i get the same with the mouse on one of my test PC's, but works ok on others.
I am also sure its not plug and play, so you may have too boot with the USB in the PC. As if not i would not get the light flashing on the stick.

Posted: Sun Mar 16, 2008 4:13 pm
by TomT
Dex & Inflater,

Thanks for trying it out.
I have 2 computers vintage 1999. They have only 2 usb ports with the UHCI. And the program works on those but probably is not robust enough.

The mouse driver isnt needed for this program but I had the same problem you speak about with the mouse pointer jumping around. This was on my daughters computer which has a usb mouse with ps/2 adapter.

My mouse is straight ps/2, two buttons with wheel, In the mouseinit.s routine the deviceID must be 0x03. Maybe yours is differant ?? Dont know.

If you see any obvious no-nos, drop me a line. Otherwise...

Thanks again.

TomT