This repository provides a collection of scripts and configuration files for building Jetso Nano SD card image from scratch.
How to:
- Install dependencies
- Run
sudo ./00_sources.sh
to download toolchain, driver package and source files - Run
sudo ./01_bootstrap.sh
to bootstrap root filesystem - Run
sudo ./02_kernel.sh
to configure, build and install kernel - Run one of the following commands to create
.img
file(s)sudo ./03_make_img.sh
: Single.img
filesudo ./03_make_img_f2fs.sh
: Single.img
file with root on F2FS filesystemsudo ./03_make_img_f2fs_separate.sh
: Two.img
files for BOOT (APP) and ROOT (multi device boot)
Kernel build
yay -Sy base-devel bc inetutils vim
Bootstrapping
yay -Sy debootstrap qemu-user-static-bin
Flashing
# Simple
yay -Sy gdisk
# Simple + F2FS
yay -Sy gdisk f2fs-tools rsync
TODO
- Fix patching
- Do not install manual files and documentation (except LICENSE files)
- Rewise NVIDIA firmware packages and their usage
- Do not compile/include useless drivers
- Optional packages