From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 4DA80710CE for ; Wed, 27 Aug 2014 10:53:40 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.9/8.14.5) with ESMTP id s7RArfsH023396 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 27 Aug 2014 03:53:41 -0700 (PDT) Received: from [128.224.162.231] (128.224.162.231) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 27 Aug 2014 03:53:40 -0700 Message-ID: <53FDB8B5.8030802@windriver.com> Date: Wed, 27 Aug 2014 18:53:41 +0800 From: Kang Kai User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Saul Wold X-Originating-IP: [128.224.162.231] Cc: oe-core Subject: Question about aarch64 target X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2014 10:53:41 -0000 X-Groupsio-MsgNum: 57006 Content-Type: multipart/mixed; boundary="------------040900050802000505060506" --------------040900050802000505060506 Content-Type: multipart/alternative; boundary="------------030105090806020804050208" --------------030105090806020804050208 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Hi Saul, I am working on Bug 6487 - Add Aarch64 qemu target. I take tune and config files from linaro then succeeds to build core-image-minimal and core-image-sato. And I have 2 question about it now: 1 What should the new qemu aarch64 bsp looks like at the end? Do the files in the patch attached are enough? And what more test should we do except to build images such as core-image-sato, core-image-sato even build world? 2 There 2 aarch64 configure files from linaro. First one is little endian and it is as default, and the other one is big endian. I take the little endian one as qemuarm64.conf as linaro does. Do we need add the other one as qemuarm64_be.conf or something like that? -- Regards, Neil | Kai Kang --------------030105090806020804050208 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: 8bit Hi Saul,

I am working on Bug 6487 - Add Aarch64 qemu target. I take tune and config files from linaro then succeeds to build core-image-minimal and core-image-sato.

And I have 2 question about it now:
1 What should the new qemu aarch64 bsp looks like at the end? Do the files in the patch attached are enough? And what more test should we do except to build images such as
core-image-sato,  core-image-sato even build world?

2 There 2 aarch64 configure files from linaro. First one is little endian and it is as default, and the other one is big endian. I take the little endian one as qemuarm64.conf as linaro does. Do we need add the other one as qemuarm64_be.conf or something like that?
-- 
Regards,
Neil | Kai Kang
--------------030105090806020804050208-- --------------040900050802000505060506 Content-Type: text/x-patch; name="0001-add-qemu-aarch64.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-add-qemu-aarch64.patch" >From e20a3e1252d895c2098fc99d7a0b8ff42ec2c439 Mon Sep 17 00:00:00 2001 From: Kai Kang Date: Fri, 22 Aug 2014 10:46:10 +0800 Subject: [PATCH] add qemu aarch64 Signed-off-by: Kai Kang --- meta/conf/machine/genericarmv8.conf | 37 ++++++++++++++++++++++++++ meta/conf/machine/genericarmv8b.conf | 8 ++++++ meta/conf/machine/include/arm/arch-armv8.inc | 20 ++++++++++++++ meta/conf/machine/qemuarm64.conf | 39 ++++++++++++++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 meta/conf/machine/genericarmv8.conf create mode 100644 meta/conf/machine/genericarmv8b.conf create mode 100644 meta/conf/machine/include/arm/arch-armv8.inc create mode 100644 meta/conf/machine/qemuarm64.conf diff --git a/meta/conf/machine/genericarmv8.conf b/meta/conf/machine/genericarmv8.conf new file mode 100644 index 0000000..1d05238 --- /dev/null +++ b/meta/conf/machine/genericarmv8.conf @@ -0,0 +1,37 @@ +#@TYPE: Machine +#@NAME: generic armv8 machine +#@DESCRIPTION: generic machine to be used by linaro-media-create + +require conf/machine/include/arm64/arch-armv8.inc + +PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" + +XSERVER ?= "xserver-xorg \ + mesa-driver-swrast \ + xf86-input-evdev \ + xf86-input-mouse \ + xf86-video-fbdev \ + xf86-input-keyboard" + +MACHINE_FEATURES = "" + +# Don't include kernels in standard images +RDEPENDS_kernel-base = "" + +PREFERRED_PROVIDER_virtual/kernel ?= "linux-linaro" + +KERNEL_IMAGETYPE = "Image" + +# We have to disable SERIAL_CONSOLE due to auto-serial-console +#SERIAL_CONSOLE = "115200 ttyAMA0" + +# Force auto-serial-console to be used by all image types +# Ideally this would be part of core oe or as a bbclassappend, +# but as we don't have an easy way to append a class, defining +# it here +EXTRA_IMAGE_FEATURES += "autoserial" +FEATURE_PACKAGES_autoserial = "auto-serial-console" + +# we do not want to have getty running on tty1 as we run +# auto-serial-console there +USE_VT = "0" diff --git a/meta/conf/machine/genericarmv8b.conf b/meta/conf/machine/genericarmv8b.conf new file mode 100644 index 0000000..e70de08 --- /dev/null +++ b/meta/conf/machine/genericarmv8b.conf @@ -0,0 +1,8 @@ +#@TYPE: Machine +#@NAME: generic armv8 big endian machine +#@DESCRIPTION: generic machine to be used by linaro-media-create +DEFAULTTUNE = "aarch64_be" + +PREFERRED_PROVIDER_virtual/kernel ?= "linux-dummy" + +require conf/machine/genericarmv8.conf diff --git a/meta/conf/machine/include/arm/arch-armv8.inc b/meta/conf/machine/include/arm/arch-armv8.inc new file mode 100644 index 0000000..c86142a --- /dev/null +++ b/meta/conf/machine/include/arm/arch-armv8.inc @@ -0,0 +1,20 @@ +DEFAULTTUNE ?= "aarch64" + +ARMPKGARCH ?= "aarch64" + +TUNEVALID[aarch64] = "Enable instructions for aarch64" +TUNEVALID[bigendian] = "Enable big-endian mode." +TUNECONFLICTS[aarch64] = "" +MACHINEOVERRIDES .= "${@bb.utils.contains("TUNE_FEATURES", "aarch64", ":aarch64", "" ,d)}" + +# Little Endian base configs +AVAILTUNES += "aarch64 aarch64_be" +TUNE_FEATURES_tune-aarch64 ?= "aarch64" +TUNE_FEATURES_tune-aarch64_be ?= "${TUNE_FEATURES_tune-aarch64} bigendian" + +ARMPKGSFX_ENDIAN = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "_be", "", d)}" + +TUNE_ARCH = "aarch64${ARMPKGSFX_ENDIAN}" +TUNE_PKGARCH = "aarch64${ARMPKGSFX_ENDIAN}" + +PACKAGE_EXTRA_ARCHS = "aarch64${ARMPKGSFX_ENDIAN}" diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf new file mode 100644 index 0000000..eca99f7 --- /dev/null +++ b/meta/conf/machine/qemuarm64.conf @@ -0,0 +1,39 @@ +#@TYPE: Machine +#@NAME: generic armv8 machine +#@DESCRIPTION: generic machine to be used by linaro-media-create + +require conf/machine/include/arm/arch-armv8.inc + +PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" + +XSERVER ?= "xserver-xorg \ + mesa-driver-swrast \ + xf86-input-evdev \ + xf86-input-mouse \ + xf86-video-fbdev \ + xf86-input-keyboard" + +MACHINE_FEATURES = "" + +# Don't include kernels in standard images +RDEPENDS_kernel-base = "" + +PREFERRED_PROVIDER_virtual/kernel ?= "linux-linaro" + +KERNEL_IMAGETYPE = "Image" + +# We have to disable SERIAL_CONSOLE due to auto-serial-console +#SERIAL_CONSOLE = "115200 ttyAMA0" + +# Force auto-serial-console to be used by all image types +# Ideally this would be part of core oe or as a bbclassappend, +# but as we don't have an easy way to append a class, defining +# it here +#EXTRA_IMAGE_FEATURES += "autoserial" +#FEATURE_PACKAGES_autoserial = "auto-serial-console" + +# we do not want to have getty running on tty1 as we run +# auto-serial-console there +USE_VT = "0" + +baselib="lib64" -- 1.9.1 --------------040900050802000505060506-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mail.openembedded.org (Postfix) with ESMTP id 8939070EE2 for ; Wed, 27 Aug 2014 12:58:11 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id u10so247029lbd.19 for ; Wed, 27 Aug 2014 05:58:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8kC2bGVm6POVRV9wDQFecLYb4B0c+dAXf5in7dUMM0Q=; b=xrXLI6zBEjz4TQsTWxpb+o9Om+MP5bwA9esslTgBioMQWoIA6evhhEVGd2KVVCjU65 xtmAuRBaZwsm3PMdFaXCEvmCnDARToDEHPv4X3KGCli099RszFCmupHtz9MEcGf6MVJf 3yA/WJTUFvqS8uS5tHQHBURSJmhBZShhzxlcLPI7NtX0jLIoGG9+LEteOaTwz4YcZcU2 sfZid94HxT3yIpSiQccybEzHu6bZ/H4gMEi1IvFBcCQ40AAaV07dXTHVOtNpqPRRA0En dtaOxVIQoOw+fimpMXZF5zdvJmi7o18hBoJzadaMkd1Aa20mAfcDiEuZsliyfCKBoew/ 6rVg== MIME-Version: 1.0 X-Received: by 10.152.8.82 with SMTP id p18mr3374196laa.83.1409144292098; Wed, 27 Aug 2014 05:58:12 -0700 (PDT) Received: by 10.112.202.67 with HTTP; Wed, 27 Aug 2014 05:58:12 -0700 (PDT) In-Reply-To: <53FDB8B5.8030802@windriver.com> References: <53FDB8B5.8030802@windriver.com> Date: Wed, 27 Aug 2014 08:58:12 -0400 Message-ID: From: Bruce Ashfield To: Kang Kai Cc: oe-core Subject: Re: Question about aarch64 target X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2014 12:58:15 -0000 Content-Type: text/plain; charset=UTF-8 On Wed, Aug 27, 2014 at 6:53 AM, Kang Kai wrote: > Hi Saul, > > I am working on Bug 6487 - Add Aarch64 qemu target. I take tune and config > files from linaro then succeeds to build core-image-minimal and > core-image-sato. > > And I have 2 question about it now: > 1 What should the new qemu aarch64 bsp looks like at the end? Do the files > in the patch attached are enough? And what more test should we do except to I've said this *many* times, but no one has ever responded. We need the kernel support to match the linux-yocto* home for the other core/emulated BSPs .. that way I can help support, test and bring everything forward. We have a 3.14 and 3.16+ version of the recipe available, and I've looked into this in the past ... the delta needed in those kernel versions is not significant. Bruce > build images such as core-image-sato, core-image-sato even build world? > > 2 There 2 aarch64 configure files from linaro. First one is little endian > and it is as default, and the other one is big endian. I take the little > endian one as qemuarm64.conf as linaro does. Do we need add the other one as > qemuarm64_be.conf or something like that? > > -- > Regards, > Neil | Kai Kang > > > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core > -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end" From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mail.openembedded.org (Postfix) with ESMTP id 24E0065E94 for ; Thu, 28 Aug 2014 07:29:34 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id et14so1437327pad.2 for ; Thu, 28 Aug 2014 00:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=C3ksyiRtsWHSh+ocmUm6ezc6bq5UxUVTXZWP3g3EPJo=; b=Nq8YpMV0M+y49bJkWfiznJ482LJXda3I2I0c1PkEyTiBH7dSMRw/ujQV9pS6mi6kUB 8kt1NIpqp5+Xam+FbmCGm+HeOzuCMaQV08UwC3jlHRCDRk1dMuv/WglvJAtbZH595Cxx rTXAbBRjUX9eBZM2elxQPe2gmiBmQwYDK3zs8ig98pjCb3/YyCMwGZsvIWLTzAgvDqxU uLR1lKxO7e+ZYQDR0V2JwSCuzZhRkBABSs14G0o8bXCAeENkIr29Hj9WwP/fiYBc75Y7 VsS5Mmdvs6RFmRvnBdNyr58kqdKPsVOb+tILY5RZzIuCLZPGq7gMqTNj4XGfak4qj8+4 kHjg== X-Received: by 10.70.96.142 with SMTP id ds14mr2944608pdb.45.1409210975997; Thu, 28 Aug 2014 00:29:35 -0700 (PDT) Received: from haswell ([2601:9:3580:7a5:baca:3aff:fe80:aa8f]) by mx.google.com with ESMTPSA id qn7sm2664121pbc.14.2014.08.28.00.29.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Aug 2014 00:29:35 -0700 (PDT) Date: Thu, 28 Aug 2014 00:33:15 -0700 From: Khem Raj To: Kang Kai Message-ID: <20140828073315.GF13139@haswell> References: <53FDB8B5.8030802@windriver.com> MIME-Version: 1.0 In-Reply-To: <53FDB8B5.8030802@windriver.com> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: oe-core Subject: Re: Question about aarch64 target X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2014 07:29:40 -0000 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On 14-08-27 18:53:41, Kang Kai wrote: > Hi Saul, > > I am working on Bug 6487 - Add Aarch64 qemu target. I take tune and config > files from linaro then succeeds to build core-image-minimal and > core-image-sato. > > And I have 2 question about it now: > 1 What should the new qemu aarch64 bsp looks like at the end? Do the files > in the patch attached are enough? And what more test should we do except to > build images such as core-image-sato, core-image-sato even build world? > may be eventually support linux-yocto, and linux-linaro both, it should be tested at same level as other QEMU BSPs > 2 There 2 aarch64 configure files from linaro. First one is little endian > and it is as default, and the other one is big endian. I take the little > endian one as qemuarm64.conf as linaro does. Do we need add the other one as > qemuarm64_be.conf or something like that? Name them same as meta-linaro please, so eventually linaro layer can drop it and take up the maintenance of them in OE-Core > > -- > Regards, > Neil | Kai Kang > > From e20a3e1252d895c2098fc99d7a0b8ff42ec2c439 Mon Sep 17 00:00:00 2001 > From: Kai Kang > Date: Fri, 22 Aug 2014 10:46:10 +0800 > Subject: [PATCH] add qemu aarch64 > > Signed-off-by: Kai Kang > --- > meta/conf/machine/genericarmv8.conf | 37 ++++++++++++++++++++++++++ > meta/conf/machine/genericarmv8b.conf | 8 ++++++ > meta/conf/machine/include/arm/arch-armv8.inc | 20 ++++++++++++++ > meta/conf/machine/qemuarm64.conf | 39 ++++++++++++++++++++++++++++ > 4 files changed, 104 insertions(+) > create mode 100644 meta/conf/machine/genericarmv8.conf > create mode 100644 meta/conf/machine/genericarmv8b.conf > create mode 100644 meta/conf/machine/include/arm/arch-armv8.inc > create mode 100644 meta/conf/machine/qemuarm64.conf > > diff --git a/meta/conf/machine/genericarmv8.conf b/meta/conf/machine/genericarmv8.conf > new file mode 100644 > index 0000000..1d05238 > --- /dev/null > +++ b/meta/conf/machine/genericarmv8.conf > @@ -0,0 +1,37 @@ > +#@TYPE: Machine > +#@NAME: generic armv8 machine > +#@DESCRIPTION: generic machine to be used by linaro-media-create > + > +require conf/machine/include/arm64/arch-armv8.inc > + > +PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" > + > +XSERVER ?= "xserver-xorg \ > + mesa-driver-swrast \ > + xf86-input-evdev \ > + xf86-input-mouse \ > + xf86-video-fbdev \ > + xf86-input-keyboard" > + > +MACHINE_FEATURES = "" > + > +# Don't include kernels in standard images > +RDEPENDS_kernel-base = "" > + > +PREFERRED_PROVIDER_virtual/kernel ?= "linux-linaro" > + > +KERNEL_IMAGETYPE = "Image" > + > +# We have to disable SERIAL_CONSOLE due to auto-serial-console > +#SERIAL_CONSOLE = "115200 ttyAMA0" > + > +# Force auto-serial-console to be used by all image types > +# Ideally this would be part of core oe or as a bbclassappend, > +# but as we don't have an easy way to append a class, defining > +# it here > +EXTRA_IMAGE_FEATURES += "autoserial" > +FEATURE_PACKAGES_autoserial = "auto-serial-console" > + > +# we do not want to have getty running on tty1 as we run > +# auto-serial-console there > +USE_VT = "0" > diff --git a/meta/conf/machine/genericarmv8b.conf b/meta/conf/machine/genericarmv8b.conf > new file mode 100644 > index 0000000..e70de08 > --- /dev/null > +++ b/meta/conf/machine/genericarmv8b.conf > @@ -0,0 +1,8 @@ > +#@TYPE: Machine > +#@NAME: generic armv8 big endian machine > +#@DESCRIPTION: generic machine to be used by linaro-media-create > +DEFAULTTUNE = "aarch64_be" > + > +PREFERRED_PROVIDER_virtual/kernel ?= "linux-dummy" > + > +require conf/machine/genericarmv8.conf > diff --git a/meta/conf/machine/include/arm/arch-armv8.inc b/meta/conf/machine/include/arm/arch-armv8.inc > new file mode 100644 > index 0000000..c86142a > --- /dev/null > +++ b/meta/conf/machine/include/arm/arch-armv8.inc > @@ -0,0 +1,20 @@ > +DEFAULTTUNE ?= "aarch64" > + > +ARMPKGARCH ?= "aarch64" > + > +TUNEVALID[aarch64] = "Enable instructions for aarch64" > +TUNEVALID[bigendian] = "Enable big-endian mode." > +TUNECONFLICTS[aarch64] = "" > +MACHINEOVERRIDES .= "${@bb.utils.contains("TUNE_FEATURES", "aarch64", ":aarch64", "" ,d)}" > + > +# Little Endian base configs > +AVAILTUNES += "aarch64 aarch64_be" > +TUNE_FEATURES_tune-aarch64 ?= "aarch64" > +TUNE_FEATURES_tune-aarch64_be ?= "${TUNE_FEATURES_tune-aarch64} bigendian" > + > +ARMPKGSFX_ENDIAN = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "_be", "", d)}" > + > +TUNE_ARCH = "aarch64${ARMPKGSFX_ENDIAN}" > +TUNE_PKGARCH = "aarch64${ARMPKGSFX_ENDIAN}" > + > +PACKAGE_EXTRA_ARCHS = "aarch64${ARMPKGSFX_ENDIAN}" > diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf > new file mode 100644 > index 0000000..eca99f7 > --- /dev/null > +++ b/meta/conf/machine/qemuarm64.conf > @@ -0,0 +1,39 @@ > +#@TYPE: Machine > +#@NAME: generic armv8 machine > +#@DESCRIPTION: generic machine to be used by linaro-media-create > + > +require conf/machine/include/arm/arch-armv8.inc > + > +PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" > + > +XSERVER ?= "xserver-xorg \ > + mesa-driver-swrast \ > + xf86-input-evdev \ > + xf86-input-mouse \ > + xf86-video-fbdev \ > + xf86-input-keyboard" > + > +MACHINE_FEATURES = "" > + > +# Don't include kernels in standard images > +RDEPENDS_kernel-base = "" > + > +PREFERRED_PROVIDER_virtual/kernel ?= "linux-linaro" > + > +KERNEL_IMAGETYPE = "Image" > + > +# We have to disable SERIAL_CONSOLE due to auto-serial-console > +#SERIAL_CONSOLE = "115200 ttyAMA0" > + > +# Force auto-serial-console to be used by all image types > +# Ideally this would be part of core oe or as a bbclassappend, > +# but as we don't have an easy way to append a class, defining > +# it here > +#EXTRA_IMAGE_FEATURES += "autoserial" > +#FEATURE_PACKAGES_autoserial = "auto-serial-console" > + > +# we do not want to have getty running on tty1 as we run > +# auto-serial-console there > +USE_VT = "0" > + > +baselib="lib64" > -- > 1.9.1 > > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id DA79165D56 for ; Thu, 28 Aug 2014 08:03:53 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.9/8.14.5) with ESMTP id s7S83ovY014426 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 28 Aug 2014 01:03:51 -0700 (PDT) Received: from [128.224.162.231] (128.224.162.231) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 28 Aug 2014 01:03:50 -0700 Message-ID: <53FEE267.6010303@windriver.com> Date: Thu, 28 Aug 2014 16:03:51 +0800 From: Kang Kai User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Khem Raj References: <53FDB8B5.8030802@windriver.com> <20140828073315.GF13139@haswell> In-Reply-To: <20140828073315.GF13139@haswell> X-Originating-IP: [128.224.162.231] Cc: oe-core Subject: Re: Question about aarch64 target X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2014 08:04:00 -0000 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit On 2014年08月28日 15:33, Khem Raj wrote: > On 14-08-27 18:53:41, Kang Kai wrote: >> Hi Saul, >> >> I am working on Bug 6487 - Add Aarch64 qemu target. I take tune and config >> files from linaro then succeeds to build core-image-minimal and >> core-image-sato. >> >> And I have 2 question about it now: >> 1 What should the new qemu aarch64 bsp looks like at the end? Do the files >> in the patch attached are enough? And what more test should we do except to >> build images such as core-image-sato, core-image-sato even build world? >> > may be eventually support linux-yocto, and linux-linaro both, it should > be tested at same level as other QEMU BSPs > >> 2 There 2 aarch64 configure files from linaro. First one is little endian >> and it is as default, and the other one is big endian. I take the little >> endian one as qemuarm64.conf as linaro does. Do we need add the other one as >> qemuarm64_be.conf or something like that? > Name them same as meta-linaro please, so eventually linaro layer can > drop it and take up the maintenance of them in OE-Core Keep same name with linaro is convenient for merge work. But the name 'genericarmv8' is not coordinated with existing qemu bsps. I prefer to use qemuarmv8 for coordination. Regards, Kai > >> -- >> Regards, >> Neil | Kai Kang >> >> From e20a3e1252d895c2098fc99d7a0b8ff42ec2c439 Mon Sep 17 00:00:00 2001 >> From: Kai Kang >> Date: Fri, 22 Aug 2014 10:46:10 +0800 >> Subject: [PATCH] add qemu aarch64 >> >> Signed-off-by: Kai Kang >> --- >> meta/conf/machine/genericarmv8.conf | 37 ++++++++++++++++++++++++++ >> meta/conf/machine/genericarmv8b.conf | 8 ++++++ >> meta/conf/machine/include/arm/arch-armv8.inc | 20 ++++++++++++++ >> meta/conf/machine/qemuarm64.conf | 39 ++++++++++++++++++++++++++++ >> 4 files changed, 104 insertions(+) >> create mode 100644 meta/conf/machine/genericarmv8.conf >> create mode 100644 meta/conf/machine/genericarmv8b.conf >> create mode 100644 meta/conf/machine/include/arm/arch-armv8.inc >> create mode 100644 meta/conf/machine/qemuarm64.conf >> >> diff --git a/meta/conf/machine/genericarmv8.conf b/meta/conf/machine/genericarmv8.conf >> new file mode 100644 >> index 0000000..1d05238 >> --- /dev/null >> +++ b/meta/conf/machine/genericarmv8.conf >> @@ -0,0 +1,37 @@ >> +#@TYPE: Machine >> +#@NAME: generic armv8 machine >> +#@DESCRIPTION: generic machine to be used by linaro-media-create >> + >> +require conf/machine/include/arm64/arch-armv8.inc >> + >> +PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" >> + >> +XSERVER ?= "xserver-xorg \ >> + mesa-driver-swrast \ >> + xf86-input-evdev \ >> + xf86-input-mouse \ >> + xf86-video-fbdev \ >> + xf86-input-keyboard" >> + >> +MACHINE_FEATURES = "" >> + >> +# Don't include kernels in standard images >> +RDEPENDS_kernel-base = "" >> + >> +PREFERRED_PROVIDER_virtual/kernel ?= "linux-linaro" >> + >> +KERNEL_IMAGETYPE = "Image" >> + >> +# We have to disable SERIAL_CONSOLE due to auto-serial-console >> +#SERIAL_CONSOLE = "115200 ttyAMA0" >> + >> +# Force auto-serial-console to be used by all image types >> +# Ideally this would be part of core oe or as a bbclassappend, >> +# but as we don't have an easy way to append a class, defining >> +# it here >> +EXTRA_IMAGE_FEATURES += "autoserial" >> +FEATURE_PACKAGES_autoserial = "auto-serial-console" >> + >> +# we do not want to have getty running on tty1 as we run >> +# auto-serial-console there >> +USE_VT = "0" >> diff --git a/meta/conf/machine/genericarmv8b.conf b/meta/conf/machine/genericarmv8b.conf >> new file mode 100644 >> index 0000000..e70de08 >> --- /dev/null >> +++ b/meta/conf/machine/genericarmv8b.conf >> @@ -0,0 +1,8 @@ >> +#@TYPE: Machine >> +#@NAME: generic armv8 big endian machine >> +#@DESCRIPTION: generic machine to be used by linaro-media-create >> +DEFAULTTUNE = "aarch64_be" >> + >> +PREFERRED_PROVIDER_virtual/kernel ?= "linux-dummy" >> + >> +require conf/machine/genericarmv8.conf >> diff --git a/meta/conf/machine/include/arm/arch-armv8.inc b/meta/conf/machine/include/arm/arch-armv8.inc >> new file mode 100644 >> index 0000000..c86142a >> --- /dev/null >> +++ b/meta/conf/machine/include/arm/arch-armv8.inc >> @@ -0,0 +1,20 @@ >> +DEFAULTTUNE ?= "aarch64" >> + >> +ARMPKGARCH ?= "aarch64" >> + >> +TUNEVALID[aarch64] = "Enable instructions for aarch64" >> +TUNEVALID[bigendian] = "Enable big-endian mode." >> +TUNECONFLICTS[aarch64] = "" >> +MACHINEOVERRIDES .= "${@bb.utils.contains("TUNE_FEATURES", "aarch64", ":aarch64", "" ,d)}" >> + >> +# Little Endian base configs >> +AVAILTUNES += "aarch64 aarch64_be" >> +TUNE_FEATURES_tune-aarch64 ?= "aarch64" >> +TUNE_FEATURES_tune-aarch64_be ?= "${TUNE_FEATURES_tune-aarch64} bigendian" >> + >> +ARMPKGSFX_ENDIAN = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "_be", "", d)}" >> + >> +TUNE_ARCH = "aarch64${ARMPKGSFX_ENDIAN}" >> +TUNE_PKGARCH = "aarch64${ARMPKGSFX_ENDIAN}" >> + >> +PACKAGE_EXTRA_ARCHS = "aarch64${ARMPKGSFX_ENDIAN}" >> diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf >> new file mode 100644 >> index 0000000..eca99f7 >> --- /dev/null >> +++ b/meta/conf/machine/qemuarm64.conf >> @@ -0,0 +1,39 @@ >> +#@TYPE: Machine >> +#@NAME: generic armv8 machine >> +#@DESCRIPTION: generic machine to be used by linaro-media-create >> + >> +require conf/machine/include/arm/arch-armv8.inc >> + >> +PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" >> + >> +XSERVER ?= "xserver-xorg \ >> + mesa-driver-swrast \ >> + xf86-input-evdev \ >> + xf86-input-mouse \ >> + xf86-video-fbdev \ >> + xf86-input-keyboard" >> + >> +MACHINE_FEATURES = "" >> + >> +# Don't include kernels in standard images >> +RDEPENDS_kernel-base = "" >> + >> +PREFERRED_PROVIDER_virtual/kernel ?= "linux-linaro" >> + >> +KERNEL_IMAGETYPE = "Image" >> + >> +# We have to disable SERIAL_CONSOLE due to auto-serial-console >> +#SERIAL_CONSOLE = "115200 ttyAMA0" >> + >> +# Force auto-serial-console to be used by all image types >> +# Ideally this would be part of core oe or as a bbclassappend, >> +# but as we don't have an easy way to append a class, defining >> +# it here >> +#EXTRA_IMAGE_FEATURES += "autoserial" >> +#FEATURE_PACKAGES_autoserial = "auto-serial-console" >> + >> +# we do not want to have getty running on tty1 as we run >> +# auto-serial-console there >> +USE_VT = "0" >> + >> +baselib="lib64" >> -- >> 1.9.1 >> >> -- >> _______________________________________________ >> Openembedded-core mailing list >> Openembedded-core@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-core > > -- Regards, Neil | Kai Kang From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by mail.openembedded.org (Postfix) with ESMTP id A809A65D34 for ; Thu, 28 Aug 2014 08:10:15 +0000 (UTC) Received: by mail-pa0-f48.google.com with SMTP id ey11so1553460pad.7 for ; Thu, 28 Aug 2014 01:10:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=aGEQx4F5DMOVytDrUr7KcdI5XLwpbnXVjMFgKbFFO6Y=; b=nRob0SENRB1if1aHxc1z/yxVlq6j5BekLCNhjkf7sgClY9oRXgT9S/9BGGy/8CEQPv tDa1c29u6ES+4V7LVNgxPIy535F2qE9N02YvKP98DiZ1z8o/kJHdaJHJNctOTPrbxh6P PDw71TR8wLuCi+PtSp2ZDO+KzVbaDKg4qf3A10g3dVnU5L+UVqhjgeq2vhhyBT1k8Pkr av7YHPmzIsbkyG668rwxebafDH4Pfp4OjO++Z2+QI0BGGUOPIEDJd4PVaw77ZqOC4e/M Gb0pzpn7Z4Vas9wj5TTagCOmeJ9elv2fPZugJwUCWulqQJHO/TlsvjjWd4gf1Qk2fm4V YWMg== X-Received: by 10.70.41.11 with SMTP id b11mr3110883pdl.11.1409213412073; Thu, 28 Aug 2014 01:10:12 -0700 (PDT) Received: from haswell ([2601:9:3580:7a5:baca:3aff:fe80:aa8f]) by mx.google.com with ESMTPSA id b15sm4125889pdm.90.2014.08.28.01.10.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Aug 2014 01:10:11 -0700 (PDT) Date: Thu, 28 Aug 2014 01:13:51 -0700 From: Khem Raj To: Kang Kai Message-ID: <20140828081351.GJ13139@haswell> References: <53FDB8B5.8030802@windriver.com> <20140828073315.GF13139@haswell> <53FEE267.6010303@windriver.com> MIME-Version: 1.0 In-Reply-To: <53FEE267.6010303@windriver.com> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: oe-core Subject: Re: Question about aarch64 target X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2014 08:10:16 -0000 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 14-08-28 16:03:51, Kang Kai wrote: > On 2014年08月28日 15:33, Khem Raj wrote: > >On 14-08-27 18:53:41, Kang Kai wrote: > >>Hi Saul, > >> > >>I am working on Bug 6487 - Add Aarch64 qemu target. I take tune and config > >>files from linaro then succeeds to build core-image-minimal and > >>core-image-sato. > >> > >>And I have 2 question about it now: > >>1 What should the new qemu aarch64 bsp looks like at the end? Do the files > >>in the patch attached are enough? And what more test should we do except to > >>build images such as core-image-sato, core-image-sato even build world? > >> > >may be eventually support linux-yocto, and linux-linaro both, it should > >be tested at same level as other QEMU BSPs > > > >>2 There 2 aarch64 configure files from linaro. First one is little endian > >>and it is as default, and the other one is big endian. I take the little > >>endian one as qemuarm64.conf as linaro does. Do we need add the other one as > >>qemuarm64_be.conf or something like that? > >Name them same as meta-linaro please, so eventually linaro layer can > >drop it and take up the maintenance of them in OE-Core > > Keep same name with linaro is convenient for merge work. But the name > 'genericarmv8' is not coordinated with existing qemu bsps. I prefer to use > qemuarmv8 for coordination. Thats a valid point, I would give in.