Note: This script is intended to be run from a 64 bit arm device such as an odroid m1 or a raspberry pi4.
build debian bookworm using debootstrap
sudo su
sh make_debian_img.sh
the build will produce the target file mmc_2g.img.xz
copy the image to mmc media
sudo sh -c 'xzcat mmc_2g.img.xz > /dev/sdX && sync'
multiple build options are available by editing make_debian_img.sh
media='mmc_2g.img' # or block device '/dev/sdX'
deb_dist='bookworm'
hostname='odroidm1-arm64'
acct_uid='debian'
acct_pass='debian'
disable_ipv6=true