USB Mass Storage

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
Post Reply
TomT
Member
Member
Posts: 42
Joined: Sat Mar 15, 2008 7:20 am
Location: Wisconsin, USA
Contact:

USB Mass Storage

Post 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
Attachments
ddusb.tar.gz
(55.35 KiB) Downloaded 124 times
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

Thanks, i will try some of your demos and let you know how i get on.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post 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.
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Post 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
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post 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.
TomT
Member
Member
Posts: 42
Joined: Sat Mar 15, 2008 7:20 am
Location: Wisconsin, USA
Contact:

Post 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
Post Reply