Archive for the ‘Amiga’ Category

SDBOX for Amiga

Wednesday, August 12th, 2020

Hello, in this post I would point out a new device for amiga computers. Niklas Ekström is the author of this project and you can download the source code from github. The PCB and case are made by jbilander . Clone both repository on you computer. Fist of all read the istructions in the readme files, then buy all necessary stuffs to build the SDbox. I ordered the PCB from JLCPCB. To assemble the circuit isn’t so difficult because of you have to solder only arduino nano, the sd card module and few more discrete components. Below you can see the final result 🙂

Flashing the firmware on atmega328

In avr folder there are 2 file build.bat and flash.bat, the first is for compile the firmware, the second is for flashing the firmware on arduino nano. You have to modify the above file in according to the path where you have the arduino IDE:

build.bat :

“C:\Users\matteo\Desktop\arduino-1.8.9\hardware\tools\avr/bin/avr-gcc” -Os -mmcu=atmega328p main.c -o main.elf
“C:\Users\matteo\Desktop\arduino-1.8.9\hardware\tools\avr/bin/avr-objcopy” -O ihex main.elf main.hex

flash.bat :

Check the correct COM port in (in my case was COM6)

“C:\Users\matteo\Desktop\arduino-1.8.9\hardware\tools\avr/bin/avrdude” -C”C:\Users\matteo\Desktop\arduino-1.8.9\hardware\tools\avr/etc/avrdude.conf” -patmega328p -carduino -PCOM6 -b57600 -D -Uflash:w:main.hex:i

For your convenience I can download the compiled source main.hex

In order to compile the C code for SD amiga driver, you have to compile the source using amigaos-cross-toolchain .

I installed amigaos-toochain in my ubuntu 14.04. In order to install amiga-toochain, you have to compile it too, so run the command that you find in dockerfile to install all necessary packages than run toolchain-m68k or toolchain-ppc script (with --prefix option to specify where to install the toolchain). Note, that the destination directory must be writable by the user.

After amigaos gcc-2.95.3 toolchain was installed you can compile the spisd.device driver. For that simply write make command when you are inside SD folder.

For you convenience I have put the compiled spisd.device, the fat95 file system handler and SD0 files on a ready to use adf image that you can put on a memoru stick and read with and amiga floppy emulator like Gotek.

I have amiga 600HD with workbench 3.1 (v40.42) but the folder tree are the same for all amiga OS (I suppose:)).

Copy the binary spisd.device into the DEVS: directory.

Copy fat95 file system handler in L: and copy the mountfile SD0 to some suitable place e.g. Devs where it can be used to mount the SD card on demand by simply double-clicking the icon. For automatic mount on boot put the SD0 file in the Devs/DOSDrivers folder.

Have fun 🙂