This document describes how to compile Ubuntu image from source code.
準備
A Ubuntu 22.04 machine
ステップ
Step 1. Install dependent packages
sudo apt-get install -y build-essential gcc-aarch64-linux-gnu bison \
qemu-user-static qemu-system-arm qemu-efi u-boot-tools binfmt-support \
debootstrap flex libssl-dev bc rsync kmod cpio xz-utils fakeroot parted \
udev dosfstools uuid-runtime git-lfs device-tree-compiler python2 python3 \
python-is-python3 fdisk bc debhelper python3-pyelftools python3-setuptools \
python3-distutils python3-pkg-resources swig libfdt-dev libpython3-dev
Step 2. Obtain the source code
git clone https://github.com/mixtile-rockchip/ubuntu-rockchip.git
cd ubuntu-rockchip
Step 3. Switch to the branch of mixtile-core3588e and build
git checkout mixtile-core3588e
sudo ./build.sh --board=mixtile-core3588e
Image files are generated in the images folder, including xz compressed packages of the server version and desktop version.
tree images/
images/
├── ubuntu-22.04.3-preinstalled-desktop-arm64-mixtile-core3588e.img.xz
├── ubuntu-22.04.3-preinstalled-desktop-arm64-mixtile-core3588e.img.xz.sha256
├── ubuntu-22.04.3-preinstalled-server-arm64-mixtile-core3588e.img.xz
└── ubuntu-22.04.3-preinstalled-server-arm64-mixtile-core3588e.img.xz.sha256
Fore more information, see Mixtile ubuntu-rockchip wiki.