English Amiga Board


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

 
 
Thread Tools
Old 02 February 2015, 09:27   #1
ferix
Registered User
 
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 47
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:	17361
Size:	67.2 KB
ID:	43090   Click image for larger version

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

Last edited by ferix; 15 July 2015 at 09:37.
ferix is offline  
Old 02 February 2015, 10:24   #2
jbenam
Italian Amiga Zealot
 
Join Date: Jan 2009
Location: Italy
Age: 36
Posts: 1,911
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, 10:46   #3
ferix
Registered User
 
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 47
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, 10:55   #4
jbenam
Italian Amiga Zealot
 
Join Date: Jan 2009
Location: Italy
Age: 36
Posts: 1,911
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, 11:02   #5
ferix
Registered User
 
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 47
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, 11:16   #6
Yulquen74
Registered User
 
Join Date: May 2013
Location: Kleppe / Norway
Posts: 258
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, 11:21   #7
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
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, 11:24   #8
ferix
Registered User
 
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 47
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, 11:28   #9
ferix
Registered User
 
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 47
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 11:46.
ferix is offline  
Old 02 February 2015, 13:17   #10
Franchute13
Registered User
 
Franchute13's Avatar
 
Join Date: Feb 2013
Location: Argentina
Posts: 281
Hello Ferix!

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

Greetings and congratulations.
Franchute13 is offline  
Old 02 February 2015, 13:28   #11
ferix
Registered User
 
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 47
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 02 February 2015, 23:03   #12
HardStep
Registered User
 
Join Date: Dec 2005
Location: Toronto
Posts: 185
Great work

Stylish USB-device icon as well
HardStep is offline  
Old 03 February 2015, 01: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, 01:27   #14
amiman99
Registered User
 
amiman99's Avatar
 
Join Date: Sep 2009
Location: San Antonio, TX USA
Age: 50
Posts: 1,185
Looks very promising! Thank you for your work and I can't wait till it's finished.
amiman99 is offline  
Old 03 February 2015, 13:15   #15
amigoun
Registered User
 
amigoun's Avatar
 
Join Date: May 2010
Location: Czech Rep
Posts: 599
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, 16:34   #16
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
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, 16:42   #17
Nibbler
namm namm AMIGA
 
Nibbler's Avatar
 
Join Date: Jan 2015
Location: Austria
Age: 44
Posts: 734
Great Stuff FERIX !!!
Nibbler is offline  
Old 03 February 2015, 22:17   #18
VincentGR
Registered User
 
VincentGR's Avatar
 
Join Date: Dec 2012
Location: Greece
Posts: 291
This is amazing!
VincentGR is offline  
Old 03 February 2015, 22:43   #19
ferix
Registered User
 
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 47
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, 22:46   #20
ferix
Registered User
 
ferix's Avatar
 
Join Date: Sep 2009
Location: Spain
Age: 47
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  
 


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 191 21 February 2021 19:18
PC 1.44 MB USB floppy drives PopoCop support.Other 12 22 April 2011 18:23
replacing amiga floppy drives with hard drives Gordon support.Hardware 2 06 March 2007 00:44
Oops I burned something! oldpx support.Hardware 3 13 June 2004 01: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 09:26.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.22127 seconds with 14 queries