Support For Octeon/Cavium CPU (MIPS system)
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 : yestlb_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
Quoted 5 lines
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
In message: <[email protected]>
Paul Brook <[email protected]> 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
Quoted 6 lines
: > 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
In message: <[email protected]>
Paul Brook <[email protected]> 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
Quoted 12 lines · M. Warner Losh
In message: <[email protected]>
Paul Brook <[email protected]> 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.
Quoted 1 line
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
Quoted 4 lines · Thiemo Seufer
Quoted 1 line
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
In message: <[email protected]>
octane indice <[email protected]> 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