Skip to contentSkip to conversation

Add support for MIPS32r2 and CI20 to Yocto

PATCH In review Vicente Olivert Riera 4 participants 7 messages Sep 12, 2014 – Sep 15, 2014

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
new file mode 100644
index 0000000..b36d00a
@@ -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
#2 lore raw

PATCH 2/2 Add MIPS Creator CI20 machine

In reply to 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_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
new file mode 100644
index 0000000..bd26815
@@ -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
#3 lore raw

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_linux

More 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
---
  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
new file mode 100644
index 0000000..bd26815
@@ -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"
#4 lore raw

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_linux

More 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.

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

#5 lore raw
In reply to Vicente Olivert Riera
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 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
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

#6 lore raw
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 machine

  meta-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.conf create mode 100644 meta/conf/machine/include/tune-mips32r2.inc

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Hi 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