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.
- Use repo tool to sync the source code:
- repo init -u https://github.com/tinydebian/manifest -b nanopi-neo2
- repo sync -j4
- repo forall -p -c git checkout nanopi-neo2
- Change to build/ sub-directory to build.
- Run './install_tools.sh" to install the necessary tools.
- Run './build_u-boot.sh' to build U-Boot.
- Run './build_kernel.sh' to build Linux Kernel.
- Run './build_debian.sh bootstrap' to bootstrap Debian image for arm64.
- Run './gen_sdcard_image.sh' to generate bootable SD-card image.
- 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
- 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.