English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 30 April 2016, 15:11   #1
manic23
Only Amiga!
 
manic23's Avatar
 
Join Date: Jan 2008
Location: London / UK
Age: 53
Posts: 512
cnet.device causing problems with WHDLoad

So here is a bit of a head scratcher!

I have an A1200, Better Workbench 4.0, Blizzard 1230, 128 fast ram, D-Link DFE-670TXD PCMCIA Ethernet Card.

I am using the latest version of WHDLoad (18.2) and the cnet.device driver. My Ethernet Stack is Roadshow v1.1.

If I load a WHDLoad game with the cnet.device driver in devs/network then I just get a black screen or the game will run for a second then just freeze. If I remove the cnet,device from devs/netwok, then the games run just fine.

I have tried disabling the network by running NetShutdown. I have even made sure that the line to disable the network in WHDLoad-Startup is active, If I do this then the network does shut down as it should but WHDLoad games still hang. The only way I have found to run games is to remove cnet.device from devs/network and reboot.

Anyone able to help? Many thanks.

Last edited by manic23; 30 April 2016 at 17:04.
manic23 is offline  
Old 30 April 2016, 17:12   #2
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 762
Whdload is not compatible with any tcp/ip stack.
tolkien is offline  
Old 30 April 2016, 17:14   #3
manic23
Only Amiga!
 
manic23's Avatar
 
Join Date: Jan 2008
Location: London / UK
Age: 53
Posts: 512
Quote:
Originally Posted by tolkien View Post
Whdload is not compatible with any tcp/ip stack.
Well yes and no, it causes issues when the stack is running, but you can stop it from running by editing the WHDLoad-Startup script in S (which I have done) and this usually works fine. All it's doing is running NetShutdown.

Last edited by manic23; 30 April 2016 at 17:20.
manic23 is offline  
Old 30 April 2016, 17:52   #4
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,009
Does NetShutdown succeed shutting down the network or could it be that it fails and you didn't notice?
thomas is offline  
Old 30 April 2016, 17:55   #5
manic23
Only Amiga!
 
manic23's Avatar
 
Join Date: Jan 2008
Location: London / UK
Age: 53
Posts: 512
Quote:
Originally Posted by thomas View Post
Does NetShutdown succeed shutting down the network or could it be that it fails and you didn't notice?
Yes it definantly shuts down, as when I open iBrowse, I get the usual error when no network is running.
manic23 is offline  
Old 30 April 2016, 18:12   #6
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,009
Just some ideas: it might be worth to try avail flush after NetShutdown. And perhaps check with Scout or similar if cnet.device disappeared from memory. CardReset might help, too.

The problem with WHDLoad is not the network, but generally all hardware which causes interrupts which need to be handled by a driver. WHDLoad disables the operating system and thus also the interrrupt handlers. Unhandled interrupts cause the machine to stop working.

So what has to be done before WHDLoad takes over control is 1. to stop the software using the hardware and 2. stop the hardware. NetShutdown does 1. but it's up to the driver (cnet.device) to do 2.

Avail flush tells cnet.device to expunge itself from memory. If it has a mechanism to do this, it will first put the hardware into a state that it no longer creates interrupts.

CardReset directly interfaces the PCMCIA port without knowledge of the driver. It might reset the network card so that it is no longer active. You shouldn't do this while the driver is still active, though.
thomas is offline  
Old 30 April 2016, 18:14   #7
manic23
Only Amiga!
 
manic23's Avatar
 
Join Date: Jan 2008
Location: London / UK
Age: 53
Posts: 512
Quote:
Originally Posted by thomas View Post
Just some ideas: it might be worth to try avail flush after NetShutdown. And perhaps check with Scout or similar if cnet.device disappeared from memory. CardReset might help, too.

The problem with WHDLoad is not the network, but generally all hardware which causes interrupts which need to be handled by a driver. WHDLoad disables the operating system and thus also the interrrupt handlers. Unhandled interrupts cause the machine to stop working.

So what has to be done before WHDLoad takes over control is 1. to stop the software using the hardware and 2. stop the hardware. NetShutdown does 1. but it's up to the driver (cnet.device) to do 2.

Avail flush tells cnet.device to expunge itself from memory. If it has a mechanism to do this, it will first put the hardware into a state that it no longer creates interrupts.

CardReset directly interfaces the PCMCIA port without knowledge of the driver. It might reset the network card so that it is no longer active. You shouldn't do this while the driver is still active, though.
Thank you very much for that detailed answer Thomas, I will give that a go as soon as I can and report back.
manic23 is offline  
Old 30 April 2016, 19:36   #8
zipper
Registered User
 
Join Date: Mar 2004
Location: finland
Posts: 1,841
Using Scout or something like you can look if something not desirable is still running.
zipper is offline  
Old 01 May 2016, 04:27   #9
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,342
If you're using AmiTCP, you can try "offline cnet".
idrougge is offline  
Old 01 May 2016, 14:41   #10
manic23
Only Amiga!
 
manic23's Avatar
 
Join Date: Jan 2008
Location: London / UK
Age: 53
Posts: 512
I have it working now! Thanks Thomas. Avail Flush did not do anything but CardReset did. I used Scout as you suggested and I could see that CNet.Device was not longer in memory, so happy days.

However...

I now have a problem with getting the network back up after a WHDLoad game stops. I have un-commented the line in WHDLoad-Cleanup, so I have...

AddInterface DEVS:NetInterfaces/(#?.info) Quite

However when I exit a WHDLoad game I get...

The command you specified via ExecuteCleanup
has failed (ReturnCode=10 DosError=205)


Any ideas?
manic23 is offline  
Old 01 May 2016, 15:48   #11
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,009
Quite is not quite right
Should be Quiet.
thomas is offline  
Old 01 May 2016, 16:02   #12
manic23
Only Amiga!
 
manic23's Avatar
 
Join Date: Jan 2008
Location: London / UK
Age: 53
Posts: 512
Quote:
Originally Posted by thomas View Post
Quite is not quite right
Should be Quiet.
Sorry that was a typo on my part, I do have Quiet
manic23 is offline  
Old 01 May 2016, 17:42   #13
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,009
And what about Net in AddNetInterface, is this a typo, too?
thomas is offline  
Old 01 May 2016, 17:49   #14
manic23
Only Amiga!
 
manic23's Avatar
 
Join Date: Jan 2008
Location: London / UK
Age: 53
Posts: 512
Amazing! Thanks thomas that worked. I did not put that entry in myself, that's how it's installed, not sure if it is WHDLoad that adds that line or if it is Roadshow, but it was wrong by default!
manic23 is offline  
Old 01 May 2016, 18:26   #15
manic23
Only Amiga!
 
manic23's Avatar
 
Join Date: Jan 2008
Location: London / UK
Age: 53
Posts: 512
OK, I figured out that it is the default WHDLoad-Cleanup file that comes with WHDLoad that has the wrong command. I have emailed Bert to let him know. Thank again for all your help.
manic23 is offline  
Old 02 May 2016, 21:06   #16
manic23
Only Amiga!
 
manic23's Avatar
 
Join Date: Jan 2008
Location: London / UK
Age: 53
Posts: 512
Just had a reply from Bert saying that he will fix in the next release


Sent from my iPad using Tapatalk
manic23 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
Could the PSU be causing these problems? -Acid- support.Hardware 5 07 March 2016 21:39
Cnet.device dma timeout getting hardware station address voyager support.Hardware 1 21 June 2013 14:21
stock a1200, pcmcia cnet.device ftpd zharn support.Hardware 4 29 November 2012 16:12
Problems with cnet.device fortytwo support.Hardware 4 24 July 2007 17:11
PCMCIA NICs: cnet.device 1.9beta2 Paul News 1 07 January 2007 20:26

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 02:23.

Top

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