30 April 2016, 15:11 | #1 |
Only Amiga!
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. |
30 April 2016, 17:12 | #2 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 762
|
Whdload is not compatible with any tcp/ip stack.
|
30 April 2016, 17:14 | #3 |
Only Amiga!
Join Date: Jan 2008
Location: London / UK
Age: 53
Posts: 512
|
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. |
30 April 2016, 17:52 | #4 |
Registered User
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?
|
30 April 2016, 17:55 | #5 |
Only Amiga!
Join Date: Jan 2008
Location: London / UK
Age: 53
Posts: 512
|
|
30 April 2016, 18:12 | #6 |
Registered User
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. |
30 April 2016, 18:14 | #7 | |
Only Amiga!
Join Date: Jan 2008
Location: London / UK
Age: 53
Posts: 512
|
Quote:
|
|
30 April 2016, 19:36 | #8 |
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.
|
01 May 2016, 04:27 | #9 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,342
|
If you're using AmiTCP, you can try "offline cnet".
|
01 May 2016, 14:41 | #10 |
Only Amiga!
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? |
01 May 2016, 15:48 | #11 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,009
|
Quite is not quite right
Should be Quiet. |
01 May 2016, 16:02 | #12 |
Only Amiga!
Join Date: Jan 2008
Location: London / UK
Age: 53
Posts: 512
|
|
01 May 2016, 17:42 | #13 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,009
|
And what about Net in AddNetInterface, is this a typo, too?
|
01 May 2016, 17:49 | #14 |
Only Amiga!
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!
|
01 May 2016, 18:26 | #15 |
Only Amiga!
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.
|
02 May 2016, 21:06 | #16 |
Only Amiga!
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 |
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 |
|
|