@afxgroup Maybe I'm missing what you're trying to do but if you have an iso that has some kernel and initrd on it. Why can't you boot the iso directly? (Are you trying to run an iso not intended for the machine that's emulated?) Or if you want to use -kernel -initrd -append why don't you mount the iso and copy the needed files from it? I don't see where's the problem.
Because it isn't working. Why don't you try to run it? I've tried several ppc iso and uboot doesn't boot anyone of them. Using virtio I can see the HD and the cd using virtio scan and info. If I add an ahci controller I can see it in pci list but none of them it is booting. If you find an iso that is working please tell me please where I can download it and give me the exact command line that works with e500
I think the easiest way is to ask @xeno74, he's probably been doing this for over 10 years (Qemu PowerPC). Most of it is related to "kvm", but he may have tried it without it. At least I don't know, and maybe @balaton doesn't either, because we haven't looked into it (I'm writing for myself). If you've already asked him, sorry for the spam.
add the cdrom and install ... I don't have time to install at the moment. I know how to do it and that's enough for me. - why don't you try this? qemu-system-ppc -machine ppce500 -nographic -cpu e500mc -serial mon:stdio -kernel vmlinux -initrd initrd.gz -device virtio-balloon-pci -device virtio-rng-pci -device virtio-blk-pci-transitional,drive=drive0 -drive file=Linux_e500. hdf,if=none,id=drive0,format=raw -append 'console=ttyS0,115200' -drive file=virtio-win.iso,media=cdrom,index=3 -drive if=virtio,file=install.iso,index=5,media=cdrom --
and by the way ... why should i torture my weak laptop when i can run on some remote powerful machine - video playback and gaming i don't care about ? it's been a long time since I played with Qemu ; -(
I need your files because I don't have any of them. No kernel, no initrd and so on. I have only the iso files and of course you don't have to give me them. Just the minimum to make the machine work correctly like yours
@afxgroup You're hard to please. Did you read what @smarkusg wrote? He told you that >>running with vmlinuz and initrd with ubuntu-14.04-server-powerpc.iso "install/e500"<< so go downlod that ISO and get the files from it and try the command line that was also given. The vmlinuz and initrd are on the CD so if you have the ISO you also have the files.
Well, don't you think i've tried lot of distros without results? I've donwloaded ubuntu-14.04-server-powerpc.iso, extracted vmlinux and initrd.gz, downloaded a file called wirtio-win.iso from a fedora web site.. and then nothing happens when I run the command. qemu seems stuck. Not only. Not all distro has the same kernel file. For example freebsd has a file called KERNEL but not initrd.gz. That's why I'm asking for something ready that is working for someone. Is it so hard to share two files?
@afxgroup The command @smarkusg showed boots for me, I see the ubuntu installer starting with it so if it does not boot for you you're doing something wrong and giving you vmlinuz/initrd won't solve your problem. Maybe you could at last tell what are you trying to boot. Is that supposed to run on e500 at all?
I'm trying to run an e500v2 machine. Not Mc, not M1. A v2 because I need to test math library under linux I've also found a powerpc spe freebsd version but same result
Oh it's that processor "Tabor"....SPE.... Well that could be a problem. But probably not even qemu related. It is gone in the Linux world. in GCC as well. I hope the AmigaOS world will deal with it
To the specifics: The only hope is to search the debian archive and the "powerpcspe" project. It fell out of the debian port in 2019. It is in the archives here you can look for libraries and kernels. But the system kernel itself is not everything.
One entry blows the general pessimism I found
"Could you not enable FPU emulation in the kernel by default? It would probably help compatibility and it would probably be possible to run Ubuntu 14.04 for powerpc in chroot. And it would probably help Debian as well. Debian's powerPCSPE port for E500v2 somehow works, but when you upgrade to the latest libc 2.19 it falls back on illegal instructions, and I'm guessing it's because the proper FPU is missing and emulation in the kernel is disabled (and some libraries are compiled badly in Debian, so it needs that). At least in the kernel log it looks the same as when I debootstrap Ubuntu and chroot to it and it immediately drops illegal instructions as well. At least I'm guessing it's FPU emulation, since the kernel for e500v2 is here https://launchpad.net/ubuntu/trusty/+p ... ge-3.13.0-65-powerpc-e500 and the packages are the same as the rest of the powerpc world, so maybe just a missing FPU that can be emulated (slowly) in the kernel."
Here you have the three branches of the Linux kernel:
question: is it possible to have a debugger running over an emulated (QEmu?) version of AmigaOS4? Does something like this exist? Some debugger that works outside the emulation sandbox and monitors/writes everything that happens to f.e. registers, stack etc. INSIDE the emulation?
Would that maybe create more information after a program crashes, maybe even helpful backtraces (or step by step debugging?)?
Grim Reaper and even the serial log doesn't really help for me (tried with crashes numerous times), especially when using shared objects.
I'm interested trying out emulating OS4 on my pc.. i use a fast pc but, i'm wondering what OS version to use, i have my 460ex and the Boot Cd/ISO for OS4.. and i also have OS4 Classic for PPC boards. i don't have Pegasys OS4, is it needed? also i read much of the information guides for made by balaton, assuming it his work. And seems i can use what i have to make it work, but is it the best?
My pc is Win11 AMD CPU 7900X + 7900 XTX GPU.. what is the best way to get OS4 emulated on this system?
nox
Sam460ex 2GB 120Gb SSD&1Tb HD7750 Envy24HT A-Eon Drv 2.10+Warp3D New Uboot Apollo v4 Standalone
@noXLar The Classic iso won't work with QEMU (it should work with UAE that emulates classic machine but needs QEMU plugin for PPC) but the sam460 version runs with QEMU's sam460ex machine. Make sure to use the latest 9.0-rc1 or rc2 for now (final 9.0 will be released in about 2 weeks) for sam460ex as 9.0 should be much faster for sam460ex than previous QEMU versions. With QEMU 9.0 there's probably not that much difference between pegasos2/amigaone and sam460ex versions any more so if you already have that no need to get another one. The sam460ex version is also easier to install as the firmware is included with QEMU and the SM502 driver is on the iso so it should just boot without any fiddling that's needed to get the pegasos2/amigaone versions running and it's closest to real machine in installation. Pegasos2/amigaone might still run a bit faster but with QEMU 9.0 it's probably not that big difference any more as the biggest issue was solved that made sam460ex emulation slower.
Pegasos2/amigaone might still run a bit faster but with QEMU 9.0 it's probably not that big difference any more as the biggest issue was solved that made sam460ex emulation slower.
Depends on the software you want to use, and how good the AltiVec emulation of QEmu is. On a real AmigaOne/Pegasos2 with G4 CPU AltiVec optimized software can be much faster than a non-AltiVec version.