Status of the Xtensa Port: Difference between revisions

From Linux/Xtensa
Jump to navigation Jump to search
(Initial version.)
 
m (add ltrace to debug section)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Xtensa Support in OpenSource Software ==
This page provides additional information for software support for the Xtensa architecture. While most applications are written architecture independent, development tools and operating systems must be ported to a new processor architecture. Support for the Xtensa architecture has already been integrated in most Open Source software projects. Development trees that feed to the respective mainline repository and for new development can be found in local [http://git.linux-xtensa.org GIT] repositories.


Applications are mostly written processor-independent and don't require
=== Toolchain: Compiler (GCC) and various binary utilities (binutils) ===
modifications to support a new processor architectur. Development tools that
generate architecture specific code, however, must be ported to the new
architecture. Support for the Xtensa architecture has already been integrated
to most OpenSource development tools. More information can be found in the
following sections.


== Conventions ==
All GNU toolchain tools are maintained in OpenSource and can be downloaded from the respective locations.
* Binutils: http://www.gnu.org/software/binutils/
* GCC: http://gcc.gnu.org/


Patches for tools and applications to support additional features or for
Additional information to patch these sources for a specific Xtensa processor configuration can be found under [[Toolchain and Embedded Distributions]].
bug-fixes are located under the in http://www.linux-xtensa.org/pub/patches.  
The patches follow the following naming convention:


''name''-''version''-p''seqno''-''descriptive-text''.patch
=== C-Libraries: Glibc, uClibc and uClibc-ng ===


* ''name'': the name of the tool or application,
Xtensa has long been part of uClibc, however, there are a lot of bug fixes pending for the next release (0.9.33.3). Support for the Native Posix Thread Library (NTPL) is under development and is expected to be part of the following release. The spin-off uClibc-ng project already contains the experimental NPTL support. Development for Glibc with NPTL (older thread libraries are not supported by Glibc anymore) is also current under way. A development tree can be found in this [https://github.com/czankel/xtensa-glibc GIT] repository.
* ''version'': the version number,
* uClibc: http://www.uclibc.org/
* ''seqno'': a sequential patch number,
* GlibC: http://www.gnu.org/software/libc/
* ''descriptive-text': short description of the patch.
* uClibc-ng: http://www.uclibc-ng.org/


For example: <code>gcc-4.1.1-p3-add-tls-support-for-xtensa.patch</code>. The
=== Debugging ===
name describes a patch for the compiler ''gcc'' version ''4.1.1''. It is the
''third'' patch of a series of patches and needs to be applied after ''p1''
and ''p2'' have been applied. The description reveals that this patch adds TLS
(Thread Local Storage) support for the Xtensa architecture.


The patches for a particular package and version must be applied sequentially
GDB is maintained in OpenSource and support for Xtensa in other debugging tools was maintained as patches in local buildroot repositories, and are currently updated and pushed to the respective main repositories.
in order of the incremental patch number.
* GDB: http://www.gnu.org/software/gdb/
* strace: http://sourceforge.net/projects/strace/
* ltrace: http://ltrace.alioth.debian.org/


== Development Tools ==
=== Linux kernel ===


=== Compiler and Binutils ===
Xtensa has been part of the official Linux kernel tree since 2.6.13, however, a lot of patches were maintained in a local stable tree for a long time, and are currently ported to the latest kernel tree. Features, such as large memory support and cache aliasing should be expected to hit the kernel in the 3.10/3.11 time frame. The latest version can be found at https://www.kernel.org/.


The GNU compiler (GCC) and binutils (assembler, linker, etc.) are maintained in the OpenSource source and can be downloaded from the respective locations. Support for Native Posix Thread Library (NTPL) and Thread Local Storage (TLS), however, hasn't been submitted to the latest versions.
=== Toolchain creation tools and embedded distributions (crosstool-NG, buildroot, etc) ===


=== Debugger ===
Xtensa is supported by buildroot, which can be downloaded from http://www.buildroot.net. Support for crosstool-NG has not been pushed into the official tree yet. A version can be downloaded from local [http://git.linux-xtensa.org GIT] repositories. Additional information to configure these tools for a specific Xtensa processor configuration can be found under [[Toolchain and Embedded Distributions]].
* Buildroot: http://www.buildroot.net
* Crosstool-NG: http://crosstool-ng.org/
* OpenADK: http://www.openadk.org/


== C-Libraries ==
=== Other Projects ===


=== GLIBC and uClibc ===
The following list are additional projects that are architecture specific, or that have architecture specific components with additional information how to compile them for Xtensa.


== Operating System ==
* [[LibFFI]] - LibFFI is a library that provides an interface to execute low-level functions. It is mostly used by scripting or higher-level languages, such as Python, Dalvik, etc.
 
=== Linux ===
 
Support for Xtensa has been integrated into the Linux kernel in 2.6.13. For the latest version, see also [[Internet_Resources]]
 
== Applications ==
 
All applications should just compile and run on Xtensa unless they require specific processor features.

Latest revision as of 02:00, 6 October 2015

This page provides additional information for software support for the Xtensa architecture. While most applications are written architecture independent, development tools and operating systems must be ported to a new processor architecture. Support for the Xtensa architecture has already been integrated in most Open Source software projects. Development trees that feed to the respective mainline repository and for new development can be found in local GIT repositories.

Toolchain: Compiler (GCC) and various binary utilities (binutils)

All GNU toolchain tools are maintained in OpenSource and can be downloaded from the respective locations.

Additional information to patch these sources for a specific Xtensa processor configuration can be found under Toolchain and Embedded Distributions.

C-Libraries: Glibc, uClibc and uClibc-ng

Xtensa has long been part of uClibc, however, there are a lot of bug fixes pending for the next release (0.9.33.3). Support for the Native Posix Thread Library (NTPL) is under development and is expected to be part of the following release. The spin-off uClibc-ng project already contains the experimental NPTL support. Development for Glibc with NPTL (older thread libraries are not supported by Glibc anymore) is also current under way. A development tree can be found in this GIT repository.

Debugging

GDB is maintained in OpenSource and support for Xtensa in other debugging tools was maintained as patches in local buildroot repositories, and are currently updated and pushed to the respective main repositories.

Linux kernel

Xtensa has been part of the official Linux kernel tree since 2.6.13, however, a lot of patches were maintained in a local stable tree for a long time, and are currently ported to the latest kernel tree. Features, such as large memory support and cache aliasing should be expected to hit the kernel in the 3.10/3.11 time frame. The latest version can be found at https://www.kernel.org/.

Toolchain creation tools and embedded distributions (crosstool-NG, buildroot, etc)

Xtensa is supported by buildroot, which can be downloaded from http://www.buildroot.net. Support for crosstool-NG has not been pushed into the official tree yet. A version can be downloaded from local GIT repositories. Additional information to configure these tools for a specific Xtensa processor configuration can be found under Toolchain and Embedded Distributions.

Other Projects

The following list are additional projects that are architecture specific, or that have architecture specific components with additional information how to compile them for Xtensa.

  • LibFFI - LibFFI is a library that provides an interface to execute low-level functions. It is mostly used by scripting or higher-level languages, such as Python, Dalvik, etc.