AminetAminet
Search:
84510 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/boot/checkfast.lha

Mirror:Random
Showing:ppc-morphosgeneric
No screenshot available
Short:Resets Ami if no fastmem-Good for A620
Author:Jess Sosnoski (at the below address!!!)
Uploader:starblaz postoffice ptd net
Type:util/boot
Version:1.1
Requires:Kickstart V36+
Architecture:m68k-amigaos
Date:1997-05-28
Download:http://aminet.net/util/boot/checkfast.lha - View contents
Readme:http://aminet.net/util/boot/checkfast.readme
Downloads:529

Long:
Two commands to do something if no fastmem is found.

NOFASTRESET Resets your machine by calling exec's coldreboot() function
if no fastmem is found.
CHECKFAST Sends a returncode of 5 (WARN) if no fastmem is found.


Why?
---
I own an Amiga 600 and an Apollo A620 020 accellerator card, and
under certain circumstances, when the machine crashes, or I exit
certain system-unfriendly programs, I lose my fastmem.
After this there were two courses of action I could take:
1.)  Turn the machine off for 10 seconds, then back on
2.)  Run a coldboot program and hope that it resets my machine
     enough to reconfigure/reinitialize the ram on the A620.

Here's a third option:
---------------------
Place NOFASTRESET in the first line of your startup-sequence.
If your machine crashes bad, and my little assembly proggy sees that
your fastram went bye-bye, it will soft-coldreboot the machine, and
hopefully, expansion.library will reinitialize the ram.
(it is possible that the crash is bad enough for even this proggy
 to not sufficiently reset your machine, and you'll have to give
 your Amiga a long 3-finger salute)

This may also be useful for other accellerator cards, etc, which have
the same problem, but AFAIK, the a620 is the only one that does this.
(Does anyone know if the A630 does this?)

Here's a FOURTH option:
----------------------
Add these lines to the beginning of your startup-sequence

checkfast
IF WARN
	{ Anything you want to do if you lose your fastmem }
ENDIF

For example, I could put in an addmem $200000 $a00000 32 to autoadd the mem
or perhapse something like:
 echo "Huh huh, this sucks, there's like no fast memory or something..."


History:
1.0	Only had executable "checkfast" which resets machine if no fastmem
	found.

1.1	Changed checkfast to nofastreset, and added a new checkfast which
	returns a returncode 5 (WARN) if no fastmem is found.
	Sorry about the confusion.


Contents of util/boot/checkfast.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  120     120 100.0% -lh0- a7c1 May 27  1997 checkfast
[generic]                 1092    2109  51.8% -lh5- 05f9 May 27  1997 checkfast.readme
[generic]                  120     120 100.0% -lh0- d4dc May 27  1997 nofastreset
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         3 files    1332    2349  56.7%            May 28  1997

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>