{"id":776,"date":"2015-02-15T05:01:38","date_gmt":"2015-02-15T05:01:38","guid":{"rendered":"http:\/\/www.kernelcrash.com\/blog\/?p=776"},"modified":"2015-03-25T04:33:20","modified_gmt":"2015-03-25T04:33:20","slug":"emulating-floppies-on-the-amiga","status":"publish","type":"post","link":"https:\/\/www.kernelcrash.com\/blog\/emulating-floppies-on-the-amiga\/2015\/02\/15\/","title":{"rendered":"Emulating floppies on the Amiga"},"content":{"rendered":"<p>So while I was pretty happy with <a title=\"Writing floppies for the Amiga\" href=\"http:\/\/www.kernelcrash.com\/blog\/writing-floppies-for-the-amiga\/2015\/02\/14\/\">being able to get ADF&#8217;s into readable floppies using ADTWin<\/a>, I had actually ordered a gotek floppy drive on Aliexpress. There are quite a few places selling these. I paid about $25. The gotek has a STM32 microcontroller running some firmware that can read disk image files off a FAT32 formatted USB stick, and emulate\u00a0 the interface of a 34 pin floppy drive. An LED readout and some buttons on the gotek allow you to select different images. I think by default, a gotek is set up for use as a PC floppy drive emulator, but thanks to Herv\u00e9 Messinger there is a <a href=\"https:\/\/cortexamigafloppydrive.wordpress.com\">firmware to emulate an Amiga floppy drive using the gotek drives<\/a>.<\/p>\n<p><!--more-->You do have to get the firmware onto the gotek device. This was a bit of a saga for me. You need a TTL serial device. I had some old CP2102 ones which I was pretty sure would not work (and they didn&#8217;t), plus an FTDI one.\u00a0 My first problem is that I had to install the FTDI drivers on XP. This is where I hit the &#8216;new FTDI drivers brick fake FTDI usb serial adapters&#8217; (google &#8216;unbrick ftdi&#8217;). Of course my FTDI device ended up with a VID\/PID of 0403\/0000 which basically does not work. Lots of googling later I somehow had the older FTDI driver installed and the inf files changed so that 0403\/0000 was a valid VID\/PID combo. Then I needed XP SP3 (this machine is not connected to the internet) in order for the ST Programmer software to start and then after several attempts resetting the gotek, I eventually got it to program and verify OK. Then I made sure the S0\/S1 selector on the gotek was on S0 and put it in one of my Amiga 500s.<\/p>\n<p>For the USB stick, you need a FAT32 formatted one with the SELECTOR.ADF image on it as well as a few other adfs. So I tested it with the lid off the Amiga and the gotek and with the LED showing 000 it boots the SELECTOR.ADF which is a simple menu gui that allows you to select adf files off the USB stick and assign them to &#8216;slots&#8217;. eg. first you would pick an adf and assign it to slot 001, then pick another for slot 002 etc. Then you need to make sure you choose &#8216;Save and restart&#8217;. That will reboot your Amiga and it will probably not be set to boot 001 or 002 or whatever one you really want to boot , so some frantic fiddling with the two buttons on the gotek to select 001 or 002 or whatever and then ctrl-amiga-amiga again and it should boot off the one you want. I keep thinking there must be some way in the SELECTOR interface to go &#8216;reboot off the one I have selected&#8217;. I need to do a bit more research to see if I am missing something.<\/p>\n<p>Speed wise the gotek seems to go at roughly the same speed as a regular Amiga floppy drive. It probably seems slower because you don&#8217;t have the sound of the head stepping as its reading.<\/p>\n<p>Perhaps the main challenge with the gotek is figuring out how to (physically) mount it inside the Amiga case. It was obviously designed with a PC case in mind &#8230; I think if you drill a few holes in the plastic case you can screw it into the Amiga in such a way that you can shove a USB stick through the normal floppy opening and see enough of the LED digits to figure out which one it is booting &#8230; but trying to press the two buttons from outside the Amiga probably requires a small screw driver poked through. Honestly I&#8217;m not sure what to do with it at the moment. It may be easier to wire up a switch to swap the disk0\/disk1 select lines, then mount the gotek in an external amiga floppy case (I&#8217;m not sure if that even works with the gotek).<\/p>\n<p>Ultimately if you don&#8217;t want to rebuild up your floppy disk inventory the gotek with\u00a0Herv\u00e9&#8217;s firmware is pretty good.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So while I was pretty happy with being able to get ADF&#8217;s into readable floppies using ADTWin, I had actually ordered a gotek floppy drive on Aliexpress. There are quite a few places selling these. I paid about $25. The gotek has a STM32 microcontroller running some firmware that can read disk image files off [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-776","post","type-post","status-publish","format-standard","hentry","category-retrocomputing"],"_links":{"self":[{"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/posts\/776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/comments?post=776"}],"version-history":[{"count":5,"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/posts\/776\/revisions"}],"predecessor-version":[{"id":807,"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/posts\/776\/revisions\/807"}],"wp:attachment":[{"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/media?parent=776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/categories?post=776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/tags?post=776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}