Add support for MIPS32r2 and CI20 to Yocto
cover Add support for MIPS32r2 and CI20 to Yocto
Add support for the MIPS Creator CI20 machine. That board has a MIPS32r2 architecture so we also add support for that.
Vicente Olivert Riera (2):
Add support for MIPS32r2
Add MIPS Creator CI20 machine
meta-yocto-bsp/conf/machine/ci20.conf | 10 ++++++++++ meta/conf/machine/include/tune-mips32r2.inc | 25 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 0 deletions(-) create mode 100644 meta-yocto-bsp/conf/machine/ci20.conf create mode 100644 meta/conf/machine/include/tune-mips32r2.inc
PATCH 1/2 Add support for MIPS32r2
Add support for MIPS32r2.
--- meta/conf/machine/include/tune-mips32r2.inc | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 meta/conf/machine/include/tune-mips32r2.inc
meta/conf/machine/include/tune-mips32r2.inc new file +25 -0
@@ -0,0 +1,25 @@ +DEFAULTTUNE ?= "mips32r2" + +require conf/machine/include/mips/arch-mips.inc + +TUNEVALID[mips32r2] = "Enable mips32r2 specific processor optimizations" +TUNECONFLICTS[mips32r2] = "n64 n32" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "mips32r2", " -march=mips32r2", "", d)}" + +AVAILTUNES += "mips32r2 mips32r2el mips32r2-nf mips32r2el-nf" + +TUNE_FEATURES_tune-mips32r2 = "${TUNE_FEATURES_tune-mips} mips32r2" +MIPSPKGSFX_VARIANT_tune-mips32r2 = "mips32r2" +PACKAGE_EXTRA_ARCHS_tune-mips32r2 = "mips mips32r2" + +TUNE_FEATURES_tune-mips32r2el = "${TUNE_FEATURES_tune-mipsel} mips32r2" +MIPSPKGSFX_VARIANT_tune-mips32r2el = "mips32r2el" +PACKAGE_EXTRA_ARCHS_tune-mips32r2el = "mipsel mips32r2el" + +TUNE_FEATURES_tune-mips32r2-nf = "${TUNE_FEATURES_tune-mips-nf} mips32r2" +MIPSPKGSFX_VARIANT_tune-mips32r2-nf = "mips32r2" +PACKAGE_EXTRA_ARCHS_tune-mips32r2-nf = "mips-nf mips32r2-nf" + +TUNE_FEATURES_tune-mips32r2el-nf = "${TUNE_FEATURES_tune-mipsr2el-nf} mips32r2" +MIPSPKGSFX_VARIANT_tune-mips32r2el-nf = "mips32r2el" +PACKAGE_EXTRA_ARCHS_tune-mips32r2el-nf = "mipsel-nf mips32r2el-nf"
Signature · 1 line
1.7.1
PATCH 2/2 Add MIPS Creator CI20 machine
In reply to Vicente Olivert RieraAdd support for the MIPS Creator CI20 machine. You will need to build a working kernel for this board using this kernel repository on GitHub:
https://github.com/MIPS/CI20_linux
More information about this board can be found at:
http://elinux.org/MIPS_Creator_CI20
--- meta-yocto-bsp/conf/machine/ci20.conf | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) create mode 100644 meta-yocto-bsp/conf/machine/ci20.conf
meta-yocto-bsp/conf/machine/ci20.conf new file +10 -0
@@ -0,0 +1,10 @@ +#@TYPE: Machine +#@NAME: CI20 +#@DESCRIPTION: MIPS Creator CI20 + +require conf/machine/include/tune-mips32r2.inc + +DEFAULTTUNE = "mips32r2el" +MACHINE_FEATURES = "serial" +SERIAL_CONSOLE = "115200 ttyS4" +IMAGE_FSTYPES ?= "tar.bz2"
Signature · 1 line
1.7.1
Re: [PATCH 2/2] Add MIPS Creator CI20 machine
Quoted 8 lines · Vicente Olivert Riera
Add support for the MIPS Creator CI20 machine. You will need to build a working kernel for this board using this kernel repository on GitHub:
https://github.com/MIPS/CI20_linuxMore information about this board can be found at:
http://elinux.org/MIPS_Creator_CI20
All of the meta-yocto-bsp reference machines are using the kernel, and kernel version of linux-yocto* so we can ensure a consistent update cadence and set of features.
Something that I'd like to see continue.
I can see how the ability to re-use the tune files makes sense, but the BSP should follow the format and structure of the existing ones, otherwise, the value in pulling it into the common layers isn't there.
Bruce
Quoted 24 lines
Signed-off-by Vicente Olivert Riera <[email protected]>--- meta-yocto-bsp/conf/machine/ci20.conf | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)create mode 100644
meta-yocto-bsp/conf/machine/ci20.confmeta-yocto-bsp/conf/machine/ci20.conf new file +10
-0@@ -0,0 +1,10 @@ +#@TYPE: Machine +#@NAME: CI20 +#@DESCRIPTION: MIPS Creator CI20 + +require conf/machine/include/tune-mips32r2.inc + +DEFAULTTUNE = "mips32r2el" +MACHINE_FEATURES = "serial" +SERIAL_CONSOLE = "115200 ttyS4" +IMAGE_FSTYPES ?= "tar.bz2"
Re: [PATCH 2/2] Add MIPS Creator CI20 machine
Quoted 16 lines · Bruce Ashfield
Quoted 9 lines · Vicente Olivert Riera
Add support for the MIPS Creator CI20 machine. You will need to build a working kernel for this board using this kernel repository on GitHub:
https://github.com/MIPS/CI20_linuxMore information about this board can be found at:
http://elinux.org/MIPS_Creator_CI20All of the meta-yocto-bsp reference machines are using the kernel, and kernel version of linux-yocto* so we can ensure a consistent update cadence and set of features.
Quoted 5 lines
Something that I'd like to see continue.
I can see how the ability to re-use the tune files makes sense, but the BSP should follow the format and structure of the existing ones, otherwise, the value in pulling it into the common layers isn't there.
What Bruce said. You've a specific machine that needs a specific kernel, so this can happily live on as a Yocto-compatible BSP layer outside of meta-yocto.
Ross
Quoted 13 lines · Vicente Olivert Riera
Add support for the MIPS Creator CI20 machine. That board has a MIPS32r2 architecture so we also add support for that.
Vicente Olivert Riera (2):
Add support for MIPS32r2
Add MIPS Creator CI20 machinemeta-yocto-bsp/conf/machine/ci20.conf | 10 ++++++++++ meta/conf/machine/include/tune-mips32r2.inc | 25 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 0 deletions(-) create mode 100644 meta-yocto-bsp/conf/machine/ci20.conf create mode 100644 meta/conf/machine/include/tune-mips32r2.inc
Quoted 5 lines
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Hi Vicente,
there is already some support for mips32r2 (see include/tune-mips32r2.inc) in oe-core master.
It looks like your patch is extending it so please rebase and resend the patch to [email protected] for review.
Thanks
Andrea
Quoted 23 lines · Andrea Adami
Quoted 10 lines · Vicente Olivert Riera
Add support for the MIPS Creator CI20 machine. That board has a MIPS32r2 architecture so we also add support for that.
Vicente Olivert Riera (2):
Add support for MIPS32r2
Add MIPS Creator CI20 machinemeta-yocto-bsp/conf/machine/ci20.conf | 10 ++++++++++ meta/conf/machine/include/tune-mips32r2.inc | 25 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 0 deletions(-)Quoted 8 lines
create mode 100644
meta-yocto-bsp/conf/machine/ci20.confcreate mode 100644 meta/conf/machine/include/tune-mips32r2.inc--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yoctoHi Vicente,
Quoted 9 lines
there is already some support for mips32r2 (see
include/tune-mips32r2.inc) in oe-core master.
It looks like your patch is extending it so please rebase and resend the patch to [email protected] for review.Thanks
Andrea
Yeah, I have noticed there is support for mips32r2 hard-float in Yocto's master branch. I was cloning the Daisy branch.
mips32r2 hard-float is all I need, so by now I'm not going to make any change to that file.
Thanks.
Signature · 1 line
Vincent