“Xen on Hikey960”的版本间的差异

来自个人维基
跳转至: 导航搜索
第2行: 第2行:
  
 
1. Building UEFI
 
1. Building UEFI
export BUILD_PATH=~/build
+
export BUILD_PATH=~/build
 
+
cd ${BUILD_PATH}
https://discuss.96boards.org/t/install-uefi-on-hikey960-from-binaries-instructions/2441
+
download tools-images-hikey960
 +
git clone https://github.com/96boards-hikey/tools-images-hikey960
  
 +
download prebuild from
 +
BASE_URL=https://snapshots.linaro.org/reference-platform/components/uefi-staging
 +
VERSION=latest
 +
PRODUCT=hikey960
 +
RELEASE=release
 +
DEVICE=/dev/ttyUSB1
 +
and flash prm_ptable.img, hisi-sec_xloaderimg, l-loader.bin, fip.bin to board
 
  git clone https://github.com/96boards-hikey/tools-images-hikey960
 
  git clone https://github.com/96boards-hikey/tools-images-hikey960
 
  cd tools-images-hikey960
 
  cd tools-images-hikey960
  rm config hikey_idt sec_uce_boot.img sec_usb_xloader.img sec_xloader.img
+
  recovery-flash-uefi-prebuilt.sh
wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/config
+
 
wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/fip.bin
+
 
wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/hikey_idt
+
wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/l-loader.bin
+
wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/prm_ptable.img
+
wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/sec_uce_boot.img
+
wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/sec_usb_xloader.img
+
wget http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/13/hikey960/debug/sec_xloader.img
+
=>wget failed
+
  
 
Reference:
 
Reference:

2019年11月12日 (二) 14:12的版本

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

download prebuild from
BASE_URL=https://snapshots.linaro.org/reference-platform/components/uefi-staging
VERSION=latest
PRODUCT=hikey960
RELEASE=release
DEVICE=/dev/ttyUSB1
and flash prm_ptable.img, hisi-sec_xloaderimg, l-loader.bin, fip.bin to board

git clone https://github.com/96boards-hikey/tools-images-hikey960
cd tools-images-hikey960
recovery-flash-uefi-prebuilt.sh 


Reference:
https://github.com/96boards-hikey/tools-images-hikey960/blob/master/build-from-source/README-ATF-UEFI-build-from-source.md
or
~/build/tools-images-hikey960/build-from-source/README-ATF-UEFI-build-from-source.md

fetch sources to ${BUILD_PATH}

git clone https://github.com/ARM-software/arm-trusted-firmware -b integration ==>branch integration not found
git clone https://github.com/96boards-hikey/edk2 -b testing/hikey960_v2.5
git clone https://github.com/96boards-hikey/OpenPlatformPkg -b testing/hikey960_v1.3.4
git clone https://github.com/96boards-hikey/l-loader -b testing/hikey960_v1.2 ==> not consistent 
git clone https://github.com/96boards-hikey/atf-fastboot

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