Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
22 crawler(s) on-line.
 110 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 Templario:  5 mins ago
 NutsAboutAmiga:  10 mins ago
 RobertB:  16 mins ago
 Gunnar:  17 mins ago
 GPTNederlands:  31 mins ago
 janelancy:  32 mins ago
 -Sam-:  41 mins ago
 OlafS25:  1 hr 24 mins ago
 pixie:  1 hr 25 mins ago
 Rob:  1 hr 39 mins ago

/  Forum Index
   /  Amiga OS4 Hardware
      /  sam460 and Pegasos 2emulated in qemu
Register To Post

Goto page ( Previous Page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 Next Page )
PosterThread
tlosm 
Re: sam460 emulated in qemu
Posted on 21-Apr-2020 20:04:12
#421 ]
Elite Member
Joined: 28-Jul-2012
Posts: 2746
From: Amiga land

@pavlor

Zoltan add the ati rage 128 but only for 2d features.

_________________
I love Amiga and new hope by AmigaNG
A 500 + ; CDTV; CD32;
PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB;
MacBook Pro Retina I7 2.3ghz;
#nomorea-eoninmyhome

 Status: Offline
Profile     Report this post  
billt 
Re: sam460 emulated in qemu
Posted on 23-Apr-2020 3:53:53
#422 ]
Elite Member
Joined: 24-Oct-2003
Posts: 3205
From: Maryland, USA

@Fl@sh

OK, so from what I can tell, nxp t2080 is book e (don't see 3e, but is what I can find as a book code), and 460ex is book e, would I be able to kvm the sam460 on a t2080rdb kit?

_________________
All glory to the Hypnotoad!

 Status: Offline
Profile     Report this post  
Fl@sh 
Re: sam460 emulated in qemu
Posted on 23-Apr-2020 11:04:54
#423 ]
Regular Member
Joined: 6-Oct-2004
Posts: 253
From: Napoli - Italy

@billt

It could work, let us know your results.
For sure we have max compatibility in kvm when cpu host == cpu guest.

_________________
Pegasos II G4@1GHz 2GB Radeon 9250 256MB
AmigaOS4.1 fe - MorphOS - Debian 9 Jessie

 Status: Offline
Profile     Report this post  
tlosm 
Re: sam460 emulated in qemu
Posted on 23-Apr-2020 12:18:52
#424 ]
Elite Member
Joined: 28-Jul-2012
Posts: 2746
From: Amiga land

@billt

sure that cpu insnt a e6500 compatible cpu with altivec? if like this is a books not a booke it mean cant kvm-pr a sam460 but can kvm-pr a G4 pegasos or a p6t

_________________
I love Amiga and new hope by AmigaNG
A 500 + ; CDTV; CD32;
PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB;
MacBook Pro Retina I7 2.3ghz;
#nomorea-eoninmyhome

 Status: Offline
Profile     Report this post  
virgolamobile 
Re: sam460 emulated in qemu
Posted on 23-Apr-2020 12:52:10
#425 ]
Regular Member
Joined: 23-Feb-2004
Posts: 192
From: Somewhere in Northern Italy

Yes, the NXP T2080 CPU is an e6500 book3e, and yes, in theory it should be able to activate KVM for emulating other book3e based cpus, such as the AMCC 460ex that was used in the Sam460ex.

Unfortunately, qemu stop working if you try to enable KVM on e6500 based system, at least on my Debian PPC64 based system. The problem can be either in qemu, or in the Linux kernel. So far I have tried multiple 4.x and 5.x kernels, same results.
Will try to investigate a bit more how KVM behave under the Fienix distro, which has a 32 bit Linux userland.

Emulation of the Sam460ex does work and you can launch and use AmigaOS 4.1, but like in other system is slow as everything is emulated in software mode.

 Status: Offline
Profile     Report this post  
Fl@sh 
Re: sam460 emulated in qemu
Posted on 23-Apr-2020 15:11:25
#426 ]
Regular Member
Joined: 6-Oct-2004
Posts: 253
From: Napoli - Italy

@virgolamobile

..Try also with a linux 32bit system.

Sadly QEMU dev team is moved by other interests with an high priority focus on Power7/8/9 systems (looking into powerpc qemu branch).
If we want to support other targets like Sam460ex or PowerMacs, we have to take our hand into sources and improve support/compatibility.
Sadly QEMU does not have any SDK or "tutorial" on how to implement a new board or new devices or how to hardwire them each others.
We have to learn how get all those things simply looking inside sources.
It's an hard work even because the project is huge and very complex!
..the guys involved into QEMU are all employed (directly or indirectly) by major companies like RedHat, Linaro, Intel, Arm, Debian, etc...
All engineers are 100% targeted to implement what is needed to their respective companies, no one is interested in extend support for old architectures.

Until now there's only a guy really interested to implement QEMU support for Amigalike systems (AMIGA/MOS/AROS).
His name is Zoltan Balaton, he is independent from any other interest and he have all my respect and support.

If someone is interested in QEMU development of AmigaLike systems here is where to start
https://osdn.net/projects/qmiga/wiki/FrontPage

Last edited by Fl@sh on 23-Apr-2020 at 03:24 PM.

_________________
Pegasos II G4@1GHz 2GB Radeon 9250 256MB
AmigaOS4.1 fe - MorphOS - Debian 9 Jessie

 Status: Offline
Profile     Report this post  
Trekiej 
Re: sam460 emulated in qemu
Posted on 24-Apr-2020 17:52:45
#427 ]
Cult Member
Joined: 17-Oct-2006
Posts: 890
From: Unknown

@Trekiej

#!/bin/bash
fixed it.

_________________
John 3:16

 Status: Offline
Profile     Report this post  
Trekiej 
Re: sam460 emulated in qemu
Posted on 24-Apr-2020 18:16:25
#428 ]
Cult Member
Joined: 17-Oct-2006
Posts: 890
From: Unknown

I wondering if I need to uninstall 4 before installing 5.

_________________
John 3:16

 Status: Offline
Profile     Report this post  
tlosm 
Re: sam460 emulated in qemu
Posted on 25-Apr-2020 9:52:07
#429 ]
Elite Member
Joined: 28-Jul-2012
Posts: 2746
From: Amiga land

@virgolamobile

did you try to kvm-pr a g4 on mac99 and run macosx?if there working all is normal..on ppc book3s only mac99,g3beige and spapr work with kvm. on book3e (x5000)i was able to have linux working

_________________
I love Amiga and new hope by AmigaNG
A 500 + ; CDTV; CD32;
PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB;
MacBook Pro Retina I7 2.3ghz;
#nomorea-eoninmyhome

 Status: Offline
Profile     Report this post  
virgolamobile 
Re: sam460 emulated in qemu
Posted on 25-Apr-2020 16:49:40
#430 ]
Regular Member
Joined: 23-Feb-2004
Posts: 192
From: Somewhere in Northern Italy

@tlosm

No book3s based system in here, sorry, cannot try that.

So you can confirm that you are able to run at full speed an hosted Linux with KVM enabled on the X5000?


I have just tried to launch qemu on Fienix, that has userland 32bit (qemu executable is compiled for PPC 32bit). Same result as when I run it on Debian SID that has 64bit userland (qemu is compiled for PPC64).
The T2080RDB run a 64bit kernel, as it is not possible to compile a 32bit kernel for e6500.

QEMU starts when I enable KVM, the virtual hw is initialized, but then it hangs even before mounting the hard disk.
The kernel log I get from the serial is floodded with pretty much that same message reported below, over and over again continuously, just with minor changes in it between messages

Apr 25 18:29:38 t2080rdb kernel: ------------[ cut here ]------------
Apr 25 18:29:38 t2080rdb kernel: WARNING: CPU: 1 PID: 42334 at .enable_kernel_altivec+0x70/0xc0
Apr 25 18:29:38 t2080rdb kernel: Modules linked in: uio_pdrv_genirq uio
Apr 25 18:29:38 t2080rdb kernel: CPU: 1 PID: 42334 Comm: qemu-system-ppc Tainted: G W 5.6.7_T2080RDB #1
Apr 25 18:29:38 t2080rdb kernel: NIP: c000000000007890 LR: c0000000000662ec CTR: c000000000065514
Apr 25 18:29:38 t2080rdb kernel: REGS: c0000000a9707570 TRAP: 0700 Tainted: G W (5.6.7_T2080RDB)
Apr 25 18:29:38 t2080rdb kernel: MSR: 0000000080023002 CR: 22000242 XER: 20000000
Apr 25 18:29:38 t2080rdb kernel: IRQMASK: 0
Apr 25 18:29:38 t2080rdb kernel: GPR00: c0000000000661c8 c0000000a9707800 c000000001ad1a00 c0000000a97b0380
Apr 25 18:29:38 t2080rdb kernel: GPR04: 0000000000000000 0000000000000040 0000000000000040 0000000000000000
Apr 25 18:29:38 t2080rdb kernel: GPR08: c0000000a998f000 0000000000000000 c0000000a9707e90 0000000000000000
Apr 25 18:29:38 t2080rdb kernel: GPR12: 0000000022000242 c00000003ffff8c0 c0000000a97b0000 0000000000000000
Apr 25 18:29:38 t2080rdb kernel: GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
Apr 25 18:29:38 t2080rdb kernel: GPR20: 0000000000000000 000000002b3ce9ae 0000000000000001 c000000001b42460
Apr 25 18:29:38 t2080rdb kernel: GPR24: c000000001948180 0000000000000001 c000000001948180 c000000001ad19a8
Apr 25 18:29:38 t2080rdb kernel: GPR28: c0000000000ff420 c0000000a97b0380 0000000000000000 c0000000a97b0490
Apr 25 18:29:38 t2080rdb kernel: NIP [c000000000007890] .enable_kernel_altivec+0x70/0xc0
Apr 25 18:29:38 t2080rdb kernel: LR [c0000000000662ec] .kvmppc_handle_exit+0x44c/0xa80
Apr 25 18:29:38 t2080rdb kernel: Call Trace:
Apr 25 18:29:38 t2080rdb kernel: [c0000000a9707800] [c0000000a9707880] 0xc0000000a9707880 (unreliable)
Apr 25 18:29:38 t2080rdb kernel: [c0000000a9707880] [c0000000000661c8] .kvmppc_handle_exit+0x328/0xa80
Apr 25 18:29:38 t2080rdb kernel: [c0000000a9707920] [c00000000006a2b0] .kvmppc_resume_host+0xc8/0x11c
Apr 25 18:29:38 t2080rdb kernel: Instruction dump:
Apr 25 18:29:38 t2080rdb kernel: e93f0910 2c290000 41c20010 e9290108 75290200 40c2002c 38210080 ebe1fff8
Apr 25 18:29:38 t2080rdb kernel: 4e800020 60000000 60000000 60000000 4bffffb0 60000000 60000000
Apr 25 18:29:38 t2080rdb kernel: ---[ end trace de295ff990bf2c78 ]---


DId tried to launch wemu using a kernel compiled for e5500, which lacks the Altivec the e6500 has, among other minor differences, still ending up with the same results.

Last edited by virgolamobile on 25-Apr-2020 at 04:51 PM.

 Status: Offline
Profile     Report this post  
tlosm 
Re: sam460 emulated in qemu
Posted on 25-Apr-2020 23:27:25
#431 ]
Elite Member
Joined: 28-Jul-2012
Posts: 2746
From: Amiga land

@virgolamobile

yes x5000 have working kvm and handle book3e freescale cpus.
did you try what happen if you do like this?
qemu-system-ppc -cpu g4 -M mac99 --enable-kvm

_________________
I love Amiga and new hope by AmigaNG
A 500 + ; CDTV; CD32;
PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB;
MacBook Pro Retina I7 2.3ghz;
#nomorea-eoninmyhome

 Status: Offline
Profile     Report this post  
virgolamobile 
Re: sam460 emulated in qemu
Posted on 26-Apr-2020 14:16:37
#432 ]
Regular Member
Joined: 23-Feb-2004
Posts: 192
From: Somewhere in Northern Italy

@tlosm

Any combination I try for launching qemu-system-ppc or qemu-system-ppc64 with "-M mac99" I always end up with the following message

kvm_init_vcpu failed: Function not implemented

Last edited by virgolamobile on 26-Apr-2020 at 02:25 PM.
Last edited by virgolamobile on 26-Apr-2020 at 02:24 PM.

 Status: Offline
Profile     Report this post  
tlosm 
Re: sam460 emulated in qemu
Posted on 26-Apr-2020 22:05:30
#433 ]
Elite Member
Joined: 28-Jul-2012
Posts: 2746
From: Amiga land

@virgolamobile

it mean the kvm-pr inst available for e6500 .
and if you try to run it with
qemu-system-ppc -M Mac99 --enable-kvm -cpu (your cpu class)
qemu-system-ppc -cpu help or -cpu ? will gave the complete list of qemu cpus

_________________
I love Amiga and new hope by AmigaNG
A 500 + ; CDTV; CD32;
PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB;
MacBook Pro Retina I7 2.3ghz;
#nomorea-eoninmyhome

 Status: Offline
Profile     Report this post  
virgolamobile 
Re: sam460 emulated in qemu
Posted on 27-Apr-2020 7:16:04
#434 ]
Regular Member
Joined: 23-Feb-2004
Posts: 192
From: Somewhere in Northern Italy

@tlosm

ppc64@t2080rdb:~$ qemu-system-ppc -M Mac99 --enable-kvm -cpu e6500
qemu-system-ppc: -M Mac99: unsupported machine type
Use -machine help to list supported machines

The only allowed machine for enabling KVM on the T2080 is the "ppce500" combined with a book3e cpu, such e500, e500mc, e500v1, e500v2, e5500, e6500.

By reading the NXP forum, it seems that KVM can only work when you use the very same cpu of the host, so I must use "e6500" https://community.nxp.com/thread/434689

Here a interesting overview of KVM implementation for the e500 http://www.linux-kvm.org/page/E500_virtual_CPU_specification

 Status: Offline
Profile     Report this post  
tlosm 
Re: sam460 emulated in qemu
Posted on 27-Apr-2020 7:54:56
#435 ]
Elite Member
Joined: 28-Jul-2012
Posts: 2746
From: Amiga land

@virgolamobile

... nxp programmers usually implement the qemu kvm like is ppce500 . and now i understand they just make compatibility with their hardware.
In your case i understand you will able to kvm an X5000. if you have access to a x5000 linux kernel im sure you will be able to load and run it inside a qemu vmachine with kvm... but you will not able to make the same with other ppc hardware... like spapr or g3beige or Mac99. This is really sad.

Last edited by tlosm on 27-Apr-2020 at 08:02 AM.

_________________
I love Amiga and new hope by AmigaNG
A 500 + ; CDTV; CD32;
PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB;
MacBook Pro Retina I7 2.3ghz;
#nomorea-eoninmyhome

 Status: Offline
Profile     Report this post  
Trekiej 
Re: sam460 emulated in qemu
Posted on 25-May-2020 21:02:32
#436 ]
Cult Member
Joined: 17-Oct-2006
Posts: 890
From: Unknown

@tlosm

I compiled qemu 5 rc 1 on Ubuntu 18.04.x and it says machine type not supported.
sam460ex

_________________
John 3:16

 Status: Offline
Profile     Report this post  
tlosm 
Re: sam460 emulated in qemu
Posted on 26-May-2020 5:49:51
#437 ]
Elite Member
Joined: 28-Jul-2012
Posts: 2746
From: Amiga land

@Trekiej

qemu-system-ppc -M ?

_________________
I love Amiga and new hope by AmigaNG
A 500 + ; CDTV; CD32;
PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB;
MacBook Pro Retina I7 2.3ghz;
#nomorea-eoninmyhome

 Status: Offline
Profile     Report this post  
Trekiej 
Re: sam460 emulated in qemu
Posted on 26-May-2020 23:49:43
#438 ]
Cult Member
Joined: 17-Oct-2006
Posts: 890
From: Unknown

@tlosm

When I do a machine help, it shows 11 machines but not sam460ex.

_________________
John 3:16

 Status: Offline
Profile     Report this post  
Hypex 
Re: sam460 emulated in qemu
Posted on 29-May-2020 16:57:36
#439 ]
Elite Member
Joined: 6-May-2007
Posts: 11180
From: Greensborough, Australia

@virgolamobile

Quote:
Yes, the NXP T2080 CPU is an e6500 book3e


Oh no. Not another embedded CPU core.


Apr 25 18:29:38 t2080rdb kernel: WARNING: CPU: 1 PID: 42334 at .enable_kernel_altivec+0x70/0xc0


Which would explain that. Since E classes tends to lack AltiVec and employ things like SPE. But, I just read up on T2080 and it has AltiVec included. However, it is said to be advanced, but is it compatible? Since Freescale/NXP has had a habit of using FPU and SIMD opcodes for things like SPE. What else have they broke? Apart from compatibility.

 Status: Offline
Profile     Report this post  
tlosm 
Re: sam460 emulated in qemu
Posted on 29-May-2020 21:51:26
#440 ]
Elite Member
Joined: 28-Jul-2012
Posts: 2746
From: Amiga land

@Trekiej

it is strange !
can you make qemu-system-ppc --version?

this is mine
qemu-system-ppc -version
QEMU emulator version 5.0.50 (v5.0.0-533-gdebe78ce14-dirty)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers


qemu-system-ppc -M ?
Supported machines are:
40p IBM RS/6000 7020 (40p)
bamboo bamboo
g3beige Heathrow based PowerMAC (default)
mac99 Mac99 based PowerMAC
mpc8544ds mpc8544ds
none empty machine
ppce500 generic paravirt e500 platform
ref405ep ref405ep
sam460ex aCube Sam460ex
taihu taihu
virtex-ml507 Xilinx Virtex ML507 reference design

_________________
I love Amiga and new hope by AmigaNG
A 500 + ; CDTV; CD32;
PowerMac G5 Quad 8GB,SSD,SSHD,7800gtx,Radeon R5 230 2GB;
MacBook Pro Retina I7 2.3ghz;
#nomorea-eoninmyhome

 Status: Offline
Profile     Report this post  
Goto page ( Previous Page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 Next Page )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle