Linux support for LEON3/4 is available in the LEON Linux 3.10 kernel distributed here and in the official Linux kernel from kernel.org. The LEON Linux kernel is based on a long term stable version of the mainline also used by the Long Term Stable Initiative (LTSI) project to ensure that the kernel is actively maintained by a large community and industry. The LEON kernel supports SPARC V8 systems with floating point (FPU) and memory management unit (MMU) in both single-core and symmetric multi-processing (SMP) configurations. The overview document describes the LEON Linux software environment and requirements. All host tools and Linux software are provided in full source.
LINUXBUILD is Cobham Gaisler's open-source embedded software development environment for Linux. It focuses on connecting all LEON utilities with the Linux kernel and applications to obtain a Linux image. It integrates all required steps including configuration and cross building of Linux kernel, root file system, LEON Linux Loader and boot loader into a single graphical user interface. The Buildroot package has been integrated to allow rapid development of embedded Linux systems.
The LEON Linux kernel has software support for a wide range of commercial interfaces available in the GRLIB IP Library. Most device drivers are available in the mainline sources and adheres to Linux's standard framework for respective interface. It ensures good platform independent software support in existing userspace applications and through APIs for writing custom applications. Below is a summary of LEON specific device drivers:
Additionally there is a GRLIB driver package available from the download page that contains the following support:
Documentation, toolchain and software can be downloaded from our Linux download page.
The current official Linux sources available at kernel.org has support for LEON3 and LEON4. Cobham Gaisler actively develops the Linux kernel's LEON support, submitting patches to the official kernel. All work such as new drivers and mainline LEON patches are available in the long term stable LEON Linux kernel distribution.
The LEON Linux kernel is based on a LTS kernel version from kernel.org that is also used by the Long Term Stable Initiative (LTSI) project. The industry that drives the LTSI ensures the kernel will be actively supported for a long time and additional back ported functionality is applicable to the LEON Linux kernel. The LEON Linux kernel is branched from the LTS releases from kernel.org, thus it does not contain patches from LTSI but they can easily be applied.
Cobham Gaisler supports a version of the open-source Buildroot tool that is developed by the community at buildroot.org. Buildroot targets embedded systems supporting both GLIBC and uCLIBC which makes it suitable for the typical LEON user. It supports several hundreds of useful userspace applications which can be automatically included in the generated root file system as selected by the user. LINUXBUILD has integrated the Buildroot tool to easy get started using it in an LEON software environment. A standalone Buildroot package including additional LEON patches can also be obtained from the Linux download page.
LEON specific documentation about Buildroot is found in the LINUXBUILD User's Manual.
Cobham Gaisler provides an open-source RAM loader for the SPARC Linux kernel. The SPARC kernel requires low-level support in order to successfully run Linux. It is responsible to implement low-level initialization during boot and functionality requested by the kernel during run-time. The tool links a Linux image to a specific location in RAM and integrates a loader that is configured according to the user's command line options. See the MKLINUXIMG User's Manual for more information.
The generated Linux image can be loaded to RAM and executed with GRMON, TSIM or GRSIM. Sample single-core and multi-core images supporting standard systems such as GR712RC-BOARD and GR-CPCI-LEON4-N2X are available from the download page.