OpenEmbedded and Yocto
This page provides the Hikey specific instructions for flashing OpenEmbedded and Yocto images. For instructions on building the OE/Yocto images, please visit the generic OpenEmbedded guide.
Updating UFS partitions and Bootloader
To make sure that the UFS partitions and Bootloader is up to date follow our Board Recovery Guide
At this point your eMMC has the following partition layout:
bootis used for the boot image (kernel, device tree, initrd)
userdatacan used for the root file system but not both
Flashing build artifacts
At the end of any successful build you will end up with the following artifacts (amongst others)
IMAGEwith the name of image you built. For example, if you built
These will be found in your
After getting into
fastboot mode, following commands can be used to flash built images onto HiKey960’s eMMC.
$ gunzip --force IMAGE-hikey960.ext4.gz $ sudo fastboot flash boot boot-hikey960.uefi.img $ ext2simg -v IMAGE-hikey960.ext4 IMAGE-hikey960.img
system partition for root file system:
$ sudo fastboot flash system IMAGE-hikey960.img $ sudo fastboot erase userdata
userdata partition for root file system:
$ sudo fastboot flash userdata IMAGE-hikey960.img $ sudo fastboot erase system
Note: Since in HiKey960, root partition is being detected by UUID, so we need to make sure that only one partition has the generated file system image and other one should be empty.