Skip to contentSkip to conversation

Adding new qemuppc64 machine config

PATCH In review Armin Kuster 3 participants 10 messages Sep 9, 2014 – Sep 11, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Adding new qemuppc64 machine config

apply after "linux-yocto/3.14: configuration updates and feature merges."

Armin Kuster (1):
qemuppc64: add machine

 meta/conf/machine/qemuppc64.conf | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta/conf/machine/qemuppc64.conf
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 qemuppc64: add machine

override USER_CLASSES as prelink does not currently work on ppc64

---
 meta/conf/machine/qemuppc64.conf | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta/conf/machine/qemuppc64.conf
meta/conf/machine/qemuppc64.conf new file +16 -0
new file mode 100644
index 0000000..86916e5
@@ -0,0 +1,16 @@
+#@TYPE: Machine
+#@NAME: qemu PPC 64 Emulator setup
+#@DESCRIPTION: Machine configuration for running an PPC system under qemu emulation
+
+require conf/machine/include/qemu.inc
+DEFAULTTUNE ?= "ppc64p6"
+require conf/machine/include/tune-power6.inc
+
+#prelink broken
+USER_CLASSES = "buildstats image-mklibs "
+
+KERNEL_IMAGETYPE = "vmlinux"
+
+IMAGE_FSTYPES = "ext2 ext3"
+
+SERIAL_CONSOLE ?= "ttyS0"
Signature · 1 line
1.9.1
#2 lore raw

Re: [[PATCH] qemuppc64: add machine

Quoted 13 lines · Armin Kuster

override USER_CLASSES as prelink does not currently work on ppc64

---
 meta/conf/machine/qemuppc64.conf | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta/conf/machine/qemuppc64.conf
meta/conf/machine/qemuppc64.conf new file +0 -0
new file mode 100644
index 0000000..86916e5

meta/conf/machine/qemuppc64.conf line 10

Quoted 10 lines
meta/conf/machine/qemuppc64.conf new file +10 -0
@@ -0,0 +1,16 @@
+#@TYPE: Machine
+#@NAME: qemu PPC 64 Emulator setup
+#@DESCRIPTION: Machine configuration for running an PPC system under qemu emulation
+
+require conf/machine/include/qemu.inc
+DEFAULTTUNE ?= "ppc64p6"
+require conf/machine/include/tune-power6.inc
+
+#prelink broken
+USER_CLASSES = "buildstats image-mklibs "

This is horrible. Can we somehow blacklist qemuppc64 in the prelink class itself?

USER_CLASSES_remove = "prelink"

would be better than overriding the users choice like above...

Cheers,

Richard

Quoted 8 lines
meta/conf/machine/qemuppc64.conf new file +5 -0
+KERNEL_IMAGETYPE = "vmlinux"
+
+IMAGE_FSTYPES = "ext2 ext3"
+
+SERIAL_CONSOLE ?= "ttyS0"
Signature · 1 line
1.9.1
#3 lore raw

Re: [[PATCH] qemuppc64: add machine

Quoted 28 lines · Richard Purdie
Quoted 13 lines · Armin Kuster

override USER_CLASSES as prelink does not currently work on ppc64

---
  meta/conf/machine/qemuppc64.conf | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

create mode 100644 meta/conf/machine/qemuppc64.conf

meta/conf/machine/qemuppc64.conf new file +0 -0
new file mode 100644
index 0000000..86916e5

meta/conf/machine/qemuppc64.conf line 10

Quoted 10 lines
meta/conf/machine/qemuppc64.conf new file +10 -0
@@ -0,0 +1,16 @@
+#@TYPE: Machine
+#@NAME: qemu PPC 64 Emulator setup
+#@DESCRIPTION: Machine configuration for running an PPC system under qemu emulation
+
+require conf/machine/include/qemu.inc
+DEFAULTTUNE ?= "ppc64p6"
+require conf/machine/include/tune-power6.inc
+
+#prelink broken
+USER_CLASSES = "buildstats image-mklibs "

This is horrible. Can we somehow blacklist qemuppc64 in the prelink class itself?

Quoted 3 lines

USER_CLASSES_remove = "prelink"

would be better than overriding the users choice like above...

I keep asking people who have access to the PPC 64 systems to investigate and help debug this.

I don't expect it will be difficult to figure out, but I simply don't have access to this architecture to try.

There is a YP bug, 1331 (https://bugzilla.yoctoproject.org/show_bug.cgi?id=1331).

So please, if you can help diagnose what is going wrong, I'd really like to fix this.

--Mark

Quoted 14 lines

Cheers,

Richard

Quoted 8 lines
meta/conf/machine/qemuppc64.conf new file +5 -1
+KERNEL_IMAGETYPE = "vmlinux"
+
+IMAGE_FSTYPES = "ext2 ext3"
+
+SERIAL_CONSOLE ?= "ttyS0"
--

1.9.1

author
#4 lore raw

Re: [[PATCH] qemuppc64: add machine

Quoted 38 lines · Mark Hatle
Quoted 30 lines · Richard Purdie
Quoted 18 lines · Armin Kuster

override USER_CLASSES as prelink does not currently work on ppc64

---
  meta/conf/machine/qemuppc64.conf | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

create mode 100644 meta/conf/machine/qemuppc64.conf

meta/conf/machine/qemuppc64.conf new file +3 -0
new file mode 100644
index 0000000..86916e5
@@ -0,0 +1,16 @@
+#@TYPE: Machine
+#@NAME: qemu PPC 64 Emulator setup
+#@DESCRIPTION: Machine configuration for running an PPC system under

qemu emulation

meta/conf/machine/qemuppc64.conf line 10

Quoted 7 lines
meta/conf/machine/qemuppc64.conf new file +7 -0
+
+require conf/machine/include/qemu.inc
+DEFAULTTUNE ?= "ppc64p6"
+require conf/machine/include/tune-power6.inc
+
+#prelink broken
+USER_CLASSES = "buildstats image-mklibs "

This is horrible. Can we somehow blacklist qemuppc64 in the prelink class itself?

Quoted 3 lines

USER_CLASSES_remove = "prelink"

would be better than overriding the users choice like above...

I keep asking people who have access to the PPC 64 systems to investigate and help debug this.

Quoted 8 lines

I don't expect it will be difficult to figure out, but I simply don't have access to this architecture to try.

There is a YP bug, 1331
(https://bugzilla.yoctoproject.org/show_bug.cgi?id=1331).

So please, if you can help diagnose what is going wrong, I'd really like to fix this.

Will see what I can do.

- Armin

Quoted 18 lines

--Mark

Quoted 14 lines

Cheers,

Richard

Quoted 8 lines
meta/conf/machine/qemuppc64.conf new file +5 -1
+KERNEL_IMAGETYPE = "vmlinux"
+
+IMAGE_FSTYPES = "ext2 ext3"
+
+SERIAL_CONSOLE ?= "ttyS0"
--

1.9.1

author
#5 lore raw

Re: [[PATCH] qemuppc64: add machine

In reply to Richard Purdie
Quoted 28 lines · Richard Purdie
Quoted 13 lines · Armin Kuster

override USER_CLASSES as prelink does not currently work on ppc64

---
  meta/conf/machine/qemuppc64.conf | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

create mode 100644 meta/conf/machine/qemuppc64.conf

meta/conf/machine/qemuppc64.conf new file +0 -0
new file mode 100644
index 0000000..86916e5

meta/conf/machine/qemuppc64.conf line 10

Quoted 10 lines
meta/conf/machine/qemuppc64.conf new file +10 -0
@@ -0,0 +1,16 @@
+#@TYPE: Machine
+#@NAME: qemu PPC 64 Emulator setup
+#@DESCRIPTION: Machine configuration for running an PPC system under qemu emulation
+
+require conf/machine/include/qemu.inc
+DEFAULTTUNE ?= "ppc64p6"
+require conf/machine/include/tune-power6.inc
+
+#prelink broken
+USER_CLASSES = "buildstats image-mklibs "

This is horrible. Can we somehow blacklist qemuppc64 in the prelink class itself?

Quoted 1 line

USER_CLASSES_remove = "prelink"

will change.

Quoted 2 lines

would be better than overriding the users choice like above...

Thanks,
Armin

Quoted 15 lines

Cheers,

Richard

Quoted 8 lines
meta/conf/machine/qemuppc64.conf new file +5 -1
+KERNEL_IMAGETYPE = "vmlinux"
+
+IMAGE_FSTYPES = "ext2 ext3"
+
+SERIAL_CONSOLE ?= "ttyS0"
--

1.9.1

author
#6 lore raw

Re: [[PATCH] qemuppc64: add machine

In reply to Richard Purdie
Quoted 28 lines · Richard Purdie
Quoted 13 lines · Armin Kuster

override USER_CLASSES as prelink does not currently work on ppc64

---
  meta/conf/machine/qemuppc64.conf | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

create mode 100644 meta/conf/machine/qemuppc64.conf

meta/conf/machine/qemuppc64.conf new file +0 -0
new file mode 100644
index 0000000..86916e5

meta/conf/machine/qemuppc64.conf line 10

Quoted 10 lines
meta/conf/machine/qemuppc64.conf new file +10 -0
@@ -0,0 +1,16 @@
+#@TYPE: Machine
+#@NAME: qemu PPC 64 Emulator setup
+#@DESCRIPTION: Machine configuration for running an PPC system under qemu emulation
+
+require conf/machine/include/qemu.inc
+DEFAULTTUNE ?= "ppc64p6"
+require conf/machine/include/tune-power6.inc
+
+#prelink broken
+USER_CLASSES = "buildstats image-mklibs "

This is horrible. Can we somehow blacklist qemuppc64 in the prelink class itself?

Quoted 1 line

USER_CLASSES_remove = "prelink"

That does not work nor does USER_CLASSES_remove = " image-prelink "

"image-prelink" is removed from the variable but pre-linking is still affecting the image.

bitbake -e | grep ^USER_CLASSES
USER_CLASSES="buildstats image-mklibs"

I noticed that IMAGE_PREPROCESS_COMMAND variable has prelink in it.

bitbake -e | grep ^IMAGE_PREPROCESS_COMMAND IMAGE_PREPROCESS_COMMAND=" mklibs_optimize_image; prelink_image; "

If I override USER_CLASSES like above, then pre-link is not present in either variable.

you really want me to fix the prelinking on ppc64 ;)

If anyone has any pointers on where to look, let me know.

- Armin

Quoted 17 lines

would be better than overriding the users choice like above...

Cheers,

Richard

Quoted 8 lines
meta/conf/machine/qemuppc64.conf new file +5 -1
+KERNEL_IMAGETYPE = "vmlinux"
+
+IMAGE_FSTYPES = "ext2 ext3"
+
+SERIAL_CONSOLE ?= "ttyS0"
--

1.9.1

author
#7 lore raw
In reply to Armin Kuster

I forgot to mention. I will update linux-yocto_3.1x.bb too.

- Armin

Quoted 10 lines · Armin Kuster

apply after "linux-yocto/3.14: configuration updates and feature merges."

Armin Kuster (1):
qemuppc64: add machine

  meta/conf/machine/qemuppc64.conf | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

create mode 100644 meta/conf/machine/qemuppc64.conf

#8 lore raw
Quoted 1 line · On Mon, 2014-09-08 at 22:03 -0700, akuster808 wrote:

I forgot to mention. I will update linux-yocto_3.1x.bb too.

You need to talk to Bruce about that. I'm also worried about this coming in this late, after feature freeze.

Cheers,

Richard

Quoted 13 lines

- Armin

Quoted 10 lines · Armin Kuster

apply after "linux-yocto/3.14: configuration updates and feature merges."

Armin Kuster (1):
qemuppc64: add machine

  meta/conf/machine/qemuppc64.conf | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

create mode 100644 meta/conf/machine/qemuppc64.conf

author
#9 lore raw
Quoted 5 lines · Richard Purdie
Quoted 1 line · On Mon, 2014-09-08 at 22:03 -0700, akuster808 wrote:

I forgot to mention. I will update linux-yocto_3.1x.bb too.

You need to talk to Bruce about that. I'm also worried about this coming in this late, after feature freeze.

I wasn't targeting getting it in for 1.7.

I am just passing along it along so maybe someone else might gain some benefit from it.

- Armin

Quoted 20 lines

Cheers,

Richard

Quoted 13 lines

- Armin

Quoted 10 lines · Armin Kuster

apply after "linux-yocto/3.14: configuration updates and feature merges."

Armin Kuster (1):
qemuppc64: add machine

   meta/conf/machine/qemuppc64.conf | 16 ++++++++++++++++
   1 file changed, 16 insertions(+)

create mode 100644 meta/conf/machine/qemuppc64.conf