tinyDebian is to build bootable sdcard image from scratch for ARM board.
Branch: nanopi-neo2
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
misc
.gitignore
README.md
build_debian.sh
build_kernel.sh
build_u-boot.sh
chroot_customize.sh
gen_sdcard_image.sh
install_tools.sh

README.md

tinyDebian

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 arm64 board.

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

How to:

  1. Use repo tool to sync the source code:
  2. Change to build/ sub-directory to build.
  3. Run './install_tools.sh" to install the necessary tools.
  4. Run './build_u-boot.sh' to build U-Boot.
  5. Run './build_kernel.sh' to build Linux Kernel.
  6. Run './build_debian.sh bootstrap' to bootstrap Debian image for arm64.
  7. Run './gen_sdcard_image.sh' to generate bootable SD-card image.
  8. Flash bootable sdcard image to Micro SD card:
    • In Windows
    • In Mac OS
    • In Linux, run command as below, ensure /dev/sdX is Micro SD card:
      • sudo dd if=../out/sdcard/sdcard.img of=/dev/sdX bs=4M && sync
  9. 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.

Featured forks:

Contact: