Skip to contentSkip to conversation

vl on PPC ?

Qemu-devel Mark Guertin 2 participants 6 messages Aug 26, 2003 – Aug 31, 2003

lore
Share & tools
lore
#0 lore raw

Hi everyone

Has anyone been able to run vl on PPC yet? I saw some reference to this on the mailing list archives, but I've been unable to boot any of the kernels Rusty provided with vl.

I don't have the exact error at hand, but it IIRC it was something to do with memory locations.

I do have qemu running beautifully under gcc 3.x on ppc and it has taken pretty much everything I've thrown at it in a full x86 glibc-2.3.1 + gcc 3.2.1 environment, but would love this 'virtual machine' setup to work.

Mark (Gerk)

#1 lore raw
Quoted 6 lines · Mark Guertin

Hi everyone

Has anyone been able to run vl on PPC yet? I saw some reference to this on the mailing list archives, but I've been unable to boot any of the kernels Rusty provided with vl.

Quoted 6 lines

I don't have the exact error at hand, but it IIRC it was something to do with memory locations.

I do have qemu running beautifully under gcc 3.x on ppc and it has taken pretty much everything I've thrown at it in a full x86 glibc-2.3.1 + gcc 3.2.1 environment, but would love this 'virtual machine' setup to work.

Just a random guess:

In the host PPC kernel, try editing include/asm/processor.hi

-#define TASK_SIZE (0x80000000UL)
+#define TASK_SIZE (0xc0000000UL)

And let me know if that helps

Ben.

#5 lore raw
In reply to Mark Guertin
Quoted 6 lines · Mark Guertin

Hi everyone

Has anyone been able to run vl on PPC yet? I saw some reference to this on the mailing list archives, but I've been unable to boot any of the kernels Rusty provided with vl.

Quoted 6 lines

I don't have the exact error at hand, but it IIRC it was something to do with memory locations.

I do have qemu running beautifully under gcc 3.x on ppc and it has taken pretty much everything I've thrown at it in a full x86 glibc-2.3.1 + gcc 3.2.1 environment, but would love this 'virtual machine' setup to work.

Just another question... how did you get "vl" to build on PPC ? It seems here that it still has some x86 stuffs like inline asm doing rdtsc...

Ben.

#2 lore raw
In reply to Benjamin Herrenschmidt
Quoted 11 lines · Benjamin Herrenschmidt

Just a random guess:

In the host PPC kernel, try editing include/asm/processor.hi

(quoted diff) +1 -1
-#define TASK_SIZE       (0x80000000UL)
+#define TASK_SIZE       (0xc0000000UL)

And let me know if that helps

Ben.

Thanks Ben

Will take a day or two to get to this, last minute stuff just popped up for work, but I'll let you know.

Gerk

#3 lore raw
In reply to Benjamin Herrenschmidt
Quoted 14 lines · Benjamin Herrenschmidt
Quoted 6 lines

I don't have the exact error at hand, but it IIRC it was something to do with memory locations.

I do have qemu running beautifully under gcc 3.x on ppc and it has taken pretty much everything I've thrown at it in a full x86 glibc-2.3.1 + gcc 3.2.1 environment, but would love this 'virtual machine' setup to work.

Just a random guess:

In the host PPC kernel, try editing include/asm/processor.hi

(quoted diff) +1 -1
-#define TASK_SIZE       (0x80000000UL)
+#define TASK_SIZE       (0xc0000000UL)
Quoted 4 lines

And let me know if that helps

Ben.

Hey Ben

That was exactly it, works beautifully now. In fact booted into the provided 2.5 kernel and playing with some stuff right now.

Is this generally safe to use (has the stuff Cort mentions in the comment been taken care of)?

Mark

#4 lore raw
Quoted 5 lines · Mark Guertin

That was exactly it, works beautifully now. In fact booted into the provided 2.5 kernel and playing with some stuff right now.

Is this generally safe to use (has the stuff Cort mentions in the comment been taken care of)?

It's safe on pmacs at least :) Some shitty embedded stuffs and PREP machines still play mapping tricks between 0x80000000 and 0xc0000000, though most of these are easily fixed.

Ben.