All of lore.kernel.org
 help / color / mirror / Atom feed
* (No subject)
@ 2018-10-04 13:29 Angelo Dureghello
  2018-10-04 13:29 ` [PATCH 1/4] siteinfo: define data for m68k Angelo Dureghello
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Angelo Dureghello @ 2018-10-04 13:29 UTC (permalink / raw)
  To: openembedded-core


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. 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 1/4] siteinfo: define data for m68k
  2018-10-04 13:29 (No subject) Angelo Dureghello
@ 2018-10-04 13:29 ` Angelo Dureghello
  2018-10-04 13:29 ` [PATCH 2/4] kernel-arch.bbclass: add m68k to kernel arch map Angelo Dureghello
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Angelo Dureghello @ 2018-10-04 13:29 UTC (permalink / raw)
  To: openembedded-core; +Cc: Angelo Dureghello

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
---
 meta/classes/siteinfo.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/siteinfo.bbclass b/meta/classes/siteinfo.bbclass
index 24585d5842..411e70478e 100644
--- a/meta/classes/siteinfo.bbclass
+++ b/meta/classes/siteinfo.bbclass
@@ -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",
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/4] kernel-arch.bbclass: add m68k to kernel arch map
  2018-10-04 13:29 (No subject) Angelo Dureghello
  2018-10-04 13:29 ` [PATCH 1/4] siteinfo: define data for m68k Angelo Dureghello
@ 2018-10-04 13:29 ` Angelo Dureghello
  2018-10-04 13:29 ` [PATCH 3/4] conf/machine/include: add m68k architecture definitions Angelo Dureghello
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Angelo Dureghello @ 2018-10-04 13:29 UTC (permalink / raw)
  To: openembedded-core; +Cc: Angelo Dureghello

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
---
 meta/classes/kernel-arch.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass
index 2b52a63c64..07ec242e63 100644
--- a/meta/classes/kernel-arch.bbclass
+++ b/meta/classes/kernel-arch.bbclass
@@ -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'
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 3/4] conf/machine/include: add m68k architecture definitions
  2018-10-04 13:29 (No subject) Angelo Dureghello
  2018-10-04 13:29 ` [PATCH 1/4] siteinfo: define data for m68k Angelo Dureghello
  2018-10-04 13:29 ` [PATCH 2/4] kernel-arch.bbclass: add m68k to kernel arch map Angelo Dureghello
@ 2018-10-04 13:29 ` Angelo Dureghello
  2018-10-04 22:02   ` Richard Purdie
  2018-10-04 13:29 ` [PATCH 4/4] conf/machine/include: add mcf5441x cpu type tuning Angelo Dureghello
  2018-10-04 13:55 ` (No subject) Burton, Ross
  4 siblings, 1 reply; 10+ messages in thread
From: Angelo Dureghello @ 2018-10-04 13:29 UTC (permalink / raw)
  To: openembedded-core; +Cc: Angelo Dureghello

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
---
 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

diff --git a/meta/conf/machine/include/m68k/README b/meta/conf/machine/include/m68k/README
new file mode 100644
index 0000000000..58722da6c4
--- /dev/null
+++ b/meta/conf/machine/include/m68k/README
@@ -0,0 +1,9 @@
+2018/10/03 - Angelo Dureghello <angelo@sysam.it>
+  - 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}}.
+
diff --git a/meta/conf/machine/include/m68k/arch-m68k.inc b/meta/conf/machine/include/m68k/arch-m68k.inc
new file mode 100644
index 0000000000..3ff8a3a5b5
--- /dev/null
+++ b/meta/conf/machine/include/m68k/arch-m68k.inc
@@ -0,0 +1,8 @@
+# m68k Architecture definitions
+
+DEFAULTTUNE ?= "m68k"
+
+# Architecture name
+TUNE_ARCH = "m68k"
+
+TUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}"
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 4/4] conf/machine/include: add mcf5441x cpu type tuning
  2018-10-04 13:29 (No subject) Angelo Dureghello
                   ` (2 preceding siblings ...)
  2018-10-04 13:29 ` [PATCH 3/4] conf/machine/include: add m68k architecture definitions Angelo Dureghello
@ 2018-10-04 13:29 ` Angelo Dureghello
  2018-10-04 13:55 ` (No subject) Burton, Ross
  4 siblings, 0 replies; 10+ messages in thread
From: Angelo Dureghello @ 2018-10-04 13:29 UTC (permalink / raw)
  To: openembedded-core; +Cc: Angelo Dureghello

This patch adds tuning for the mcf5441x ColdFire family.

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
---
 meta/conf/machine/include/tune-mcf5441x.inc | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-mcf5441x.inc

diff --git a/meta/conf/machine/include/tune-mcf5441x.inc b/meta/conf/machine/include/tune-mcf5441x.inc
new file mode 100644
index 0000000000..11a41a7c5d
--- /dev/null
+++ b/meta/conf/machine/include/tune-mcf5441x.inc
@@ -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"
+
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* (No subject)
  2018-10-04 13:29 (No subject) Angelo Dureghello
                   ` (3 preceding siblings ...)
  2018-10-04 13:29 ` [PATCH 4/4] conf/machine/include: add mcf5441x cpu type tuning Angelo Dureghello
@ 2018-10-04 13:55 ` Burton, Ross
  2018-10-04 15:00   ` Andrea Adami
  2018-10-04 15:08   ` Angelo Dureghello
  4 siblings, 2 replies; 10+ messages in thread
From: Burton, Ross @ 2018-10-04 13:55 UTC (permalink / raw)
  To: angelo; +Cc: OE-core

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
On Thu, 4 Oct 2018 at 14:30, Angelo Dureghello <angelo@sysam.it> wrote:
>
>
> 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
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 10+ messages in thread

* (No subject)
  2018-10-04 13:55 ` (No subject) Burton, Ross
@ 2018-10-04 15:00   ` Andrea Adami
  2018-10-04 15:08   ` Angelo Dureghello
  1 sibling, 0 replies; 10+ messages in thread
From: Andrea Adami @ 2018-10-04 15:00 UTC (permalink / raw)
  To: Burton, Ross; +Cc: Patches and discussions about the oe-core layer, angelo

On Thu, Oct 4, 2018 at 3:55 PM Burton, Ross <ross.burton@intel.com> wrote:
>
> 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...

>On Thu, 4 Oct 2018 at 14:30, Angelo Dureghello <angelo@sysam.it> wrote:
> >
> >
> > 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
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 10+ messages in thread

* (No subject)
  2018-10-04 13:55 ` (No subject) Burton, Ross
  2018-10-04 15:00   ` Andrea Adami
@ 2018-10-04 15:08   ` Angelo Dureghello
  1 sibling, 0 replies; 10+ messages in thread
From: Angelo Dureghello @ 2018-10-04 15:08 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

Hi Burton,

On Thu, Oct 04, 2018 at 02:55:37PM +0100, Burton, Ross wrote:
> 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
 
> Ross
> On Thu, 4 Oct 2018 at 14:30, Angelo Dureghello <angelo@sysam.it> wrote:
> >
> >
> > 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
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 3/4] conf/machine/include: add m68k architecture definitions
  2018-10-04 13:29 ` [PATCH 3/4] conf/machine/include: add m68k architecture definitions Angelo Dureghello
@ 2018-10-04 22:02   ` Richard Purdie
  2018-10-04 22:56     ` Khem Raj
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Purdie @ 2018-10-04 22:02 UTC (permalink / raw)
  To: Angelo Dureghello, openembedded-core

On Thu, 2018-10-04 at 15:29 +0200, Angelo Dureghello wrote:
> Signed-off-by: Angelo Dureghello <angelo@sysam.it>
> ---
>  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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 3/4] conf/machine/include: add m68k architecture definitions
  2018-10-04 22:02   ` Richard Purdie
@ 2018-10-04 22:56     ` Khem Raj
  0 siblings, 0 replies; 10+ messages in thread
From: Khem Raj @ 2018-10-04 22:56 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer, angelo

On Thu, Oct 4, 2018 at 3:03 PM Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
>
> On Thu, 2018-10-04 at 15:29 +0200, Angelo Dureghello wrote:
> > Signed-off-by: Angelo Dureghello <angelo@sysam.it>
> > ---
> >  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.

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

>
> Cheers,
>
> Richard
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-10-04 22:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-04 13:29 (No subject) Angelo Dureghello
2018-10-04 13:29 ` [PATCH 1/4] siteinfo: define data for m68k Angelo Dureghello
2018-10-04 13:29 ` [PATCH 2/4] kernel-arch.bbclass: add m68k to kernel arch map Angelo Dureghello
2018-10-04 13:29 ` [PATCH 3/4] conf/machine/include: add m68k architecture definitions Angelo Dureghello
2018-10-04 22:02   ` Richard Purdie
2018-10-04 22:56     ` Khem Raj
2018-10-04 13:29 ` [PATCH 4/4] conf/machine/include: add mcf5441x cpu type tuning Angelo Dureghello
2018-10-04 13:55 ` (No subject) Burton, Ross
2018-10-04 15:00   ` Andrea Adami
2018-10-04 15:08   ` Angelo Dureghello

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.