First of all make a copy of the platform definition and select the new platform definition
$ cd <BSPROOT> $ cp -r <BSPROOT>/configs/platform-tq-mba7x 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>
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.
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.
Sector numbers are in hexadecimal (as expected by U-Boot's mmc
command), size is given in hex (=number of sectors) and dezimal (= size in byte).
Sector first | Sector last | Size | Usage |
---|---|---|---|
0x000000 | 0x000000 | 0x0001 sector / 512 Byte | MBR / Partition Table |
0x000001 | 0x000001 | 0x0001 sector / 512 Byte | free |
0x000002 | 0x0007FF | 0x07FE sectors / 1023 KiB | u-boot |
0x000800 | 0x000FFF | 0x0800 sectors / 1 MiB | u-boot environment |
0x001000 | 0x001FFF | 0x1000 sectors / 2 MiB | free |
0x002000 | 0x00BFFF | 0xA000 sectors / 20 MiB | boot / firmware (Kernel, devicetrees) |
0x00C000 | 0x08BFFF | 0x80000 sectors / 256 MiB | root |
0x08C000 | 0x10BFFF | 0x80000 sectors / 256 MiB | spare, unformatted |