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 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:
-
Install required tools:
- sudo apt install build-essential python3
- Follow instructions in below to install repo
- https://source.android.com/setup/develop#installing-repo
- git config user.email and user.name
-
Use repo tool to sync the source code:
- mkdir -p tinyDebian.source && cd tinyDebian.source
- repo init -u https://github.com/tinydebian/manifest -b nanopi-neo2
- repo sync -j4
- repo forall -p -c git checkout nanopi-neo2
- repo forall -p -c git branch -a
-
Change to build/ sub-directory to build.
-
Run './install_tools.sh' to install the necessary tools.
-
Run './build_kernel.sh' to build Linux Kernel.
-
Run './build_u-boot.sh' to build U-Boot.
-
Run './build_debian.sh bootstrap' to bootstrap Debian image for arm64.
-
Run './build_app.sh' to build application software.
-
Run './gen_images.sh' to generate bootable SD-card image.
-
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
-
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.