View Single Post
Old 17 August 2010, 13:31   #1
ppill
CON: artist
ppill's Avatar
 
Join Date: Feb 2006
Location: Poland
Age: 36
Posts: 1,158
Send a message via Skype™ to ppill
CompactFlash installation made easy!

Here's a very simple solution to install all the drivers needed to get a working PCMCIA CompactFlash on your Amiga.

Download this, copy it over to a 720kb PC floppy disk (to prepare one under XP or higher just tape over the extra hole of the disk and in command window write 'format a: /t:80 /n:9').

I assume you have a working CrossDOS installation or some other way of accessing such disks on the Amiga. I intend to prepare a video that shows you how create a disk that has such feature form a set of original Workbench disks. For now just search around EAB, there are a few threads that should be of help (just search for Crossdos, PC0 etc.)

On the Amiga copy the CFlash.run from the PC floppy to ram: (if you can't see any files when you open the drive window just choose Window>Show>All files form the pull down menu).

Doubleclick the ram: icon. Choose Window>Show>All files form the menu. You should see an icon with a hammer called CFlash.run (if it looks like a stack of papers click on it and choose Icons>Information. A window will pop up and you need to tick 'executable' from the protection bits list, click Save then Window>Update)

Doubleclick the hammer icon then click OK. After the archive has finished extracting, close the window, click on the ram: window and from the pull down menu choose Window>Update. You should see a two new icons: install (with a CF logo) and a drawer called stuff. Double click on the install icon. This will start a script that will copy the necessary files and mount the CF0: drive for you. It quits automatically. Your adapter will be available every time you reboot. Plus you'll have a new device called FAT0 that can read FAT formatted floppy disks with longnames (unlike CrossDOS).

Anyone care to try it out?

Here's the script so you know what it's doing:
Code:
;$VER:CFlash.run 1.3 (08/24/10)
alias cls "Echo *"*E[0;0H*E[J*" "

if exists devs:compactflash.device
 version devs:compactflash.device version 1 revision 25
  if warn
   ask "Old version of compactflash.device found. Copy the latest (1.25)? (y/n)"
   if warn
     copy stuff/compactflash.device devs:
   endif
  endif 
else
 copy stuff/compactflash.device devs:
endif

ask "Would you like to copy CompactFlash debug tools? (y/n)"
if warn 
 copy stuff/cfddebug c:
 copy stuff/pcmciacheck c:
 copy stuff/pcmciaspeed c:
endif

cls

if exists devs:dosdrivers/CF0
 echo "CF0 mountlist found. Renaming to CF0_bck."
 rename devs:dosdrivers/CF0 devs:dosdrivers/CF0_bck
 cls
endif

if exists devs:dosdrivers/CF0.info
 rename devs:dosdrivers/CF0.info devs:dosdrivers/CF0_bck.info
endif

if exists sys:storage/dosdrivers/CF0
 echo "CF0 mountlist found. Renaming to CF0_bck."
 rename sys:storage/dosdrivers/CF0 sys:storage/dosdrivers/CF0_bck
 cls
endif

if exists sys:storage/dosdrivers/CF0.info
 rename sys:storage/dosdrivers/CF0.info sys:storage/dosdrivers/CF0_bck.info
endif

ask "Would you like to start the driver at boot time? (y/n)"
if warn
 copy stuff/CF0 devs:dosdrivers/
 copy stuff/CF0.info devs:dosdrivers/
else
 copy stuff/CF0 Sys:Storage/Dosdrivers/
 copy stuff/CF0.info Sys:Storage/Dosdrivers/
endif

cls

if not exists l:fat95
 copy stuff/fat95 l:
endif

ask "Install the FAT0: drive? (Access PC floppies with longnames) (y/n)"
if warn
 if not exists devs:messydisk.device
  copy stuff/messydisk.device devs:
  ask "Start FAT0: at boot time? (y/n)"
  if warn
   copy stuff/FAT0 devs:dosdrivers/
   copy stuff/FAT0.info devs:dosdrivers/
  else
   copy stuff/FAT0 Sys:Storage/dosdrivers/
   copy stuff/FAT0.info Sys:Storage/dosdrivers/
  endif
 endif
endif

cls

delete stuff/ all quiet force
delete CFlash.run quiet force
delete install quiet force
delete install.info quiet force

ask "Mount CF0: now? (y/n)"
if warn
 mount cf0:
endif

cls

unalias cls

echo "All done! Enjoy :)"

Last edited by ppill; 29 May 2011 at 03:13.
ppill is offline  
AdSense AdSense  
 
Page generated in 0.04813 seconds with 9 queries