Basilisk II Atari

General Discussion, STOS.
User avatar
agranlund
Site sponsor
Site sponsor
Posts: 1752
Joined: 18 Aug 2019 22:43
Location: Sweden

Re: Basilisk II Atari

Post by agranlund »

DoG wrote: 27 Mar 2022 17:04 That was actually one of the previous versions I did. Most Atari's got the MIDI port next to the cartridge port so that version got scratched since you couldn't fit the connectors properly (MIDI and 3,5 jack from MV16 at the same time). I don't have one of the early models of ST so I never thought about it.
Ah, of course! Yeah that makes perfect sense.
DoG wrote: 27 Mar 2022 17:04 I probably have some board left of that MV16 version. Do you want just an empty PCB? I don't think I have any components left to solder one up. I might have one already finished, since I did some testing with it, but I'm not sure. But I won't have access to all that anyway until earliest Easter weekend.
There's absolutely no rush but if you have an empty PCB laying around I'd be more than happy to purchase one.
If they're using the same components I'll just transfer the ones from the version I have (or if not, I'll get some new ones :))
User avatar
agranlund
Site sponsor
Site sponsor
Posts: 1752
Joined: 18 Aug 2019 22:43
Location: Sweden

Re: Basilisk II Atari

Post by agranlund »

@Badwolf , I'm not convinced this is a great idea but here goes :)
There is a build available, for you and anyone else on this forum, that allows you to use direct device access.

http://www.happydaze.se/wp-content/uplo ... 20329.zip

To enable:
"diskdevmode x"

where x can be:
0 = disabled
1 = enable XHDI
2 = enable AHDI
3 = enable XHDI or AHDI (XHDI has priority)

HDDriver and EmuTOS's built-in drivers support both XHDI and AHDI3.0. I haven't had a chance to try out other drivers yet.
XHDI is generally the better choice if the driver supports it and it's able to do at least some basic sanity checks on the settings.
Normally you'd want this setting to be 3 unless wanting a specific mode for testing or debugging purposes.

Speedometer scores seem to hover around x1 for stuff on the 8Mhz bus which makes sense.
In practice it seems to perform better on MacOS's scattered and cache-unfriendly blocks reads so at least to me it feels snappier and faster compared to disk images in MiNT (which actually scores higher in Speedometer due to caching)

Super important:
Your device must have a physical block size of 512 bytes.
I'm assuming they all do, but I recommend you to double check with a tool of your choice. You can verify physical block size with HDDrivers utils:

blocksize.png

Also important:
Maybe test in Hatari first.
Backup or disconnect stuff that contains data that you really don't want to risk being destroyed
Even stuff on devices you are not going to use for BasiliskII.
A bad setting, or bugs, could easily make it trash your real partitions...

Known issue:
The disk becomes unbootable if MacOS is not shut down correctly.
It's fully intact but it seems to loose its blessed status for reasons I am still not sure about.
I don't know if this is specific to my particular setup or if it would happen to everyone, and I haven't been able to reproduce it in Hatari.
Would love to hear if others get the same result on unclean shutdowns.

If it happens, you're going to need to boot from another disk so that you can re-bless it and make it bootable again.
Here's a link to a super tiny System7.5 boot floppy which has the "Startup Disk" control panel.
I usually have this mounted as the second disk so if the real boot disk becomes unblessed it starts into this one instead.
http://www.happydaze.se/wp-content/uplo ... .img_.zip

And with all that out of the way..
There are two ways to create disks, both ends up being the same thing internally but one is a bit higher level in terms of configuration and restricted inside partitions, while the other one simply don't care and allows you to do whatever you want :)


---- raw ----


disk raw:<drive letter>:<start>:<size>

start and size are optional, so at the simplest form it could look just like this:
"disk raw:d"

drive letter = the drive letter for the RAW partition
start = offset in the partition. 0 means Mac disk starts at beginning of the partition.
size = the number of blocks that MacOS will use as a harddrive

You are going to need a driver that recognise and assigns drive letters to RAW partitions.
And some way to create them of course :)
HDDriver is able to create RAW partitions, or even change an existing partition into a RAW one if you want.

If you are using AHDI mode, and it's the last partition on the disk, then you must supply those otherwise optional parameters.
This example partition has 498046 blocks, so you would need to use:
"disk raw:d:0:498046"

rawdisk.png

Those optional parameters are quite useful if you want to make multiple Mac disks inside a single RAW partition.
For example, split in two like this:
"disk raw:d:0:249023"
"disk raw:d:249023:249023"


---- dev ----


dev:<majorID>.<minorID>:<start>:<size>

It'll use <size> number of block, starting at block <start> on the specified device.
It does not care about partitions. It will use that physical block range regardless of how the disk was partitioned. Or not partitioned, that works too, it won't care. So yeah... be careful.

Taking the example screenshot of that raw partition above, the following three settings would do exactly the same thing:
"disk raw:d"
"disk raw:d:0:498046"
"disk dev:16.0:498048:498046"

One case where this is useful is if you want to use unpartitioned "wasted" space on a device, without having to re-partition.
Or if you simply don't want to clutter TOS with unusable RAW partition drive letters..

For example like this, two TOS partitions for Atari stuff followed by 434MB of unpartitioned space where we could "hide" MacOS disks.
The last real partition appears to ends at block (498048 + 498046 - 1) so if I wanted to make a 400MB MacOS disk in the unused space I could do something like this:
"disk dev:16.0:996093:819200

devdisk.png

So, how do I know the device ID?

You can check in HDDriver. If you have partitions on the device then you can check under Drive Details for either of those.
It will say the Major and Minor IDs of the device.

The numbers displayed in the main Device window are shown in a different format.
I don't know if this is by choice or if it's a bug? It's easy enough to figure it out from there as well though:

majorID is 0 for ACSI, 8 for SCSI, 16 for IDE
minorID is the device number on that particular bus.

If HDDRiver says "SCSI 7.0" then that means MajorID=8 (because it's SCSI) and MinorID=7
"IDE 0.0" becomes MajorID=16, MinorID=0
"ACSI 1.0" becomes MajorID=0, MinorID=1

Have fun, please don't wreck your harddrives... :)
Don't forget to backup your existing Atari drives before trying etc etc.
You do not have the required permissions to view the files attached to this post.
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7376
Joined: 13 Nov 2017 19:19
Location: Oxford, UK.

Re: Basilisk II Atari

Post by stephen_usher »

I'm waiting for the raw floppy access. :-)
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
shoggoth77
Posts: 22
Joined: 08 Mar 2022 20:08

Re: Basilisk II Atari

Post by shoggoth77 »

This is badass.
User avatar
agranlund
Site sponsor
Site sponsor
Posts: 1752
Joined: 18 Aug 2019 22:43
Location: Sweden

Re: Basilisk II Atari

Post by agranlund »

stephen_usher wrote: 29 Mar 2022 22:04 I'm waiting for the raw floppy access. :-)
At first I thought... why?
But now I realise your TT has a 1.4MB floppy drive and it all makes sense :)

might have to order myself one of those 1.4MB floppy conversion kit things from the exxos store.
Steve
Posts: 3305
Joined: 15 Sep 2017 11:49

Re: Basilisk II Atari

Post by Steve »

Next try running MagicMac68k within BaseliskII within Atari, real inception! :D
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3043
Joined: 19 Nov 2019 12:09

Re: Basilisk II Atari

Post by Badwolf »

Hi Anders,

Had half an hour free last night to give this a quick run out using your new supplied config file (so the LCiii ROM).

Sound seems pretty good to me, but not really sure what to test.




After a little bit of fiddling I also got the raw disc access to work (I initially failed to turn on its master enable :oops: ) and successfully copied all the files from the example disc image over to it, and then could boot from the new raw one. Not had any time to run tests on it further to that yet, however.

I found the mouse pointer to be quite jerky under plain TOS (& HDDriver) when performing any kind of disc access, but this wasn't evident in MiNT.

The only proper bug I have to report is on the GUI. Choosing quit from the menu hangs the system under both TOS and MiNT.

Great work as ever.

BW

EDIT

Ach, sorry, I only just saw you provided a Lemmings test environment. Next time!
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
frank.lukas
Posts: 812
Joined: 19 Jan 2018 11:52

Re: Basilisk II Atari

Post by frank.lukas »

Badwolf wrote: 01 Apr 2022 10:42 Choosing quit from the menu hangs the system under both TOS and MiNT.
On my PAK machine Macintosh Shutdown works fine and it go back to TOS. When I do a Restart my System hangs.
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3043
Joined: 19 Nov 2019 12:09

Re: Basilisk II Atari

Post by Badwolf »

frank.lukas wrote: 01 Apr 2022 11:33
Badwolf wrote: 01 Apr 2022 10:42 Choosing quit from the menu hangs the system under both TOS and MiNT.
On my PAK machine Macintosh Shutdown works fine and it go back to TOS. When I do a Restart my System hangs.
Sorry, if I weren't clear, the hang I see is from Anders' new configuration GUI.

I didn't think to try a restart from within System 7. Shutdown does work nicely.

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3043
Joined: 19 Nov 2019 12:09

Re: Basilisk II Atari

Post by Badwolf »

Following with DFB1, Falcon IDE, HDDriver + MiNT(w/memprot) unless otherwise stated.

Just ran the Speedo on the raw disc:

IMG_0349.JPG

Bentley, the luxury car manufacturer, used to describe their acceleration as 'adequate'. I feel this is more than adequate. ;)

'Restart' has variously caused the Falcon to hang with a black screen or with a sad Mac (0000000F, 0000000A) under MiNT. It exits back to the desktop under TOS.

Regarding uncontrolled shutdown, I once was getting a bus error under MiNT when trying to start up again. Similar to that memory violation issue seen previously. However I've been unable to reproduce that and it's been booting up fine from a physical reset without shutdown since under both MiNT and TOS.

Sound: had a go with Lemmings. Works a treat in FX and Music mode.

Exiting the GUI: also hangs under TOS.

Hope that's of some use, Anders! :)

BW
You do not have the required permissions to view the files attached to this post.
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark

Return to “SOFTWARE”

Who is online

Users browsing this forum: ClaudeBot and 3 guests