Skip to content

AYNTechnologies/u-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Building U-Boot for AYN SM8550

Prerequisites

You will need either an x86 machine with an aarch64 cross-compiler installed, or an existing aarch64 system. You will also need the device tree compiler dtc, python3 (including setuptools and pyelftools), swig, GNU make and git

On an x86_64 Debian (or derivates such as Ubuntu) system, you can install the required dependencies with:

sudo apt install device-tree-compiler build-essential gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu make python3 python3-dev libssl-dev python3-pyelftools python3-setuptools swig git mkbootimg

Fetching the repositories

git clone https://github.com/AYNTechnologies/u-boot.git -b ayn-sm8550

Building from source

cd u-boot
make CROSS_COMPILE=aarch64-linux-gnu- O=.output qcom_defconfig
make CROSS_COMPILE=aarch64-linux-gnu- O=.output -j$(nproc) DEVICE_TREE=qcom/qcs8550-ayn-odin2-common
gzip .output/u-boot-nodtb.bin -c > .output/u-boot-nodtb.bin.gz
cat .output/u-boot-nodtb.bin.gz .output/dts/upstream/src/arm64/qcom/qcs8550-ayn-odin2-common.dtb > .output/kernel-dtb
mkbootimg --kernel_offset '0x00008000' --pagesize '4096' --kernel .output/kernel-dtb -o .output/u-boot.img --cmdline "nodtbo"

Booting u-boot

You can test by booting the unit to fastboot mode (Power + Volume Down) then boot the image:

fastboot boot .output/u-boot.img

Flashing u-boot

AYN Odin2 Portal platform have a loader partition to boot alternative OSes. You can flash the u-boot.img in fastboot with this command:

fastboot flash loader .output/u-boot.img

Then you can boot a loader by selecting default boot to Loader instead of Android in fastboot mode.

About

AYN SM8550 "Das U-Boot" Source Tree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published