MKLinux emulation

Discussions about *nix and Other Operating Systems should go in this forum.
Post Reply
ajfa
User avatar
Posts: 12
Joined: Tue Feb 05, 2019 3:20 am

MKLinux emulation

Post by ajfa »

Hi. Has anybody been successful at emulating MKLinux (any version) on Windows? Any help will be appreciated. For me it has been one of the hardest OS to gather info on this topic.

nero
User avatar
Posts: 5
Joined: Thu Mar 07, 2019 2:16 pm
Location: italy

Re: MKLinux emulation

Post by nero »

On windows you can try qemu-system-ppc but it's a hard job , on linux it could run on basilisk II ( https://basilisk.cebix.net/ ).
My System:
Mac Pro 5.1 6x3.46ghz 24GB ahci GT680 4GB.
Esxi 24 cpu / 96GB ram - 8*300gb sata 15k - 8 * 5tb sata - nvme cache.
48 Slot Lto tape backup - pcie Expansion with lot of passthrough.

ajfa
User avatar
Posts: 12
Joined: Tue Feb 05, 2019 3:20 am

Re: MKLinux emulation

Post by ajfa »

I've tried at least two versions of MKLinux on QEMU, Pear PC, SheepShaver, Basilisk and even CherryOS and it just does not boot.

nero
User avatar
Posts: 5
Joined: Thu Mar 07, 2019 2:16 pm
Location: italy

Re: MKLinux emulation

Post by nero »

Can you post qemu config and boot log ?
My System:
Mac Pro 5.1 6x3.46ghz 24GB ahci GT680 4GB.
Esxi 24 cpu / 96GB ram - 8*300gb sata 15k - 8 * 5tb sata - nvme cache.
48 Slot Lto tape backup - pcie Expansion with lot of passthrough.

ajfa
User avatar
Posts: 12
Joined: Tue Feb 05, 2019 3:20 am

Re: MKLinux emulation

Post by ajfa »

QEMU 3.1.50 PPC CONFIG

-L pc-bios
-boot c
-m 96
-M mac99
-prom-env "auto-boot?=true"
-prom-env "boot-args=-v"
-prom-env "vga-ndrv?=true"
-drive file=mklinux.img,format=raw,media=disk (HD formatted in OS 9.2 with hybrid HFS and 3 A/UX partitions)
-drive file=mklinuxr2rc5.iso,format=raw,media=cdrom
-sdl
-device VGA,edid=on
-g 1280x1024x32

BOOT LOG (QEMU SCREEN)

video base address = 0x81000000
Mach 3.0 VERSION(GENERIC_8-) root <osfmk>; Thu Feb 10 15:19:10 PST 2000; mach_kernel/PRODUCTION (build.mklinux.org)

MACH microkernel is booting on a Power Macintosh PCI class machine via Apple MkLinux Booter...
mem_size = 96 M
Mapping exception entry/exit 0x2000 to 0x2000 size 0x3000
kernel: mapping virt 0x00200000 t to phys 0x00200000 size 0xc9000, prot=0x5<READ,EXEC>
kernel: mapping virt 0x00400000 t to phys 0x00400000 size 0x70000, prot=0x3<READ,WRITE>
bootstrap: mapping virt 0x00471000 to phys 0x00471000 end 0x474000, prot=0x3<READ,WRITE>
bootstrap: mapping virt 0x00473000 to phys 0x00473000 end 0x4a6000, prot=0x5<READ,EXEC>
WARNING - bootstrap overlaps regions
Free region start 0x00003000 end 0x00200000
Free region start 0x002c9000 end 0x00400000
Free region start 0x004db000 end 0x00500000
Free region start 0x007c8000 end 0x06000000
vm_page_bootstrap: 22949 free pages
pci_via_base_phys changed.
pci_via_base_phys = 0x80016000
PCI_VIA_BASE_PHYS = 0XF3016000 (it halts here)

Hope this can help!

nero
User avatar
Posts: 5
Joined: Thu Mar 07, 2019 2:16 pm
Location: italy

Re: MKLinux emulation

Post by nero »

Hi , try to run with -d flag to activate debugging then look at /tmp/qemu.log to see where it hangs.
My System:
Mac Pro 5.1 6x3.46ghz 24GB ahci GT680 4GB.
Esxi 24 cpu / 96GB ram - 8*300gb sata 15k - 8 * 5tb sata - nvme cache.
48 Slot Lto tape backup - pcie Expansion with lot of passthrough.

ajfa
User avatar
Posts: 12
Joined: Tue Feb 05, 2019 3:20 am

Re: MKLinux emulation

Post by ajfa »

using -d guest_errors,cpu_reset,unimp:

CPU Reset (CPU 0)
NIP 00000000 LR 00000000 CTR 00000000 XER 00000000 CPU#0
MSR 00000000 HID0 00000000 HF 00000000 iidx 0 didx 0
TB 00000000 00000000 DECR 4294967295
GPR00 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR04 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR08 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000
CR 00000000 [ - - - - - - - - ] RES 00000000
SRR0 00000000 SRR1 00000000 PVR 000c0209 VRSAVE 00000000
SPRG0 00000000 SPRG1 00000000 SPRG2 00000000 SPRG3 00000000
SPRG4 00000000 SPRG5 00000000 SPRG6 00000000 SPRG7 00000000
SDR1 00000000 DAR 00000000 DSISR 00000000
Trying to write invalid spr 0 (0x000) at 00f113c0
Trying to read invalid spr 0 (0x000) at 00f113c8
Trying to write privileged spr 955 (0x3bb) at 00f164b8
Trying to write invalid spr 959 (0x3bf) at 00f16520
Trying to read invalid spr 959 (0x3bf) at 00f16528
Trying to write privileged spr 955 (0x3bb) at 00f164b8
Trying to write invalid spr 959 (0x3bf) at 00f16520
Trying to read invalid spr 959 (0x3bf) at 00f16528
CUDA: unknown command 0x02
CUDA: unknown command 0x08
CUDA: unknown command 0x02
CUDA: unknown command 0x02
CUDA: unknown command 0x22
CUDA: unknown command 0x22
CUDA: unknown command 0x22
CUDA: unknown command 0x22
CUDA: unknown command 0x22
CUDA: unknown command 0x22
CUDA: unknown command 0x25
CUDA: unknown command 0x22
CUDA: unknown command 0x22
CUDA: unimplemented command SET_POWER_MESSAGE 1
CUDA: unknown command 0x25
CUDA: unimplemented command SET_POWER_MESSAGE 1
CUDA: unknown command 0x24
CUDA: unimplemented command SET_POWER_MESSAGE 1
CUDA: unknown command 0x24


any ideas on what is the error?

nero
User avatar
Posts: 5
Joined: Thu Mar 07, 2019 2:16 pm
Location: italy

Re: MKLinux emulation

Post by nero »

uhmm seem to be somethink in the pci bus , you can try to play with kernel boot options to see if some pci options change somethink.
My System:
Mac Pro 5.1 6x3.46ghz 24GB ahci GT680 4GB.
Esxi 24 cpu / 96GB ram - 8*300gb sata 15k - 8 * 5tb sata - nvme cache.
48 Slot Lto tape backup - pcie Expansion with lot of passthrough.

ajfa
User avatar
Posts: 12
Joined: Tue Feb 05, 2019 3:20 am

Re: MKLinux emulation

Post by ajfa »

Thanks, I'll try tinkering with some options.

smuckola
Posts: 6
Joined: Sat Mar 23, 2019 8:59 am

Re: MKLinux emulation

Post by smuckola »

You should try asking in the qemu community, like #qemu on irc.freenode.net. :)

ajfa
User avatar
Posts: 12
Joined: Tue Feb 05, 2019 3:20 am

Re: MKLinux emulation

Post by ajfa »

Good tip, I'll do it. Thanks!

smuckola
Posts: 6
Joined: Sat Mar 23, 2019 8:59 am

Re: MKLinux emulation

Post by smuckola »

I assume MkLinux and Copland are in the same boat, because they target Old World ROMs. All Macs with PCI have OpenFirmware but anything prior to iMac has Old World. So I assume someone needs to code Old World support into qemu, maybe by dragging something out of shoebill (which can boot A/UX on virtual bare metal) and into qemu. :-(

You're using BootX in MacOS in order to boot MkLinux, right? Please do let me know what you find.

ArtiomWin
FTP Access
Posts: 55
Joined: Fri Jan 15, 2010 10:53 am

Re: MKLinux emulation

Post by ArtiomWin »

smuckola wrote:I assume MkLinux and Copland are in the same boat, because they target Old World ROMs. All Macs with PCI have OpenFirmware but anything prior to iMac has Old World. So I assume someone needs to code Old World support into qemu, maybe by dragging something out of shoebill (which can boot A/UX on virtual bare metal) and into qemu. :-(

You're using BootX in MacOS in order to boot MkLinux, right? Please do let me know what you find.
Or another way: new Macintosh emulator which based on WinUAE with code from Previous, Shoebill, QEMU and some other emulators. QEMU is not going to have full emulation of Macintosh using ROMs due to copyright issues.

smuckola
Posts: 6
Joined: Sat Mar 23, 2019 8:59 am

Re: MKLinux emulation

Post by smuckola »

What? ROMs are user data, like the operating system, and is not distributed with an emulator any more than is any other thing downloaded from this site. The copyright of user data has no bearing whatsoever on the copyright of an emulator. If qemu doesn't support Old World, it's because nobody was willing and able to code it for a bunch of weirdo archivalists, lol.

Anyway, New World Macs use a ROM, but it's just distributed as a file with the OS.

Post Reply