Scripts and blobs for LonganPi 3H image build.
Tested on Ubuntu 22.04.2 LTS
- Install some dependencies
sudo apt update
sudo apt install qemu-user-static gcc-aarch64-linux-gnu mmdebstrap git binfmt-support make build-essential bison flex make gcc libncurses-dev debian-archive-keyring swig libssl-dev bc python3-setuptools python3-dev
note: mklinux.sh git patching will fail if username and email is unset setup git environment if not already set. Don't forget to set your git user.name and user.email
git config --global user.name "Mona Lisa"
git config --global user.email "Mona.Lisa@email.com"
- Build arm-trusted-firmware
./mkatf.sh
- Build uboot
./mkuboot.sh
- Build kernel
./mklinux.sh
- Build rootfs debian
sudo ./mkrootfs.sh
# or ./mkrootfs-ubuntu.sh
Creating a bootable image see wiki here