commit | ca1fbcdffcd4c471027f00085525a0df9e66d788 | [log] [tgz] |
---|---|---|
author | Vishal Bhoj <vishal.bhoj@linaro.org> | Wed Dec 16 00:25:24 2015 +0530 |
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | Wed Dec 16 01:24:42 2015 +0530 |
tree | 744bb1cddd851242865bb6f1618ad77ad230e88e | |
parent | 78e9049cf98bd4d6fab6e0a4ce76a83f61a82426 [diff] [blame] |
Add Installer for bootloader Add prebuilt UEFI bootloader which could be flashed from scratch. Bootloader is built from sources from earlier commit. Includes an installer script which helps to flash the bootloader and AOSP images built from sources: https://github.com/96boards/edk2/commit/14eae0c12e71fd33c4c0fc51e4475e8db02566cf https://github.com/96boards/arm-trusted-firmware/commit/e9b4909dcd75fc4ae7041cfb83d28ab9adb7afdf https://github.com/96boards/l-loader/commit/6b784ad5c4ab00e2b1c6f53cd5f74054e5d00a78 https://git.linaro.org/uefi/uefi-tools.git/commit/abe618f8ab72034fff1ce46c9c006a2c6bd40a7e Change-Id: I006f33083fc5d1868345be7daff52fa69ea64334 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
diff --git a/installer/flash-all.sh b/installer/flash-all.sh new file mode 100755 index 0000000..4860c45 --- /dev/null +++ b/installer/flash-all.sh
@@ -0,0 +1,23 @@ +#!/bin/bash +if [ $# -eq 0 ] + then + echo "Provide the right /dev/ttyUSBX specific to recovery device" + exit +fi + +if [ ! -e $1 ] + then + echo "device: $1 does not exist" + exit +fi + +INSTALLER_DIR="`dirname $0`" +ANDROID_TOP=${INSTALLER_DIR}/../../../../ +python ${INSTALLER_DIR}/hisi-idt.py --img1=${INSTALLER_DIR}/l-loader.bin -d ${1} +fastboot flash ptable ${INSTALLER_DIR}/ptable-aosp.img +fastboot flash fastboot ${INSTALLER_DIR}/fip.bin +fastboot flash nvme ${INSTALLER_DIR}/nvme.img +fastboot flash boot ${ANDROID_TOP}/out/target/product/hikey/boot_fat.uefi.img +fastboot flash system ${ANDROID_TOP}/out/target/product/hikey/system.img +fastboot flash cache ${ANDROID_TOP}/out/target/product/hikey/cache.img +fastboot flash userdata ${ANDROID_TOP}/out/target/product/hikey/userdata.img