Skip to content
Switch branches/tags
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


tinyDebian consists of bare minimal Bash scripts to build Debian image from scratch. The generated image can be flashed into a Micro SD card and boot NanoPi Neo2 or K1 Plus (with HDMI) arm64 board.

It is encouraged to read these Bash scripts before generating the bootable sdcard image.

We recommend to use Ubuntu 18.04.x to build.

How to:

  1. Install required tools:

  2. Use repo tool to sync the source code:

    • mkdir -p tinyDebian.source && cd tinyDebian.source
    • repo init -u -b nanopi-neo2
    • repo sync -j4
    • repo forall -p -c git checkout nanopi-neo2
    • repo forall -p -c git branch -a
  3. Change to build/ sub-directory to build.

  4. Run './' to install the necessary tools.

  5. Run './' to build Linux Kernel.

  6. Run './' to build U-Boot.

  7. Run './ bootstrap' to bootstrap Debian image for arm64.

  8. Run './' to build application software.

  9. Run './' to generate bootable SD-card image.

  10. Flash bootable sdcard image to Micro SD card:

    • In Windows
    • In Mac OS
    • In Linux, run command (example as below), ensure /dev/sdX is Micro SD card:
      • sudo dd if=../out/sdcard/remw_x.x_yy_sdcard.img of=/dev/sdX bs=4M && sync
  11. Insert Micro SD card into NanoPi Neo2 then power on to boot.

Philosophies behind tinyDebian:

  • Simple and bare minimal Bash scripts to build Debian image from scratch.
  • Starting point to be forked for complex project.

Why we choose NanoPi Neo2 (arm64 architecture) as our default board:

  • NanoPi Neo2 is tiny, low cost, arm64 board.
  • NanoPi K1 Plus is arm64 board, with HDMI.

Featured forks:



tinyDebian is to build bootable sdcard image from scratch for ARM board.



No releases published


No packages published