The following instructions have been tested with Ubuntu UBUNTU_VERSION (64 bit) in a VMWare virtual machine.

This page refers to the BSP and ancillary tools listed in the following table:

BSP Revision BSP_VERSION
PTXdist PTX_VERSION
OSELAS Toolchain OSELAS_VERSION.OSELAS_PATCHLEVEL
Platform MB_NAME_CODE
U-Boot UBOOT_VERSION
Linux Kernel LINUX_KERNEL

Show details for previous revisions of the BSP

PTXdist version OSELAS_VERSION.0 is required to build the OSELAS.Toolchain-OSELAS_VERSION.OSELAS_PATCHLEVEL. This version may differ from the PTXdist version required to build the BSP itself. Ubuntu UBUNTU_VERSION is required for the toolchain.

The BSP is available as a project ready to use with the PTXdist1) build system. As PTXdist runs on linux, first of all you need a development workstation (or a virtual machine) with a (preferably) recent Linux distribution installed. The distribution of your choice, however, may not have installed all required packages by default. Commonly missing packages (package names taken from Debian based systems) include:

  • autoconf
  • bc
  • bison
  • build-essential
  • dialog
  • flex
  • g++
  • gawk
  • gettext
  • git
  • libncurses5-dev
  • libxml-parser-perl
  • python-dev
  • quilt
  • texinfo
  • zip
  • socat
  • pkg-config

Although not required by PTXdist, we also recommend to configure and run a tftp server (for image download / update) and an nfs server (for network mounted rootfs) on your development host.

It is recommended to first install PTXdist OSELAS_VERSION in order to build the toolchain (see note above).
Once the toolchain is compiled, install PTXdist PTX_VERSION is required to build the BSP.
You can always use a specific version of PTXdist by explicitly calling ptxdist-<version>.
Example:
$ ptxdist-PTX_VERSION

Please note:
The link /usr/local/bin/ptxdist always calls the PTXdists version installed most recently.

Starting with PTXdist 2014.07, ptxdist calls a script which tries to automatically determine and call
the required version by parsing the config files in the project directory.

Make sure the development host meets the prerequisites and download the required PTXdist tarball(s) (see Downloads page for URLs).

Extract the tarball ptxdist-OSELAS_VERSION.OSELAS_PATCHLEVEL.tar.bz2 and install as follows:

$ tar xvf ptxdist-<label oselas_version>OSELAS_VERSION</label>.<label oselas_patchlevel>OSELAS_PATCHLEVEL</label>.tar.bz2
$ cd ptxdist-<label oselas_version>OSELAS_VERSION</label>.<label oselas_patchlevel>OSELAS_PATCHLEVEL</label>
$ ./configure
$ make
$ sudo make install

This will install PTXdist to /usr/local/lib by default.

PTXdist configuration

After installing PTXdist it can be configured by:

$ ptxdist setup 
 .config - PTXdist <label ptx_version>PTX_VERSION</label>
 ──────────────────────────────────────────────────────────────────────────────
  ┌─────────────────────────── PTXdist <label ptx_version>PTX_VERSION</label> ───────────────────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus --->.          │  
  │  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, │  
  │  <M> modularizes features.  Press <Esc><Esc> to exit, <?> for Help, </> │  
  │  for Search.  Legend: [*] built-in  [ ] excluded  <M> module  < >       │  
  │ ┌─────────────────────────────────────────────────────────────────────┐ │  
  │ │    --- PTXDIST Setup Menu                                           │ │  
  │ │        User                --->                                     │ │  
  │ │        Proxies             --->                                     │ │  
  │ │        Project Searchpath  --->                                     │ │  
  │ │        Source Directories  --->                                     │ │  
  │ │        Source Download     --->                                     │ │  
  │ │        IPKG Repository     --->                                     │ │  
  │ │        Java SDK            --->                                     │ │  
  │ │        Developer Options   --->                                     │ │  
  │ │                                                                     │ │  
  │ └─────────────────────────────────────────────────────────────────────┘ │  
  ├─────────────────────────────────────────────────────────────────────────┤  
  │        <Select>    < Exit >    < Help >    < Save >    < Load >         │  
  └─────────────────────────────────────────────────────────────────────────┘  

To personalise your PTXdist installation, please fill out:

  • User (username and mail address)

Depending on your environment, the most important settings are:

  • Proxies (ftp / http / hhtps proxies)
  • Source Directories (path for archive of downloaded source packages (aka local package pool))

For further details on setup options, please see the PTXdist manual.

See download page for links to toolchain download. If using precompiled toolchain install to /opt. Otherwise carefully follow the documentation for building toolchains found here or in the download section.
By default the toolchain will get installed to /opt/OSELAS.Toolchain-<version>.

Follow chapter “Building a toolchain” in the PTXdist manual and keep in mind:

  • When you are asked to run the command
    $ ptxdist select ptxconfigs/...

    select this ptxconfig: ptxconfigs/PTXCONFIG_ARCH_gcc-<version>_glibc-<version>_binutils-<version>_kernel-<version>-sanitized.ptxconfig (for MOD_NAME)

  • To build the toolchain project you should install the corresponding PTXdist version for the Toolchain (as told in the documentation).

Extract the tarball ptxdist-PTX_VERSION.tar.bz2 and install as follows:

$ tar xvf ptxdist-<label ptx_version>PTX_VERSION</label>.tar.bz2
$ cd ptxdist-<label ptx_version>PTX_VERSION</label>
$ ./configure
$ make
$ sudo make install

Afterwards you can configure PTXdist

See the README file in the BSP archive for a detailed description of the zip contents

Extract the package ...zip to any directory (e.g. /opt or /home):

$ cd ~/home/workspace
$ tar -xvf <label bsp_name_archive_src>BSP_NAME_ARCHIVE_SRC</label>.<label bsp_version_src>BSP_VERSION_SRC</label>.tar.gz
$ cd <label bsp_name_archive_src>BSP_NAME_ARCHIVE_SRC</label>.<label bsp_version>BSP_VERSION</label>

  • Last modified: 2022/08/04 15:02