Skip to contentSkip to conversation

(No subject)

PATCH In review Angelo Dureghello 5 participants 10 messages Oct 4, 2018

lore
Share & tools
lore
#0 lore raw

This patch serie adds initial support for m68k architecture. A Linux kernel build has been tested successfully using a local meta layer, or kernel-yocto.

#1 lore raw

PATCH 1/4 siteinfo: define data for m68k

---
 meta/classes/siteinfo.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/siteinfo.bbclass +1 -0
index 24585d5842..411e70478e 100644
@@ -33,6 +33,7 @@ def siteinfo_data_for_machine(arch, os, d):
         "i686": "endian-little bit-32 ix86-common",
         "ia64": "endian-little bit-64",
         "lm32": "endian-big bit-32",
+        "m68k": "endian-big bit-32",
         "microblaze": "endian-big bit-32 microblaze-common",
         "microblazeeb": "endian-big bit-32 microblaze-common",
         "microblazeel": "endian-little bit-32 microblaze-common",
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/4 kernel-arch.bbclass: add m68k to kernel arch map

In reply to Angelo Dureghello
---
 meta/classes/kernel-arch.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/kernel-arch.bbclass +1 -0
index 2b52a63c64..07ec242e63 100644
@@ -29,6 +29,7 @@ def map_kernel_arch(a, d):
     elif re.match('aarch64_ilp32$', a):         return 'arm64'
     elif re.match('aarch64_be_ilp32$', a):      return 'arm64'
     elif re.match('mips(isa|)(32|64|)(r6|)(el|)$', a):      return 'mips'
+    elif re.match('mcf', a):                    return 'm68k'
     elif re.match('riscv(32|64|)(eb|)$', a):    return 'riscv'
     elif re.match('p(pc|owerpc)(|64)', a):      return 'powerpc'
     elif re.match('sh(3|4)$', a):               return 'sh'
Signature · 1 line
2.11.0
#3 lore raw

PATCH 3/4 conf/machine/include: add m68k architecture definitions

In reply to Angelo Dureghello
---
 meta/conf/machine/include/m68k/README        | 9 +++++++++
 meta/conf/machine/include/m68k/arch-m68k.inc | 8 ++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 meta/conf/machine/include/m68k/README
 create mode 100644 meta/conf/machine/include/m68k/arch-m68k.inc
meta/conf/machine/include/m68k/README new file +9 -0
new file mode 100644
index 0000000000..58722da6c4
@@ -0,0 +1,9 @@
+2018/10/03 - Angelo Dureghello <[email protected]>
+  - Initial revision
+
+There are actually no ABIs defined.
+
+The TUNE_ARCH is defined as "m68k".
+
+The TUNE_PKGARCH is defind as ${TUNE_PKGARCH_tune-${DEFAULTTUNE}}.
+
meta/conf/machine/include/m68k/arch-m68k.inc new file +8 -0
new file mode 100644
index 0000000000..3ff8a3a5b5
@@ -0,0 +1,8 @@
+# m68k Architecture definitions
+
+DEFAULTTUNE ?= "m68k"
+
+# Architecture name
+TUNE_ARCH = "m68k"
+
+TUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}"
Signature · 1 line
2.11.0
#4 lore raw

Re: [PATCH 3/4] conf/machine/include: add m68k architecture definitions

Quoted 7 lines · Angelo Dureghello
---
 meta/conf/machine/include/m68k/README        | 9 +++++++++
 meta/conf/machine/include/m68k/arch-m68k.inc | 8 ++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 meta/conf/machine/include/m68k/README
 create mode 100644 meta/conf/machine/include/m68k/arch-m68k.inc

I'm going to queue these even though its late in the cycle. I removed the README from the patch though since I didn't think it was adding much value.

Cheers,

Richard

#5 lore raw

Re: [PATCH 3/4] conf/machine/include: add m68k architecture definitions

Quoted 10 lines · Richard Purdie
Quoted 7 lines · Angelo Dureghello
---
 meta/conf/machine/include/m68k/README        | 9 +++++++++
 meta/conf/machine/include/m68k/arch-m68k.inc | 8 ++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 meta/conf/machine/include/m68k/README
 create mode 100644 meta/conf/machine/include/m68k/arch-m68k.inc
Quoted 3 lines

I'm going to queue these even though its late in the cycle. I removed the README from the patch though since I didn't think it was adding much value.

this series should be harmless so including it is ok I believe.

Quoted 9 lines

Cheers,

Richard
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#6 lore raw

PATCH 4/4 conf/machine/include: add mcf5441x cpu type tuning

In reply to Angelo Dureghello

This patch adds tuning for the mcf5441x ColdFire family.

---
 meta/conf/machine/include/tune-mcf5441x.inc | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-mcf5441x.inc
meta/conf/machine/include/tune-mcf5441x.inc new file +13 -0
new file mode 100644
index 0000000000..11a41a7c5d
@@ -0,0 +1,13 @@
+DEFAULTTUNE ?= "mcf5441x"
+
+require conf/machine/include/m68k/arch-m68k.inc
+
+TUNEVALID[mcf5441x] = "Enable coldfire specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'mcf5441x', ' -mcpu=54418', '', d)}"
+
+AVAILTUNES += "mcf5441x"
+TUNE_FEATURES_tune-mcf5441x = "mcf5441x"
+TUNE_ARCH_tune-mcf5441x = "mcf5441x"
+TUNE_PKGARCH_tune-mcf5441x = "mcf5441x"
+PACKAGE_EXTRA_ARCHS_tune-mcf5441x = "m68k mcf5441x"
+
Signature · 1 line
2.11.0
#7 lore raw
In reply to Angelo Dureghello

I'm curious: the data sheet for the processor you mention in 4/4 says that it ha 64K of RAM. Are there other processors in the range, or have you done incredible things?

Ross

Quoted 10 lines · Angelo Dureghello

This patch serie adds initial support for m68k architecture. A Linux kernel build has been tested successfully using a local meta layer, or kernel-yocto.
--
_______________________________________________
Openembedded-core mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#8 lore raw
Quoted 6 lines · Ross

I'm curious: the data sheet for the processor you mention in 4/4 says that it ha 64K of RAM. Are there other processors in the range, or have you done incredible things?

Ross

Heh,

64K is the internal sram..
There is a sdram controller DDR2 and a 32bit FlexBus bus for ROM/RAM so I bet there is more...
Cheers
Andrea

P.S. I will notice right now an old m68k acker...

Quoted 16 lines · Angelo Dureghello
Quoted 10 lines

This patch serie adds initial support for m68k architecture. A Linux kernel build has been tested successfully using a local meta layer, or kernel-yocto.
--
_______________________________________________
Openembedded-core mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#9 lore raw
In reply to Burton, Ross

Hi Burton,

Quoted 4 lines · Ross

I'm curious: the data sheet for the processor you mention in 4/4 says that it ha 64K of RAM. Are there other processors in the range, or have you done incredible things?

64KB is the internal static ram (SRAM), that's commonly 4 to 64K for this family (i.e. some recent arm reachs 512K).
Then there is the built-in SDRAM/DDR2 controller :)
where i connect 128MB of DDR2(SDRAM), but other boards may have more.

Linux runs fine in ColdFire family from a long time. Initially only non-MMU uClinux, now also the mainline kernel with MMU enabled.

Regards,
Angelo

Quoted 12 lines

Ross

Quoted 10 lines · Angelo Dureghello

This patch serie adds initial support for m68k architecture. A Linux kernel build has been tested successfully using a local meta layer, or kernel-yocto.
--
_______________________________________________
Openembedded-core mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core