On Ubuntu22.04
sudo apt install -y ccache debian-archive-keyring debootstrap device-tree-compiler dwarves
sudo apt install -y gcc-arm-linux-gnueabihf jq libbison-dev libc6-dev-armhf-cross
sudo apt install -y libelf-dev libfl-dev liblz4-tool libpython2.7-dev libusb-1.0-0-dev
sudo apt install -y pigz pixz pv swig pkg-config python3-distutils qemu-user-static u-boot-tools
sudo apt install -y distcc uuid-dev lib32ncurses-dev lib32stdc++6 apt-cacher-ng
sudo apt install -y aptly aria2 libfdt-dev libssl-dev
Part | Version |
---|---|
uboot | v2021.10 |
kernel | v5.16.17 |
In the project's root directory, run:
sudo ./build.sh
-
uboot config file
Allwinner-H616/u-boot/configs/h616_defconfig
-
Compile information output directory
output/debug/
After flashing the built OS image into an SD card or on-board EMMC, hard-copy the driver files. Feel free to add this driver in the right way.
sudo cp ./sandbox/xr829/* [MOUNTPOINT]/lib/firmware/
sudo mv [MOUNTPOINT]/lib/firmware/sdd_xr829_40M.bin sdd_[MOUNTPOINT]/lib/firmware/xr829.bin
-
Allwinner usb boot: https://linux-sunxi.org/FEL/USBBoot