jbilander / sdbox

A parallel to sd-card project for the Amiga
GNU General Public License v3.0
94 stars 14 forks source link

Amiga hangs while booting when SD0 is placed in DH0:Devs/DOSDrivers and sdbox not connected #4

Closed salocinx closed 3 years ago

salocinx commented 3 years ago

Hi

I meanwhile managed to run the sdbox on my Amiga 1200 with Blizzard IV 030 and 64MB Fast-RAM. Very cool !!

However, if I place the SD0 mount list in DH0:Devs/DOSDrivers and the sdbox is not connected to the Amiga, the machine somewhen hangs during the boot sequence (black screen, no additional information).

Any idea why this happens and a possible work-around?

jbilander commented 3 years ago

Hi, nice you got it working. Yes this is a known TODO. Check comment in code here:

https://github.com/jbilander/sdbox/blob/master/common/spi-par.c#L48

salocinx commented 3 years ago

Great, thanks for the hint! I am currently setting up an Ubuntu 16.04 i386 machine in the hope to bring the m68k toolchain alive. Maybe I can support you. Let's see.

salocinx commented 3 years ago

Uhm... getting error while trying to build the m68k toolchain. The following resources are not available anymore:

http://server.owl.de/~frank/tags/vasm1_8d.tar.gz
http://server.owl.de/~frank/tags/vlink0_16a.tar.gz
http://server.owl.de/~frank/tags/vbcc0_9fP1.tar.gz

Some idea?

salocinx commented 3 years ago

Here's the solution for the missing files.

By the way, somehow Github won't let me to write another comment at the link above. So I will thank @sezero here for his quick and great help! Thanks!

salocinx commented 3 years ago

I made a crude test and it works. The machine boots also without device attached. Will think about a more elegant way.

        uint16_t timeout = 65535;
        uint8_t ctrl = *cia_b_pra;
    while (ctrl & IDLE_MASK) {
        ctrl ^= CLOCK_MASK;
        *cia_b_pra = ctrl;
        ctrl = *cia_b_pra;
                timeout--;
                if(timeout==0) break;
    }
jbilander commented 3 years ago

Hi, nice work. Please make a pull-request with your fix added when you are happy with your solution and I will merge it after having verified it works for me too.

salocinx commented 3 years ago

I handed in a new pull-request with a more elegant way using the timer sources.

jbilander commented 3 years ago

Thank you, I will take a look and see if it works for me too, and then merge and make a new 0.4 build. That is the plan.

salocinx commented 3 years ago

Thanks!