Skip to main content
Home Forums Motorola 68060 upgrade Motorola 68060 upgrade
Thread

Motorola 68060 upgrade

Motorola 68060 upgrade 68k 63 posts Oct 31, 2010 — Jul 31, 2023
Would it be possible to shove an 060 into my LC? Or am I just dreaming?

Depends on how you define shove. You can shove an '060 in an LC, but it won't do anything except take up space.

There are lots of threads on 68kmla where we lead the horse to water, try to make it drink, kill it, beat it after it's dead, try to ride it again, try to make it drink again, flog it some more, put on some techno and dance around it, et cetera. Just do a search for 68060.

Well, couldn't I just remove the LC040 and pop in the 060 in it's place (i'm assuming that they're socket compatible).

They're not socket compatible. For one, the m68060 is a 3.3 volt chip and the m68040 used in all Macs is a 5 volt chip. You can make or buy an adapter board, but then you have to reprogram the ROMs so that the '060 gets initialized correctly and the trap handlers know about the '060.

Simple, right?

SEARCH.jpg
I apologize for not searching this earlier. I'll shut up before this turns into another convention.

It seems straightforward at first glance but the necessary tweaks begin to multiply as you examine the details.

That is a great, succint summary of the issues involved. :lisa2:

The number one thing as mentioned is the voltage difference.

Number two is that only the "User Mode" of the 68060 is instruction-compatible with the same in the 68040. Mac OS runs in the "Supervisor Mode" of the CPU, which expressly is not 100% the same.

Ah, this old chestnut...

What Coxy said. The electrical issues aren't much of a problem, IMO. But differing instruction sets kind of make it pointless for me. Probably more fruitful to explore 040 overclocking. Unless you have the source and skills to port some classic MacOS to 060, in which case I would say go for it!

You would need a ROM upgrade as well won't you?

Depending on the complexity, it could be possible to translate the incompatible instructions in hardware with an FPGA. This would allow the original Mac ROM and OS to continue working. If the substituted instruction is shorter than the original 040 code, NOPs can simply be inserted to direct the program counter back to the proper spot. But if the substituted instruction is longer than the original 040 code, things become more complicated pretty fast. You would have to line the program counter back up with a backwards jump and make absolutely sure that the condition codes were preserved. This would cause hiccups in cycle-exact-timed code, I'm not sure if that's a problem or not.

If the only issue is in ROM, it may be easier to fix it in software by opening the ROM, translating it, and burning it to new chips.

To reiterate earlier threads on this issue: by which time you may as well have done the same for a 200MHz+ ColdFire processor.

The 68060 processor costs something like $200+ new. Sure, they're available on the used market for about $50 but not reliably. Brand new Coldfire processors are less than $30 and easy to buy and probably almost as compatible in slightly different ways as a 68060 is almost compatible.

If the only issue is in ROM, it may be easier to fix it in software by opening the ROM, translating it, and burning it to new chips.
To quote from the "NATIVE CPU" section of the Basilisk II TECH documentation:

Code:
    d) 68060 systems are a small problem because there is no Mac that ever
       used the 68060 and MacOS doesn't know about this processor. Basilisk II
       reports the 68060 as being a 68040 to the MacOS and patches some places
       where MacOS makes use of certain 68040-specific features such as the
       FPU state frame layout or the PTEST instruction. Also, Basilisk II
       requires that all of the Motorola support software for the 68060 to
       emulate missing FPU and integer instructions and addressing modes is
       provided by the host operating system (this also applies to the 68040).
If you're enough of a coding wizard to do it it might be perfectly feasible to extract the 68040 support software from an existing Quadra-class Mac ROM and replace it with the 68060's code bundle. The BasiliskII authors know where to prod it.

The salient point in all of this, which gets reiterated every time someone makes a new thread about this, is that unlike x86 CPUs, in which newer CPUs with the exception of a few model-specific hardware control instructions are essentially always superset implementations of earlier models, Motorola's CPUs essentially peaked in complexity with the three-part MC68020+68851PMMU+MC68881/2 FPU chipset and that all subsequent models have actually *trimmed down* bits of the basic instruction set (particularly supervisor-mode and FPU instructions) and replaced the missing pieces with exceptions which jump to a software support bundle which then emulates the lacking function. Thus for all practical purposes you can't go beyond the 68040 without addressing this *software issue*. The idea of trying to trap the incompatibilities with some sort of hardware FPGA in front of the CPU is pretty laughable... it would require an instruction decoder sophisticated enough that at that point you might as well just create a whole CPU which is fully 68040 compatible. (But faster obviously, which would be a hugely challenging "garage project".)

The progress the ST people have had with their Atari Coldfire project indicates it *just might* be feasible to use a software library and some patching to run Mac II/Quadra ROM code and binaries on a newer CPU, but ironically it'd probably be much easier to do this in the form of a completely new-build "Coldfire Mac" board leveraging Basilisk II-style ROM patches for *all* the peripherals than it would be to do it in the form of an accelerator card for a real Mac. Such a machine equipped with the fastest Coldfire CPUs available might run 68k code about as fast as a mid-level G3 machine. (Of course, the G3 will completely crush the Coldfire running programs that have PowerPC binaries available.) If someone is really dying to embark on a multi-year project, well... it's an idea.

You could also check on the Natami website. It is a project aiming at building a modern 68k Amiga computer. The CPU is emulated within a FPGA and is 68040 compatible. I think I read somewhere that the performances where similar to a 100 (or was it 166?) mhz 68040, which is already quite impressive.

Obviously, the product is not finished and I don't know how much work would be required to run Mac OS on top of it. :)

I think I've proven that I know very little about the differences from 040 to 060. It's an interesting idea though.

I would rather see an overclocked 68040 chip on a PDS card with some cache and modern high speed RAM. There is a new accelerator for the Amiga 600/1200 series that has a much faster modern RAM on the card and the speed improvement is pretty good (using a real 68030 CPU).

http://www.amiganews.de/en/news/AN-2010-09-00024-EN.html

The issue is few 68K mac users would bother paying for it. I have a 68040/50 with 128K cache in one of my 950's and it does rock, if you could mount that on a PDS card and stick in some super fast RAM it would be much faster and still be 100% compatible with all software that works on a 68040. Still there is a limit on how much I would pay for that setup.

If you are going to hack a CPU like a 68060 you might as well go PPC and then you might as well just get a newer mac for little on the used market. Amiga users spend the cash because there are no PPC Amigas to buy (well outside of a few super expensive rare upgrades and the A1 which will run old apps under emulation anyway).

Off topic, but there's the SAM Flex units if you want to buy a PowerPC Amiga. The CPU is a PowerPC 440, which is a bit dire spec-wise compared to the G4, for example, but the architecture is impressively solid (I used one at a Commodore festival in Las Vegas and AmigaOS 4 -- now that it has a useful selection of web browsers between Timberwolf [Firefox 3.5] and Origyn Web Browser [WebKit] -- is really quite practical as a day-to-day OS now).

I use my Amigas mostly for old games , so a 68000 to 68030 are perfect for what I need. Spending decent money for a slow glorified web browser is not my idea of a good deal.

Natami / I don't know how much work would be required to run Mac OS on top of it. :)
Dump all the Amiga chipset stuff, and then port all the Mac motherboard ASICs etc and peripherals. Not simple, especially as the documentation on some is less than definitive.

Just for random kicks, why not just emulate the 68060 and all necessary adaptions inside the FPGA? Even better, emulate both the 68040 and the 68060 in the FPGA and find a way to route all 68040 operations to the 68040? While your at, find a way to use them as some kind of dual-core setup that's masked to the mac os as one 68060.

Sure, let's make it give the user a backrub and a cup of coffee as well.

guys, really, its nothing like emulation,

an FPGA implements the real gates of ur chosen real or imaginary chip.

It isnt even close to emulation.

it a gate array.

call it what u will - but its clearly not emulation.

You might be correct to say that it's nothing like software emulation, but emulation is emulation. It's not simulation.

FPGA implemented CPU cores are not very fast even on larger and more expensive FPGAs. The Natami project, for example, uses a real m68060 because the softcores are not as fast as a real m68060.

The m68060, you must remember, is no slouch. I'm often reminded because I see my m68060 systems (60 and 66 MHz) outrunning 133 MHz SH3, 100 MHz MIPS, 100 MHz SPARC, and 72 MHz VAX systems is most things as well as 200 and 233 MHz StrongARM systems in certain things.

If you really want m68k MacOS on an m68060, your best bet is an Amiga with an '060 accelerator or something like the Natami running AmigaOS with ShapeShifter to run MacOS. One of the good things about running under AmigaOS is that you get certain improvements such as a real multitasking OS which can do things when MacOS would typically busy-wait (such as when disk activity is going on).

Since you brought it up and since I've been considering buying a very modern Miggy, how does the Natami compare to, say, one of the SAM Flex PPC boards? It would be nice to run AmigaOS 4, but if the Natami is significantly faster ...

The Natami won't run AmigaOS 4 any time soon because the main processor is an m68k, not PowerPC. Also, I don't think Natamis are for sale yet.

But if you're Ok with running AmigaOS 3.x and not 4, then my guess is that the Natami would run circles around other systems which emulate the Amiga chipset because they've reimplemented AGA and the original chipset, but in a highly modernized way (128 megs of ChipRAM, anyone?)

Personally I think the amount of hardware which AmigaOS supports is too small. I prefer what the MorphOS people did - porting the OS to run on PowerMac hardware opened up possibilities for many more people. I have a PowerPC Mac mini which is wonderfully fast, tiny, and works well with modern peripherals, and if I had the option to run AmigaOS on it, I'd definitely do it.

I'm happy MorphOS runs on minis, but good grief, it needs to run on {i,Power}Books more (and the hardware is so similar between minis and iBooken that I can't believe they're not doing this or at least not planning to). There are plenty of POWER desktop form factors but very few laptops.

I know I would be limited to AmigaOS 3.x on a 68K, and I would be fine with that if the Natami were significantly better/higher performance. Still, 4.0 is pretty practical as an OS. I played with a SAM Flex at the last Commodore fair I went to and found I could do most of my daily tasks including net access (Origyn, Timberwolf, etc.). If I didn't have such a huge Mac investment I'd probably switch to Amiga, and if MorphOS gets certified for iBooks then I will be putting it on my spare for sure.

Btw, got my POWER6 server coming soon! I wanted a POWER7, but this will still do nicely. (2-way 4.2GHz)

Btw, got my POWER6 server coming soon! I wanted a POWER7, but this will still do nicely. (2-way 4.2GHz)
Tell me that you're going to get NetBSD running on it... }:)

No, it's AIX. I like AIX, actually. I'm that kind of jackbooted thug sysadmin that the old rec.humor.funny posting warned about. :p

Which posting was that? I'm personally more of this kind (without the suspenders and only sometimes with a beard):

nickel_for_computer.png.b85dffc2829e19e368fb169602e3fdd5.png


Run Sheep Shaver on it. Let us know how OS 9 runs on a Power6. :)

mp.ls