Commit 008d2291 authored by yrzr's avatar yrzr
Browse files

update source for fip.bin

to enable pci support for mainline kernel
https://github.com/Mani-Sadhasivam/OpenPlatformPkg/commit/32e59f8f6848b09fddaf549c08b1363a66abc400
parent afd9b4ac
......@@ -3,13 +3,15 @@
WORKDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/build
OUTPUTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/out
echo ${WORKDIR}
if [ -d ${WORKDIR} ]; then
docker run --rm \
-v ${WORKDIR}:/root \
yrzr/hikey970_tools:img \
bash -c "rm -r /root/*"
else
mkdir -p ${WORKDIR}
fi
mkdir -p ${WORKDIR}
cd ${WORKDIR}
git clone -b hikey970_v1.0 --depth=1 https://github.com/96boards-hikey/tools-images-hikey970.git
......@@ -17,7 +19,8 @@ git clone -b hikey970_v1.0 --depth=1 https://github.com/96boards-hikey/arm-trust
git clone -b hikey970_v1.0 --depth=1 https://github.com/96boards-hikey/l-loader.git
git clone -b hikey970_v1.0 --depth=1 https://github.com/96boards-hikey/uefi-tools.git
git clone -b hikey970_v1.0 --depth=1 https://github.com/96boards-hikey/edk2.git
git clone -b hikey970_v1.0 --depth=1 https://github.com/96boards-hikey/OpenPlatformPkg.git
# git clone -b hikey970_v1.0 --depth=1 https://github.com/96boards-hikey/OpenPlatformPkg.git
git clone -b hikey970_v1.0 --depth=1 https://github.com/Mani-Sadhasivam/OpenPlatformPkg.git
ln -s ./OpenPlatformPkg ./edk2/OpenPlatformPkg
cd ${WORKDIR}/l-loader && git apply ${WORKDIR}/../patch/generate_ptable.sh.patch
......@@ -30,16 +33,21 @@ docker run --rm \
# rm -rf ${OUTPUTDIR}
# fi
mkdir -p ${OUTPUTDIR}
# sda
# tool
cp -v ${WORKDIR}/tools-images-hikey970/hikey_idt ${OUTPUTDIR}
# first part of sec_xloader.img
cp -v ${WORKDIR}/tools-images-hikey970/sec_usb_xloader.img ${OUTPUTDIR}
# sdb
# second part of sec_xloader.img
cp -v ${WORKDIR}/tools-images-hikey970/sec_usb_xloader2.img ${OUTPUTDIR}
# sdc
cp -v ${WORKDIR}/l-loader/l-loader.bin ${OUTPUTDIR}
# sda
cp -v ${WORKDIR}/tools-images-hikey970/sec_xloader.img ${OUTPUTDIR}
# sdb empty
# sdc empty
# partition table of sdd
cp -v ${WORKDIR}/l-loader/prm_ptable.img ${OUTPUTDIR}
# sdd1 vrl
cp -v ${WORKDIR}/tools-images-hikey970/sec_xloader.img ${OUTPUTDIR}
# sdd1 empty
# sdd2 fastboot
cp -v ${WORKDIR}/l-loader/l-loader.bin ${OUTPUTDIR}
# sdd4 fip
cp -v ${WORKDIR}/edk2/Build/HiKey970/RELEASE_GCC5/FV/fip.bin ${OUTPUTDIR}
......
......@@ -21,6 +21,6 @@ sudo fastboot flash fip ${WORKDIR}/fip.bin
#boot
sudo fastboot flash boot /Data/hikey970/uefi.img
echo "Flashing rootfs takes over 3 mins, So please be patient..."
echo "Flashing rootfs takes over 3 mins, so please be patient..."
#rootfs
sudo fastboot flash system /Data/hikey970/rootfs.btrfs.img
......@@ -6,9 +6,11 @@ RUN apt-get update -qq \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/tmp/*
RUN wget -q https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz -O /tmp/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz \
&& cd /opt/ && tar -axpf /tmp/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz \
&& rm /tmp/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz
RUN wget -q https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz -O /tmp/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz \
&& cd /opt/ && tar -axpf /tmp/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz \
&& rm /tmp/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz
RUN mkdir /opt/toolchain/ \
&& ln -s /opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu /opt/toolchain/gcc-linaro-7.1.1-2017.08-x86_64_aarch64-linux-gnu
&& ln -s /opt/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu /opt/toolchain/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu
ENV PATH="/opt/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin:${PATH}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment