Welcome, Guest. Please login or register.

Author Topic: cpu detection in startup-sequence  (Read 1756 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline baxypTopic starter

  • Newbie
  • *
  • Join Date: Jan 2007
  • Posts: 19
    • Show only replies by baxyp
cpu detection in startup-sequence
« on: May 31, 2008, 09:11:48 PM »
I would like to detect in startup-sequence which cpu is currently active (68020 or 68060) and execute different script depending on cpu type. I have blizzard 1260 and when I boot with accelerator deactivated, I want to keep as much memory free as possible. Another way to detect if the accelerator is active, besides cpu type, is to check the amount of fast ram.
Is it possible to do that with OS 3.1 standard utilities and can you show me an example script ?

Btw. CPU command has a CHECK option, what does that do ?
A500+ 2M Chip/4M Fast GVP A500-HD8+ 40M,PC286
A1200 2M Chip/64M Fast, Blizzard 1260@50, 2,5\\" IDE HD 40G
 

Offline CLS2086

  • Hero Member
  • *****
  • Join Date: Oct 2003
  • Posts: 1456
    • Show only replies by CLS2086
Re: cpu detection in startup-sequence
« Reply #1 on: May 31, 2008, 09:27:22 PM »
Well, you can use CPU and put the output in a file that you compare with an another one, then start an another SSeq   :-)
Keep the Faith !
VG 5000/A1000/500/500+/600/2000/CDTV/1200PPC-GREX/1200PPC -ATEO-BV/4060D/CD32/Aone/Peg 1/Peg2 G4/ various funny machines too  :-) http://www.mo5.com/collection/index.php?pseudo=CLS2086
I also repair drives of our old beloved Amiga
 

Offline baxypTopic starter

  • Newbie
  • *
  • Join Date: Jan 2007
  • Posts: 19
    • Show only replies by baxyp
Re: cpu detection in startup-sequence
« Reply #2 on: May 31, 2008, 10:37:37 PM »
Hehe, copying to file gave me an idea. I did this:

Code: [Select]

avail >ENV:Fast FAST
if not val $Fast eq 0
  ; accelerator enabled
else
  ; accelerator disabled
endif
[/size]

Thanks!
A500+ 2M Chip/4M Fast GVP A500-HD8+ 40M,PC286
A1200 2M Chip/64M Fast, Blizzard 1260@50, 2,5\\" IDE HD 40G
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: cpu detection in startup-sequence
« Reply #3 on: May 31, 2008, 11:00:41 PM »
CPU CHECK indeed can be used to check for cpu X or better. The result is returned in the RC variable. Old CPU command only knows of 68040 though, but that naturally 68060 falls into that category, too.