Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
salocinx opened this issue Nov 5, 2020 · 9 comments

Comments

@salocinx
Copy link
Contributor

salocinx commented Nov 5, 2020

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?

@salocinx salocinx changed the title Amiga hangs while booting when SD0 is in DH0:Devs/DOSDrivers Amiga hangs while booting when SD0 is in DH0:Devs/DOSDrivers and sdbox not connected Nov 5, 2020
@salocinx salocinx changed the title Amiga hangs while booting when SD0 is in DH0:Devs/DOSDrivers and sdbox not connected Amiga hangs while booting when SD0 is placed in DH0:Devs/DOSDrivers and sdbox not connected Nov 5, 2020
@jbilander
Copy link
Owner

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
Copy link
Contributor Author

salocinx commented Nov 5, 2020

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
Copy link
Contributor Author

salocinx commented Nov 5, 2020

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
Copy link
Contributor Author

salocinx commented Nov 5, 2020

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
Copy link
Contributor Author

salocinx commented Nov 5, 2020

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
Copy link
Owner

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
Copy link
Contributor Author

salocinx commented Nov 7, 2020

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

@jbilander
Copy link
Owner

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
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants