Embedded module TQMa335x - PTXdist Linux BSP documentation


Adapting BSP for an own product

We suggest to read the following pages before proceeding with this page:

Creating a new platform for your product

First of all make a copy of the platform definition and select the new platform definition

$ cd <BSPROOT>
$ cp -r <BSPROOT>/configs/platform-tq-mba335x to <BSPROOT>/configs/<your-cool-platform>
$ ptxdist platform <BSPROOT>/configs/<your-cool-platform>/platformconfig

To start configuring your new platform type

$ ptxdist platformconfig

The first thing to change should be the platform name. Adapt things like kernel configuration, image creation etc. to your needs.

The new system will be built under <BSPROOT>/platform-<platformname_from_platformconfig>

Changing packages

PTXdist uses release tarballs for software it loads from the net. You have to work with patches, if you need to make (permanent) changes to the source code. Follow the instructions of the developers section in the PTXdist manual.

Changes made in the build directories will be deleted, when PTXdist needs to redo a buildstep.

Adding own packages

Everything that should be part of your rootfilesystem needs to be provided as a PTXdist package, in order to guarantee reproducible builds. To add your application software, files etc. you have to provide local packages. Follow the instructions of the developers section in the PTXdist manual. PTXdist provides templates as starting point for own packages.

Execute

$ ptxdist newpackage

for a list of available package templates.

Partitioning