cnvogelg / amitools

Various tools for using AmigaOS programs on other platforms
250 stars 69 forks source link

[Question] Using xdftool to format a partition for KickStart/AmigaDOS 1.3 direct usage #177

Closed vanfanel closed 1 year ago

vanfanel commented 1 year ago

Hello there

I am perfectly able to format a partition inside an HDF image like this, with the dostype that AmigaDOS 1.3 expects:

xdftool test.hdf open part=dh0 + format Amiga 0x444F5301

However, KS/AmigaDOS 1.3 won't recognize this format (KS/AmigaDOS 3.x can use it perfectly), and I have to re-format it from AmigaDOS in order to use it (which can be an slow process...).

How can I use xdftool (or any other amitool) to format the partition so KS/AmigaDOS 1.3 can use it directly, please?

cnvogelg commented 1 year ago

Hi @vanfanel,

I create a OS1.3 compatible disk image the following way:

First create an RDB with the desired partitions and add the (OS1.3 compatible) FFS module, otherwise you can't boot from DOS1:

$ rdbtool -f wb13.rdb create size=20M + init + fill dostype=DOS1 bootable=1 + fsadd ffs-dos13 dostype=DOS1 + list
creating: 'DH0' (1, 1219) DOS1
BlockDevice:                0     1219       39040   19Mi  heads=1 sectors=32 block_size=512
PhysicalDisk:               0     1219       39040   19Mi  heads=1 sectors=32 block_size=512
LogicalDisk:                1     1219       39008   19Mi  rdb_blks=[0:31,#32] used=[hi=27,#28] cyl_blks=32
Partition: #0 'DH0'         1     1219       39008   19Mi  100.00%  DOS1/0x444f5301  auto  boot(0)
FileSystem #0 DOS1/0x444f5301 version=0.0 size=12248 seg_list_blk=0x3 global_vec=0xffffffff

ffs-dos13 is the Executable from L:FastFileSystem of a OS13 setup

Now its time for format it:

$ xdftool wb13.rdb open 0 + format MyWB13 dostype=DOS1 + pack wb135 + list

I use pack here to pre-fill the file system with a host directory wb135 of install files...

Then the *.rdb should boot on emulators and on the real thing...

vanfanel commented 1 year ago

@cnvogelg Thanks for that! Really helpful and useful! :)