Skip to content

Instantly share code, notes, and snippets.

@rohieb
Last active July 31, 2016 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohieb/ce933ab6cec836902b7ac6687cf25fe2 to your computer and use it in GitHub Desktop.
Save rohieb/ce933ab6cec836902b7ac6687cf25fe2 to your computer and use it in GitHub Desktop.
IBR-DTN with PTXDist on Raspberry Pi

This is a very compressed version of How to become a PTXdist Guru.

PTXdist is a build system to reproducably build Linux distributions from source. DistroKit is a Board Support Package for embedded systems, using PTXdist.

  1. get a fast machine with at least ~15 GB of free space
  2. install PTXDist, version 2016.07.0
  3. install the OSELAS.Toolchain, version 2014.12.x for arm-v7a-linux-gnueabihf
  4. git clone https://github.com/rohieb/DistroKit-rpi-ibrdtn
  5. cd DistroKit-rpi-ibrdtn
  6. optionally, ptxdist menuconfig to select software to build
  7. optionally, ptxdist get to download all necessary source tarballs before building. Otherwise, this is done by the next step on the fly.
  • if some source packages are not found while downloading, google them (including the version!) and place the tarball in src/. (Luckily, the Internet does not forget.)
  • if the toolchain is not autodetected, do something like ptxdist toolchain /path/to/OSELAS.Toolchain-2014.12.*/arm-1136jfs-linux-gnueabihf/gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/bin/
  1. ptxdist images
  2. get a coffee. Or go to sleep. This will take some time.
  3. use the boot partition from a Raspbian image, and use platform-rpi/images/root.ext2 for the second partition of your SD card.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment