WARNNING! MAKE SURE TO USE THE CORRECT IMAGE FILE!
Use UART and USB C connnect to your Hikey970 and make sure that your board is in fastboot mode.
- Install fastboot by
$ sudo apt install android-sdk-platform-tools
- . update IMAGE path
export IMAGE= your-ubuntu-image-sparse.img
./flash.sh