* [Qemu-devel] Support For Octeon/Cavium CPU (MIPS system)
@ 2008-05-22 10:48 octane indice
2008-05-22 13:27 ` Paul Brook
2008-05-22 15:47 ` M. Warner Losh
0 siblings, 2 replies; 8+ messages in thread
From: octane indice @ 2008-05-22 10:48 UTC (permalink / raw)
To: qemu-devel
Hello
I own a cavium/octeon board. I run a linux on it.
I want to usr qemu for convenience in order to continue my developpements.
I know that Cavium/octeon board are MIPS CPU.
But I didn't manage to boot my kernel in qemu. I tried several possibilities
with -M and -cpu but my kernel never loads.
Info I have:
cpu model : Cavium Networks Octeon CN38XX/CN36XX V0.3
BogoMIPS : 1000.60
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes
ASEs implemented :
VCED exceptions : not available
VCEI exceptions : not available
Is there any way to boot my kernel inside qemu?
Thanks for help, I read the linux-mips wiki without much help
Découvrez comment un lapin peut lire votre Agenda. http://www.alinto.com/lapin
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Support For Octeon/Cavium CPU (MIPS system)
2008-05-22 10:48 [Qemu-devel] Support For Octeon/Cavium CPU (MIPS system) octane indice
@ 2008-05-22 13:27 ` Paul Brook
2008-05-22 15:55 ` M. Warner Losh
2008-05-22 15:47 ` M. Warner Losh
1 sibling, 1 reply; 8+ messages in thread
From: Paul Brook @ 2008-05-22 13:27 UTC (permalink / raw)
To: qemu-devel; +Cc: octane indice
> I own a cavium/octeon board. I run a linux on it.
>
> I want to usr qemu for convenience in order to continue my developpements.
>
> I know that Cavium/octeon board are MIPS CPU.
Not really. They're MIPS with extra weirdness.
Your kernel needs to match the exact CPU and board that you're emulating. i.e.
if you want to use an unmodified kernel you need to add support for both the
CPU and board to qemu.
Paul
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Support For Octeon/Cavium CPU (MIPS system)
2008-05-22 13:27 ` Paul Brook
@ 2008-05-22 15:55 ` M. Warner Losh
2008-05-22 16:03 ` Paul Brook
0 siblings, 1 reply; 8+ messages in thread
From: M. Warner Losh @ 2008-05-22 15:55 UTC (permalink / raw)
To: qemu-devel, paul; +Cc: octane
In message: <200805221427.26860.paul@codesourcery.com>
Paul Brook <paul@codesourcery.com> writes:
: > I own a cavium/octeon board. I run a linux on it.
: >
: > I want to usr qemu for convenience in order to continue my developpements.
: >
: > I know that Cavium/octeon board are MIPS CPU.
:
: Not really. They're MIPS with extra weirdness.
All SoCs are MIPS with extra documented weirdness. The OCTEON CPUs
aren't documented in a public...
: Your kernel needs to match the exact CPU and board that you're
: emulating. i.e. if you want to use an unmodified kernel you need to
: add support for both the CPU and board to qemu.
This is true. fortunately, many other SoCs have had their support
added to QEMU...
Warner
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Support For Octeon/Cavium CPU (MIPS system)
2008-05-22 15:55 ` M. Warner Losh
@ 2008-05-22 16:03 ` Paul Brook
2008-05-22 16:17 ` M. Warner Losh
0 siblings, 1 reply; 8+ messages in thread
From: Paul Brook @ 2008-05-22 16:03 UTC (permalink / raw)
To: qemu-devel; +Cc: octane
> : > I know that Cavium/octeon board are MIPS CPU.
> :
> : Not really. They're MIPS with extra weirdness.
>
> All SoCs are MIPS with extra documented weirdness. The OCTEON CPUs
> aren't documented in a public...
The Cavium cores are weirder than most. It doesn't use the normal MIPS ISA.
Most SoC are a standard mips core (r4k, etc.) with a bunch of peripherals.
Paul
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Support For Octeon/Cavium CPU (MIPS system)
2008-05-22 16:03 ` Paul Brook
@ 2008-05-22 16:17 ` M. Warner Losh
2008-05-22 16:52 ` Thiemo Seufer
0 siblings, 1 reply; 8+ messages in thread
From: M. Warner Losh @ 2008-05-22 16:17 UTC (permalink / raw)
To: paul; +Cc: qemu-devel, octane
In message: <200805221704.00480.paul@codesourcery.com>
Paul Brook <paul@codesourcery.com> writes:
: > : > I know that Cavium/octeon board are MIPS CPU.
: > :
: > : Not really. They're MIPS with extra weirdness.
: >
: > All SoCs are MIPS with extra documented weirdness. The OCTEON CPUs
: > aren't documented in a public...
:
: The Cavium cores are weirder than most. It doesn't use the normal MIPS ISA.
: Most SoC are a standard mips core (r4k, etc.) with a bunch of peripherals.
Yes, they do use the noraml MIPS ISA. It is a MIPS64r2 part. It does
have a bunch of additional instructions that are leveraged off the CP2
coprocessor for crypto and related things. Its cache is different
too, but every platform's cache is different. There's a number of
hacks present to allow different images to run on different core.
Or maybe this is what you are saying :-
Warner
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Support For Octeon/Cavium CPU (MIPS system)
2008-05-22 16:17 ` M. Warner Losh
@ 2008-05-22 16:52 ` Thiemo Seufer
2008-05-22 22:04 ` Jamie Lokier
0 siblings, 1 reply; 8+ messages in thread
From: Thiemo Seufer @ 2008-05-22 16:52 UTC (permalink / raw)
To: qemu-devel; +Cc: paul, octane
M. Warner Losh wrote:
> In message: <200805221704.00480.paul@codesourcery.com>
> Paul Brook <paul@codesourcery.com> writes:
> : > : > I know that Cavium/octeon board are MIPS CPU.
> : > :
> : > : Not really. They're MIPS with extra weirdness.
> : >
> : > All SoCs are MIPS with extra documented weirdness. The OCTEON CPUs
> : > aren't documented in a public...
> :
> : The Cavium cores are weirder than most. It doesn't use the normal MIPS ISA.
> : Most SoC are a standard mips core (r4k, etc.) with a bunch of peripherals.
>
> Yes, they do use the noraml MIPS ISA. It is a MIPS64r2 part.
AFAIU they invented a mode in their core which replaces (d)lwl/(d)lwr
with different instructions for unaligned load/stores. :-(
Thiemo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Support For Octeon/Cavium CPU (MIPS system)
2008-05-22 16:52 ` Thiemo Seufer
@ 2008-05-22 22:04 ` Jamie Lokier
0 siblings, 0 replies; 8+ messages in thread
From: Jamie Lokier @ 2008-05-22 22:04 UTC (permalink / raw)
To: qemu-devel; +Cc: paul, octane
Thiemo Seufer wrote:
> > Yes, they do use the noraml MIPS ISA. It is a MIPS64r2 part.
>
> AFAIU they invented a mode in their core which replaces (d)lwl/(d)lwr
> with different instructions for unaligned load/stores. :-(
The Alteon Tigon 2 gigabit ethernet processor did something similar,
except it wasn't a mode but fixed.
The documentation said it was because those particular instructions
are covered by a patent, so they couldn't implement them.
-- Jaie
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Support For Octeon/Cavium CPU (MIPS system)
2008-05-22 10:48 [Qemu-devel] Support For Octeon/Cavium CPU (MIPS system) octane indice
2008-05-22 13:27 ` Paul Brook
@ 2008-05-22 15:47 ` M. Warner Losh
1 sibling, 0 replies; 8+ messages in thread
From: M. Warner Losh @ 2008-05-22 15:47 UTC (permalink / raw)
To: qemu-devel, octane
In message: <1211453314.48354f82621a1@webmail.alinto.com>
octane indice <octane@alinto.com> writes:
: Is there any way to boot my kernel inside qemu?
No. Cavium CPU support isn't present in QEMU, even though the CPU is
mostly MISP64r2. The technical specs are available under NDA only,
and the network and serial ports are different from anything else.
Warner
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-05-22 22:04 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-22 10:48 [Qemu-devel] Support For Octeon/Cavium CPU (MIPS system) octane indice
2008-05-22 13:27 ` Paul Brook
2008-05-22 15:55 ` M. Warner Losh
2008-05-22 16:03 ` Paul Brook
2008-05-22 16:17 ` M. Warner Losh
2008-05-22 16:52 ` Thiemo Seufer
2008-05-22 22:04 ` Jamie Lokier
2008-05-22 15:47 ` M. Warner Losh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).