English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware > Hardware mods

 
 
Thread Tools
Old 02 February 2015, 10:27   #1
ferix
Registered User
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 40
Posts: 95
Oops, I did it again... (USB drives on Amiga)

Hello again,

I'm proud to show you my last project:





As you would guess, it's an USB controller attached to the Amiga parallel port, plus an storage media driver that allows you to use any filesystem you want (direct access to sectors on drive).

On those pictures it's running on a plain A500 (512k chip, 512k slow) with fat95 filesystem, and it achieves about 33kbytes/sec. on read, twice on write.

I'm yet working on it (I have some init problems with slow devices) but it's quite stable and usable

It's based on the VNC1L development board, the VDIP1 (you can buy it at ebay), so it's simple enough to be built at home.

I'll post all the files required to build one yourself in the near future.

*** NEW DRIVER ***

Edit:

I've attached a file with the instructions and the driver.

http://eab.abime.net/attachment.php?...1&d=1436945624
Attached Thumbnails
Click image for larger version

Name:	USB_interface.jpg
Views:	10524
Size:	67.2 KB
ID:	43090   Click image for larger version

Name:	Workbench_screen.jpg
Views:	5980
Size:	80.2 KB
ID:	43091  
Attached Files
File Type: pdf amiga_usb_schematic.pdf (91.5 KB, 839 views)
File Type: zip Amiga_USB_Interface.zip (63.3 KB, 1062 views)

Last edited by ferix; 15 July 2015 at 10:37.
ferix is offline  
AdSense AdSense  
Old 02 February 2015, 11:24   #2
jbenam
Italian Amiga Zealot

 
Join Date: Jan 2009
Location: Italy
Age: 29
Posts: 1,225
You're a true hero, ferix

Will it support other USB devices apart from mass-storage? Probably not, but doesn't hurt to ask
jbenam is offline  
Old 02 February 2015, 11:46   #3
ferix
Registered User
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 40
Posts: 95
@jbernam, I'm sure it can, but I'm not sure if it will :P

The firmware in the controller can manage some other peripheral, like mice, keyboards and joysticks (HID devices), but a driver has to be written...
ferix is offline  
Old 02 February 2015, 11:55   #4
jbenam
Italian Amiga Zealot

 
Join Date: Jan 2009
Location: Italy
Age: 29
Posts: 1,225
Quote:
Originally Posted by ferix View Post
@jbernam, I'm sure it can, but I'm not sure if it will :P

The firmware in the controller can manage some other peripheral, like mice, keyboards and joysticks (HID devices), but a driver has to be written...
Awesome. I suppose that means it won't be able to run a full USB stack (like Anaiis/Poseidon) then?

There are various USB mice/kb/joypads projects out there, you might try asking around, who knows
jbenam is offline  
Old 02 February 2015, 12:02   #5
ferix
Registered User
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 40
Posts: 95
I think it can run some sort of reduced USB stack...

The USB controller allows to talk directly to the USB devices, but it still manages the bus, so it does the enumeration and all that stuff...
ferix is offline  
Old 02 February 2015, 12:16   #6
Yulquen74
Registered User
 
Join Date: May 2013
Location: Kleppe / Norway
Posts: 162
Very cool!

Looking forward to your completion of this project!

Question:
Will transfer rates benefit from an accelerated A500,
or are you already approaching the speed limit?
Yulquen74 is offline  
Old 02 February 2015, 12:21   #7
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 705
cool.. the "media storage driver" you mentioned, is that the exec device you are using? and does that in turn use parallelport.device?
hooverphonique is offline  
Old 02 February 2015, 12:24   #8
ferix
Registered User
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 40
Posts: 95
Sure it will benefit from faster machines, but I don't believe it will go faster than 100Kbytes/sec...

The problem here are the CIAs. Those chips are clocked at 1Mhz, so the faster you can access them is just half this frequency, but I need 3 accesses to them to complete a single byte read, plus the time needed to copy that byte to the main memory.
ferix is offline  
Old 02 February 2015, 12:28   #9
ferix
Registered User
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 40
Posts: 95
@hooverphonique
The exec device is called usb.device, but it can be renamed...

I'm not using the paralleport.device, I'm just talking straight to the CIAs, but in an OS friendly way, reserving the resources to take exclusive access to them, so no other device can use the parallel port.

Edit:
I meant "storage media driver"... :P
Fixed...

Last edited by ferix; 02 February 2015 at 12:46.
ferix is offline  
Old 02 February 2015, 14:17   #10
Franchute13
Registered User
Franchute13's Avatar
 
Join Date: Feb 2013
Location: Argentina
Posts: 227
Hello Ferix!

Awesome project! just great.
What need to complete the project?

Greetings and congratulations.
Franchute13 is offline  
Old 02 February 2015, 14:28   #11
ferix
Registered User
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 40
Posts: 95
@Franchute13,

I have to solve some initialization problems. Some slow devices take a long time to set up and cause timeout problems.

By other hand, I need to learn how to make it removable, from the point of view of the OS...
ferix is offline  
Old 03 February 2015, 00:03   #12
HardStep
Registered User

 
Join Date: Dec 2005
Location: Toronto
Posts: 125
Great work

Stylish USB-device icon as well
HardStep is offline  
Old 03 February 2015, 02:07   #13
Nekoniaow
Banned

 
Join Date: Dec 2014
Location: Montreal
Posts: 129
This is really nice, congratulation for your efforts!

I wish the Kickstart supported some kind of autoconfig protocol for other expansion ports than the "zorro" ones. This way you could just put the drivers in a ROM attached to your card (or maybe directly in the firmware) and Exec would load them directly from your device.

Do you have any plans to "upgrade" this design to plug on the 86/zorro expansion ports in the future?
Nekoniaow is offline  
Old 03 February 2015, 02:27   #14
amiman99
Registered User

amiman99's Avatar
 
Join Date: Sep 2009
Location: San Antonio, TX USA
Age: 44
Posts: 717
Looks very promising! Thank you for your work and I can't wait till it's finished.
amiman99 is offline  
Old 03 February 2015, 14:15   #15
amigoun
Registered User
amigoun's Avatar
 
Join Date: May 2010
Location: Czech Rep
Posts: 435
Quote:
Originally Posted by ferix View Post
@Franchute13, By other hand, I need to learn how to make it removable, from the point of view of the OS...
You can look to ppazip.lha on Aminet, sourcecode is included, so maybe you can get the required info there.
amigoun is offline  
Old 03 February 2015, 17:34   #16
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 705
Quote:
Originally Posted by ferix View Post
@hooverphonique
The exec device is called usb.device, but it can be renamed...
ok.. and this implements a block device that gives direct access to the sectors of the usb storage device, if I understand correctly, and it can then be mounted with any filesystem of choice..

was this device written by you??
hooverphonique is offline  
Old 03 February 2015, 17:42   #17
Nibbler
nam nam nam

Nibbler's Avatar
 
Join Date: Jan 2015
Location: Austria
Age: 38
Posts: 565
Great Stuff FERIX !!!
Nibbler is offline  
Old 03 February 2015, 23:17   #18
VincentGR
Registered User
VincentGR's Avatar
 
Join Date: Dec 2012
Location: Greece
Posts: 34
This is amazing!
VincentGR is offline  
Old 03 February 2015, 23:43   #19
ferix
Registered User
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 40
Posts: 95
Quote:
Originally Posted by hooverphonique View Post
ok.. and this implements a block device that gives direct access to the sectors of the usb storage device, if I understand correctly, and it can then be mounted with any filesystem of choice..

was this device written by you??
Yep, that's it, and yes, I wrote it myself
ferix is offline  
Old 03 February 2015, 23:46   #20
ferix
Registered User
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 40
Posts: 95
Quote:
Originally Posted by amigoun View Post
You can look to ppazip.lha on Aminet, sourcecode is included, so maybe you can get the required info there.
Thank amigoun, I've been looking a lot of sources to understand how the amiga os drivers work, and this was one of them, but I'm still learning
ferix is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
New USB HID mouse / USB Joystick / Gamepad USB adapter for the classic Amiga spidi News 187 24 October 2016 13:11
PC 1.44 MB USB floppy drives PopoCop support.Other 12 22 April 2011 19:23
replacing amiga floppy drives with hard drives Gordon support.Hardware 2 06 March 2007 01:44
Oops I burned something! oldpx support.Hardware 3 13 June 2004 02:45

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:07.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.21065 seconds with 12 queries