“Xen on Hikey960”的版本间的差异
free6d1823(讨论 | 贡献) |
free6d1823(讨论 | 贡献) |
||
第19行: | 第19行: | ||
and flash prm_ptable.img, hisi-sec_xloaderimg, l-loader.bin, fip.bin to board (這幾個文件有用到) | and flash prm_ptable.img, hisi-sec_xloaderimg, l-loader.bin, fip.bin to board (這幾個文件有用到) | ||
− | Note that to add "sudo" in front of hikey_idt and fastboot in the | + | Note that to add "sudo" in front of hikey_idt and fastboot in the shell script. |
recovery-flash-uefi-prebuilt.sh [options] | recovery-flash-uefi-prebuilt.sh [options] | ||
options: | options: |
2019年11月12日 (二) 15:25的版本
Reference: https://wiki.xenproject.org/wiki/HiKey960
1. Building UEFI
export BUILD_PATH=~/build cd ${BUILD_PATH}
download tools-images-hikey960
git clone https://github.com/96boards-hikey/tools-images-hikey960 cd tools-images-hikey960
see README-flash-uefi.md to install ser2net first.
download prebuild from
BASE_URL=https://snapshots.linaro.org/reference-platform/components/uefi-staging
VERSION=latest
PRODUCT=hikey960
RELEASE=release
DEVICE=/dev/ttyUSB1
download hikey_idt hisi-sec_usb_xloader.img, hisi-sec_uce_boot.img, hisi-sec_fastboot.img
and flash prm_ptable.img, hisi-sec_xloaderimg, l-loader.bin, fip.bin to board (這幾個文件有用到)
Note that to add "sudo" in front of hikey_idt and fastboot in the shell script.
recovery-flash-uefi-prebuilt.sh [options] options: -d RELEASE=debug -r RELEASE=release -t DEVICE -v VERSION -u <dir> don't download , use files in <dir>/uefi
for example:
./recovery-flash-uefi-prebuilt.sh -d -t /dev/ttyUSB0 -u ./uefi
The images are loacted in
https://snapshots.linaro.org/reference-platform/components/uefi-staging/${VERSION}/hikey960/${RELEASE}/
2. Building Linux
git clone https://github.com/96boards-hikey/linux.git cd linux git checkout origin/hikey960-upstream-rebase export CROSS_COMPILE=aarch64-linux-gnu- export ARCH=arm64 make defconfig
check .config, CONFIG_XEN_DOM0=y CONFIG_XEN=y
make -j8 cp -f arch/$ARCH/boot/Image ../Image cp -f arch/$ARCH/boot/dts/hisilicon/hi3660-hikey960.dtb ../Image.dtb