Skip to content

Instantly share code, notes, and snippets.

@rohieb rohieb/README.md
Last active May 1, 2019

Embed
What would you like to do?
IBR-DTN on OpenWRT on the Raspberry Pi

OpenWRT image for Raspberry Pi with IBR-DTN.

Steps to reproduce:

(This is an abridged version of OpenWRT Buildroot – Installation and Usage)

  1. Get a fast machine with at least ~10 GB of free space.

  2. For Raspberry Pi 1 and 2, you can use the latest release, 15.05 “Chaos Calmer”:

    • git clone git://git.openwrt.org/15.05/openwrt.git openwrt
    • cd openwrt

    Support for the Raspberry Pi 3 is still unreleased, you'll need at least r48967 (March 8 2016):

    • git clone git://git.openwrt.org/openwrt.git
    • cd openwrt
  3. Get the software packages: ./scripts/feeds update -a; ./scripts/feeds install -a

  4. Paste one of the following snippets to the file .config:

    • For Raspberry Pi 1, Zero or Compute Module:

      CONFIG_TARGET_brcm2708=y
      CONFIG_TARGET_brcm2708_bcm2708=y
      CONFIG_TARGET_brcm2708_bcm2708_RaspberryPi=y
      CONFIG_TARGET_ROOTFS_PARTSIZE=450
      CONFIG_PACKAGE_busybox=y
      CONFIG_BUSYBOX_CUSTOM=y
      CONFIG_BUSYBOX_CONFIG_TELNETD=n
      CONFIG_PACKAGE_pptpd=n
      CONFIG_PACKAGE_ppp=n
      CONFIG_PACKAGE_ibrdtn-tools=y
      CONFIG_PACKAGE_ibrdtnd=y
      CONFIG_IMAGEOPT=y
      CONFIG_VERSIONOPT=y
      CONFIG_VERSION_FILENAMES=y
      
    • For Raspberry Pi 2:

      CONFIG_TARGET_brcm2708=y
      CONFIG_TARGET_brcm2708_bcm2709=y
      CONFIG_TARGET_brcm2708_bcm2709_RaspberryPi2=y
      CONFIG_TARGET_ROOTFS_PARTSIZE=450
      CONFIG_PACKAGE_busybox=y
      CONFIG_BUSYBOX_CUSTOM=y
      CONFIG_BUSYBOX_CONFIG_TELNETD=n
      CONFIG_PACKAGE_pptpd=n
      CONFIG_PACKAGE_ppp=n
      CONFIG_PACKAGE_ibrdtn-tools=y
      CONFIG_PACKAGE_ibrdtnd=y
      CONFIG_IMAGEOPT=y
      CONFIG_VERSIONOPT=y
      CONFIG_VERSION_FILENAMES=y
      
    • For Raspberry Pi 3:

      CONFIG_TARGET_brcm2708=y
      CONFIG_TARGET_brcm2708_bcm2710=y
      CONFIG_TARGET_brcm2708_bcm2710_RaspberryPi_3=y
      CONFIG_TARGET_ROOTFS_PARTSIZE=450
      CONFIG_PACKAGE_busybox=y
      CONFIG_BUSYBOX_CUSTOM=y
      CONFIG_BUSYBOX_CONFIG_TELNETD=n
      CONFIG_PACKAGE_pptpd=n
      CONFIG_PACKAGE_ppp=n
      CONFIG_PACKAGE_ibrdtn-tools=y
      CONFIG_PACKAGE_ibrdtnd=y
      CONFIG_IMAGEOPT=y
      CONFIG_VERSIONOPT=y
      CONFIG_VERSION_FILENAMES=y
      
  5. make defconfig; make world

    • optionally: use make -j world to build packages in parallel
  6. Get a coffee. Or two. Or like SuSE says: Have a lot of fun.

  7. You'll find the SD Card image in bin/brcm2708/:

    • openwrt-15.05.1-brcm2708-bcm2708-sdcard-vfat-ext4.img for Raspberry Pi 1/Zero/CM
    • openwrt-15.05.1-brcm2708-bcm2709-sdcard-vfat-ext4.img for Raspberry Pi 2
    • openwrt-r49395-brcm2708-bcm2710-sdcard-vfat-ext4.img (or similar rXXXXX) for Raspberry Pi 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.