English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   support.FS-UAE (https://eab.abime.net/forumdisplay.php?f=122)
-   -   Compact Flash Card Prep on Mac (https://eab.abime.net/showthread.php?t=104286)

livewirerocks 10 October 2020 19:31

Compact Flash Card Prep on Mac
 
Probably a question that’s been answered but I can’t find any info in relation to setting us a CF card on a Mac for using with a real Amiga.

I’ve seen many winuae tutorials using disk part in the command line, however I don’t have a pc and wondered if anyone has a easy guide to wiping the CF card and selecting in on fs-uae as a hard drive so that I can create a personalised system. Any help would be appreciated.

lilwshu 10 October 2020 22:44

To wipe it and set it up as a hard drive (make sure you have backups, I take no responsibility for any issues etc etc):

Insert the card, load Disk Utility and remove any partitions that are on it
Load Terminal and type "diskutil list"
You will see your CF card called something like /dev/disk3 - MAKE SURE YOU IDENTIFY IT CORRECTLY
Type "sudo chmod 777 /dev/diskx" (x being whatever number your CF card is) - your disk will be read only in FS-UAE if you dont do this
Load your FS-UAE configuration file in Textedit and edit the file:

hard_drive_0 = /dev/diskx
hard_drive_0_type = rdb

Save the file, open it in FS-UAE, and you can now attach your Workbench floppies, boot from the Install disk and set up Workbench as usual (remember to start HDtoolbox with the uaehf.device tooltype and to change the Maxtransfer setting).

livewirerocks 10 October 2020 23:47

Quote:

Originally Posted by lilwshu (Post 1433656)
To wipe it and set it up as a hard drive (make sure you have backups, I take no responsibility for any issues etc etc):

Insert the card, load Disk Utility and remove any partitions that are on it
Load Terminal and type "diskutil list"
You will see your CF card called something like /dev/disk3 - MAKE SURE YOU IDENTIFY IT CORRECTLY
Type "sudo chmod 777 /dev/diskx" (x being whatever number your CF card is) - your disk will be read only in FS-UAE if you dont do this
Load your FS-UAE configuration file in Textedit and edit the file:

hard_drive_0 = /dev/diskx
hard_drive_0_type = rdb

Save the file, open it in FS-UAE, and you can now attach your Workbench floppies, boot from the Install disk and set up Workbench as usual (remember to start HDtoolbox with the uaehf.device tooltype and to change the Maxtransfer setting).


Many thanks for that, it’s been driving me mad ha ha.

I’ll give it a try in the morning. Appreciate the help

livewirerocks 12 October 2020 10:17

Quote:

Originally Posted by lilwshu (Post 1433656)
To wipe it and set it up as a hard drive (make sure you have backups, I take no responsibility for any issues etc etc):

Insert the card, load Disk Utility and remove any partitions that are on it
Load Terminal and type "diskutil list"
You will see your CF card called something like /dev/disk3 - MAKE SURE YOU IDENTIFY IT CORRECTLY
Type "sudo chmod 777 /dev/diskx" (x being whatever number your CF card is) - your disk will be read only in FS-UAE if you dont do this
Load your FS-UAE configuration file in Textedit and edit the file:

hard_drive_0 = /dev/diskx
hard_drive_0_type = rdb

Save the file, open it in FS-UAE, and you can now attach your Workbench floppies, boot from the Install disk and set up Workbench as usual (remember to start HDtoolbox with the uaehf.device tooltype and to change the Maxtransfer setting).


Works like a charm. Thank you for your help. Much appreciated [emoji106][emoji16]

bni 13 October 2020 23:31

I use rdbtool and xdftool from https://github.com/cnvogelg/amitools

to build my customised CF card. I then test this in FS-UAE like lilwshu describe above, and then later when I know eveything is like I want it, in my real Amiga.

I have made a script to build the contents exactly like I want them. It works great if you are comfortable with command line tools and scripts. And you get a reproducible process for creating the CF card contents.

livewirerocks 14 October 2020 00:04

Quote:

Originally Posted by bni (Post 1434412)
I use rdbtool and xdftool from https://github.com/cnvogelg/amitools

to build my customised CF card. I then test this in FS-UAE like lilwshu describe above, and then later when I know eveything is like I want it, in my real Amiga.

I have made a script to build the contents exactly like I want them. It works great if you are comfortable with command line tools and scripts. And you get a reproducible process for creating the CF card contents.


Thanks for that. I’ll have a look at it. I’m ok with the command line/terminal. Not great with other scripts. That’s cool you’ve written a script to help. Maybe something I should look into. How did you do yours?


Sent from my iPad using Tapatalk

bni 14 October 2020 19:59

Sure I use a script like below.

For inspiration only, no warranties :laughing

I have very much enjoyed making my own perfect Amiga CF card, setup with Demos, WHDLoad Games, my favorite mods and iff pictures. I guess perfect is different for everyone :spin

Make sure you use the correct /dev/diskX, my CF card is at /dev/disk2 for example. Using wrong device here can wipe you disk.

Code:

#!/bin/sh

# ** Howto make amiga-os-3141-workbench.hdf ************************
# rdbtool amiga-os-3141-workbench.hdf create size=15Mi
# rdbtool amiga-os-3141-workbench.hdf init
#
# rdbtool amiga-os-3141-workbench.hdf fill dostype=DOS3 bootable
# xdftool amiga-os-3141-workbench.hdf open part=DH0 + format Workbench3.1 DOS3
#
# rdbtool amiga-os-3141-workbench.hdf info
# Then install AmigaOS from adf images into this hdf in FS-UAE
# ********************

SRC="Workbench3.1"
DEST="AmigaOS"
PROGRAMS="Programs"
DATA="Data"
GAMES="Games"
DEMOS="Demos"

# Delete
rm -rf $SRC
rm $SRC.blkdev
rm $SRC.xdfmeta

rm -rf $DEST
rm $DEST.blkdev
rm $DEST.xdfmeta

rm -rf ./DeluxePaint3
rm -rf ./PT23F
rm -rf ./WHDLoad
rm -rf ./Icons

rm -rf $PROGRAMS
rm $PROGRAMS.blkdev
rm $PROGRAMS.xdfmeta

rm -rf $DATA
rm $DATA.blkdev
rm $DATA.xdfmeta

rm -rf $GAMES
rm $GAMES.blkdev
rm $GAMES.xdfmeta

rm -rf $DEMOS
rm $DEMOS.blkdev
rm $DEMOS.xdfmeta

# Unpack
xdftool amiga-os-3141-workbench.hdf unpack . fsuae
unar DeluxePaint3.adf
unar PT23F.LHA
unar WHDLoad.zip
unar Icons.zip

# Cleanup
find . -type f -name '*.DS_Store' -ls -delete
find ../data -type f -name '*.DS_Store' -ls -delete
find ../games -type f -name '*.DS_Store' -ls -delete
find ../demos -type f -name '*.DS_Store' -ls -delete

# Build AmigaOS
sudo chmod 777 /dev/diskX
rdbtool /dev/diskX init rdb_cyls=2
rdbtool /dev/diskX fsadd $SRC/L/FastFileSystem version=46.20
rdbtool /dev/diskX add size=16MiB dostype=DOS3 bootable=true
xdftool /dev/diskX open part=DH0 + format $DEST DOS3
xdftool /dev/diskX open part=DH0 + unpack . fsuae

# Build Programs
rdbtool /dev/diskX add size=24MiB dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH1 + format $PROGRAMS DOS7
xdftool /dev/diskX open part=DH1 + unpack . fsuae

# Build Data
rdbtool /dev/diskX add size=1612MiB dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH2 + format $DATA DOS7
xdftool /dev/diskX open part=DH2 + unpack . fsuae

# Build Games
rdbtool /dev/diskX add size=182MiB dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH3 + format $GAMES DOS7
xdftool /dev/diskX open part=DH3 + unpack . fsuae

# Build Demos
rdbtool /dev/diskX fill dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH4 + format $DEMOS DOS7
xdftool /dev/diskX open part=DH4 + unpack . fsuae

# Workbench
rsync -rt $SRC/* $DEST/

# Icons
cp -vp Icons/Disks/$DEST.info $DEST/Disk.info
cp -vp Icons/Disks/$PROGRAMS.info $PROGRAMS/Disk.info
cp -vp Icons/Disks/$DATA.info $DATA/Disk.info
cp -vp Icons/Disks/$GAMES.info $GAMES/Disk.info
cp -vp Icons/Disks/$DEMOS.info $DEMOS/Disk.info
cp -vp Icons/*.info $DEST/
cp -vp Icons/Devs/*.info $DEST/Devs/
cp -vp Icons/Prefs/*.info $DEST/Prefs/
cp -vp Icons/Storage/*.info $DEST/Storage/
cp -vp Icons/System/*.info $DEST/System/
cp -vp Icons/Tools/*.info $DEST/Tools/
cp -vp Icons/Utilities/*.info $DEST/Utilities/
cp -vp Icons/Programs/*.info $PROGRAMS/

# Deluxe Paint III
cp -vp DeluxePaint3/dpaint $PROGRAMS/Deluxe\ Paint\ III

# ProTracker
cp -vp PT23F/PT23F/PT2.3F $PROGRAMS/

# WHDLoad
cp -vp WHDLoad/WHDLoad/C/WHDLoad $DEST/C/
mkdir $DEST/Devs/Kickstarts
cp -vp WHDLoad/kick* $DEST/Devs/Kickstarts/

# Data
rsync -rt ../data/* $DATA/

# Games
rsync -rt ../games/* $GAMES/

# Demos
rsync -rt ../demos/* $DEMOS/

# Show partitions
rdbtool /dev/diskX info

# Pack DH0
xdftool /dev/diskX open part=DH0 + pack $DEST
xdftool /dev/diskX open part=DH0 + list

# Pack DH1
xdftool /dev/diskX open part=DH1 + pack $PROGRAMS
xdftool /dev/diskX open part=DH1 + list

# Pack DH2
xdftool /dev/diskX open part=DH2 + pack $DATA
xdftool /dev/diskX open part=DH2 + list

# Pack DH3
xdftool /dev/diskX open part=DH3 + pack $GAMES
xdftool /dev/diskX open part=DH3 + list

# Pack DH4
xdftool /dev/diskX open part=DH4 + pack $DEMOS
xdftool /dev/diskX open part=DH4 + list


livewirerocks 14 October 2020 20:10

Quote:

Originally Posted by bni (Post 1434541)
Sure I use a script like below.

For inspiration only, no warranties :laughing

I have very much enjoyed making my own perfect Amiga CF card, setup with Demos, WHDLoad Games, my favorite mods and iff pictures. I guess perfect is different for everyone :spin

Make sure you use the correct /dev/diskX, my CF card is at /dev/disk2 for example. Using wrong device here can wipe you disk.

Code:

#!/bin/sh

# ** Howto make amiga-os-3141-workbench.hdf ************************
# rdbtool amiga-os-3141-workbench.hdf create size=15Mi
# rdbtool amiga-os-3141-workbench.hdf init
#
# rdbtool amiga-os-3141-workbench.hdf fill dostype=DOS3 bootable
# xdftool amiga-os-3141-workbench.hdf open part=DH0 + format Workbench3.1 DOS3
#
# rdbtool amiga-os-3141-workbench.hdf info
# Then install AmigaOS from adf images into this hdf in FS-UAE
# ********************

SRC="Workbench3.1"
DEST="AmigaOS"
PROGRAMS="Programs"
DATA="Data"
GAMES="Games"
DEMOS="Demos"

# Delete
rm -rf $SRC
rm $SRC.blkdev
rm $SRC.xdfmeta

rm -rf $DEST
rm $DEST.blkdev
rm $DEST.xdfmeta

rm -rf ./DeluxePaint3
rm -rf ./PT23F
rm -rf ./WHDLoad
rm -rf ./Icons

rm -rf $PROGRAMS
rm $PROGRAMS.blkdev
rm $PROGRAMS.xdfmeta

rm -rf $DATA
rm $DATA.blkdev
rm $DATA.xdfmeta

rm -rf $GAMES
rm $GAMES.blkdev
rm $GAMES.xdfmeta

rm -rf $DEMOS
rm $DEMOS.blkdev
rm $DEMOS.xdfmeta

# Unpack
xdftool amiga-os-3141-workbench.hdf unpack . fsuae
unar DeluxePaint3.adf
unar PT23F.LHA
unar WHDLoad.zip
unar Icons.zip

# Cleanup
find . -type f -name '*.DS_Store' -ls -delete
find ../data -type f -name '*.DS_Store' -ls -delete
find ../games -type f -name '*.DS_Store' -ls -delete
find ../demos -type f -name '*.DS_Store' -ls -delete

# Build AmigaOS
sudo chmod 777 /dev/diskX
rdbtool /dev/diskX init rdb_cyls=2
rdbtool /dev/diskX fsadd $SRC/L/FastFileSystem version=46.20
rdbtool /dev/diskX add size=16MiB dostype=DOS3 bootable=true
xdftool /dev/diskX open part=DH0 + format $DEST DOS3
xdftool /dev/diskX open part=DH0 + unpack . fsuae

# Build Programs
rdbtool /dev/diskX add size=24MiB dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH1 + format $PROGRAMS DOS7
xdftool /dev/diskX open part=DH1 + unpack . fsuae

# Build Data
rdbtool /dev/diskX add size=1612MiB dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH2 + format $DATA DOS7
xdftool /dev/diskX open part=DH2 + unpack . fsuae

# Build Games
rdbtool /dev/diskX add size=182MiB dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH3 + format $GAMES DOS7
xdftool /dev/diskX open part=DH3 + unpack . fsuae

# Build Demos
rdbtool /dev/diskX fill dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH4 + format $DEMOS DOS7
xdftool /dev/diskX open part=DH4 + unpack . fsuae

# Workbench
rsync -rt $SRC/* $DEST/

# Icons
cp -vp Icons/Disks/$DEST.info $DEST/Disk.info
cp -vp Icons/Disks/$PROGRAMS.info $PROGRAMS/Disk.info
cp -vp Icons/Disks/$DATA.info $DATA/Disk.info
cp -vp Icons/Disks/$GAMES.info $GAMES/Disk.info
cp -vp Icons/Disks/$DEMOS.info $DEMOS/Disk.info
cp -vp Icons/*.info $DEST/
cp -vp Icons/Devs/*.info $DEST/Devs/
cp -vp Icons/Prefs/*.info $DEST/Prefs/
cp -vp Icons/Storage/*.info $DEST/Storage/
cp -vp Icons/System/*.info $DEST/System/
cp -vp Icons/Tools/*.info $DEST/Tools/
cp -vp Icons/Utilities/*.info $DEST/Utilities/
cp -vp Icons/Programs/*.info $PROGRAMS/

# Deluxe Paint III
cp -vp DeluxePaint3/dpaint $PROGRAMS/Deluxe\ Paint\ III

# ProTracker
cp -vp PT23F/PT23F/PT2.3F $PROGRAMS/

# WHDLoad
cp -vp WHDLoad/WHDLoad/C/WHDLoad $DEST/C/
mkdir $DEST/Devs/Kickstarts
cp -vp WHDLoad/kick* $DEST/Devs/Kickstarts/

# Data
rsync -rt ../data/* $DATA/

# Games
rsync -rt ../games/* $GAMES/

# Demos
rsync -rt ../demos/* $DEMOS/

# Show partitions
rdbtool /dev/diskX info

# Pack DH0
xdftool /dev/diskX open part=DH0 + pack $DEST
xdftool /dev/diskX open part=DH0 + list

# Pack DH1
xdftool /dev/diskX open part=DH1 + pack $PROGRAMS
xdftool /dev/diskX open part=DH1 + list

# Pack DH2
xdftool /dev/diskX open part=DH2 + pack $DATA
xdftool /dev/diskX open part=DH2 + list

# Pack DH3
xdftool /dev/diskX open part=DH3 + pack $GAMES
xdftool /dev/diskX open part=DH3 + list

# Pack DH4
xdftool /dev/diskX open part=DH4 + pack $DEMOS
xdftool /dev/diskX open part=DH4 + list



Ha ha.

Appreciate that. I like to customise mine too, that’s the beauty of the Amiga isn’t it. Thanks for the script, gives me an idea where to start lol


Sent from my iPad using Tapatalk

amigafreak68k 14 October 2020 23:47

Thanks for this great script! This makes many things easier

amigafreak68k 19 October 2020 12:58

Hey @bni

I get the FileSystem not installed:

Code:

# Build AmigaOS

rdbtool amiga-os-3.1.4.hdf create size=1024Mi
rdbtool amiga-os-3.1.4.hdf init
rdbtool amiga-os-3.1.4.hdf fsadd $SRC/L/FastFileSystem version=46.20
rdbtool amiga-os-3.1.4.hdf add size=100MiB dostype=DOS3 bootable=true
xdftool amiga-os-3.1.4.hdf open part=DH0 + format $DEST DOS3
xdftool amiga-os-3.1.4.hdf open part=DH0 + unpack . fsuae

I'd write this block also in my script and get error:

Code:

creating: 'DH0' (1, 3200) DOS3
ERROR: creating partition: 'DH0': (1, 3200)
'open part=DH0' IOError: can't find partition in image file

I checked and the file exists in path... Any idea what's going wrong? Withou the FS-line, the hardfile will created properly

EDIT: Found issue byself

bni 20 October 2020 19:30

Adding the FFS into the rdb on the CF card can possibly be omitted altogether. The reason to do that is so older Kickstarts can load it and use new features that only exists in 3.1.4, like DOS7.

But I never got this to work. My real A1200 has 3.0 ROM and I use MapRom on accelerator card to load the 3.1.4 ROM. This is why I left the AmigaOS partition as DOS3, with DOS7 it didn't work for some reason.

amigafreak68k 20 October 2020 20:06

Could be to do with the different scsi.device maybe

bni 22 December 2020 18:11

A convenient way to put stuff inside the Startup-Sequence is to patch it in like this with ex.

In this example below I patch it to load a newer kickstart with MapRom and also run a NoClick exe to prevent the floppy clicking on my A1200

Code:

# Patch Startup-Sequence
ex $DEST/S/Startup-Sequence <<eof
3 insert
acatool >NIL: skiponlmb force noerrors maprom romfile "AmigaOS:Devs/Kickstarts/kick.a1200.46.143"
NoClick
.
xit
eof


vrxguy 21 January 2022 09:38

Hi, ive done this and successfully mounted and formatted the CF card in FS UAE and coppied data to the card in Amiga OS3.2
Ive now ejected it and the card dev/disk3 is not found by FSUAE I can see in in Mac Terminal
/dev/disk3 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: *16.0 GB disk3

bni 21 January 2022 21:21

By default it has restrictive permissions, I need to do:
sudo chmod 777 /dev/disk4

Before FS-UAE can access it.

Need to do this every time card is inserted.


All times are GMT +2. The time now is 18:26.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04661 seconds with 11 queries