17 April 2013, 07:50 | #1 |
Registered User
Join Date: Oct 2012
Location: Germany
Posts: 585
|
Tutorial: using "showboards" in startup-sequence / batch scripts
Hi there,
this little tutorial will describe how boards.library can be utilized every day - in your startup-sequence. What you need is boards.library >= V2.70 (including showboards >= V1.52) - you can find it on Aminet. Since Version 1.52, "showboards" offers the following new parameters: MID=MANID: Manufacturer ID (decimal) PID=PRODID: Product ID (decimal) You can check if a certain board is inside your machine and active as well by combining these two parameters: Code:
showboards mid=2121 pid=1 A more complex example: Code:
showboards mid=4626 pid=70 > nil: if warn echo "CPU card disabled - booting m68k installation" assign sys: System_68k: assign c: System68k:c assign libs: System68k:libs assign l: System68k:l assign ENVARC: System68k:prefs/env-archive assign s: System68k:s execute s:startup-sequence else echo "CPU card is active - continue booting" endif You could also specifically check for an "ACA 620 Rev. 2", you'd have to use "pid=242" in this case. How do we find IDs of cards we don't own? Well, the library could help us here as well: Code:
showboards allknown If you don't like to browse the long list, use something like this: Code:
showboards allknown > ram:boards.txt search ram:boards.txt "individual" Code:
showboards manid=4626 In theory, you could build AmigaOS installations running on any machine using showboards. Decide for yourself, if this will be useful. At least you'll be able to distinguish between WinUAE and real machines easily. Comments and additions welcome. Best regards, Marcus |
17 April 2013, 09:14 | #2 |
Paranoid Amigoid
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
|
I'm gonna post my reply that I gave on a1k.org in case someone wants to utilize it as well
Since ACATune doesn't run on WinUAE and because many of us, have their Amiga clone on WinUAE for testing purposes... we either HAD to disable ACATune by commenting it's declaration in Startup-Sequence or use a kinda clever script to recognize WinUAE alas NOT to run ACATune. With the new ShowBoards update we can now use a script (like the one following), that looks if the Manufacturer "UAE Amiga Emulator" with Product "UAE - Magic Device Emulation" exist. If not... then it runs ACATune Code:
C:ShowBoards MID=2011 PID=82 >NIL: IF WARN C:ACATune -maprom * -cache on -burst on >NIL: EndIF |
17 April 2013, 09:29 | #3 |
Registered User
Join Date: Dec 2011
Location: Northamptonshire, UK
Age: 42
Posts: 1,236
|
excellent!
I was having trouble using my cf card in UAE due to the FastATA drivers. Perhaps I should look into this |
17 April 2013, 09:45 | #4 |
Registered User
Join Date: Oct 2012
Location: Germany
Posts: 585
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Lincs Amiga User Group aka "LAG" Meeting Confirmed for Sat 2nd of March" | rockape | News | 2 | 21 February 2013 22:46 |
"Reminder "Lincs Amiga User Group aka "LAG" Meet Sat 5th of January 2013" | rockape | News | 4 | 30 January 2013 00:06 |
CD32 Image-Name-Bug: "...(bla)[!].zip" -> "...(bla)[" / "...[test].zip" -> "...[tes" | cfTrio | support.WinUAE | 8 | 18 December 2012 16:31 |
"Lincs Amiga User Group aka "LAG" meet confirmed on Saturday the 5th of January 2013" | rockape | News | 2 | 06 November 2012 20:16 |
Problems with "Thespywholovedme", "Flood", "Shinobi" | sareks | support.Games | 12 | 03 May 2006 14:52 |
|
|