Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
76 user(s) are online (53 user(s) are browsing Forums)

Members: 2
Guests: 74

Swisso, billyfish, more...

Support us!

Headlines

 
  Register To Post  

« 1 (2) 3 »
Re: QEMU, e500 and Linux
Not too shy to talk
Not too shy to talk


See User information
@afxgroup

Ubuntu trust server 14.04 powerpc iso - there on the disc is this kernel in the e500mc directory.

https://old-releases.ubuntu.com/releases/trusty/


It is possible that from the useful links you may be able to preface (I do not know if this is current ) :

https://wiki.debian.org/PowerPCSPEPort

and I think there is some FreeBSD port but I don't know if that interests you at all and if it will work on QEMU

13.2 powerpcspe MPC85XXSPE
https://download.freebsd.org/releases/ ... werpcspe/ISO-IMAGES/13.2/


Maybe someone has inresed more about this. That's all my meager knowledge allowed to come up with something
I hope something will be useful

Go to top
Re: QEMU, e500 and Linux
Quite a regular
Quite a regular


See User information
@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.

Go to top
Re: QEMU, e500 and Linux
Amigans Defender
Amigans Defender


See User information
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'm really tired...
Go to top
Re: QEMU, e500 and Linux
Not too shy to talk
Not too shy to talk


See User information
@afxgroup

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.

Go to top
Re: QEMU, e500 and Linux
Not too shy to talk
Not too shy to talk


See User information
@afxgroup


Needed to see the e500 for a while because I need one. I don't have time to install it but it works ?

./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=SDK.hdf,if=none,id=drive0,format=raw,bus=0,unit=-append 'console=ttyS0,115200'

[    0.000000Using QEMU e500 machine description
[    0.000000Memory CAM mapping64/64 Mbresidual0Mb
[    0.000000Initializing cgroup subsys cpuset
[    0.000000Initializing cgroup subsys cpu
[    0.000000Initializing cgroup subsys cpuacct
[    0.000000Linux version 3.13.0-24-powerpc-e500 (buildd@sagari) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #46-Ubuntu SMP Thu Apr 10 19:38:27 UTC 2014 (Ubuntu 3.13.0-24.46-powerpc-e500 3.13.9)
[    0.000000Found initrd at 0xc4000000:0xc47f1cc6
[    0.000000CPU maps initialized for 1 thread per core
[    0.000000bootconsole [udbg0enabled
setup_arch
bootmem
qemu_e500_setup_arch
()
arch: exit
[    
0.000000Zone ranges:
[    
0.000000]   DMA      [mem 0x00000000-0x07ffffff]
[    
0.000000]   Normal   empty
[    
0.000000]   HighMem  empty
[    
0.000000Movable zone start for each node
[    0.000000Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]
[    
0.000000MMUAllocated 1088 bytes of context maps for 255 contexts
[    0.000000PERCPUEmbedded 13 pages/cpu @c0eb4000 s28800 r8192 d16256 u53248
[    0.000000Built 1 zonelists in Zone ordermobility grouping on.  Total pages32512
[    0.000000Kernel command lineconsole=ttyS0,115200
[    0.000000PID hash table entries512 (order: -12048 bytes)
[    
0.000000Dentry cache hash table entries16384 (order465536 bytes)
[    
0.000000Inode-cache hash table entries8192 (order332768 bytes)
[    
0.000000Sorting __ex_table...
[    
0.000000allocated 262144 bytes of page_cgroup
[    0.000000please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Cannot allocate SWIOTLB bufferMemory: 106396K/131072K available (8296K kernel code, 496K rwdata, 2532K rodata, 532K init, 2138K bss, 24676K reserved, 0K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfff5f000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffbfe000..0xffc00000  : early ioremap
[    0.000000]   * 0xc9000000..0xffbfe000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU dyntick-idle grace-period acceleration is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] mpic: Setting up MPIC " OpenPIC  " version 1.2 at fe0040000, max 1 CPUs
[    0.000000] mpic: ISU size: 256, shift: 8, mask: ff
[    0.000000] mpic: Initializing for 256 sources
[    0.000000] clocksource: timebase mult[2800000] shift[24] registered
[    0.000000] Console: colour dummy device 80x25
[    0.012587] pid_max: default: 32768 minimum: 301
[    0.013929] Security Framework initialized
[    0.020502] AppArmor: AppArmor initialized
[    0.020822] Yama: becoming mindful.
[    0.026378] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.026830] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.044777] Initializing cgroup subsys memory
[    0.045566] Initializing cgroup subsys devices
[    0.045945] Initializing cgroup subsys freezer
[    0.046318] Initializing cgroup subsys blkio
[    0.046665] Initializing cgroup subsys perf_event
[    0.047029] Initializing cgroup subsys hugetlb
[    0.048438] ftrace: allocating 25121 entries in 74 pages
[    0.111801] e500 family performance monitor hardware support registered
[    0.137390] Brought up 1 CPUs
[    0.158043] devtmpfs: initialized
[    0.164697] EVM: security.selinux
[    0.165032] EVM: security.SMACK64
[    0.165247] EVM: security.capability
[    0.178365] regulator-dummy: no parameters
[    0.182004] NET: Registered protocol family 16
[    0.186886] cpuidle: using governor ladder
[    0.187441] cpuidle: using governor menu
....
[    2.690418] virtio: module verification failed: signature and/or  required key missing - tainting kernel
[    2.750186] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003)
[    2.762086] virtio-pci 0000:00:02.0: enabling device (0000 -> 0003)
[    2.774860] virtio-pci 0000:00:03.0: enabling device (0000 -> 0003)
[    2.783480] virtio-pci 0000:00:04.0: enabling device (0000 -> 0003)
[    4.246321] blk-mq: CPU -> queue map
[    4.246636]   CPU 0 -> Queue 0
[    4.269292]  vda: RDSK (512) vda1 (DOS^A)(res 2 spb 1) vda2 (SFS^@)(res 2 spb 1)


I plugged in some disk image and "SDK.hdf"

# cat /dev/vda
RDSK@��[k������������������������������������@@@@?�PART@-�BOOT��@�������DOSPART@�3������DH0��?@�������SFSDOS<>��Amiga PartitionSectorSize=512 Surfaces=1 SectorsPerBlock=1 SectorsPerTrack=1280 Reserved=2 PreAlloc=0 LowCyl=1 HighCyl=147 BootPri=0 DosType=0x444f5301 Name=BOOT Date=2023-03-30^C
#


sees ...

running with vmlinuz and initrd with ubuntu-14.04-server-powerpc.iso "install/e500"

I don't have time to install the system currently.

Go to top
Re: QEMU, e500 and Linux
Amigans Defender
Amigans Defender


See User information
Well,
Can you please send me everything?
I mean vmlinux and so on?

Thanks

i'm really tired...
Go to top
Re: QEMU, e500 and Linux
Not too shy to talk
Not too shy to talk


See User information
@afxgroup
why do you need my files?

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 ; -(


https://streamable.com/ljzstj


thanks @afxgroup for reminding me !!!

Go to top
Re: QEMU, e500 and Linux
Amigans Defender
Amigans Defender


See User information
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

i'm really tired...
Go to top
Re: QEMU, e500 and Linux
Quite a regular
Quite a regular


See User information
@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.

Go to top
Re: QEMU, e500 and Linux
Amigans Defender
Amigans Defender


See User information
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?

i'm really tired...
Go to top
Re: QEMU, e500 and Linux
Quite a regular
Quite a regular


See User information
@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?

Go to top
Re: QEMU, e500 and Linux
Amigans Defender
Amigans Defender


See User information
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

i'm really tired...
Go to top
Re: QEMU, e500 and Linux
Not too shy to talk
Not too shy to talk


See User information
@afxgroup

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:

https://snapshot.debian.org/archive/de ... erpcspe/main/l/linux-2.6/
https://snapshot.debian.org/archive/de ... -powerpcspe/main/l/linux/
https://snapshot.debian.org/archive/de ... -powerpcspe/main/l/linux/
you need to rebuild the initrd


There are also whole libraries to install under the e500v2

If someone has time ... a lot of time ... a lot of time and a lot of time can try it

qemu-system-ppc -cpu e500v2 -M mpc8544ds -m 2048 -nographic -kernel uImage-2.6.32-5-powerpcspe-smp  -append 'console=ttyS0,115200' -serial mon:stdio -smp 2                                         
[    0.000000Using MPC8544 DS machine description
[    0.000000Memory CAM mapping256/256/256 Mbresidual1280Mb
[    0.000000Initializing cgroup subsys cpuset
[    0.000000Initializing cgroup subsys cpu
[    0.000000Linux version 2.6.32-5-powerpcspe-smp (Debian 2.6.32-27+powerpcspe1) (bigeasy@linutronix.de) (gcc version 4.4.4 (Debian 4.4.4-4+powerpcspe4.5) ) #1 SMP Thu Nov 18 23:53:20 UTC 2010
[    0.000000CPU maps initialized for 1 thread per core
[    0.000000bootconsole [udbg0enabled
setup_arch
bootmem
mpc85xx_ds_setup_arch
()
[    
0.000000Found FSL PCI host bridge at 0x00000000e0008000Firmware bus number0->255
[    0.000000PCI host bridge /pci@e0008000  ranges:
[    
0.000000]  MEM 0x00000000c0000000..0x00000000dfffffff -> 0x00000000c0000000 
[    0.000000]   IO 0x00000000e1000000..0x00000000e100ffff -> 0x0000000000000000
[    0.000000] /pci@e0008000PCICSRBAR 0xfff00000
[    0.000000MPC85xx DS board from Freescale Semiconductor
arch
: exit
[    
0.000000Zone PFN ranges:
[    
0.000000]   DMA      0x00000000 -> 0x00030000
[    0.000000]   Normal   0x00030000 -> 0x00030000
[    0.000000]   HighMem  0x00030000 -> 0x00080000
[    0.000000Movable zone start PFN for each node
[    0.000000early_node_map[1active PFN ranges
[    0.000000]     00x00000000 -> 0x00080000
[    0.000000MMUAllocated 1088 bytes of context maps for 255 contexts
[    0.000000PERCPUEmbedded 9 pages/cpu @c151e000 s13152 r8192 d15520 u65536
[    0.000000pcpu-allocs13152 r8192 d15520 u65536 alloc=16*4096
[    0.000000pcpu-alloc: [0[0
[    0.000000Built 1 zonelists in Zone ordermobility grouping on.  Total pages520192
[    0.000000Kernel command lineconsole=ttyS0,115200
[    0.000000PID hash table entries4096 (order216384 bytes)
[    
0.000000Dentry cache hash table entries131072 (order7524288 bytes)
[    
0.000000Inode-cache hash table entries65536 (order6262144 bytes)
[    
0.000000Memory2072812k/2097152k available (4468k kernel code23564k reserved248k data463k bss204k init)
[    
0.000000Kernel virtual memory layout:
[    
0.000000]   * 0xfffe0000..0xfffff000  fixmap
[    0.000000]   * 0xff800000..0xffc00000  highmem PTEs
[    0.000000]   * 0xff7ec000..0xff800000  early ioremap
[    0.000000]   * 0xf1000000..0xff7ec000  vmalloc ioremap
[    0.000000SLUBGenslabs=13HWalign=32Order=0-3MinObjects=0CPUs=2Nodes=1
[    0.000000Hierarchical RCU implementation.
[    
0.000000NR_IRQS:512
[    0.000000mpicSetting up MPIC " OpenPIC  " version 1.2 at e0040000max 2 CPUs
[    0.000000mpicISU size256shift8maskff
[    0.000000mpicInitializing for 256 sources
[    0.000000clocksourcetimebase mult[a00000shift[22registered
[    0.000000Consolecolour dummy device 80x25
[    0.009528Security Framework initialized
[    0.011699SELinux:  Disabled at boot.
[    
0.012691Mount-cache hash table entries512
[    0.024495Initializing cgroup subsys ns
[    0.026297Initializing cgroup subsys cpuacct
[    0.026688Initializing cgroup subsys devices
[    0.027001Initializing cgroup subsys freezer
[    0.027211Initializing cgroup subsys net_cls
[    0.043052mpicrequesting IPIs ... 
[    
0.064806Processor 1 found.
[    
0.167306Brought up 2 CPUs
[    0.180770devtmpfsinitialized
[    0.195518regulatorcore version 0.5
[    0.199358NETRegistered protocol family 16
             
[    0.219349PCIProbing PCI hardware
[    0.251052biocreate slab <bio-0at 0
[    0.259573vgaarbloaded
[    0.269419Switching to clocksource timebase
[    0.495565NETRegistered protocol family 2
[    0.498837IP route cache hash table entries32768 (order5131072 bytes)
[    
0.504307TCP established hash table entries131072 (order81048576 bytes)
[    
0.507001TCP bind hash table entries65536 (order7524288 bytes)
[    
0.508605TCPHash tables configured (established 131072 bind 65536)
[    
0.508955TCP reno registered
[    0.511122NETRegistered protocol family 1
[    0.526775auditinitializing netlink socket (disabled)
[    
0.528728type=2000 audit(0.312:1): initialized
[    0.552809highmem bounce pool size64 pages
[    0.576776VFSDisk quotas dquot_6.5.2
[    0.578109Dquot-cache hash table entries1024 (order 04096 bytes)
[    
0.584408msgmni has been set to 1489
[    0.669025algNo test for stdrng (krng)
[    
0.669958Block layer SCSI generic (bsgdriver version 0.4 loaded (major 253)
[    
0.670438io scheduler noop registered
[    0.670623io scheduler anticipatory registered
[    0.670784io scheduler deadline registered
[    0.671328io scheduler cfq registered (default)
[    
0.690832Generic non-volatile memory driver v1.1
[    0.691516Serial8250/16550 driver4 portsIRQ sharing enabled
[    0.704942serial8250.0ttyS0 at MMIO 0xe0004500 (irq 42is a 16550A
[    0.709787console [ttyS0enabledbootconsole disabled
[    0.709787console [ttyS0enabledbootconsole disabled
[    0.716890inputMacintosh mouse button emulation as /devices/virtual/input/input0
[    0.718209Uniform Multi-Platform E-IDE driver
[    0.718944ide-gd driver 1.18
[    0.721571micePS/2 mouse device common for all mice
[    0.723626PowerPC Book-E Watchdog Timer Loaded
[    0.724547EDAC MCVer2.1.0 Nov 18 2010
[    0.727540Freescale(RMPC85xx EDAC driver, (C2006 Montavista Software
[    0.733351TCP cubic registered
[    0.736612NETRegistered protocol family 10
[    0.750707loDisabled Privacy Extensions
[    0.755813Mobile IPv6
[    0.756434NETRegistered protocol family 17
[    0.759125registered taskstats version 1
[    0.764001] /mnt/space/linux-2.6/unstable/linux-2.6-2.6.32/debian/build/source_powerpcspe_none/drivers/rtc/hctosys.cunable to open rtc device (rtc0)
[    
0.765326Initalizing network drop monitor service
[    0.768273] List of all partitions:
[    
0.769938No filesystem could mount roottried
[    
0.770545Kernel panic not syncingVFSUnable to mount root fs on unknown-block(0,0)


Edited by smarkusg on 2023/8/5 22:24:14
Go to top
Re: QEMU, e500 and Linux
Just popping in
Just popping in


See User information
@afxgroup

Have you already received my pm in the Hyperion forum? I sent you some infos and instructions about Debian PowerPCSPE and QEMU last week.


Edited by xeno74 on 2023/8/8 15:30:15
Go to top
Re: QEMU, e500 and Linux
Amigans Defender
Amigans Defender


See User information
Thanks mate! Replied!

i'm really tired...
Go to top
Re: QEMU, e500 and Linux
Not too shy to talk
Not too shy to talk


See User information
@xeno74
If you can, please add the information here. Maybe someone will need it and the thread will end happily

Go to top
Re: QEMU, e500 and Linux
Home away from home
Home away from home


See User information
@all

i think i might be right here?

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.

Thank you

Go to top
Re: QEMU, e500 and Linux
Not too shy to talk
Not too shy to talk


See User information
@All

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
Go to top
Re: QEMU, e500 and Linux
Quite a regular
Quite a regular


See User information
@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.

Go to top
Re: QEMU, e500 and Linux
Just can't stay away
Just can't stay away


See User information
@balaton
Quote:
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.

Go to top

  Register To Post
« 1 (2) 3 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project